tag | line | file | source code |
scsi_CDs | 55 | drivers/scsi/sr.c | Scsi_CD * scsi_CDs = NULL; |
scsi_CDs | 72 | drivers/scsi/sr.c | if(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count) |
scsi_CDs | 75 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].auto_eject) |
scsi_CDs | 78 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
scsi_CDs | 79 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--; |
scsi_CDs | 130 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 135 | drivers/scsi/sr.c | retval = scsi_CDs[target].device->changed; |
scsi_CDs | 137 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 0; |
scsi_CDs | 140 | drivers/scsi/sr.c | if (retval) scsi_CDs[target].needs_sector_size = 1; |
scsi_CDs | 245 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->changed = 1; |
scsi_CDs | 257 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].ten) { |
scsi_CDs | 258 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].ten = 0; |
scsi_CDs | 281 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no, |
scsi_CDs | 282 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->id, |
scsi_CDs | 283 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->lun, |
scsi_CDs | 328 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].xa_flags & 0x02) { |
scsi_CDs | 342 | drivers/scsi/sr.c | if (1 == scsi_CDs[MINOR(inode->i_rdev)].device->access_count) { |
scsi_CDs | 343 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = 0; |
scsi_CDs | 344 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01; |
scsi_CDs | 354 | drivers/scsi/sr.c | switch(scsi_CDs[MINOR(inode->i_rdev)].device->manufacturer) { |
scsi_CDs | 366 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 402 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 410 | drivers/scsi/sr.c | if (!kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 438 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 463 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 470 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size = 1; |
scsi_CDs | 485 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 513 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector; |
scsi_CDs | 515 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x01; |
scsi_CDs | 517 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01; |
scsi_CDs | 519 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x02; |
scsi_CDs | 526 | drivers/scsi/sr.c | !scsi_CDs[MINOR(inode->i_rdev)].device) return -ENXIO; /* No such device */ |
scsi_CDs | 533 | drivers/scsi/sr.c | if(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++) |
scsi_CDs | 535 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
scsi_CDs | 536 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++; |
scsi_CDs | 546 | drivers/scsi/sr.c | if(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size) |
scsi_CDs | 577 | drivers/scsi/sr.c | SDev = scsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device; |
scsi_CDs | 601 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device, 0); |
scsi_CDs | 620 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(req->rq_dev)].device); |
scsi_CDs | 670 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) { |
scsi_CDs | 677 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) { |
scsi_CDs | 731 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
scsi_CDs | 859 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
scsi_CDs | 866 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
scsi_CDs | 868 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
scsi_CDs | 873 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 890 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 921 | drivers/scsi/sr.c | SCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ? |
scsi_CDs | 922 | drivers/scsi/sr.c | 1024 : scsi_CDs[dev].sector_size; |
scsi_CDs | 926 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
scsi_CDs | 953 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
scsi_CDs | 959 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
scsi_CDs | 986 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
scsi_CDs | 991 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
scsi_CDs | 1019 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 1020 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 1021 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 1023 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 1 + ((buffer[0] << 24) | |
scsi_CDs | 1027 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
scsi_CDs | 1029 | drivers/scsi/sr.c | switch (scsi_CDs[i].sector_size) { |
scsi_CDs | 1037 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; |
scsi_CDs | 1040 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
scsi_CDs | 1046 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
scsi_CDs | 1047 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
scsi_CDs | 1048 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 1050 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
scsi_CDs | 1051 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity >> (BLOCK_SIZE_BITS - 9); |
scsi_CDs | 1073 | drivers/scsi/sr.c | if (scsi_CDs) return 0; |
scsi_CDs | 1075 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
scsi_CDs | 1076 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
scsi_CDs | 1099 | drivers/scsi/sr.c | if (scsi_CDs[i].capacity) continue; |
scsi_CDs | 1100 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 1101 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 1102 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 1106 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size); |
scsi_CDs | 1108 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
scsi_CDs | 1109 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
scsi_CDs | 1110 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
scsi_CDs | 1111 | drivers/scsi/sr.c | scsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */ |
scsi_CDs | 1112 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity >> (BLOCK_SIZE_BITS - 9); |
scsi_CDs | 1119 | drivers/scsi/sr.c | if(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize) |
scsi_CDs | 1132 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
scsi_CDs | 1171 | drivers/scsi/sr.c | if(scsi_CDs != NULL) { |
scsi_CDs | 1172 | drivers/scsi/sr.c | scsi_init_free((char *) scsi_CDs, |
scsi_CDs | 38 | 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, 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 | 141 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 165 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 189 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 210 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5); |
scsi_CDs | 246 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | |
scsi_CDs | 283 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 292 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 301 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5); |
scsi_CDs | 313 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size) |
scsi_CDs | 322 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count > 1) |
scsi_CDs | 327 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
scsi_CDs | 332 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
scsi_CDs | 337 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].auto_eject = !!arg; |
scsi_CDs | 353 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 369 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 397 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
scsi_CDs | 419 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 452 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 494 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5); |
scsi_CDs | 538 | drivers/scsi/sr_ioctl.c | lba = scsi_CDs[target].mpcd_sector+CD_BLOCK_OFFSET; |
scsi_CDs | 544 | drivers/scsi/sr_ioctl.c | ms_info.addr.lba=scsi_CDs[target].mpcd_sector; |
scsi_CDs | 547 | drivers/scsi/sr_ioctl.c | ms_info.xa_flag=scsi_CDs[target].xa_flags & 0x01; |
scsi_CDs | 565 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |