Lines Matching refs:device_driver
27 #define to_driver(obj) container_of(obj, struct device_driver, kobj)
37 struct device_driver * drv = to_driver(kobj);
50 struct device_driver * drv = to_driver(kobj);
160 static ssize_t driver_unbind(struct device_driver *drv,
187 static ssize_t driver_bind(struct device_driver *drv,
323 static struct device_driver * next_driver(struct klist_iter * i)
326 return n ? container_of(n, struct device_driver, knode_bus) : NULL;
349 int bus_for_each_drv(struct bus_type * bus, struct device_driver * start,
350 void * data, int (*fn)(struct device_driver *, void *))
353 struct device_driver * drv;
504 static int driver_add_attrs(struct bus_type * bus, struct device_driver * drv)
525 static void driver_remove_attrs(struct bus_type * bus, struct device_driver * drv)
540 static int __must_check add_bind_files(struct device_driver *drv)
553 static void remove_bind_files(struct device_driver *drv)
589 static inline int add_bind_files(struct device_driver *drv) { return 0; }
590 static inline void remove_bind_files(struct device_driver *drv) {}
600 int bus_add_driver(struct device_driver *drv)
654 void bus_remove_driver(struct device_driver * drv)