tag | line | file | source code |
sgpnt | 563 | drivers/scsi/aha1542.c | struct scatterlist * sgpnt; |
sgpnt | 571 | drivers/scsi/aha1542.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 575 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
sgpnt | 576 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
sgpnt | 580 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
sgpnt | 581 | drivers/scsi/aha1542.c | sgpnt[i].length); |
sgpnt | 588 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
sgpnt | 589 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
sgpnt | 590 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
sgpnt | 311 | drivers/scsi/aha1740.c | struct scatterlist * sgpnt; |
sgpnt | 319 | drivers/scsi/aha1740.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 324 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
sgpnt | 325 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
sgpnt | 710 | drivers/scsi/buslogic.c | struct scatterlist *sgpnt; |
sgpnt | 720 | drivers/scsi/buslogic.c | sgpnt = (struct scatterlist *)scpnt->request_buffer; |
sgpnt | 729 | drivers/scsi/buslogic.c | cptr[i].dataptr = sgpnt[i].address; |
sgpnt | 730 | drivers/scsi/buslogic.c | cptr[i].datalen = sgpnt[i].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 | 169 | drivers/scsi/scsi_debug.c | sgpnt = NULL; |
sgpnt | 259 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 260 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 261 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 329 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 330 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 356 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 357 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 180 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 182 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 185 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 187 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 189 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 190 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 236 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 238 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 244 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 245 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 524 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 557 | drivers/scsi/sd.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 558 | drivers/scsi/sd.c | memset(sgpnt, 0, count); /* Zero so it is easy to fill */ |
sgpnt | 559 | drivers/scsi/sd.c | if (!sgpnt) { |
sgpnt | 565 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
sgpnt | 573 | drivers/scsi/sd.c | if(!sgpnt[count].address) sgpnt[count].address = bh->b_data; |
sgpnt | 574 | drivers/scsi/sd.c | sgpnt[count].length += bh->b_size; |
sgpnt | 577 | drivers/scsi/sd.c | if (((int) sgpnt[count].address) + sgpnt[count].length - 1 > |
sgpnt | 579 | drivers/scsi/sd.c | !sgpnt[count].alt_address) { |
sgpnt | 580 | drivers/scsi/sd.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 584 | drivers/scsi/sd.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 10) { |
sgpnt | 585 | drivers/scsi/sd.c | sgpnt[count].address = NULL; |
sgpnt | 587 | drivers/scsi/sd.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 593 | drivers/scsi/sd.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 598 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 599 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 604 | drivers/scsi/sd.c | scsi_free(sgpnt, SCpnt->sglist_len); |
sgpnt | 620 | drivers/scsi/sd.c | if (((int) sgpnt[count].address) + sgpnt[count].length + |
sgpnt | 623 | drivers/scsi/sd.c | !sgpnt[count].alt_address) continue; |
sgpnt | 625 | drivers/scsi/sd.c | if(!sgpnt[count].alt_address) {count--; continue; } |
sgpnt | 627 | drivers/scsi/sd.c | tmp = (char *) scsi_malloc(sgpnt[count].length + bhp->b_size); |
sgpnt | 633 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 634 | drivers/scsi/sd.c | sgpnt[count].address = tmp; |
sgpnt | 659 | drivers/scsi/sd.c | sgpnt[count].address, |
sgpnt | 660 | drivers/scsi/sd.c | sgpnt[count].alt_address, |
sgpnt | 661 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 667 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 668 | drivers/scsi/sd.c | memcpy(sgpnt[count].address, sgpnt[count].alt_address, |
sgpnt | 669 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 168 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 170 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 172 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 173 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
sgpnt | 174 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 176 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 207 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 209 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 211 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 212 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 446 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 479 | drivers/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 480 | drivers/scsi/sr.c | if (!sgpnt) { |
sgpnt | 484 | drivers/scsi/sr.c | buffer = (unsigned char *) sgpnt; |
sgpnt | 488 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sgpnt | 489 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 490 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 491 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
sgpnt | 498 | drivers/scsi/sr.c | sgpnt[count].address = bh->b_data; |
sgpnt | 499 | drivers/scsi/sr.c | sgpnt[count].length = bh->b_size; |
sgpnt | 500 | drivers/scsi/sr.c | sgpnt[count].alt_address = NULL; |
sgpnt | 502 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(end_rec); |
sgpnt | 503 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 504 | drivers/scsi/sr.c | sgpnt[count].length = end_rec; |
sgpnt | 505 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 509 | drivers/scsi/sr.c | if (((int) sgpnt[count].address) + sgpnt[count].length > |
sgpnt | 511 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 515 | drivers/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
sgpnt | 516 | drivers/scsi/sr.c | sgpnt[count].address = NULL; |
sgpnt | 518 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 524 | drivers/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 528 | drivers/scsi/sr.c | if(sgpnt[count].alt_address) |
sgpnt | 529 | drivers/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 544 | drivers/scsi/sr.c | sgpnt[count].address, |
sgpnt | 545 | drivers/scsi/sr.c | sgpnt[count].alt_address, |
sgpnt | 546 | drivers/scsi/sr.c | sgpnt[count].length); |