tag | line | file | source code |
sgpnt | 608 | drivers/scsi/aha1542.c | struct scatterlist * sgpnt; |
sgpnt | 616 | drivers/scsi/aha1542.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 620 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
sgpnt | 621 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
sgpnt | 625 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
sgpnt | 626 | drivers/scsi/aha1542.c | sgpnt[i].length); |
sgpnt | 633 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
sgpnt | 634 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
sgpnt | 635 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
sgpnt | 326 | drivers/scsi/aha1740.c | struct scatterlist * sgpnt; |
sgpnt | 334 | drivers/scsi/aha1740.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 339 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
sgpnt | 340 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
sgpnt | 691 | drivers/scsi/buslogic.c | struct scatterlist *sgpnt; |
sgpnt | 703 | drivers/scsi/buslogic.c | sgpnt = (struct scatterlist *)scpnt->request_buffer; |
sgpnt | 711 | drivers/scsi/buslogic.c | CHECK_DMA_ADDR(shpnt->unchecked_isa_dma, sgpnt[i].address, |
sgpnt | 713 | drivers/scsi/buslogic.c | cptr[i].dataptr = sgpnt[i].address; |
sgpnt | 714 | drivers/scsi/buslogic.c | cptr[i].datalen = sgpnt[i].length; |
sgpnt | 592 | drivers/scsi/eata.c | struct scatterlist * sgpnt; |
sgpnt | 594 | drivers/scsi/eata.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 597 | drivers/scsi/eata.c | cpp->sglist[k].address = htonl((unsigned int) sgpnt[k].address); |
sgpnt | 598 | drivers/scsi/eata.c | cpp->sglist[k].num_bytes = htonl((unsigned int) sgpnt[k].length); |
sgpnt | 137 | drivers/scsi/scsi_debug.c | struct scatterlist * sgpnt = NULL; |
sgpnt | 140 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 142 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
sgpnt | 143 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 159 | drivers/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].alt_address; |
sgpnt | 166 | drivers/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].address; |
sgpnt | 185 | drivers/scsi/scsi_debug.c | struct scatterlist * sgpnt; |
sgpnt | 191 | drivers/scsi/scsi_debug.c | sgpnt = NULL; |
sgpnt | 291 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 292 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 293 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 363 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 364 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 390 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 391 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 226 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 228 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 231 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, |
sgpnt | 232 | drivers/scsi/sd.c | sgpnt[i].length); |
sgpnt | 234 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 236 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, |
sgpnt | 237 | drivers/scsi/sd.c | sgpnt[i].length); |
sgpnt | 238 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 286 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 288 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 294 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 295 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 639 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 673 | drivers/scsi/sd.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 674 | drivers/scsi/sd.c | if (!sgpnt) { |
sgpnt | 680 | drivers/scsi/sd.c | memset(sgpnt, 0, count); /* Zero so it is easy to fill, but only |
sgpnt | 683 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
sgpnt | 691 | drivers/scsi/sd.c | if(!sgpnt[count].address) sgpnt[count].address = bh->b_data; |
sgpnt | 692 | drivers/scsi/sd.c | sgpnt[count].length += bh->b_size; |
sgpnt | 695 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length - 1 > |
sgpnt | 697 | drivers/scsi/sd.c | !sgpnt[count].alt_address) { |
sgpnt | 698 | drivers/scsi/sd.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 703 | drivers/scsi/sd.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 10) { |
sgpnt | 704 | drivers/scsi/sd.c | sgpnt[count].address = NULL; |
sgpnt | 706 | drivers/scsi/sd.c | sgpnt[count].address = |
sgpnt | 707 | drivers/scsi/sd.c | (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 714 | drivers/scsi/sd.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 719 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 720 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, |
sgpnt | 721 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 726 | drivers/scsi/sd.c | scsi_free(sgpnt, SCpnt->sglist_len); |
sgpnt | 743 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length + |
sgpnt | 746 | drivers/scsi/sd.c | !sgpnt[count].alt_address) continue; |
sgpnt | 748 | drivers/scsi/sd.c | if(!sgpnt[count].alt_address) {count--; continue; } |
sgpnt | 750 | drivers/scsi/sd.c | tmp = (char *) scsi_malloc(sgpnt[count].length |
sgpnt | 757 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 758 | drivers/scsi/sd.c | sgpnt[count].address = tmp; |
sgpnt | 788 | drivers/scsi/sd.c | sgpnt[count].address, |
sgpnt | 789 | drivers/scsi/sd.c | sgpnt[count].alt_address, |
sgpnt | 790 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 796 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 797 | drivers/scsi/sd.c | memcpy(sgpnt[count].address, sgpnt[count].alt_address, |
sgpnt | 798 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 189 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 191 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 193 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 194 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
sgpnt | 195 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 197 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 228 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 230 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 232 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 233 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 718 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 751 | drivers/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 752 | drivers/scsi/sr.c | if (!sgpnt) { |
sgpnt | 756 | drivers/scsi/sr.c | buffer = (unsigned char *) sgpnt; |
sgpnt | 760 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sgpnt | 761 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 762 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 763 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
sgpnt | 770 | drivers/scsi/sr.c | sgpnt[count].address = bh->b_data; |
sgpnt | 771 | drivers/scsi/sr.c | sgpnt[count].length = bh->b_size; |
sgpnt | 772 | drivers/scsi/sr.c | sgpnt[count].alt_address = NULL; |
sgpnt | 774 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(end_rec); |
sgpnt | 775 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 776 | drivers/scsi/sr.c | sgpnt[count].length = end_rec; |
sgpnt | 777 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 781 | drivers/scsi/sr.c | if (((long) sgpnt[count].address) + sgpnt[count].length > ISA_DMA_THRESHOLD && |
sgpnt | 783 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 787 | drivers/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
sgpnt | 788 | drivers/scsi/sr.c | sgpnt[count].address = NULL; |
sgpnt | 790 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 796 | drivers/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 800 | drivers/scsi/sr.c | if(sgpnt[count].alt_address) |
sgpnt | 801 | drivers/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 816 | drivers/scsi/sr.c | sgpnt[count].address, |
sgpnt | 817 | drivers/scsi/sr.c | sgpnt[count].alt_address, |
sgpnt | 818 | drivers/scsi/sr.c | sgpnt[count].length); |
sgpnt | 551 | drivers/scsi/u14-34f.c | struct scatterlist * sgpnt; |
sgpnt | 553 | drivers/scsi/u14-34f.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 556 | drivers/scsi/u14-34f.c | cpp->sglist[k].address = (unsigned int) sgpnt[k].address; |
sgpnt | 557 | drivers/scsi/u14-34f.c | cpp->sglist[k].num_bytes = sgpnt[k].length; |
sgpnt | 558 | drivers/scsi/u14-34f.c | data_len += sgpnt[k].length; |