tag | line | file | source code |
sgpnt | 601 | drivers/scsi/aha1542.c | struct scatterlist * sgpnt; |
sgpnt | 609 | drivers/scsi/aha1542.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 613 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
sgpnt | 614 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
sgpnt | 618 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
sgpnt | 619 | drivers/scsi/aha1542.c | sgpnt[i].length); |
sgpnt | 626 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
sgpnt | 627 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
sgpnt | 628 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
sgpnt | 319 | drivers/scsi/aha1740.c | struct scatterlist * sgpnt; |
sgpnt | 327 | drivers/scsi/aha1740.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 332 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
sgpnt | 333 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
sgpnt | 684 | drivers/scsi/buslogic.c | struct scatterlist *sgpnt; |
sgpnt | 696 | drivers/scsi/buslogic.c | sgpnt = (struct scatterlist *)scpnt->request_buffer; |
sgpnt | 704 | drivers/scsi/buslogic.c | CHECK_DMA_ADDR(shpnt->unchecked_isa_dma, sgpnt[i].address, |
sgpnt | 706 | drivers/scsi/buslogic.c | cptr[i].dataptr = sgpnt[i].address; |
sgpnt | 707 | drivers/scsi/buslogic.c | cptr[i].datalen = sgpnt[i].length; |
sgpnt | 580 | drivers/scsi/eata.c | struct scatterlist * sgpnt; |
sgpnt | 582 | drivers/scsi/eata.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 585 | drivers/scsi/eata.c | cpp->sglist[k].address = htonl((unsigned int) sgpnt[k].address); |
sgpnt | 586 | drivers/scsi/eata.c | cpp->sglist[k].num_bytes = htonl((unsigned int) sgpnt[k].length); |
sgpnt | 116 | drivers/scsi/scsi_debug.c | struct scatterlist * sgpnt = NULL; |
sgpnt | 119 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 121 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
sgpnt | 122 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 138 | drivers/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].alt_address; |
sgpnt | 145 | drivers/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].address; |
sgpnt | 164 | drivers/scsi/scsi_debug.c | struct scatterlist * sgpnt; |
sgpnt | 170 | drivers/scsi/scsi_debug.c | sgpnt = NULL; |
sgpnt | 260 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 261 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 262 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 330 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 331 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 357 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 358 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 203 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 205 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 208 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 210 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 212 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 213 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 259 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 261 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 267 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 268 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 574 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 607 | drivers/scsi/sd.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 608 | drivers/scsi/sd.c | memset(sgpnt, 0, count); /* Zero so it is easy to fill */ |
sgpnt | 609 | drivers/scsi/sd.c | if (!sgpnt) { |
sgpnt | 615 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
sgpnt | 623 | drivers/scsi/sd.c | if(!sgpnt[count].address) sgpnt[count].address = bh->b_data; |
sgpnt | 624 | drivers/scsi/sd.c | sgpnt[count].length += bh->b_size; |
sgpnt | 627 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length - 1 > |
sgpnt | 629 | drivers/scsi/sd.c | !sgpnt[count].alt_address) { |
sgpnt | 630 | drivers/scsi/sd.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 634 | drivers/scsi/sd.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 10) { |
sgpnt | 635 | drivers/scsi/sd.c | sgpnt[count].address = NULL; |
sgpnt | 637 | drivers/scsi/sd.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 643 | drivers/scsi/sd.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 648 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 649 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 654 | drivers/scsi/sd.c | scsi_free(sgpnt, SCpnt->sglist_len); |
sgpnt | 670 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length + |
sgpnt | 673 | drivers/scsi/sd.c | !sgpnt[count].alt_address) continue; |
sgpnt | 675 | drivers/scsi/sd.c | if(!sgpnt[count].alt_address) {count--; continue; } |
sgpnt | 677 | drivers/scsi/sd.c | tmp = (char *) scsi_malloc(sgpnt[count].length + bhp->b_size); |
sgpnt | 683 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 684 | drivers/scsi/sd.c | sgpnt[count].address = tmp; |
sgpnt | 709 | drivers/scsi/sd.c | sgpnt[count].address, |
sgpnt | 710 | drivers/scsi/sd.c | sgpnt[count].alt_address, |
sgpnt | 711 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 717 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 718 | drivers/scsi/sd.c | memcpy(sgpnt[count].address, sgpnt[count].alt_address, |
sgpnt | 719 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 176 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 178 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 180 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 181 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
sgpnt | 182 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 184 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 215 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 217 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 219 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 220 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 651 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 684 | drivers/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 685 | drivers/scsi/sr.c | if (!sgpnt) { |
sgpnt | 689 | drivers/scsi/sr.c | buffer = (unsigned char *) sgpnt; |
sgpnt | 693 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sgpnt | 694 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 695 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 696 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
sgpnt | 703 | drivers/scsi/sr.c | sgpnt[count].address = bh->b_data; |
sgpnt | 704 | drivers/scsi/sr.c | sgpnt[count].length = bh->b_size; |
sgpnt | 705 | drivers/scsi/sr.c | sgpnt[count].alt_address = NULL; |
sgpnt | 707 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(end_rec); |
sgpnt | 708 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 709 | drivers/scsi/sr.c | sgpnt[count].length = end_rec; |
sgpnt | 710 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 714 | drivers/scsi/sr.c | if (((int) sgpnt[count].address) + sgpnt[count].length > |
sgpnt | 716 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 720 | drivers/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
sgpnt | 721 | drivers/scsi/sr.c | sgpnt[count].address = NULL; |
sgpnt | 723 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 729 | drivers/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 733 | drivers/scsi/sr.c | if(sgpnt[count].alt_address) |
sgpnt | 734 | drivers/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 749 | drivers/scsi/sr.c | sgpnt[count].address, |
sgpnt | 750 | drivers/scsi/sr.c | sgpnt[count].alt_address, |
sgpnt | 751 | drivers/scsi/sr.c | sgpnt[count].length); |
sgpnt | 529 | drivers/scsi/u14-34f.c | struct scatterlist * sgpnt; |
sgpnt | 531 | drivers/scsi/u14-34f.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 534 | drivers/scsi/u14-34f.c | cpp->sglist[k].address = (unsigned int) sgpnt[k].address; |
sgpnt | 535 | drivers/scsi/u14-34f.c | cpp->sglist[k].num_bytes = sgpnt[k].length; |
sgpnt | 536 | drivers/scsi/u14-34f.c | data_len += sgpnt[k].length; |