Searched refs:scsi_dh (Results 1 - 11 of 11) sorted by relevance

/linux-4.4.14/drivers/scsi/
H A Dscsi_dh.c26 #include <scsi/scsi_dh.h>
124 * @scsi_dh - The device handler to attach
127 struct scsi_device_handler *scsi_dh) scsi_dh_handler_attach()
131 if (!try_module_get(scsi_dh->module)) scsi_dh_handler_attach()
134 error = scsi_dh->attach(sdev); scsi_dh_handler_attach()
137 scsi_dh->name, error); scsi_dh_handler_attach()
138 module_put(scsi_dh->module); scsi_dh_handler_attach()
140 sdev->handler = scsi_dh; scsi_dh_handler_attach()
164 struct scsi_device_handler *scsi_dh; store_dh_state() local
175 scsi_dh = scsi_dh_lookup(buf); store_dh_state()
176 if (!scsi_dh) store_dh_state()
178 err = scsi_dh_handler_attach(sdev, scsi_dh); store_dh_state()
249 * @scsi_dh - device handler to be registered.
253 int scsi_register_device_handler(struct scsi_device_handler *scsi_dh) scsi_register_device_handler() argument
255 if (__scsi_dh_lookup(scsi_dh->name)) scsi_register_device_handler()
258 if (!scsi_dh->attach || !scsi_dh->detach) scsi_register_device_handler()
262 list_add(&scsi_dh->list, &scsi_dh_list); scsi_register_device_handler()
265 printk(KERN_INFO "%s: device handler registered\n", scsi_dh->name); scsi_register_device_handler()
274 * @scsi_dh - device handler to be unregistered.
278 int scsi_unregister_device_handler(struct scsi_device_handler *scsi_dh) scsi_unregister_device_handler() argument
280 if (!__scsi_dh_lookup(scsi_dh->name)) scsi_unregister_device_handler()
284 list_del(&scsi_dh->list); scsi_unregister_device_handler()
286 printk(KERN_INFO "%s: device handler unregistered\n", scsi_dh->name); scsi_unregister_device_handler()
391 struct scsi_device_handler *scsi_dh; scsi_dh_attach() local
398 scsi_dh = scsi_dh_lookup(name); scsi_dh_attach()
399 if (!scsi_dh) { scsi_dh_attach()
405 if (sdev->handler != scsi_dh) scsi_dh_attach()
410 err = scsi_dh_handler_attach(sdev, scsi_dh); scsi_dh_attach()
126 scsi_dh_handler_attach(struct scsi_device *sdev, struct scsi_device_handler *scsi_dh) scsi_dh_handler_attach() argument
H A Dscsi_priv.h173 /* scsi_dh.c */ scsi_autopm_put_host()
H A DMakefile174 scsi_mod-$(CONFIG_SCSI_DH) += scsi_dh.o
H A Dscsi_error.c40 #include <scsi/scsi_dh.h>
H A Dscsi_lib.c34 #include <scsi/scsi_dh.h>
/linux-4.4.14/drivers/scsi/device_handler/
H A Dscsi_dh_hp_sw.c29 #include <scsi/scsi_dh.h>
H A Dscsi_dh_emc.c27 #include <scsi/scsi_dh.h>
H A Dscsi_dh_alua.c27 #include <scsi/scsi_dh.h>
H A Dscsi_dh_rdac.c24 #include <scsi/scsi_dh.h>
/linux-4.4.14/include/scsi/
H A Dscsi_device.h305 extern int scsi_register_device_handler(struct scsi_device_handler *scsi_dh);
307 extern int scsi_unregister_device_handler(struct scsi_device_handler *scsi_dh);
/linux-4.4.14/drivers/md/
H A Ddm-mpath.c24 #include <scsi/scsi_dh.h>

Completed in 408 milliseconds