tag | line | file | source code |
scsi_CDs | 36 | drivers/scsi/sr.c | Scsi_CD * scsi_CDs; |
scsi_CDs | 51 | drivers/scsi/sr.c | if(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count) |
scsi_CDs | 98 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 103 | drivers/scsi/sr.c | retval = scsi_CDs[target].device->changed; |
scsi_CDs | 104 | drivers/scsi/sr.c | if(!flag) scsi_CDs[target].device->changed = 0; |
scsi_CDs | 208 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
scsi_CDs | 217 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) { |
scsi_CDs | 218 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
scsi_CDs | 242 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
scsi_CDs | 243 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id, |
scsi_CDs | 244 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun, |
scsi_CDs | 258 | drivers/scsi/sr.c | !scsi_CDs[MINOR(inode->i_rdev)].device) return -ENODEV; /* No such device */ |
scsi_CDs | 262 | drivers/scsi/sr.c | if(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++) |
scsi_CDs | 270 | drivers/scsi/sr.c | if(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size) |
scsi_CDs | 299 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); |
scsi_CDs | 317 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device->index); |
scsi_CDs | 368 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) |
scsi_CDs | 376 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) |
scsi_CDs | 429 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
scsi_CDs | 557 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
scsi_CDs | 564 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
scsi_CDs | 566 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
scsi_CDs | 571 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 588 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 611 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
scsi_CDs | 616 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) mem_start; |
scsi_CDs | 622 | drivers/scsi/sr.c | scsi_CDs[NR_SR++].device = SDp; |
scsi_CDs | 648 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device->index, 1); |
scsi_CDs | 653 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
scsi_CDs | 681 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 682 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 683 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 685 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
scsi_CDs | 687 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
scsi_CDs | 689 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
scsi_CDs | 690 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
scsi_CDs | 691 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
scsi_CDs | 693 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
scsi_CDs | 694 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
scsi_CDs | 696 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
scsi_CDs | 697 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
scsi_CDs | 698 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
scsi_CDs | 724 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes\n", scsi_CDs[i].sector_size); |
scsi_CDs | 725 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
scsi_CDs | 726 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
scsi_CDs | 727 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
scsi_CDs | 728 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
scsi_CDs | 737 | drivers/scsi/sr.c | if(scsi_CDs[0].device->host->sg_tablesize) |
scsi_CDs | 35 | drivers/scsi/sr.h | extern Scsi_CD * scsi_CDs; |
scsi_CDs | 46 | drivers/scsi/sr_ioctl.c | SCpnt = allocate_device(NULL, scsi_CDs[target].device->index, 1); |
scsi_CDs | 64 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 75 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->host->host_no, |
scsi_CDs | 76 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->id, |
scsi_CDs | 77 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->lun, |
scsi_CDs | 109 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 121 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 137 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 157 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 178 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 210 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 241 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 250 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 258 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count == 1) |
scsi_CDs | 262 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
scsi_CDs | 267 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
scsi_CDs | 282 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 298 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 325 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
scsi_CDs | 342 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 383 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |