Lines Matching refs:scsidp
1337 static int sg_detect(Scsi_Device * scsidp) in sg_detect() argument
1404 static int sg_attach(Scsi_Device * scsidp) in sg_attach() argument
1418 scsidp->attached--; in sg_attach()
1433 scsidp->attached--; in sg_attach()
1436 " type=%d, minor number exceed %d\n", scsidp->host->host_no, in sg_attach()
1437 scsidp->channel, scsidp->id, scsidp->lun, scsidp->type, in sg_attach()
1446 scsidp->attached--; in sg_attach()
1453 sdp->device = scsidp; in sg_attach()
1459 sdp->sg_tablesize = scsidp->host ? scsidp->host->sg_tablesize : 0; in sg_attach()
1461 sdp->de = devfs_register (scsidp->de, "generic", DEVFS_FL_DEFAULT, in sg_attach()
1468 switch (scsidp->type) { in sg_attach()
1476 " %d, id %d, lun %d, type %d\n", k, scsidp->host->host_no, in sg_attach()
1477 scsidp->channel, scsidp->id, scsidp->lun, scsidp->type); in sg_attach()
1486 static void sg_detach(Scsi_Device * scsidp) in sg_detach() argument
1502 if ((NULL == sdp) || (sdp->device != scsidp)) in sg_detach()
1541 scsidp->attached--; in sg_detach()
2901 struct scsi_device * scsidp; in sg_proc_debug_info() local
2904 scsidp = sdp->device; in sg_proc_debug_info()
2905 if (NULL == scsidp) { in sg_proc_debug_info()
2917 scsidp->host->host_no, scsidp->channel, in sg_proc_debug_info()
2918 scsidp->id, scsidp->lun, scsidp->host->hostt->emulated); in sg_proc_debug_info()
2968 struct scsi_device * scsidp; in sg_proc_dev_info() local
2973 if (sdp && (scsidp = sdp->device) && (! sdp->detached)) in sg_proc_dev_info()
2975 scsidp->host->host_no, scsidp->channel, scsidp->id, in sg_proc_dev_info()
2976 scsidp->lun, (int)scsidp->type, (int)scsidp->access_count, in sg_proc_dev_info()
2977 (int)scsidp->queue_depth, (int)scsidp->device_busy, in sg_proc_dev_info()
2978 (int)scsidp->online); in sg_proc_dev_info()
3005 struct scsi_device * scsidp; in sg_proc_devstrs_info() local
3010 if (sdp && (scsidp = sdp->device) && (! sdp->detached)) in sg_proc_devstrs_info()
3012 scsidp->vendor, scsidp->model, scsidp->rev); in sg_proc_devstrs_info()