Lines Matching refs:device

56 struct device;
65 void (*dev_release)(struct device *dev);
66 char * (*devnode)(struct device *dev, umode_t *mode);
70 int (*prepare)(struct device *dev);
71 void (*complete)(struct device *dev);
72 int (*suspend)(struct device *dev);
73 int (*suspend_late)(struct device *dev);
74 int (*resume)(struct device *dev);
75 int (*resume_early)(struct device *dev);
76 int (*freeze)(struct device *dev);
77 int (*freeze_late)(struct device *dev);
78 int (*thaw)(struct device *dev);
79 int (*thaw_early)(struct device *dev);
80 int (*poweroff)(struct device *dev);
81 int (*poweroff_late)(struct device *dev);
82 int (*restore)(struct device *dev);
83 int (*restore_early)(struct device *dev);
84 int (*suspend_noirq)(struct device *dev);
85 int (*runtime_suspend)(struct device *dev);
86 int (*runtime_resume)(struct device *dev);
87 int (*runtime_idle)(struct device *dev);
94 void (*shutdown) (struct device *);
95 void (*coredump) (struct device *);
102 struct device { struct
103 struct device *parent; argument
118 void (*release)(struct device *dev); argument
137 extern struct device linux_root_device; argument
155 ssize_t (*show)(struct device *,
157 ssize_t (*store)(struct device *,
271 void *lkpi_devres_alloc(void(*release)(struct device *, void *), size_t, gfp_t);
272 void lkpi_devres_add(struct device *, void *);
274 void *lkpi_devres_find(struct device *, void(*release)(struct device *, void *),
275 int (*match)(struct device *, void *, void *), void *);
276 int lkpi_devres_destroy(struct device *, void(*release)(struct device *, void *),
277 int (*match)(struct device *, void *, void *), void *);
285 void lkpi_devres_release_free_list(struct device *);
286 void lkpi_devres_unlink(struct device *, void *);
287 void lkpi_devm_kmalloc_release(struct device *, void *);
288 void lkpi_devm_kfree(struct device *, const void *);
292 dev_driver_string(const struct device *dev) in dev_driver_string()
307 dev_get_drvdata(const struct device *dev) in dev_get_drvdata()
314 dev_set_drvdata(struct device *dev, void *data) in dev_set_drvdata()
320 static inline struct device *
321 get_device(struct device *dev) in get_device()
331 dev_name(const struct device *dev) in dev_name()
338 dev_is_removable(struct device *dev) in dev_is_removable()
348 put_device(struct device *dev) in put_device()
381 static inline struct device *kobj_to_dev(struct kobject *kobj) in kobj_to_dev()
383 return container_of(kobj, struct device, kobj); in kobj_to_dev()
386 struct device *device_create(struct class *class, struct device *parent,
388 struct device *device_create_groups_vargs(struct class *class, struct device *parent,
398 device_initialize(struct device *dev) in device_initialize()
431 device_add(struct device *dev) in device_add()
446 device_create_release(struct device *dev) in device_create_release()
451 static inline struct device *
453 struct device *parent, dev_t devt, void *drvdata, in device_create_with_groups()
457 struct device *dev; in device_create_with_groups()
467 device_is_registered(struct device *dev) in device_is_registered()
474 device_register(struct device *dev) in device_register()
512 device_unregister(struct device *dev) in device_unregister()
530 device_del(struct device *dev) in device_del()
557 device_release_driver(struct device *dev) in device_release_driver()
577 device_reprobe(struct device *dev) in device_reprobe()
590 device_set_wakeup_enable(struct device *dev __unused, bool enable __unused) in device_set_wakeup_enable()
600 device_wakeup_enable(struct device *dev) in device_wakeup_enable()
608 device_iommu_mapped(struct device *dev __unused) in device_iommu_mapped()
633 device_create_file(struct device *dev, const struct device_attribute *attr) in device_create_file()
642 device_remove_file(struct device *dev, const struct device_attribute *attr) in device_remove_file()
668 int linux_dev_to_node(struct device *);
672 char *lkpi_devm_kasprintf(struct device *, gfp_t, const char *, ...);
678 devm_kmalloc(struct device *dev, size_t size, gfp_t gfp) in devm_kmalloc()
690 devm_kmemdup(struct device *dev, const void *src, size_t len, gfp_t gfp) in devm_kmemdup()
710 int lkpi_devm_add_action(struct device *dev, void (*action)(void *), void *data);
713 int lkpi_devm_add_action_or_reset(struct device *dev, void (*action)(void *), void *data);
717 int lkpi_devm_device_add_group(struct device *dev, const struct attribute_group *group);