tag | line | file | source code |
CURRENT | 141 | kernel/blk_drv/blk.h | #ifndef CURRENT |
CURRENT | 145 | kernel/blk_drv/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->dev) |
CURRENT | 185 | kernel/blk_drv/blk.h | req = CURRENT; |
CURRENT | 212 | kernel/blk_drv/blk.h | CURRENT = req->next; |
CURRENT | 225 | kernel/blk_drv/blk.h | if (!CURRENT) {\ |
CURRENT | 229 | kernel/blk_drv/blk.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
CURRENT | 231 | kernel/blk_drv/blk.h | if (CURRENT->bh) { \ |
CURRENT | 232 | kernel/blk_drv/blk.h | if (!CURRENT->bh->b_lock) \ |
CURRENT | 216 | kernel/blk_drv/floppy.c | (CURRENT->dev)) |
CURRENT | 220 | kernel/blk_drv/floppy.c | (CURRENT->errors)) |
CURRENT | 352 | kernel/blk_drv/floppy.c | addr = (long) CURRENT->buffer; |
CURRENT | 363 | kernel/blk_drv/floppy.c | copy_buffer(CURRENT->buffer,tmp_floppy_area); |
CURRENT | 558 | kernel/blk_drv/floppy.c | int drive = MINOR(CURRENT->dev); |
CURRENT | 572 | kernel/blk_drv/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
CURRENT | 574 | kernel/blk_drv/floppy.c | (unsigned long)(CURRENT->buffer) >= LAST_DMA_ADDR) |
CURRENT | 575 | kernel/blk_drv/floppy.c | copy_buffer(tmp_floppy_area,CURRENT->buffer); |
CURRENT | 903 | kernel/blk_drv/floppy.c | if (!CURRENT) { |
CURRENT | 911 | kernel/blk_drv/floppy.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
CURRENT | 913 | kernel/blk_drv/floppy.c | if (CURRENT->bh) { |
CURRENT | 914 | kernel/blk_drv/floppy.c | if (!CURRENT->bh->b_lock) |
CURRENT | 939 | kernel/blk_drv/floppy.c | block = CURRENT->sector; |
CURRENT | 949 | kernel/blk_drv/floppy.c | if (CURRENT->cmd == READ) |
CURRENT | 951 | kernel/blk_drv/floppy.c | else if (CURRENT->cmd == WRITE) |
CURRENT | 981 | kernel/blk_drv/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
CURRENT | 985 | kernel/blk_drv/floppy.c | copy_buffer(CURRENT->buffer,buffer_area); |
CURRENT | 224 | kernel/blk_drv/hd.c | if (!CURRENT) |
CURRENT | 226 | kernel/blk_drv/hd.c | if (++CURRENT->errors >= MAX_ERRORS) |
CURRENT | 228 | kernel/blk_drv/hd.c | else if (CURRENT->errors > MAX_ERRORS/2) |
CURRENT | 260 | kernel/blk_drv/hd.c | port_read(HD_DATA,CURRENT->buffer,256); |
CURRENT | 267 | kernel/blk_drv/hd.c | CURRENT->errors = 0; |
CURRENT | 268 | kernel/blk_drv/hd.c | CURRENT->buffer += 512; |
CURRENT | 269 | kernel/blk_drv/hd.c | CURRENT->sector++; |
CURRENT | 270 | kernel/blk_drv/hd.c | i = --CURRENT->nr_sectors; |
CURRENT | 271 | kernel/blk_drv/hd.c | --CURRENT->current_nr_sectors; |
CURRENT | 274 | kernel/blk_drv/hd.c | MINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> |
CURRENT | 277 | kernel/blk_drv/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
CURRENT | 308 | kernel/blk_drv/hd.c | if (CURRENT->nr_sectors > 1 && wait_DRQ()) { |
CURRENT | 312 | kernel/blk_drv/hd.c | CURRENT->sector++; |
CURRENT | 313 | kernel/blk_drv/hd.c | i = --CURRENT->nr_sectors; |
CURRENT | 314 | kernel/blk_drv/hd.c | --CURRENT->current_nr_sectors; |
CURRENT | 315 | kernel/blk_drv/hd.c | CURRENT->buffer += 512; |
CURRENT | 316 | kernel/blk_drv/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
CURRENT | 320 | kernel/blk_drv/hd.c | port_write(HD_DATA,CURRENT->buffer,256); |
CURRENT | 357 | kernel/blk_drv/hd.c | if (!CURRENT) |
CURRENT | 361 | kernel/blk_drv/hd.c | if (++CURRENT->errors >= MAX_ERRORS) { |
CURRENT | 389 | kernel/blk_drv/hd.c | dev = MINOR(CURRENT->dev); |
CURRENT | 390 | kernel/blk_drv/hd.c | block = CURRENT->sector; |
CURRENT | 391 | kernel/blk_drv/hd.c | nsect = CURRENT->nr_sectors; |
CURRENT | 409 | kernel/blk_drv/hd.c | dev, cyl, head, sec, CURRENT->buffer); |
CURRENT | 426 | kernel/blk_drv/hd.c | if (CURRENT->cmd == WRITE) { |
CURRENT | 435 | kernel/blk_drv/hd.c | port_write(HD_DATA,CURRENT->buffer,256); |
CURRENT | 437 | kernel/blk_drv/hd.c | } else if (CURRENT->cmd == READ) { |
CURRENT | 32 | kernel/blk_drv/ramdisk.c | addr = rd_start + (CURRENT->sector << 9); |
CURRENT | 33 | kernel/blk_drv/ramdisk.c | len = CURRENT->nr_sectors << 9; |
CURRENT | 34 | kernel/blk_drv/ramdisk.c | if ((MINOR(CURRENT->dev) != 1) || (addr+len > rd_start+rd_length)) { |
CURRENT | 38 | kernel/blk_drv/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
CURRENT | 40 | kernel/blk_drv/ramdisk.c | CURRENT->buffer, |
CURRENT | 42 | kernel/blk_drv/ramdisk.c | } else if (CURRENT->cmd == READ) { |
CURRENT | 43 | kernel/blk_drv/ramdisk.c | (void) memcpy(CURRENT->buffer, |
CURRENT | 102 | kernel/blk_drv/scsi/sd.c | printk("sd%d : rw_intr(%d, %x)\n", MINOR(CURRENT->dev), host, result); |
CURRENT | 112 | kernel/blk_drv/scsi/sd.c | CURRENT->nr_sectors -= this_count; |
CURRENT | 115 | kernel/blk_drv/scsi/sd.c | printk("sd%d : %d sectors remain.\n", MINOR(CURRENT->dev), CURRENT->nr_sectors); |
CURRENT | 123 | kernel/blk_drv/scsi/sd.c | if (CURRENT->nr_sectors) |
CURRENT | 125 | kernel/blk_drv/scsi/sd.c | CURRENT->sector += this_count; |
CURRENT | 126 | kernel/blk_drv/scsi/sd.c | CURRENT->errors = 0; |
CURRENT | 128 | kernel/blk_drv/scsi/sd.c | if (!CURRENT->bh) |
CURRENT | 132 | kernel/blk_drv/scsi/sd.c | MINOR(CURRENT->dev)); |
CURRENT | 139 | kernel/blk_drv/scsi/sd.c | (char *) CURRENT->buffer += this_count << 9; |
CURRENT | 144 | kernel/blk_drv/scsi/sd.c | printk("sd%d : handling linked buffer request\n", MINOR(CURRENT->dev)); |
CURRENT | 174 | kernel/blk_drv/scsi/sd.c | if rscsi_disks[DEVICE_NR(CURRENT->dev)].remap |
CURRENT | 191 | kernel/blk_drv/scsi/sd.c | if (rscsi_disks[DEVICE_NR(CURRENT->dev)].ten) { |
CURRENT | 192 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].ten = 0; |
CURRENT | 201 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].device->host_no, |
CURRENT | 202 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].device->id, |
CURRENT | 203 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].device->lun); |
CURRENT | 228 | kernel/blk_drv/scsi/sd.c | dev = MINOR(CURRENT->dev); |
CURRENT | 229 | kernel/blk_drv/scsi/sd.c | block = CURRENT->sector; |
CURRENT | 235 | kernel/blk_drv/scsi/sd.c | if (dev >= (NR_SD << 4) || block + CURRENT->nr_sectors > sd[dev].nr_sects) |
CURRENT | 245 | kernel/blk_drv/scsi/sd.c | printk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(CURRENT->dev), dev, block); |
CURRENT | 249 | kernel/blk_drv/scsi/sd.c | if (!CURRENT->bh) |
CURRENT | 250 | kernel/blk_drv/scsi/sd.c | this_count = CURRENT->nr_sectors; |
CURRENT | 255 | kernel/blk_drv/scsi/sd.c | printk("sd%d : %s %d/%d 512 byte blocks.\n", MINOR(CURRENT->dev), |
CURRENT | 256 | kernel/blk_drv/scsi/sd.c | (CURRENT->cmd == WRITE) ? "writing" : "reading", |
CURRENT | 257 | kernel/blk_drv/scsi/sd.c | this_count, CURRENT->nr_sectors); |
CURRENT | 260 | kernel/blk_drv/scsi/sd.c | switch (CURRENT->cmd) |
CURRENT | 274 | kernel/blk_drv/scsi/sd.c | printk ("Unknown sd command %d\r\n", CURRENT->cmd); |
CURRENT | 306 | kernel/blk_drv/scsi/sd.c | scsi_do_cmd (HOST, ID, (void *) cmd, CURRENT->buffer, this_count << 9, |
CURRENT | 47 | kernel/blk_drv/scsi/sd.h | #define HOST (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->host_no) |
CURRENT | 48 | kernel/blk_drv/scsi/sd.h | #define ID (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->id) |
CURRENT | 49 | kernel/blk_drv/scsi/sd.h | #define LUN (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->lun) |