taglinefilesource code
sdpnt334drivers/scsi/hosts.cscsi_register_device(struct Scsi_Device_Template * sdpnt)
sdpnt336drivers/scsi/hosts.cif(sdpnt->next) panic("Device already registered");
sdpnt337drivers/scsi/hosts.csdpnt->next = scsi_devicelist;
sdpnt338drivers/scsi/hosts.cscsi_devicelist = sdpnt;
sdpnt367drivers/scsi/hosts.hint scsi_register_device(struct Scsi_Device_Template * sdpnt);
sdpnt2769drivers/scsi/scsi.cScsi_Device *sdpnt, * sdppnt, * sdpnt1;
sdpnt2779drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt2780drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt && sdpnt->host->hostt->usage_count
sdpnt2781drivers/scsi/scsi.c&& *sdpnt->host->hostt->usage_count) return;
sdpnt2804drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt2805drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
sdpnt2808drivers/scsi/scsi.cif(sdtpnt->detach) (*sdtpnt->detach)(sdpnt);
sdpnt2810drivers/scsi/scsi.cif (sdpnt->attached) {
sdpnt2811drivers/scsi/scsi.cprintk("Attached usage count = %d\n", sdpnt->attached);
sdpnt2818drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt2819drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
sdpnt2820drivers/scsi/scsi.cwhile (sdpnt->host->host_queue) {
sdpnt2821drivers/scsi/scsi.cSCpnt = sdpnt->host->host_queue->next;
sdpnt2822drivers/scsi/scsi.cscsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd));
sdpnt2823drivers/scsi/scsi.csdpnt->host->host_queue = SCpnt;
sdpnt2825drivers/scsi/scsi.csdpnt->has_cmdblocks = 0;
sdpnt2831drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt1)
sdpnt2833drivers/scsi/scsi.csdpnt1 = sdpnt->next;
sdpnt2834drivers/scsi/scsi.cif (sdpnt->host->hostt == tpnt) {
sdpnt2836drivers/scsi/scsi.csdppnt->next = sdpnt->next;
sdpnt2838drivers/scsi/scsi.cscsi_devices = sdpnt->next;
sdpnt2839drivers/scsi/scsi.cscsi_init_free((char *) sdpnt, sizeof (Scsi_Device));
sdpnt2841drivers/scsi/scsi.csdppnt = sdpnt;