tag | line | file | source code |
scsi_generics | 63 | drivers/scsi/sg.c | static struct scsi_generic *scsi_generics=NULL; |
scsi_generics | 79 | drivers/scsi/sg.c | scsi_generics[dev].timeout=get_user((int *) arg); |
scsi_generics | 82 | drivers/scsi/sg.c | return scsi_generics[dev].timeout; |
scsi_generics | 84 | drivers/scsi/sg.c | return scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg); |
scsi_generics | 92 | drivers/scsi/sg.c | if (dev>=sg_template.dev_max || !scsi_generics[dev].device) |
scsi_generics | 103 | drivers/scsi/sg.c | while(scsi_generics[dev].users) |
scsi_generics | 107 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
scsi_generics | 111 | drivers/scsi/sg.c | scsi_generics[dev].exclude=1; |
scsi_generics | 118 | drivers/scsi/sg.c | while(scsi_generics[dev].exclude) |
scsi_generics | 122 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
scsi_generics | 132 | drivers/scsi/sg.c | if (!scsi_generics[dev].users |
scsi_generics | 133 | drivers/scsi/sg.c | && scsi_generics[dev].pending |
scsi_generics | 134 | drivers/scsi/sg.c | && scsi_generics[dev].complete) |
scsi_generics | 136 | drivers/scsi/sg.c | if (scsi_generics[dev].buff != NULL) |
scsi_generics | 137 | drivers/scsi/sg.c | sg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
scsi_generics | 138 | drivers/scsi/sg.c | scsi_generics[dev].buff=NULL; |
scsi_generics | 139 | drivers/scsi/sg.c | scsi_generics[dev].pending=0; |
scsi_generics | 141 | drivers/scsi/sg.c | if (!scsi_generics[dev].users) |
scsi_generics | 142 | drivers/scsi/sg.c | scsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT; |
scsi_generics | 143 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
scsi_generics | 144 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)++; |
scsi_generics | 146 | drivers/scsi/sg.c | scsi_generics[dev].users++; |
scsi_generics | 153 | drivers/scsi/sg.c | scsi_generics[dev].users--; |
scsi_generics | 154 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
scsi_generics | 155 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)--; |
scsi_generics | 157 | drivers/scsi/sg.c | scsi_generics[dev].exclude=0; |
scsi_generics | 158 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].generic_wait); |
scsi_generics | 204 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
scsi_generics | 266 | drivers/scsi/sg.c | struct scsi_generic *device = &scsi_generics[dev]; |
scsi_generics | 292 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].read_wait); |
scsi_generics | 304 | drivers/scsi/sg.c | struct scsi_generic * device=&scsi_generics[dev]; |
scsi_generics | 474 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
scsi_generics | 481 | drivers/scsi/sg.c | select_wait(&scsi_generics[dev].read_wait, wait); |
scsi_generics | 490 | drivers/scsi/sg.c | select_wait(&scsi_generics[dev].write_wait, wait); |
scsi_generics | 534 | drivers/scsi/sg.c | if(scsi_generics) return 0; |
scsi_generics | 544 | drivers/scsi/sg.c | scsi_generics = (struct scsi_generic *) |
scsi_generics | 547 | drivers/scsi/sg.c | memset(scsi_generics, 0, (sg_template.dev_noticed + SG_EXTRA_DEVS) |
scsi_generics | 565 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
scsi_generics | 570 | drivers/scsi/sg.c | scsi_generics[i].device=SDp; |
scsi_generics | 571 | drivers/scsi/sg.c | scsi_generics[i].users=0; |
scsi_generics | 572 | drivers/scsi/sg.c | scsi_generics[i].generic_wait=NULL; |
scsi_generics | 573 | drivers/scsi/sg.c | scsi_generics[i].read_wait=NULL; |
scsi_generics | 574 | drivers/scsi/sg.c | scsi_generics[i].write_wait=NULL; |
scsi_generics | 575 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
scsi_generics | 576 | drivers/scsi/sg.c | scsi_generics[i].exclude=0; |
scsi_generics | 577 | drivers/scsi/sg.c | scsi_generics[i].pending=0; |
scsi_generics | 578 | drivers/scsi/sg.c | scsi_generics[i].timeout=SG_DEFAULT_TIMEOUT; |
scsi_generics | 590 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
scsi_generics | 612 | drivers/scsi/sg.c | if(scsi_generics != NULL) { |
scsi_generics | 613 | drivers/scsi/sg.c | scsi_init_free((char *) scsi_generics, |