Lines Matching refs:scsidp

1431 sg_alloc(struct scsi_device *scsidp)  in sg_alloc()  argument
1433 struct request_queue *q = scsidp->request_queue; in sg_alloc()
1441 sdev_printk(KERN_WARNING, scsidp, "%s: kmalloc Sg_device " in sg_alloc()
1452 sdev_printk(KERN_WARNING, scsidp, in sg_alloc()
1454 scsidp->type, SG_MAX_DEVS - 1); in sg_alloc()
1457 sdev_printk(KERN_WARNING, scsidp, "%s: idr " in sg_alloc()
1465 SCSI_LOG_TIMEOUT(3, sdev_printk(KERN_INFO, scsidp, in sg_alloc()
1468 sdp->device = scsidp; in sg_alloc()
1493 struct scsi_device *scsidp = to_scsi_device(cl_dev->parent); in sg_add_device() local
1508 sdp = sg_alloc(scsidp); in sg_add_device()
1532 error = sysfs_create_link(&scsidp->sdev_gendev.kobj, in sg_add_device()
1540 sdev_printk(KERN_NOTICE, scsidp, "Attached scsi generic sg%d " in sg_add_device()
1541 "type %d\n", sdp->index, scsidp->type); in sg_add_device()
1583 struct scsi_device *scsidp = to_scsi_device(cl_dev->parent); in sg_remove_device() local
1607 sysfs_remove_link(&scsidp->sdev_gendev.kobj, "generic"); in sg_remove_device()
2474 struct scsi_device *scsidp; in sg_proc_seq_show_dev() local
2483 scsidp = sdp->device; in sg_proc_seq_show_dev()
2485 scsidp->host->host_no, scsidp->channel, in sg_proc_seq_show_dev()
2486 scsidp->id, scsidp->lun, (int) scsidp->type, in sg_proc_seq_show_dev()
2488 (int) scsidp->queue_depth, in sg_proc_seq_show_dev()
2489 (int) scsi_device_busy(scsidp), in sg_proc_seq_show_dev()
2490 (int) scsi_device_online(scsidp)); in sg_proc_seq_show_dev()
2500 struct scsi_device *scsidp; in sg_proc_seq_show_devstrs() local
2505 scsidp = sdp ? sdp->device : NULL; in sg_proc_seq_show_devstrs()
2506 if (sdp && scsidp && (!atomic_read(&sdp->detaching))) in sg_proc_seq_show_devstrs()
2508 scsidp->vendor, scsidp->model, scsidp->rev); in sg_proc_seq_show_devstrs()
2598 struct scsi_device *scsidp = sdp->device; in sg_proc_seq_show_debug() local
2601 scsidp->host->host_no, in sg_proc_seq_show_debug()
2602 scsidp->channel, scsidp->id, in sg_proc_seq_show_debug()
2603 scsidp->lun, in sg_proc_seq_show_debug()
2604 scsidp->host->hostt->emulated); in sg_proc_seq_show_debug()