Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/include/linux/
Dpm_runtime.h30 extern int __pm_runtime_idle(struct device *dev, int rpmflags);
31 extern int __pm_runtime_suspend(struct device *dev, int rpmflags);
32 extern int __pm_runtime_resume(struct device *dev, int rpmflags);
33 extern int pm_schedule_suspend(struct device *dev, unsigned int delay);
34 extern int __pm_runtime_set_status(struct device *dev, unsigned int status);
35 extern int pm_runtime_barrier(struct device *dev);
36 extern void pm_runtime_enable(struct device *dev);
37 extern void __pm_runtime_disable(struct device *dev, bool check_resume);
38 extern void pm_runtime_allow(struct device *dev);
39 extern void pm_runtime_forbid(struct device *dev);
[all …]
Dattribute_container.h15 struct device;
23 int (*match)(struct attribute_container *, struct device *);
42 void attribute_container_create_device(struct device *dev,
44 struct device *,
45 struct device *));
46 void attribute_container_add_device(struct device *dev,
48 struct device *,
49 struct device *));
50 void attribute_container_remove_device(struct device *dev,
52 struct device *,
[all …]
Dopp.h22 struct device;
34 int opp_get_opp_count(struct device *dev);
36 struct opp *opp_find_freq_exact(struct device *dev, unsigned long freq,
39 struct opp *opp_find_freq_floor(struct device *dev, unsigned long *freq);
41 struct opp *opp_find_freq_ceil(struct device *dev, unsigned long *freq);
43 int opp_add(struct device *dev, unsigned long freq, unsigned long u_volt);
45 int opp_enable(struct device *dev, unsigned long freq);
47 int opp_disable(struct device *dev, unsigned long freq);
49 struct srcu_notifier_head *opp_get_notifier(struct device *dev);
62 static inline int opp_get_opp_count(struct device *dev) in opp_get_opp_count()
[all …]
Ddevice.h28 struct device;
92 struct device *dev_root;
97 int (*match)(struct device *dev, struct device_driver *drv);
98 int (*uevent)(struct device *dev, struct kobj_uevent_env *env);
99 int (*probe)(struct device *dev);
100 int (*remove)(struct device *dev);
101 void (*shutdown)(struct device *dev);
103 int (*suspend)(struct device *dev, pm_message_t state);
104 int (*resume)(struct device *dev);
133 struct device *start,
[all …]
Dpm.h42 struct device;
265 int (*prepare)(struct device *dev);
266 void (*complete)(struct device *dev);
267 int (*suspend)(struct device *dev);
268 int (*resume)(struct device *dev);
269 int (*freeze)(struct device *dev);
270 int (*thaw)(struct device *dev);
271 int (*poweroff)(struct device *dev);
272 int (*restore)(struct device *dev);
273 int (*suspend_late)(struct device *dev);
[all …]
Dpm_clock.h22 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks()
28 extern void pm_clk_init(struct device *dev);
29 extern int pm_clk_create(struct device *dev);
30 extern void pm_clk_destroy(struct device *dev);
31 extern int pm_clk_add(struct device *dev, const char *con_id);
32 extern void pm_clk_remove(struct device *dev, const char *con_id);
33 extern int pm_clk_suspend(struct device *dev);
34 extern int pm_clk_resume(struct device *dev);
36 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks()
40 static inline void pm_clk_init(struct device *dev) in pm_clk_init()
[all …]
Ddma-debug.h25 struct device;
37 extern void debug_dma_map_page(struct device *dev, struct page *page,
42 extern void debug_dma_unmap_page(struct device *dev, dma_addr_t addr,
45 extern void debug_dma_map_sg(struct device *dev, struct scatterlist *sg,
48 extern void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist,
51 extern void debug_dma_alloc_coherent(struct device *dev, size_t size,
54 extern void debug_dma_free_coherent(struct device *dev, size_t size,
57 extern void debug_dma_sync_single_for_cpu(struct device *dev,
61 extern void debug_dma_sync_single_for_device(struct device *dev,
65 extern void debug_dma_sync_single_range_for_cpu(struct device *dev,
[all …]
Dpm_domain.h29 bool (*stop_ok)(struct device *dev);
33 int (*start)(struct device *dev);
34 int (*stop)(struct device *dev);
35 int (*save_state)(struct device *dev);
36 int (*restore_state)(struct device *dev);
37 int (*suspend)(struct device *dev);
38 int (*suspend_late)(struct device *dev);
39 int (*resume_early)(struct device *dev);
40 int (*resume)(struct device *dev);
41 int (*freeze)(struct device *dev);
[all …]
Draid_class.h16 int (*is_raid)(struct device *);
17 void (*get_resync)(struct device *);
18 void (*get_state)(struct device *);
56 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \
57 struct device *device = \
60 BUG_ON(!device); \
61 rd = dev_get_drvdata(device); \
65 raid_get_##attr(struct raid_template *r, struct device *dev) { \
66 struct device *device = \
69 BUG_ON(!device); \
[all …]
Dof_device.h11 struct device;
14 const struct of_device_id *matches, const struct device *dev);
15 extern void of_device_make_bus_id(struct device *dev);
22 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device()
35 extern ssize_t of_device_get_modalias(struct device *dev,
38 extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env);
39 extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env);
41 static inline void of_device_node_put(struct device *dev) in of_device_node_put()
48 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device()
54 static inline void of_device_uevent(struct device *dev, in of_device_uevent()
[all …]
Dswiotlb.h6 struct device;
36 extern void *swiotlb_tbl_map_single(struct device *hwdev, dma_addr_t tbl_dma_addr,
40 extern void swiotlb_tbl_unmap_single(struct device *hwdev, char *dma_addr,
43 extern void swiotlb_tbl_sync_single(struct device *hwdev, char *dma_addr,
52 *swiotlb_alloc_coherent(struct device *hwdev, size_t size,
56 swiotlb_free_coherent(struct device *hwdev, size_t size,
59 extern dma_addr_t swiotlb_map_page(struct device *dev, struct page *page,
63 extern void swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr,
68 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, int nents,
72 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents,
[all …]
Ddma-mapping.h12 void* (*alloc)(struct device *dev, size_t size,
15 void (*free)(struct device *dev, size_t size,
18 int (*mmap)(struct device *, struct vm_area_struct *,
21 dma_addr_t (*map_page)(struct device *dev, struct page *page,
25 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
28 int (*map_sg)(struct device *dev, struct scatterlist *sg,
31 void (*unmap_sg)(struct device *dev,
35 void (*sync_single_for_cpu)(struct device *dev,
38 void (*sync_single_for_device)(struct device *dev,
41 void (*sync_sg_for_cpu)(struct device *dev,
[all …]
Ddca.h38 struct device *cd;
49 int (*add_requester) (struct dca_provider *, struct device *);
50 int (*remove_requester) (struct dca_provider *, struct device *);
51 u8 (*get_tag) (struct dca_provider *, struct device *,
53 int (*dev_managed) (struct dca_provider *, struct device *);
58 int register_dca_provider(struct dca_provider *dca, struct device *dev);
59 void unregister_dca_provider(struct dca_provider *dca, struct device *dev);
68 int dca_add_requester(struct device *dev);
69 int dca_remove_requester(struct device *dev);
71 u8 dca3_get_tag(struct device *dev, int cpu);
[all …]
Dpm_qos.h38 struct device *dev;
89 s32 __dev_pm_qos_read_value(struct device *dev);
90 s32 dev_pm_qos_read_value(struct device *dev);
91 int dev_pm_qos_add_request(struct device *dev, struct dev_pm_qos_request *req,
95 int dev_pm_qos_add_notifier(struct device *dev,
97 int dev_pm_qos_remove_notifier(struct device *dev,
101 void dev_pm_qos_constraints_init(struct device *dev);
102 void dev_pm_qos_constraints_destroy(struct device *dev);
103 int dev_pm_qos_add_ancestor_request(struct device *dev,
106 static inline s32 __dev_pm_qos_read_value(struct device *dev) in __dev_pm_qos_read_value()
[all …]
Dtransport_class.h20 int (*setup)(struct transport_container *, struct device *,
21 struct device *);
22 int (*configure)(struct transport_container *, struct device *,
23 struct device *);
24 int (*remove)(struct transport_container *, struct device *,
25 struct device *);
65 void transport_remove_device(struct device *);
66 void transport_add_device(struct device *);
67 void transport_setup_device(struct device *);
68 void transport_configure_device(struct device *);
[all …]
Dpm_wakeup.h72 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup()
77 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup()
91 extern int device_wakeup_enable(struct device *dev);
92 extern int device_wakeup_disable(struct device *dev);
93 extern void device_set_wakeup_capable(struct device *dev, bool capable);
94 extern int device_init_wakeup(struct device *dev, bool val);
95 extern int device_set_wakeup_enable(struct device *dev, bool enable);
97 extern void pm_stay_awake(struct device *dev);
99 extern void pm_relax(struct device *dev);
101 extern void pm_wakeup_event(struct device *dev, unsigned int msec);
[all …]
Disa.h12 int (*match)(struct device *, unsigned int);
13 int (*probe)(struct device *, unsigned int);
14 int (*remove)(struct device *, unsigned int);
15 void (*shutdown)(struct device *, unsigned int);
16 int (*suspend)(struct device *, unsigned int, pm_message_t);
17 int (*resume)(struct device *, unsigned int);
20 struct device *devices;
Dio.h25 struct device;
45 void __iomem * devm_ioport_map(struct device *dev, unsigned long port,
47 void devm_ioport_unmap(struct device *dev, void __iomem *addr);
49 static inline void __iomem *devm_ioport_map(struct device *dev, in devm_ioport_map()
56 static inline void devm_ioport_unmap(struct device *dev, void __iomem *addr) in devm_ioport_unmap()
61 void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
63 void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
65 void devm_iounmap(struct device *dev, void __iomem *addr);
68 void devm_ioremap_release(struct device *dev, void *res);
Dahci_platform.h20 struct device;
24 int (*init)(struct device *dev, void __iomem *addr);
25 void (*exit)(struct device *dev);
26 int (*suspend)(struct device *dev);
27 int (*resume)(struct device *dev);
Ddevfreq.h79 int (*target)(struct device *dev, unsigned long *freq, u32 flags);
80 int (*get_dev_status)(struct device *dev,
82 void (*exit)(struct device *dev);
152 struct device dev;
170 extern struct devfreq *devfreq_add_device(struct device *dev,
177 extern struct opp *devfreq_recommended_opp(struct device *dev,
179 extern int devfreq_register_opp_notifier(struct device *dev,
181 extern int devfreq_unregister_opp_notifier(struct device *dev,
215 static struct devfreq *devfreq_add_device(struct device *dev, in devfreq_add_device()
228 static struct opp *devfreq_recommended_opp(struct device *dev, in devfreq_recommended_opp()
[all …]
Dfirmware.h18 struct device;
40 struct device *device);
43 const char *name, struct device *device, gfp_t gfp, void *context,
50 struct device *device) in request_firmware() argument
56 const char *name, struct device *device, gfp_t gfp, void *context, in request_firmware_nowait() argument
Dpwm_backlight.h15 int (*init)(struct device *dev);
16 int (*notify)(struct device *dev, int brightness);
17 void (*notify_after)(struct device *dev, int brightness);
18 void (*exit)(struct device *dev);
19 int (*check_fb)(struct device *dev, struct fb_info *info);
/include/asm-generic/
Ddma-mapping-broken.h12 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
16 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
23 dma_map_single(struct device *dev, void *ptr, size_t size,
27 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
31 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
35 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries,
39 dma_map_page(struct device *dev, struct page *page, unsigned long offset,
43 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size,
47 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size,
51 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle,
[all …]
/include/xen/
Dswiotlb-xen.h9 *xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
14 xen_swiotlb_free_coherent(struct device *hwdev, size_t size,
18 extern dma_addr_t xen_swiotlb_map_page(struct device *dev, struct page *page,
23 extern void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr,
36 xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl,
41 xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl,
46 xen_swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr,
50 xen_swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg,
54 xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr,
58 xen_swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg,
[all …]
/include/linux/spi/
Dmmc_spi.h7 struct device;
19 int (*init)(struct device *,
22 void (*exit)(struct device *, void *);
25 int (*get_ro)(struct device *);
31 int (*get_cd)(struct device *);
42 void (*setpower)(struct device *, unsigned int maskval);

12345678910>>...14