tag | line | file | source code |
sgpnt | 445 | kernel/blk_drv/scsi/aha1542.c | struct scatterlist * sgpnt; |
sgpnt | 453 | kernel/blk_drv/scsi/aha1542.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 457 | kernel/blk_drv/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
sgpnt | 458 | kernel/blk_drv/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
sgpnt | 462 | kernel/blk_drv/scsi/aha1542.c | printk("%d: %x %x %d\n",i,sgpnt[i].address, sgpnt[i].alt_address, |
sgpnt | 463 | kernel/blk_drv/scsi/aha1542.c | sgpnt[i].length); |
sgpnt | 470 | kernel/blk_drv/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
sgpnt | 471 | kernel/blk_drv/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
sgpnt | 310 | kernel/blk_drv/scsi/aha1740.c | struct scatterlist * sgpnt; |
sgpnt | 318 | kernel/blk_drv/scsi/aha1740.c | sgpnt = (struct scatterlist *) SCpnt->request_buffer; |
sgpnt | 323 | kernel/blk_drv/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
sgpnt | 324 | kernel/blk_drv/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
sgpnt | 98 | kernel/blk_drv/scsi/scsi_debug.c | struct scatterlist * sgpnt = NULL; |
sgpnt | 101 | kernel/blk_drv/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 103 | kernel/blk_drv/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
sgpnt | 104 | kernel/blk_drv/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 120 | kernel/blk_drv/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].alt_address; |
sgpnt | 127 | kernel/blk_drv/scsi/scsi_debug.c | lpnt = (unsigned int *) sgpnt[0].address; |
sgpnt | 146 | kernel/blk_drv/scsi/scsi_debug.c | struct scatterlist * sgpnt; |
sgpnt | 151 | kernel/blk_drv/scsi/scsi_debug.c | sgpnt = NULL; |
sgpnt | 226 | kernel/blk_drv/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 227 | kernel/blk_drv/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 228 | kernel/blk_drv/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 286 | kernel/blk_drv/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 287 | kernel/blk_drv/scsi/scsi_debug.c | bufflen = sgpnt[sgcount].length; |
sgpnt | 308 | kernel/blk_drv/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
sgpnt | 309 | kernel/blk_drv/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
sgpnt | 160 | kernel/blk_drv/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 162 | kernel/blk_drv/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 165 | kernel/blk_drv/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 167 | kernel/blk_drv/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 169 | kernel/blk_drv/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 170 | kernel/blk_drv/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 217 | kernel/blk_drv/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 219 | kernel/blk_drv/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 225 | kernel/blk_drv/scsi/sd.c | if (sgpnt[i].alt_address) { |
sgpnt | 226 | kernel/blk_drv/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 481 | kernel/blk_drv/scsi/sd.c | struct scatterlist * sgpnt; |
sgpnt | 498 | kernel/blk_drv/scsi/sd.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 499 | kernel/blk_drv/scsi/sd.c | if (!sgpnt) { |
sgpnt | 505 | kernel/blk_drv/scsi/sd.c | buff = (char *) sgpnt; |
sgpnt | 510 | kernel/blk_drv/scsi/sd.c | sgpnt[count].address = bh->b_data; |
sgpnt | 511 | kernel/blk_drv/scsi/sd.c | sgpnt[count].alt_address = NULL; |
sgpnt | 512 | kernel/blk_drv/scsi/sd.c | sgpnt[count].length = bh->b_size; |
sgpnt | 513 | kernel/blk_drv/scsi/sd.c | if (((int) sgpnt[count].address) + sgpnt[count].length > |
sgpnt | 515 | kernel/blk_drv/scsi/sd.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 520 | kernel/blk_drv/scsi/sd.c | sgpnt[count].address = NULL; |
sgpnt | 522 | kernel/blk_drv/scsi/sd.c | sgpnt[count].address = scsi_malloc(sgpnt[count].length); |
sgpnt | 528 | kernel/blk_drv/scsi/sd.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 532 | kernel/blk_drv/scsi/sd.c | if(sgpnt[count].alt_address) |
sgpnt | 533 | kernel/blk_drv/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 543 | kernel/blk_drv/scsi/sd.c | memcpy(sgpnt[count].address, sgpnt[count].alt_address, |
sgpnt | 544 | kernel/blk_drv/scsi/sd.c | sgpnt[count].length); |
sgpnt | 145 | kernel/blk_drv/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 147 | kernel/blk_drv/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 149 | kernel/blk_drv/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 150 | kernel/blk_drv/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
sgpnt | 151 | kernel/blk_drv/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
sgpnt | 153 | kernel/blk_drv/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 187 | kernel/blk_drv/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 189 | kernel/blk_drv/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
sgpnt | 191 | kernel/blk_drv/scsi/sr.c | if (sgpnt[i].alt_address) { |
sgpnt | 192 | kernel/blk_drv/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
sgpnt | 417 | kernel/blk_drv/scsi/sr.c | struct scatterlist * sgpnt; |
sgpnt | 450 | kernel/blk_drv/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
sgpnt | 451 | kernel/blk_drv/scsi/sr.c | if (!sgpnt) { |
sgpnt | 455 | kernel/blk_drv/scsi/sr.c | buffer = (char *) sgpnt; |
sgpnt | 459 | kernel/blk_drv/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sgpnt | 460 | kernel/blk_drv/scsi/sr.c | sgpnt[count].address = scsi_malloc(sgpnt[count].length); |
sgpnt | 461 | kernel/blk_drv/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 462 | kernel/blk_drv/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
sgpnt | 469 | kernel/blk_drv/scsi/sr.c | sgpnt[count].address = bh->b_data; |
sgpnt | 470 | kernel/blk_drv/scsi/sr.c | sgpnt[count].length = bh->b_size; |
sgpnt | 471 | kernel/blk_drv/scsi/sr.c | sgpnt[count].alt_address = NULL; |
sgpnt | 473 | kernel/blk_drv/scsi/sr.c | sgpnt[count].address = scsi_malloc(end_rec); |
sgpnt | 474 | kernel/blk_drv/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
sgpnt | 475 | kernel/blk_drv/scsi/sr.c | sgpnt[count].length = end_rec; |
sgpnt | 476 | kernel/blk_drv/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 480 | kernel/blk_drv/scsi/sr.c | if (((int) sgpnt[count].address) + sgpnt[count].length > |
sgpnt | 482 | kernel/blk_drv/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
sgpnt | 486 | kernel/blk_drv/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
sgpnt | 487 | kernel/blk_drv/scsi/sr.c | sgpnt[count].address = NULL; |
sgpnt | 489 | kernel/blk_drv/scsi/sr.c | sgpnt[count].address = scsi_malloc(sgpnt[count].length); |
sgpnt | 495 | kernel/blk_drv/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
sgpnt | 499 | kernel/blk_drv/scsi/sr.c | if(sgpnt[count].alt_address) |
sgpnt | 500 | kernel/blk_drv/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
sgpnt | 515 | kernel/blk_drv/scsi/sr.c | sgpnt[count].address, |
sgpnt | 516 | kernel/blk_drv/scsi/sr.c | sgpnt[count].alt_address, |
sgpnt | 517 | kernel/blk_drv/scsi/sr.c | sgpnt[count].length); |