taglinefilesource code
scsi_generics63drivers/scsi/sg.cstatic struct scsi_generic *scsi_generics=NULL;
scsi_generics79drivers/scsi/sg.cscsi_generics[dev].timeout=get_user((int *) arg);
scsi_generics82drivers/scsi/sg.creturn scsi_generics[dev].timeout;
scsi_generics84drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
scsi_generics92drivers/scsi/sg.cif (dev>=sg_template.dev_max || !scsi_generics[dev].device)
scsi_generics103drivers/scsi/sg.cwhile(scsi_generics[dev].users)
scsi_generics107drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
scsi_generics111drivers/scsi/sg.cscsi_generics[dev].exclude=1;
scsi_generics118drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
scsi_generics122drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
scsi_generics132drivers/scsi/sg.cif (!scsi_generics[dev].users 
scsi_generics133drivers/scsi/sg.c&& scsi_generics[dev].pending
scsi_generics134drivers/scsi/sg.c&& scsi_generics[dev].complete)
scsi_generics136drivers/scsi/sg.cif (scsi_generics[dev].buff != NULL)
scsi_generics137drivers/scsi/sg.csg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
scsi_generics138drivers/scsi/sg.cscsi_generics[dev].buff=NULL;
scsi_generics139drivers/scsi/sg.cscsi_generics[dev].pending=0;
scsi_generics141drivers/scsi/sg.cif (!scsi_generics[dev].users)
scsi_generics142drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
scsi_generics143drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
scsi_generics144drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
scsi_generics146drivers/scsi/sg.cscsi_generics[dev].users++;
scsi_generics153drivers/scsi/sg.cscsi_generics[dev].users--;
scsi_generics154drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
scsi_generics155drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
scsi_generics157drivers/scsi/sg.cscsi_generics[dev].exclude=0;
scsi_generics158drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
scsi_generics204drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
scsi_generics266drivers/scsi/sg.cstruct scsi_generic *device = &scsi_generics[dev];
scsi_generics292drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
scsi_generics304drivers/scsi/sg.cstruct scsi_generic   * device=&scsi_generics[dev];
scsi_generics474drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
scsi_generics481drivers/scsi/sg.cselect_wait(&scsi_generics[dev].read_wait, wait);
scsi_generics490drivers/scsi/sg.cselect_wait(&scsi_generics[dev].write_wait, wait);
scsi_generics534drivers/scsi/sg.cif(scsi_generics) return 0;
scsi_generics544drivers/scsi/sg.cscsi_generics = (struct scsi_generic *) 
scsi_generics547drivers/scsi/sg.cmemset(scsi_generics, 0, (sg_template.dev_noticed + SG_EXTRA_DEVS)
scsi_generics565drivers/scsi/sg.cfor(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) 
scsi_generics570drivers/scsi/sg.cscsi_generics[i].device=SDp;
scsi_generics571drivers/scsi/sg.cscsi_generics[i].users=0;
scsi_generics572drivers/scsi/sg.cscsi_generics[i].generic_wait=NULL;
scsi_generics573drivers/scsi/sg.cscsi_generics[i].read_wait=NULL;
scsi_generics574drivers/scsi/sg.cscsi_generics[i].write_wait=NULL;
scsi_generics575drivers/scsi/sg.cscsi_generics[i].buff=NULL;
scsi_generics576drivers/scsi/sg.cscsi_generics[i].exclude=0;
scsi_generics577drivers/scsi/sg.cscsi_generics[i].pending=0;
scsi_generics578drivers/scsi/sg.cscsi_generics[i].timeout=SG_DEFAULT_TIMEOUT;
scsi_generics590drivers/scsi/sg.cfor(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) 
scsi_generics612drivers/scsi/sg.cif(scsi_generics != NULL) {
scsi_generics613drivers/scsi/sg.cscsi_init_free((char *) scsi_generics,