/linux-6.6.21/include/linux/device/ |
D | driver.h | 96 struct device_driver { struct 125 int __must_check driver_register(struct device_driver *drv); argument 126 void driver_unregister(struct device_driver *drv); 128 struct device_driver *driver_find(const char *name, const struct bus_type *bus); 137 ssize_t (*show)(struct device_driver *driver, char *buf); 138 ssize_t (*store)(struct device_driver *driver, const char *buf, 149 int __must_check driver_create_file(struct device_driver *driver, 151 void driver_remove_file(struct device_driver *driver, 156 int __must_check driver_for_each_device(struct device_driver *drv, struct device *start, 158 struct device *driver_find_device(struct device_driver *drv, [all …]
|
D | bus.h | 21 struct device_driver; 87 int (*match)(struct device *dev, struct device_driver *drv); 233 int bus_for_each_drv(const struct bus_type *bus, struct device_driver *start, 234 void *data, int (*fn)(struct device_driver *, void *));
|
/linux-6.6.21/drivers/base/ |
D | base.h | 83 struct device_driver *driver; 115 struct device_driver *async_driver; 156 int bus_add_driver(struct device_driver *drv); 157 void bus_remove_driver(struct device_driver *drv); 158 void device_release_driver_internal(struct device *dev, struct device_driver *drv, 161 void driver_detach(struct device_driver *drv); 164 static inline int driver_match_device(struct device_driver *drv, in driver_match_device() 178 int driver_add_groups(struct device_driver *drv, const struct attribute_group **groups); 179 void driver_remove_groups(struct device_driver *drv, const struct attribute_group **groups); 195 void module_add_driver(struct module *mod, struct device_driver *drv); [all …]
|
D | driver.c | 117 int driver_for_each_device(struct device_driver *drv, struct device *start, in driver_for_each_device() 151 struct device *driver_find_device(struct device_driver *drv, in driver_find_device() 176 int driver_create_file(struct device_driver *drv, in driver_create_file() 194 void driver_remove_file(struct device_driver *drv, in driver_remove_file() 202 int driver_add_groups(struct device_driver *drv, in driver_add_groups() 208 void driver_remove_groups(struct device_driver *drv, in driver_remove_groups() 222 int driver_register(struct device_driver *drv) in driver_register() 225 struct device_driver *other; in driver_register() 267 void driver_unregister(struct device_driver *drv) in driver_unregister()
|
D | dd.c | 470 struct device_driver *drv = dev->driver; in driver_sysfs_remove() 572 static int call_driver_probe(struct device *dev, struct device_driver *drv) in call_driver_probe() 603 static int really_probe(struct device *dev, struct device_driver *drv) in really_probe() 732 static int really_probe_debug(struct device *dev, struct device_driver *drv) in really_probe_debug() 779 static int __driver_probe_device(struct device_driver *drv, struct device *dev) in __driver_probe_device() 824 static int driver_probe_device(struct device_driver *drv, struct device *dev) in driver_probe_device() 868 static bool driver_allows_async_probing(struct device_driver *drv) in driver_allows_async_probing() 921 static int __device_attach_driver(struct device_driver *drv, void *_data) in __device_attach_driver() 1122 int device_driver_attach(struct device_driver *drv, struct device *dev) in device_driver_attach() 1142 struct device_driver *drv; in __driver_attach_async_helper() [all …]
|
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 | bus.c | 233 static ssize_t unbind_store(struct device_driver *drv, const char *buf, in unbind_store() 256 static ssize_t bind_store(struct device_driver *drv, const char *buf, in bind_store() 412 static struct device_driver *next_driver(struct klist_iter *i) in next_driver() 443 int bus_for_each_drv(const struct bus_type *bus, struct device_driver *start, in bus_for_each_drv() 444 void *data, int (*fn)(struct device_driver *, void *)) in bus_for_each_drv() argument 448 struct device_driver *drv; in bus_for_each_drv() 585 static int __must_check add_bind_files(struct device_driver *drv) in add_bind_files() 598 static void remove_bind_files(struct device_driver *drv) in remove_bind_files() 628 static ssize_t uevent_store(struct device_driver *drv, const char *buf, in uevent_store() 642 int bus_add_driver(struct device_driver *drv) in bus_add_driver() [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/ |
D | atomisp_drvfs.c | 39 struct device_driver *drv; 91 static ssize_t iunit_dbglvl_show(struct device_driver *drv, char *buf) in iunit_dbglvl_show() 97 static ssize_t iunit_dbglvl_store(struct device_driver *drv, const char *buf, in iunit_dbglvl_store() 110 static ssize_t iunit_dbgfun_show(struct device_driver *drv, char *buf) in iunit_dbgfun_show() 116 static ssize_t iunit_dbgfun_store(struct device_driver *drv, const char *buf, in iunit_dbgfun_store() 135 static ssize_t iunit_dbgopt_show(struct device_driver *drv, char *buf) in iunit_dbgopt_show() 140 static ssize_t iunit_dbgopt_store(struct device_driver *drv, const char *buf, in iunit_dbgopt_store() 164 static int iunit_drvfs_create_files(struct device_driver *drv) in iunit_drvfs_create_files() 174 static void iunit_drvfs_remove_files(struct device_driver *drv) in iunit_drvfs_remove_files() 184 struct device_driver *drv = isp->dev->driver; in atomisp_drvfs_init()
|
/linux-6.6.21/drivers/dma/idxd/ |
D | compat.c | 10 extern int device_driver_attach(struct device_driver *drv, struct device *dev); 17 static ssize_t unbind_store(struct device_driver *drv, const char *buf, size_t count) in unbind_store() 33 static ssize_t bind_store(struct device_driver *drv, const char *buf, size_t count) in bind_store() 37 struct device_driver *alt_drv = NULL; in bind_store()
|
D | bus.c | 13 struct device_driver *drv = &idxd_drv->drv; in __idxd_driver_register() 36 struct device_driver *drv) in idxd_config_bus_match()
|
/linux-6.6.21/drivers/tty/serial/ |
D | serial_base.h | 14 struct device_driver; 33 int serial_base_driver_register(struct device_driver *driver); 34 void serial_base_driver_unregister(struct device_driver *driver);
|
D | serial_base_bus.c | 31 static int serial_base_match(struct device *dev, struct device_driver *drv) in serial_base_match() 49 int serial_base_driver_register(struct device_driver *driver) in serial_base_driver_register() 56 void serial_base_driver_unregister(struct device_driver *driver) in serial_base_driver_unregister()
|
/linux-6.6.21/drivers/net/phy/ |
D | mdio_device.c | 38 int mdio_device_bus_match(struct device *dev, struct device_driver *drv) in mdio_device_bus_match() 151 struct device_driver *drv = mdiodev->dev.driver; in mdio_probe() 172 struct device_driver *drv = mdiodev->dev.driver; in mdio_remove() 187 struct device_driver *drv = mdiodev->dev.driver; in mdio_shutdown()
|
/linux-6.6.21/Documentation/driver-api/driver-model/ |
D | driver.rst | 5 See the kerneldoc for the struct device_driver. 12 device_driver represents the driver as a whole (not a particular 26 As stated above, struct device_driver objects are statically 31 static struct device_driver eepro100_driver = { 51 Bus-specific drivers should include a generic struct device_driver in 56 struct device_driver driver; 82 int driver_register(struct device_driver *drv); 87 struct device_driver object. 94 struct device_driver object, including the reference count and the 120 int driver_for_each_dev(struct device_driver *drv, void *data, [all …]
|
/linux-6.6.21/include/scsi/ |
D | scsi_driver.h | 13 struct device_driver gendrv; 25 extern int scsi_register_driver(struct device_driver *);
|
/linux-6.6.21/include/linux/ |
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 | 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 | of_device.h | 24 const struct device_driver *drv) in of_driver_match_device() 46 const struct device_driver *drv) in of_driver_match_device()
|
D | moxtet.h | 63 struct device_driver driver; 67 to_moxtet_driver(struct device_driver *drv) in to_moxtet_driver()
|
D | auxiliary_bus.h | 187 struct device_driver driver; 206 static inline struct auxiliary_driver *to_auxiliary_drv(struct device_driver *drv) in to_auxiliary_drv()
|
/linux-6.6.21/include/drm/display/ |
D | drm_dp_aux_bus.h | 34 struct device_driver driver; 42 static inline struct dp_aux_ep_driver *to_dp_aux_ep_drv(struct device_driver *drv) in to_dp_aux_ep_drv()
|
/linux-6.6.21/drivers/usb/serial/ |
D | bus.c | 17 struct device_driver *drv) in usb_serial_device_match() 106 static ssize_t new_id_store(struct device_driver *driver, in new_id_store() 121 static ssize_t new_id_show(struct device_driver *driver, char *buf) in new_id_show()
|
/linux-6.6.21/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-6.6.21/drivers/xen/xenbus/ |
D | xenbus_probe_frontend.c | 200 struct device_driver *drv = data; in is_device_connecting() 232 static int exists_essential_connecting_device(struct device_driver *drv) in exists_essential_connecting_device() 237 static int exists_non_essential_connecting_device(struct device_driver *drv) in exists_non_essential_connecting_device() 246 struct device_driver *drv = data; in print_device_status() 304 struct device_driver *drv = xendrv ? &xendrv->driver : NULL; in wait_for_devices()
|
/linux-6.6.21/drivers/staging/fieldbus/anybuss/ |
D | anybuss-client.h | 33 struct device_driver driver; 48 to_anybuss_client_driver(struct device_driver *drv) in to_anybuss_client_driver()
|