/kernel/linux/linux-5.10/include/linux/device/ |
D | driver.h | 95 struct device_driver { struct 124 extern int __must_check driver_register(struct device_driver *drv); argument 125 extern void driver_unregister(struct device_driver *drv); 127 extern struct device_driver *driver_find(const char *name, 136 ssize_t (*show)(struct device_driver *driver, char *buf); 137 ssize_t (*store)(struct device_driver *driver, const char *buf, 148 extern int __must_check driver_create_file(struct device_driver *driver, 150 extern void driver_remove_file(struct device_driver *driver, 153 extern int __must_check driver_for_each_device(struct device_driver *drv, 158 struct device *driver_find_device(struct device_driver *drv, [all …]
|
D | bus.h | 21 struct device_driver; 90 int (*match)(struct device *dev, struct device_driver *drv); 251 int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, 252 void *data, int (*fn)(struct device_driver *, void *));
|
/kernel/linux/linux-5.10/drivers/base/ |
D | base.h | 63 struct device_driver *driver; 95 struct device_driver *async_driver; 129 extern int bus_add_driver(struct device_driver *drv); 130 extern void bus_remove_driver(struct device_driver *drv); 132 struct device_driver *drv, 135 extern void driver_detach(struct device_driver *drv); 136 extern int driver_probe_device(struct device_driver *drv, struct device *dev); 140 static inline int driver_match_device(struct device_driver *drv, in driver_match_device() 145 extern bool driver_allows_async_probing(struct device_driver *drv); 147 extern int driver_add_groups(struct device_driver *drv, [all …]
|
D | driver.c | 42 int driver_for_each_device(struct device_driver *drv, struct device *start, in driver_for_each_device() 76 struct device *driver_find_device(struct device_driver *drv, in driver_find_device() 101 int driver_create_file(struct device_driver *drv, in driver_create_file() 119 void driver_remove_file(struct device_driver *drv, in driver_remove_file() 127 int driver_add_groups(struct device_driver *drv, in driver_add_groups() 133 void driver_remove_groups(struct device_driver *drv, in driver_remove_groups() 147 int driver_register(struct device_driver *drv) in driver_register() 150 struct device_driver *other; in driver_register() 191 void driver_unregister(struct device_driver *drv) in driver_unregister() 214 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 | 435 struct device_driver *drv = dev->driver; in driver_sysfs_remove() 497 static int really_probe(struct device *dev, struct device_driver *drv) in really_probe() 672 static int really_probe_debug(struct device *dev, struct device_driver *drv) in really_probe_debug() 734 int driver_probe_device(struct device_driver *drv, struct device *dev) in driver_probe_device() 778 bool driver_allows_async_probing(struct device_driver *drv) in driver_allows_async_probing() 831 static int __device_attach_driver(struct device_driver *drv, void *_data) in __device_attach_driver() 1024 int device_driver_attach(struct device_driver *drv, struct device *dev) in device_driver_attach() 1045 struct device_driver *drv; in __driver_attach_async_helper() 1068 struct device_driver *drv = data; in __driver_attach() 1138 int driver_attach(struct device_driver *drv) in driver_attach() [all …]
|
D | bus.c | 182 static ssize_t unbind_store(struct device_driver *drv, const char *buf, in unbind_store() 205 static ssize_t bind_store(struct device_driver *drv, const char *buf, in bind_store() 387 static struct device_driver *next_driver(struct klist_iter *i) in next_driver() 418 int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, in bus_for_each_drv() 419 void *data, int (*fn)(struct device_driver *, void *)) in bus_for_each_drv() argument 422 struct device_driver *drv; in bus_for_each_drv() 537 static int __must_check add_bind_files(struct device_driver *drv) in add_bind_files() 550 static void remove_bind_files(struct device_driver *drv) in remove_bind_files() 580 static ssize_t uevent_store(struct device_driver *drv, const char *buf, in uevent_store() 594 int bus_add_driver(struct device_driver *drv) in bus_add_driver() [all …]
|
D | platform.c | 1170 static int platform_match(struct device *dev, struct device_driver *drv) in platform_match() 1227 struct device_driver *drv = dev->driver; in platform_pm_suspend() 1245 struct device_driver *drv = dev->driver; in platform_pm_resume() 1267 struct device_driver *drv = dev->driver; in platform_pm_freeze() 1285 struct device_driver *drv = dev->driver; in platform_pm_thaw() 1303 struct device_driver *drv = dev->driver; in platform_pm_poweroff() 1321 struct device_driver *drv = dev->driver; in platform_pm_restore() 1372 return platform_match(dev, (struct device_driver *)drv); in __platform_match() 1382 const struct device_driver *drv) in platform_find_device_by_driver()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
D | atomisp_drvfs.c | 39 struct device_driver *drv; 96 static ssize_t iunit_dbglvl_show(struct device_driver *drv, char *buf) in iunit_dbglvl_show() 102 static ssize_t iunit_dbglvl_store(struct device_driver *drv, const char *buf, in iunit_dbglvl_store() 115 static ssize_t iunit_dbgfun_show(struct device_driver *drv, char *buf) in iunit_dbgfun_show() 121 static ssize_t iunit_dbgfun_store(struct device_driver *drv, const char *buf, in iunit_dbgfun_store() 140 static ssize_t iunit_dbgopt_show(struct device_driver *drv, char *buf) in iunit_dbgopt_show() 145 static ssize_t iunit_dbgopt_store(struct device_driver *drv, const char *buf, in iunit_dbgopt_store() 169 static int iunit_drvfs_create_files(struct device_driver *drv) in iunit_drvfs_create_files() 179 static void iunit_drvfs_remove_files(struct device_driver *drv) in iunit_drvfs_remove_files() 189 struct device_driver *drv = isp->dev->driver; in atomisp_drvfs_init()
|
/kernel/linux/linux-5.10/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() 185 struct device_driver *drv = mdiodev->dev.driver; in mdio_shutdown()
|
/kernel/linux/linux-5.10/include/scsi/ |
D | scsi_driver.h | 14 struct device_driver gendrv; 26 extern int scsi_register_driver(struct device_driver *);
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 | moxtet.h | 63 struct device_driver driver; 67 to_moxtet_driver(struct device_driver *drv) in to_moxtet_driver()
|
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()
|
D | of_device.h | 24 const struct device_driver *drv) in of_driver_match_device() 70 const struct device_driver *drv) in of_driver_match_device()
|
D | nd.h | 26 struct device_driver drv; 35 struct device_driver *drv) in to_nd_device_driver()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/xen/xenbus/ |
D | xenbus_probe_frontend.c | 200 struct device_driver *drv = data; in is_device_connecting() 240 static int exists_essential_connecting_device(struct device_driver *drv) in exists_essential_connecting_device() 245 static int exists_non_essential_connecting_device(struct device_driver *drv) in exists_non_essential_connecting_device() 254 struct device_driver *drv = data; in print_device_status() 312 struct device_driver *drv = xendrv ? &xendrv->driver : NULL; in wait_for_devices()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | scsi_debug.c | 844 static struct device_driver sdebug_driverfs_driver = { 5857 static ssize_t delay_show(struct device_driver *ddp, char *buf) in delay_show() 5864 static ssize_t delay_store(struct device_driver *ddp, const char *buf, in delay_store() 5897 static ssize_t ndelay_show(struct device_driver *ddp, char *buf) in ndelay_show() 5903 static ssize_t ndelay_store(struct device_driver *ddp, const char *buf, in ndelay_store() 5938 static ssize_t opts_show(struct device_driver *ddp, char *buf) in opts_show() 5943 static ssize_t opts_store(struct device_driver *ddp, const char *buf, in opts_store() 5968 static ssize_t ptype_show(struct device_driver *ddp, char *buf) in ptype_show() 5972 static ssize_t ptype_store(struct device_driver *ddp, const char *buf, in ptype_store() 5991 static ssize_t dsense_show(struct device_driver *ddp, char *buf) in dsense_show() [all …]
|
/kernel/linux/linux-5.10/Documentation/translations/zh_CN/filesystems/ |
D | sysfs.txt | 353 ssize_t (*show)(struct device_driver *, char * buf); 354 ssize_t (*store)(struct device_driver *, const char * buf, 364 int driver_create_file(struct device_driver *, const struct driver_attribute *); 365 void driver_remove_file(struct device_driver *, const struct driver_attribute *);
|