Lines Matching refs:sdev
44 struct scsi_device *sdev; member
56 static int tur_done(struct scsi_device *sdev, struct hp_sw_dh_data *h, in tur_done() argument
78 sdev_printk(KERN_WARNING, sdev, in tur_done()
94 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument
103 res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr, in hp_sw_tur()
107 ret = tur_done(sdev, h, &sshdr); in hp_sw_tur()
109 sdev_printk(KERN_WARNING, sdev, in hp_sw_tur()
134 struct scsi_device *sdev = h->sdev; in hp_sw_start_stop() local
141 res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr, in hp_sw_start_stop()
145 sdev_printk(KERN_WARNING, sdev, in hp_sw_start_stop()
165 sdev_printk(KERN_WARNING, sdev, in hp_sw_start_stop()
175 static int hp_sw_prep_fn(struct scsi_device *sdev, struct request *req) in hp_sw_prep_fn() argument
177 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_prep_fn()
198 static int hp_sw_activate(struct scsi_device *sdev, in hp_sw_activate() argument
202 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_activate()
204 ret = hp_sw_tur(sdev, h); in hp_sw_activate()
214 static int hp_sw_bus_attach(struct scsi_device *sdev) in hp_sw_bus_attach() argument
224 h->sdev = sdev; in hp_sw_bus_attach()
226 ret = hp_sw_tur(sdev, h); in hp_sw_bus_attach()
234 sdev_printk(KERN_INFO, sdev, "%s: attached to %s path\n", in hp_sw_bus_attach()
238 sdev->handler_data = h; in hp_sw_bus_attach()
245 static void hp_sw_bus_detach( struct scsi_device *sdev ) in hp_sw_bus_detach() argument
247 kfree(sdev->handler_data); in hp_sw_bus_detach()
248 sdev->handler_data = NULL; in hp_sw_bus_detach()