tag | line | file | source code |
scsi_CDs | 51 | drivers/scsi/sr.c | Scsi_CD * scsi_CDs; |
scsi_CDs | 67 | drivers/scsi/sr.c | if(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count) |
scsi_CDs | 69 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
scsi_CDs | 70 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--; |
scsi_CDs | 120 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 1; |
scsi_CDs | 125 | drivers/scsi/sr.c | retval = scsi_CDs[target].device->changed; |
scsi_CDs | 127 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 0; |
scsi_CDs | 130 | drivers/scsi/sr.c | if (retval) scsi_CDs[target].needs_sector_size = 1; |
scsi_CDs | 235 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
scsi_CDs | 247 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) { |
scsi_CDs | 248 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
scsi_CDs | 271 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
scsi_CDs | 272 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id, |
scsi_CDs | 273 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun, |
scsi_CDs | 310 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].xa_flags & 0x02) { |
scsi_CDs | 324 | drivers/scsi/sr.c | if (1 == scsi_CDs[MINOR(inode->i_rdev)].device->access_count) { |
scsi_CDs | 325 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = 0; |
scsi_CDs | 326 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01; |
scsi_CDs | 336 | drivers/scsi/sr.c | switch(scsi_CDs[MINOR(inode->i_rdev)].device->manufacturer) { |
scsi_CDs | 348 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 383 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 390 | drivers/scsi/sr.c | if (kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 420 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 445 | drivers/scsi/sr.c | rc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device, |
scsi_CDs | 451 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size = 1; |
scsi_CDs | 462 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector; |
scsi_CDs | 464 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x01; |
scsi_CDs | 466 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01; |
scsi_CDs | 468 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x02; |
scsi_CDs | 475 | drivers/scsi/sr.c | !scsi_CDs[MINOR(inode->i_rdev)].device) return -ENXIO; /* No such device */ |
scsi_CDs | 482 | drivers/scsi/sr.c | if(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++) |
scsi_CDs | 484 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
scsi_CDs | 485 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++; |
scsi_CDs | 494 | drivers/scsi/sr.c | if(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size) |
scsi_CDs | 525 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
scsi_CDs | 544 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
scsi_CDs | 595 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) |
scsi_CDs | 603 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) |
scsi_CDs | 656 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
scsi_CDs | 784 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
scsi_CDs | 791 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
scsi_CDs | 793 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
scsi_CDs | 798 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 815 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
scsi_CDs | 846 | drivers/scsi/sr.c | SCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ? |
scsi_CDs | 847 | drivers/scsi/sr.c | 1024 : scsi_CDs[dev].sector_size; |
scsi_CDs | 851 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
scsi_CDs | 878 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
scsi_CDs | 884 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
scsi_CDs | 911 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
scsi_CDs | 916 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
scsi_CDs | 949 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 950 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 951 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 953 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
scsi_CDs | 955 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
scsi_CDs | 957 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
scsi_CDs | 958 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
scsi_CDs | 959 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
scsi_CDs | 961 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
scsi_CDs | 962 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
scsi_CDs | 963 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 965 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
scsi_CDs | 966 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
scsi_CDs | 967 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
scsi_CDs | 968 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
scsi_CDs | 989 | drivers/scsi/sr.c | if (scsi_CDs) return; |
scsi_CDs | 991 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
scsi_CDs | 992 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
scsi_CDs | 1015 | drivers/scsi/sr.c | if (scsi_CDs[i].capacity) continue; |
scsi_CDs | 1016 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
scsi_CDs | 1017 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
scsi_CDs | 1018 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
scsi_CDs | 1022 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size); |
scsi_CDs | 1024 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
scsi_CDs | 1025 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
scsi_CDs | 1026 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
scsi_CDs | 1027 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
scsi_CDs | 1034 | drivers/scsi/sr.c | if(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize) |
scsi_CDs | 1049 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
scsi_CDs | 37 | drivers/scsi/sr.h | extern Scsi_CD * scsi_CDs; |
scsi_CDs | 44 | drivers/scsi/sr_ioctl.c | SCpnt = allocate_device(NULL, scsi_CDs[target].device, 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 | 103 | drivers/scsi/sr_ioctl.c | !scsi_CDs[target].device) return -ENXIO; |
scsi_CDs | 111 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 123 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 139 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 159 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
scsi_CDs | 180 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 214 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 247 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 256 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
scsi_CDs | 264 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count == 1) |
scsi_CDs | 268 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
scsi_CDs | 273 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
scsi_CDs | 288 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 304 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
scsi_CDs | 332 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
scsi_CDs | 349 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
scsi_CDs | 403 | drivers/scsi/sr_ioctl.c | lba = scsi_CDs[target].mpcd_sector+CD_BLOCK_OFFSET; |
scsi_CDs | 409 | drivers/scsi/sr_ioctl.c | ms_info.addr.lba=scsi_CDs[target].mpcd_sector; |
scsi_CDs | 412 | drivers/scsi/sr_ioctl.c | ms_info.xa_flag=scsi_CDs[target].xa_flags & 0x01; |
scsi_CDs | 430 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |