Home
last modified time | relevance | path

Searched refs:device_driver (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/linux/include/linux/device/
A Ddriver.h96 struct device_driver { struct
125 extern int __must_check driver_register(struct device_driver *drv); argument
126 extern void driver_unregister(struct device_driver *drv);
128 extern struct device_driver *driver_find(const char *name,
137 ssize_t (*show)(struct device_driver *driver, char *buf);
138 ssize_t (*store)(struct device_driver *driver, const char *buf,
151 extern void driver_remove_file(struct device_driver *driver,
159 struct device *driver_find_device(struct device_driver *drv,
182 driver_find_device_by_of_node(struct device_driver *drv, in driver_find_device_by_of_node()
195 driver_find_device_by_fwnode(struct device_driver *drv, in driver_find_device_by_fwnode()
[all …]
A Dbus.h21 struct device_driver;
90 int (*match)(struct device *dev, struct device_driver *drv);
252 int bus_for_each_drv(struct bus_type *bus, struct device_driver *start,
253 void *data, int (*fn)(struct device_driver *, void *));
/linux/drivers/base/
A Dbase.h63 struct device_driver *driver;
95 struct device_driver *async_driver;
134 extern int bus_add_driver(struct device_driver *drv);
135 extern void bus_remove_driver(struct device_driver *drv);
137 struct device_driver *drv,
140 extern void driver_detach(struct device_driver *drv);
144 static inline int driver_match_device(struct device_driver *drv, in driver_match_device()
151 extern int driver_add_groups(struct device_driver *drv,
153 extern void driver_remove_groups(struct device_driver *drv,
169 extern void module_remove_driver(struct device_driver *drv);
[all …]
A Ddriver.c42 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()
A Ddd.c452 struct device_driver *drv = dev->driver; in driver_sysfs_remove()
541 static int really_probe(struct device *dev, struct device_driver *drv) in really_probe()
813 bool driver_allows_async_probing(struct device_driver *drv) in driver_allows_async_probing()
866 static int __device_attach_driver(struct device_driver *drv, void *_data) in __device_attach_driver()
1059 int device_driver_attach(struct device_driver *drv, struct device *dev) in device_driver_attach()
1079 struct device_driver *drv; in __driver_attach_async_helper()
1094 struct device_driver *drv = data; in __driver_attach()
1155 int driver_attach(struct device_driver *drv) in driver_attach()
1167 struct device_driver *drv; in __device_release_driver()
1230 struct device_driver *drv, in device_release_driver_internal()
[all …]
A Dmodule.c12 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()
A Dbus.c182 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()
383 static struct device_driver *next_driver(struct klist_iter *i) in next_driver()
414 int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, in bus_for_each_drv()
415 void *data, int (*fn)(struct device_driver *, void *)) in bus_for_each_drv() argument
418 struct device_driver *drv; in bus_for_each_drv()
533 static int __must_check add_bind_files(struct device_driver *drv) in add_bind_files()
546 static void remove_bind_files(struct device_driver *drv) in remove_bind_files()
576 static ssize_t uevent_store(struct device_driver *drv, const char *buf, in uevent_store()
590 int bus_add_driver(struct device_driver *drv) in bus_add_driver()
[all …]
/linux/drivers/staging/media/atomisp/pci/
A Datomisp_drvfs.c39 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()
/linux/drivers/dma/idxd/
A Dcompat.c10 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()
A Dbus.c13 struct device_driver *drv = &idxd_drv->drv; in __idxd_driver_register()
36 struct device_driver *drv) in idxd_config_bus_match()
/linux/Documentation/driver-api/driver-model/
A Ddriver.rst5 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/drivers/net/phy/
A Dmdio_device.c36 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()
/linux/include/linux/
A Dmdio.h40 int (*bus_match)(struct device *dev, struct device_driver *drv);
60 struct device_driver driver;
66 to_mdio_common_driver(const struct device_driver *driver) in to_mdio_common_driver()
89 to_mdio_driver(const struct device_driver *driver) in to_mdio_driver()
113 int mdio_device_bus_match(struct device *dev, struct device_driver *drv);
A Dsunxi-rsb.h60 struct device_driver driver;
65 static inline struct sunxi_rsb_driver *to_sunxi_rsb_driver(struct device_driver *d) in to_sunxi_rsb_driver()
A Dauxiliary_bus.h27 struct device_driver driver;
36 static inline struct auxiliary_driver *to_auxiliary_drv(struct device_driver *drv) in to_auxiliary_drv()
A Dsiox.h53 struct device_driver driver;
56 static inline struct siox_driver *to_siox_driver(struct device_driver *driver) in to_siox_driver()
A Dmoxtet.h63 struct device_driver driver;
67 to_moxtet_driver(struct device_driver *drv) in to_moxtet_driver()
A Dof_device.h24 const struct device_driver *drv) in of_driver_match_device()
62 const struct device_driver *drv) in of_driver_match_device()
/linux/include/scsi/
A Dscsi_driver.h14 struct device_driver gendrv;
26 extern int scsi_register_driver(struct device_driver *);
/linux/include/drm/
A Ddrm_dp_aux_bus.h34 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/drivers/xen/xenbus/
A Dxenbus_probe_frontend.c200 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/drivers/usb/serial/
A Dbus.c17 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/drivers/scsi/
A Dscsi_debug.c848 static struct device_driver sdebug_driverfs_driver = {
5885 static ssize_t delay_show(struct device_driver *ddp, char *buf) in delay_show()
5966 static ssize_t opts_show(struct device_driver *ddp, char *buf) in opts_show()
5996 static ssize_t ptype_show(struct device_driver *ddp, char *buf) in ptype_show()
6451 static ssize_t dix_show(struct device_driver *ddp, char *buf) in dix_show()
6457 static ssize_t dif_show(struct device_driver *ddp, char *buf) in dif_show()
6463 static ssize_t guard_show(struct device_driver *ddp, char *buf) in guard_show()
6469 static ssize_t ato_show(struct device_driver *ddp, char *buf) in ato_show()
6475 static ssize_t map_show(struct device_driver *ddp, char *buf) in map_show()
6624 static ssize_t zbc_show(struct device_driver *ddp, char *buf) in zbc_show()
[all …]
/linux/include/sound/ac97/
A Dcodec.h64 struct device_driver driver;
76 static inline struct ac97_codec_driver *to_ac97_driver(struct device_driver *d) in to_ac97_driver()
/linux/drivers/staging/fieldbus/anybuss/
A Danybuss-client.h33 struct device_driver driver;
48 to_anybuss_client_driver(struct device_driver *drv) in to_anybuss_client_driver()

Completed in 46 milliseconds

12345678910>>...14