tag | line | file | source code |
scsi_CDs | 59 | drivers/scsi/sr.c | Scsi_CD * scsi_CDs = NULL; |
scsi_CDs | 75 | drivers/scsi/sr.c | if(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count) |
scsi_CDs | 78 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].auto_eject) |
scsi_CDs | 81 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
scsi_CDs | 82 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--; |
scsi_CDs | 133 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 138 | drivers/scsi/sr.c | retval = scsi_CDs[target].device->changed; |
scsi_CDs | 140 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 0; |
scsi_CDs | 143 | drivers/scsi/sr.c | if (retval) scsi_CDs[target].needs_sector_size = 1; |
scsi_CDs | 248 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
scsi_CDs | 260 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) { |
scsi_CDs | 261 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
scsi_CDs | 284 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
scsi_CDs | 285 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id, |
scsi_CDs | 286 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.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 | 401 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 408 | 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 | 469 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size = 1; |
scsi_CDs | 483 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 505 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector; |
scsi_CDs | 507 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x01; |
scsi_CDs | 509 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01; |
scsi_CDs | 511 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x02; |
scsi_CDs | 518 | drivers/scsi/sr.c | !scsi_CDs[MINOR(inode->i_rdev)].device) return -ENXIO; /* No such device */ |
scsi_CDs | 525 | drivers/scsi/sr.c | if(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++) |
scsi_CDs | 527 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
scsi_CDs | 528 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++; |
scsi_CDs | 538 | drivers/scsi/sr.c | if(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size) |
scsi_CDs | 569 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
scsi_CDs | 588 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
scsi_CDs | 639 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) |
scsi_CDs | 647 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) |
scsi_CDs | 701 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
scsi_CDs | 829 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
scsi_CDs | 836 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
scsi_CDs | 838 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
scsi_CDs | 843 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 860 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 891 | drivers/scsi/sr.c | SCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ? |
scsi_CDs | 892 | drivers/scsi/sr.c | 1024 : scsi_CDs[dev].sector_size; |
scsi_CDs | 896 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
scsi_CDs | 923 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
scsi_CDs | 929 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
scsi_CDs | 956 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
scsi_CDs | 961 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
scsi_CDs | 995 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 996 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 997 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 999 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
scsi_CDs | 1001 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
scsi_CDs | 1003 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
scsi_CDs | 1004 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
scsi_CDs | 1005 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
scsi_CDs | 1007 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
scsi_CDs | 1008 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
scsi_CDs | 1009 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 1011 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
scsi_CDs | 1012 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
scsi_CDs | 1013 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
scsi_CDs | 1014 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
scsi_CDs | 1035 | drivers/scsi/sr.c | if (scsi_CDs) return; |
scsi_CDs | 1037 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
scsi_CDs | 1038 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
scsi_CDs | 1061 | drivers/scsi/sr.c | if (scsi_CDs[i].capacity) continue; |
scsi_CDs | 1062 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 1063 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 1064 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 1068 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size); |
scsi_CDs | 1070 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
scsi_CDs | 1071 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
scsi_CDs | 1072 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
scsi_CDs | 1073 | drivers/scsi/sr.c | scsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */ |
scsi_CDs | 1074 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
scsi_CDs | 1081 | drivers/scsi/sr.c | if(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize) |
scsi_CDs | 1096 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
scsi_CDs | 1140 | drivers/scsi/sr.c | if(scsi_CDs != NULL) { |
scsi_CDs | 1141 | drivers/scsi/sr.c | scsi_init_free((char *) scsi_CDs, |
scsi_CDs | 38 | drivers/scsi/sr.h | extern Scsi_CD * scsi_CDs; |
scsi_CDs | 48 | drivers/scsi/sr_ioctl.c | SCpnt = allocate_device(NULL, scsi_CDs[target].device, 1); |
scsi_CDs | 68 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 79 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->host->host_no, |
scsi_CDs | 80 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->id, |
scsi_CDs | 81 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->lun, |
scsi_CDs | 107 | drivers/scsi/sr_ioctl.c | !scsi_CDs[target].device) return -ENXIO; |
scsi_CDs | 115 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 127 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 147 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 171 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 192 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 228 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 261 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 270 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 281 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count > 1) |
scsi_CDs | 286 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
scsi_CDs | 291 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
scsi_CDs | 296 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].auto_eject = !!arg; |
scsi_CDs | 312 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 328 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 356 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
scsi_CDs | 373 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 427 | drivers/scsi/sr_ioctl.c | lba = scsi_CDs[target].mpcd_sector+CD_BLOCK_OFFSET; |
scsi_CDs | 433 | drivers/scsi/sr_ioctl.c | ms_info.addr.lba=scsi_CDs[target].mpcd_sector; |
scsi_CDs | 436 | drivers/scsi/sr_ioctl.c | ms_info.xa_flag=scsi_CDs[target].xa_flags & 0x01; |
scsi_CDs | 454 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |