/Linux-v5.4/drivers/base/ |
D | base.h | 52 struct device_driver *driver; 84 struct device_driver *async_driver; 117 extern int bus_add_driver(struct device_driver *drv); 118 extern void bus_remove_driver(struct device_driver *drv); 120 struct device_driver *drv, 123 extern void driver_detach(struct device_driver *drv); 124 extern int driver_probe_device(struct device_driver *drv, struct device *dev); 126 static inline int driver_match_device(struct device_driver *drv, in driver_match_device() 131 extern bool driver_allows_async_probing(struct device_driver *drv); 133 extern int driver_add_groups(struct device_driver *drv, [all …]
|
D | driver.c | 41 int driver_for_each_device(struct device_driver *drv, struct device *start, in driver_for_each_device() 75 struct device *driver_find_device(struct device_driver *drv, in driver_find_device() 100 int driver_create_file(struct device_driver *drv, in driver_create_file() 118 void driver_remove_file(struct device_driver *drv, in driver_remove_file() 126 int driver_add_groups(struct device_driver *drv, in driver_add_groups() 132 void driver_remove_groups(struct device_driver *drv, in driver_remove_groups() 146 int driver_register(struct device_driver *drv) in driver_register() 149 struct device_driver *other; in driver_register() 190 void driver_unregister(struct device_driver *drv) in driver_unregister() 213 struct device_driver *driver_find(const char *name, struct bus_type *bus) in driver_find()
|
D | module.c | 12 static char *make_driver_name(struct device_driver *drv) in make_driver_name() 33 void module_add_driver(struct module *mod, struct device_driver *drv) in module_add_driver() 72 void module_remove_driver(struct device_driver *drv) in module_remove_driver()
|
D | dd.c | 442 struct device_driver *drv = dev->driver; in driver_sysfs_remove() 492 static int really_probe(struct device *dev, struct device_driver *drv) in really_probe() 646 static int really_probe_debug(struct device *dev, struct device_driver *drv) in really_probe_debug() 703 int driver_probe_device(struct device_driver *drv, struct device *dev) in driver_probe_device() 748 bool driver_allows_async_probing(struct device_driver *drv) in driver_allows_async_probing() 801 static int __device_attach_driver(struct device_driver *drv, void *_data) in __device_attach_driver() 984 int device_driver_attach(struct device_driver *drv, struct device *dev) in device_driver_attach() 1005 struct device_driver *drv; in __driver_attach_async_helper() 1028 struct device_driver *drv = data; in __driver_attach() 1086 int driver_attach(struct device_driver *drv) in driver_attach() [all …]
|
D | bus.c | 181 static ssize_t unbind_store(struct device_driver *drv, const char *buf, in unbind_store() 204 static ssize_t bind_store(struct device_driver *drv, const char *buf, in bind_store() 386 static struct device_driver *next_driver(struct klist_iter *i) in next_driver() 417 int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, in bus_for_each_drv() 418 void *data, int (*fn)(struct device_driver *, void *)) in bus_for_each_drv() argument 421 struct device_driver *drv; in bus_for_each_drv() 536 static int __must_check add_bind_files(struct device_driver *drv) in add_bind_files() 549 static void remove_bind_files(struct device_driver *drv) in remove_bind_files() 579 static ssize_t uevent_store(struct device_driver *drv, const char *buf, in uevent_store() 593 int bus_add_driver(struct device_driver *drv) in bus_add_driver() [all …]
|
/Linux-v5.4/Documentation/driver-api/driver-model/ |
D | driver.rst | 5 See the kerneldoc for the struct device_driver. 13 device_driver represents the driver as a whole (not a particular 27 As stated above, struct device_driver objects are statically 32 static struct device_driver eepro100_driver = { 52 Bus-specific drivers should include a generic struct device_driver in 57 struct device_driver driver; 83 int driver_register(struct device_driver *drv); 88 struct device_driver object. 95 struct device_driver object, including the reference count and the 121 int driver_for_each_dev(struct device_driver *drv, void *data, [all …]
|
/Linux-v5.4/include/linux/ |
D | device.h | 33 struct device_driver; 123 int (*match)(struct device *dev, struct device_driver *drv); 265 int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, 266 void *data, int (*fn)(struct device_driver *, void *)); 368 struct device_driver { struct 396 extern int __must_check driver_register(struct device_driver *drv); argument 397 extern void driver_unregister(struct device_driver *drv); 399 extern struct device_driver *driver_find(const char *name, 408 ssize_t (*show)(struct device_driver *driver, char *buf); 409 ssize_t (*store)(struct device_driver *driver, const char *buf, [all …]
|
D | sunxi-rsb.h | 60 struct device_driver driver; 65 static inline struct sunxi_rsb_driver *to_sunxi_rsb_driver(struct device_driver *d) in to_sunxi_rsb_driver()
|
D | mic_bus.h | 55 struct device_driver driver; 95 static inline struct mbus_driver *drv_to_mbus(struct device_driver *drv) in drv_to_mbus()
|
D | siox.h | 53 struct device_driver driver; 56 static inline struct siox_driver *to_siox_driver(struct device_driver *driver) in to_siox_driver()
|
D | moxtet.h | 63 struct device_driver driver; 67 to_moxtet_driver(struct device_driver *drv) in to_moxtet_driver()
|
D | of_device.h | 24 const struct device_driver *drv) in of_driver_match_device() 64 const struct device_driver *drv) in of_driver_match_device()
|
D | mcb.h | 94 struct device_driver driver; 101 static inline struct mcb_driver *to_mcb_driver(struct device_driver *drv) in to_mcb_driver()
|
/Linux-v5.4/drivers/dax/ |
D | bus.c | 31 static struct dax_device_driver *to_dax_drv(struct device_driver *drv) in to_dax_drv() 65 static ssize_t do_id_store(struct device_driver *drv, const char *buf, in do_id_store() 110 static ssize_t new_id_store(struct device_driver *drv, const char *buf, in new_id_store() 117 static ssize_t remove_id_store(struct device_driver *drv, const char *buf, in remove_id_store() 131 static int dax_bus_match(struct device *dev, struct device_driver *drv); 140 static int dax_bus_match(struct device *dev, struct device_driver *drv) in dax_bus_match() 462 struct device_driver *drv = &dax_drv->drv; in __dax_driver_register() 488 struct device_driver *drv = &dax_drv->drv; in dax_driver_unregister()
|
/Linux-v5.4/include/scsi/ |
D | scsi_driver.h | 14 struct device_driver gendrv; 26 extern int scsi_register_driver(struct device_driver *);
|
/Linux-v5.4/include/sound/ac97/ |
D | codec.h | 64 struct device_driver driver; 76 static inline struct ac97_codec_driver *to_ac97_driver(struct device_driver *d) in to_ac97_driver()
|
/Linux-v5.4/drivers/usb/serial/ |
D | bus.c | 17 struct device_driver *drv) in usb_serial_device_match() 123 static ssize_t new_id_store(struct device_driver *driver, in new_id_store() 138 static ssize_t new_id_show(struct device_driver *driver, char *buf) in new_id_show()
|
/Linux-v5.4/drivers/net/phy/ |
D | mdio_device.c | 36 int mdio_device_bus_match(struct device *dev, struct device_driver *drv) in mdio_device_bus_match() 149 struct device_driver *drv = mdiodev->dev.driver; in mdio_probe() 170 struct device_driver *drv = mdiodev->dev.driver; in mdio_remove()
|
/Linux-v5.4/drivers/scsi/ |
D | scsi_debug.c | 705 static struct device_driver sdebug_driverfs_driver = { 4616 static ssize_t delay_show(struct device_driver *ddp, char *buf) in delay_show() 4623 static ssize_t delay_store(struct device_driver *ddp, const char *buf, in delay_store() 4656 static ssize_t ndelay_show(struct device_driver *ddp, char *buf) in ndelay_show() 4662 static ssize_t ndelay_store(struct device_driver *ddp, const char *buf, in ndelay_store() 4697 static ssize_t opts_show(struct device_driver *ddp, char *buf) in opts_show() 4702 static ssize_t opts_store(struct device_driver *ddp, const char *buf, in opts_store() 4727 static ssize_t ptype_show(struct device_driver *ddp, char *buf) in ptype_show() 4731 static ssize_t ptype_store(struct device_driver *ddp, const char *buf, in ptype_store() 4744 static ssize_t dsense_show(struct device_driver *ddp, char *buf) in dsense_show() [all …]
|
/Linux-v5.4/drivers/xen/xenbus/ |
D | xenbus_probe_frontend.c | 179 struct device_driver *drv = data; in is_device_connecting() 219 static int exists_essential_connecting_device(struct device_driver *drv) in exists_essential_connecting_device() 224 static int exists_non_essential_connecting_device(struct device_driver *drv) in exists_non_essential_connecting_device() 233 struct device_driver *drv = data; in print_device_status() 291 struct device_driver *drv = xendrv ? &xendrv->driver : NULL; in wait_for_devices()
|
/Linux-v5.4/drivers/misc/mic/bus/ |
D | cosm_bus.h | 79 struct device_driver driver; 121 static inline struct cosm_driver *drv_to_cosm(struct device_driver *drv) in drv_to_cosm()
|
D | vop_bus.h | 61 struct device_driver driver; 125 static inline struct vop_driver *drv_to_vop(struct device_driver *drv) in drv_to_vop()
|
D | scif_bus.h | 67 struct device_driver driver; 121 static inline struct scif_driver *drv_to_scif(struct device_driver *drv) in drv_to_scif()
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | vio.h | 122 struct device_driver driver; 158 static inline struct vio_driver *to_vio_driver(struct device_driver *drv) in to_vio_driver()
|
/Linux-v5.4/drivers/staging/fieldbus/anybuss/ |
D | anybuss-client.h | 30 struct device_driver driver; 45 to_anybuss_client_driver(struct device_driver *drv) in to_anybuss_client_driver()
|