tag | line | file | source code |
scsi_CDs | 45 | drivers/scsi/sr.c | Scsi_CD * scsi_CDs; |
scsi_CDs | 61 | drivers/scsi/sr.c | if(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count) |
scsi_CDs | 112 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 117 | drivers/scsi/sr.c | retval = scsi_CDs[target].device->changed; |
scsi_CDs | 119 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 0; |
scsi_CDs | 122 | drivers/scsi/sr.c | if (retval) scsi_CDs[target].needs_sector_size = 1; |
scsi_CDs | 227 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
scsi_CDs | 236 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) { |
scsi_CDs | 237 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
scsi_CDs | 261 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
scsi_CDs | 262 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id, |
scsi_CDs | 263 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun, |
scsi_CDs | 277 | drivers/scsi/sr.c | !scsi_CDs[MINOR(inode->i_rdev)].device) return -ENXIO; /* No such device */ |
scsi_CDs | 284 | drivers/scsi/sr.c | if(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++) |
scsi_CDs | 292 | drivers/scsi/sr.c | if(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size) |
scsi_CDs | 321 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
scsi_CDs | 339 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
scsi_CDs | 390 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) |
scsi_CDs | 398 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) |
scsi_CDs | 451 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
scsi_CDs | 579 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
scsi_CDs | 586 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
scsi_CDs | 588 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
scsi_CDs | 593 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 610 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 641 | drivers/scsi/sr.c | SCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ? |
scsi_CDs | 642 | drivers/scsi/sr.c | 1024 : scsi_CDs[dev].sector_size; |
scsi_CDs | 646 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
scsi_CDs | 675 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
scsi_CDs | 681 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
scsi_CDs | 706 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
scsi_CDs | 711 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
scsi_CDs | 743 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 744 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 745 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 747 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
scsi_CDs | 749 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
scsi_CDs | 751 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
scsi_CDs | 752 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
scsi_CDs | 753 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
scsi_CDs | 755 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
scsi_CDs | 756 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
scsi_CDs | 757 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 759 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
scsi_CDs | 760 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
scsi_CDs | 761 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
scsi_CDs | 783 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD)); |
scsi_CDs | 784 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
scsi_CDs | 803 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes\n", scsi_CDs[i].sector_size); |
scsi_CDs | 804 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
scsi_CDs | 805 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
scsi_CDs | 806 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
scsi_CDs | 807 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
scsi_CDs | 816 | 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 | 42 | drivers/scsi/sr_ioctl.c | SCpnt = allocate_device(NULL, scsi_CDs[target].device, 1); |
scsi_CDs | 62 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 73 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->host->host_no, |
scsi_CDs | 74 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->id, |
scsi_CDs | 75 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->lun, |
scsi_CDs | 101 | drivers/scsi/sr_ioctl.c | !scsi_CDs[target].device) return -ENXIO; |
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 | 212 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 245 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 254 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 262 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count == 1) |
scsi_CDs | 266 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
scsi_CDs | 271 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
scsi_CDs | 286 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 302 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 330 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
scsi_CDs | 347 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 396 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |