tag | line | file | source code |
sgpnt | 480 | drivers/scsi/aha1542.c | struct scatterlist * sgpnt; |
sgpnt | 488 | drivers/scsi/aha1542.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 492 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
sgpnt | 493 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
sgpnt | 497 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
sgpnt | 498 | drivers/scsi/aha1542.c | sgpnt[i].length); |
sgpnt | 505 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
sgpnt | 506 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
sgpnt | 507 | 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 | 98 | drivers/scsi/scsi_debug.c | struct scatterlist * sgpnt = NULL; |
sgpnt | 101 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 103 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
sgpnt | 104 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 120 | drivers/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].alt_address; |
sgpnt | 127 | drivers/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].address; |
sgpnt | 146 | drivers/scsi/scsi_debug.c | struct scatterlist * sgpnt; |
sgpnt | 151 | drivers/scsi/scsi_debug.c | sgpnt = NULL; |
sgpnt | 226 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 227 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 228 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 286 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 287 | drivers/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 308 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 309 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 160 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 162 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 165 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 167 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 169 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 170 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 216 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 218 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 224 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 225 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 475 | drivers/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 492 | drivers/scsi/sd.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 493 | drivers/scsi/sd.c | if (!sgpnt) { |
sgpnt | 499 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
sgpnt | 504 | drivers/scsi/sd.c | sgpnt[count].address = bh->b_data; |
sgpnt | 505 | drivers/scsi/sd.c | sgpnt[count].alt_address = NULL; |
sgpnt | 506 | drivers/scsi/sd.c | sgpnt[count].length = bh->b_size; |
sgpnt | 507 | drivers/scsi/sd.c | if (((int) sgpnt[count].address) + sgpnt[count].length > |
sgpnt | 509 | drivers/scsi/sd.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 514 | drivers/scsi/sd.c | sgpnt[count].address = NULL; |
sgpnt | 516 | drivers/scsi/sd.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 522 | drivers/scsi/sd.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 526 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 527 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 537 | drivers/scsi/sd.c | memcpy(sgpnt[count].address, sgpnt[count].alt_address, |
sgpnt | 538 | drivers/scsi/sd.c | sgpnt[count].length); |
sgpnt | 149 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 151 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 153 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 154 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
sgpnt | 155 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 157 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 188 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 190 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 192 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 193 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 424 | drivers/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 457 | drivers/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 458 | drivers/scsi/sr.c | if (!sgpnt) { |
sgpnt | 462 | drivers/scsi/sr.c | buffer = (unsigned char *) sgpnt; |
sgpnt | 466 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sgpnt | 467 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 468 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 469 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
sgpnt | 476 | drivers/scsi/sr.c | sgpnt[count].address = bh->b_data; |
sgpnt | 477 | drivers/scsi/sr.c | sgpnt[count].length = bh->b_size; |
sgpnt | 478 | drivers/scsi/sr.c | sgpnt[count].alt_address = NULL; |
sgpnt | 480 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(end_rec); |
sgpnt | 481 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 482 | drivers/scsi/sr.c | sgpnt[count].length = end_rec; |
sgpnt | 483 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 487 | drivers/scsi/sr.c | if (((int) sgpnt[count].address) + sgpnt[count].length > |
sgpnt | 489 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 493 | drivers/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
sgpnt | 494 | drivers/scsi/sr.c | sgpnt[count].address = NULL; |
sgpnt | 496 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
sgpnt | 502 | drivers/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 506 | drivers/scsi/sr.c | if(sgpnt[count].alt_address) |
sgpnt | 507 | drivers/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 522 | drivers/scsi/sr.c | sgpnt[count].address, |
sgpnt | 523 | drivers/scsi/sr.c | sgpnt[count].alt_address, |
sgpnt | 524 | drivers/scsi/sr.c | sgpnt[count].length); |