Lines Matching refs:sdev

45 	struct scsi_device *sdev;  member
59 static int tur_done(struct scsi_device *sdev, unsigned char *sense) in tur_done() argument
66 sdev_printk(KERN_WARNING, sdev, in tur_done()
88 sdev_printk(KERN_WARNING, sdev, in tur_done()
106 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument
112 req = blk_get_request(sdev->request_queue, WRITE, GFP_NOIO); in hp_sw_tur()
129 ret = tur_done(sdev, h->sense); in hp_sw_tur()
131 sdev_printk(KERN_WARNING, sdev, in hp_sw_tur()
159 static int start_done(struct scsi_device *sdev, unsigned char *sense) in start_done() argument
166 sdev_printk(KERN_WARNING, sdev, in start_done()
185 sdev_printk(KERN_WARNING, sdev, in start_done()
202 sdev_printk(KERN_WARNING, h->sdev, in start_stop_endio()
210 err = start_done(h->sdev, h->sense); in start_stop_endio()
242 req = blk_get_request(h->sdev->request_queue, WRITE, GFP_ATOMIC); in hp_sw_start_stop()
262 static int hp_sw_prep_fn(struct scsi_device *sdev, struct request *req) in hp_sw_prep_fn() argument
264 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_prep_fn()
285 static int hp_sw_activate(struct scsi_device *sdev, in hp_sw_activate() argument
289 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_activate()
291 ret = hp_sw_tur(sdev, h); in hp_sw_activate()
308 static int hp_sw_bus_attach(struct scsi_device *sdev) in hp_sw_bus_attach() argument
318 h->sdev = sdev; in hp_sw_bus_attach()
320 ret = hp_sw_tur(sdev, h); in hp_sw_bus_attach()
324 sdev_printk(KERN_INFO, sdev, "%s: attached to %s path\n", in hp_sw_bus_attach()
328 sdev->handler_data = h; in hp_sw_bus_attach()
335 static void hp_sw_bus_detach( struct scsi_device *sdev ) in hp_sw_bus_detach() argument
337 kfree(sdev->handler_data); in hp_sw_bus_detach()
338 sdev->handler_data = NULL; in hp_sw_bus_detach()