Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.15/include/linux/device/
H A Ddriver.h96 struct device_driver { struct
125 int __must_check driver_register(struct device_driver *drv); argument
126 void driver_unregister(struct device_driver *drv);
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(const struct device_driver *driver,
151 void driver_remove_file(const struct device_driver *driver,
158 struct device *driver_find_device(const struct device_driver *drv,
181 driver_find_device_by_of_node(const struct device_driver *drv, in driver_find_device_by_of_node()
194 driver_find_device_by_fwnode(struct device_driver *drv, in driver_find_device_by_fwnode()
[all …]
H A Dbus.h21 struct device_driver;
85 int (*match)(struct device *dev, const struct device_driver *drv);
237 int bus_for_each_drv(const struct bus_type *bus, struct device_driver *start,
238 void *data, int (*fn)(struct device_driver *, void *));
/linux-6.15/drivers/base/
H A Dbase.h84 struct device_driver *driver;
116 const struct device_driver *async_driver;
158 int bus_add_driver(struct device_driver *drv);
159 void bus_remove_driver(struct device_driver *drv);
163 void driver_detach(const struct device_driver *drv);
166 static inline int driver_match_device(const struct device_driver *drv, in driver_match_device()
197 WRITE_ONCE(dev->driver, (struct device_driver *)drv); in device_set_driver()
213 int module_add_driver(struct module *mod, const struct device_driver *drv);
214 void module_remove_driver(const struct device_driver *drv);
217 struct device_driver *drv) in module_add_driver()
[all …]
H A Ddriver.c117 int driver_for_each_device(struct device_driver *drv, struct device *start, in driver_for_each_device()
151 struct device *driver_find_device(const struct device_driver *drv, in driver_find_device()
179 int driver_create_file(const struct device_driver *drv, in driver_create_file()
197 void driver_remove_file(const struct device_driver *drv, in driver_remove_file()
205 int driver_add_groups(const struct device_driver *drv, in driver_add_groups()
211 void driver_remove_groups(const struct device_driver *drv, in driver_remove_groups()
225 int driver_register(struct device_driver *drv) in driver_register()
228 struct device_driver *other; in driver_register()
270 void driver_unregister(struct device_driver *drv) in driver_unregister()
H A Ddd.c470 struct device_driver *drv = dev->driver; in driver_sysfs_remove()
603 static int really_probe(struct device *dev, const struct device_driver *drv) in really_probe()
867 static bool driver_allows_async_probing(const struct device_driver *drv) in driver_allows_async_probing()
920 static int __device_attach_driver(struct device_driver *drv, void *_data) in __device_attach_driver()
1121 int device_driver_attach(const struct device_driver *drv, struct device *dev) in device_driver_attach()
1141 const struct device_driver *drv; in __driver_attach_async_helper()
1157 const struct device_driver *drv = data; in __driver_attach()
1230 int driver_attach(const struct device_driver *drv) in driver_attach()
1243 struct device_driver *drv; in __device_release_driver()
1289 const struct device_driver *drv, in device_release_driver_internal()
[all …]
H A Dmodule.c12 static char *make_driver_name(const struct device_driver *drv) in make_driver_name()
33 int module_add_driver(struct module *mod, const struct device_driver *drv) in module_add_driver()
93 void module_remove_driver(const struct device_driver *drv) in module_remove_driver()
H A Dbus.c235 static ssize_t unbind_store(struct device_driver *drv, const char *buf, in unbind_store()
258 static ssize_t bind_store(struct device_driver *drv, const char *buf, in bind_store()
417 static struct device_driver *next_driver(struct klist_iter *i) in next_driver()
448 int bus_for_each_drv(const struct bus_type *bus, struct device_driver *start, in bus_for_each_drv()
449 void *data, int (*fn)(struct device_driver *, void *)) in bus_for_each_drv() argument
453 struct device_driver *drv; in bus_for_each_drv()
590 static int __must_check add_bind_files(struct device_driver *drv) in add_bind_files()
603 static void remove_bind_files(struct device_driver *drv) in remove_bind_files()
633 static ssize_t uevent_store(struct device_driver *drv, const char *buf, in uevent_store()
647 int bus_add_driver(struct device_driver *drv) in bus_add_driver()
[all …]
H A Dplatform.c1125 const struct device_driver *drv = dev->driver; in platform_pm_suspend()
1143 const struct device_driver *drv = dev->driver; in platform_pm_resume()
1165 const struct device_driver *drv = dev->driver; in platform_pm_freeze()
1183 const struct device_driver *drv = dev->driver; in platform_pm_thaw()
1201 const struct device_driver *drv = dev->driver; in platform_pm_poweroff()
1219 const struct device_driver *drv = dev->driver; in platform_pm_restore()
1335 static int platform_match(struct device *dev, const struct device_driver *drv) in platform_match()
1443 struct device_driver *drv = READ_ONCE(dev->driver); in platform_dma_configure()
1494 return platform_match(dev, (struct device_driver *)drv); in __platform_match()
1504 const struct device_driver *drv) in platform_find_device_by_driver()
/linux-6.15/lib/kunit/
H A Ddevice.c23 KUNIT_DEFINE_ACTION_WRAPPER(driver_unregister_wrapper, driver_unregister, struct device_driver *);
34 const struct device_driver *driver;
82 struct device_driver *kunit_driver_create(struct kunit *test, const char *name) in kunit_driver_create()
84 struct device_driver *driver; in kunit_driver_create()
110 const struct device_driver *drv) in kunit_device_register_internal()
151 const struct device_driver *drv) in kunit_device_register_with_driver()
168 struct device_driver *drv; in kunit_device_register()
192 const struct device_driver *driver = to_kunit_device(dev)->driver; in kunit_device_unregister()
/linux-6.15/include/kunit/
H A Ddevice.h19 struct device_driver;
31 struct device_driver *kunit_driver_create(struct kunit *test, const char *name);
65 const struct device_driver *drv);
/linux-6.15/drivers/tty/serial/
H A Dserial_base.h14 struct device_driver;
37 int serial_base_driver_register(struct device_driver *driver);
38 void serial_base_driver_unregister(struct device_driver *driver);
H A Dserial_base_bus.c32 static int serial_base_match(struct device *dev, const struct device_driver *drv) in serial_base_match()
50 int serial_base_driver_register(struct device_driver *driver) in serial_base_driver_register()
57 void serial_base_driver_unregister(struct device_driver *driver) in serial_base_driver_unregister()
/linux-6.15/drivers/dma/idxd/
H A Dcompat.c16 static ssize_t unbind_store(struct device_driver *drv, const char *buf, size_t count) in unbind_store()
32 static ssize_t bind_store(struct device_driver *drv, const char *buf, size_t count) in bind_store()
36 struct device_driver *alt_drv = NULL; in bind_store()
H A Dbus.c13 struct device_driver *drv = &idxd_drv->drv; in __idxd_driver_register()
36 const struct device_driver *drv) in idxd_config_bus_match()
/linux-6.15/drivers/net/phy/
H A Dmdio_device.c38 int mdio_device_bus_match(struct device *dev, const struct device_driver *drv) in mdio_device_bus_match()
157 struct device_driver *drv = mdiodev->dev.driver; in mdio_probe()
178 struct device_driver *drv = mdiodev->dev.driver; in mdio_remove()
193 struct device_driver *drv = mdiodev->dev.driver; in mdio_shutdown()
/linux-6.15/Documentation/driver-api/driver-model/
H 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-6.15/include/scsi/
H A Dscsi_driver.h13 struct device_driver gendrv;
28 int __scsi_register_driver(struct device_driver *, struct module *);
/linux-6.15/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_bus.h27 struct device_driver driver;
35 static inline struct vchiq_driver *to_vchiq_driver(struct device_driver *d) in to_vchiq_driver()
/linux-6.15/include/linux/
H 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()
H A Dsiox.h53 struct device_driver driver;
56 static inline struct siox_driver *to_siox_driver(struct device_driver *driver) in to_siox_driver()
H A Dof_device.h21 const struct device_driver *drv) in of_driver_match_device()
46 const struct device_driver *drv) in of_driver_match_device()
H A Dauxiliary_bus.h196 struct device_driver driver;
215 static inline const struct auxiliary_driver *to_auxiliary_drv(const struct device_driver *drv) in to_auxiliary_drv()
/linux-6.15/include/drm/display/
H 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-6.15/drivers/usb/serial/
H A Dbus.c17 const 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.15/drivers/xen/xenbus/
H 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()

12345678910>>...14