Lines Matching refs:sdev

31 	struct scsi_device *sdev;  member
43 static int tur_done(struct scsi_device *sdev, struct hp_sw_dh_data *h, in tur_done() argument
62 sdev_printk(KERN_WARNING, sdev, in tur_done()
78 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument
103 res = scsi_execute_cmd(sdev, cmd, opf, NULL, 0, HP_SW_TIMEOUT, in hp_sw_tur()
106 ret = tur_done(sdev, h, &sshdr); in hp_sw_tur()
111 sdev_printk(KERN_WARNING, sdev, in hp_sw_tur()
130 struct scsi_device *sdev = h->sdev; in hp_sw_start_stop() local
157 res = scsi_execute_cmd(sdev, cmd, opf, NULL, 0, HP_SW_TIMEOUT, in hp_sw_start_stop()
162 sdev_printk(KERN_WARNING, sdev, in hp_sw_start_stop()
176 sdev_printk(KERN_WARNING, sdev, in hp_sw_start_stop()
186 static blk_status_t hp_sw_prep_fn(struct scsi_device *sdev, struct request *req) in hp_sw_prep_fn() argument
188 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_prep_fn()
208 static int hp_sw_activate(struct scsi_device *sdev, in hp_sw_activate() argument
212 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_activate()
214 ret = hp_sw_tur(sdev, h); in hp_sw_activate()
224 static int hp_sw_bus_attach(struct scsi_device *sdev) in hp_sw_bus_attach() argument
234 h->sdev = sdev; in hp_sw_bus_attach()
236 ret = hp_sw_tur(sdev, h); in hp_sw_bus_attach()
244 sdev_printk(KERN_INFO, sdev, "%s: attached to %s path\n", in hp_sw_bus_attach()
248 sdev->handler_data = h; in hp_sw_bus_attach()
255 static void hp_sw_bus_detach( struct scsi_device *sdev ) in hp_sw_bus_detach() argument
257 kfree(sdev->handler_data); in hp_sw_bus_detach()
258 sdev->handler_data = NULL; in hp_sw_bus_detach()