Home
last modified time | relevance | path

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

12345678910

/include/linux/
Dattribute_container.h22 int (*match)(struct attribute_container *, struct device *);
41 void attribute_container_create_device(struct device *dev,
43 struct device *,
44 struct device *));
45 void attribute_container_add_device(struct device *dev,
47 struct device *,
48 struct device *));
49 void attribute_container_remove_device(struct device *dev,
51 struct device *,
52 struct device *));
[all …]
Ddevice.h30 struct device;
57 int (*match)(struct device *dev, struct device_driver *drv);
58 int (*uevent)(struct device *dev, struct kobj_uevent_env *env);
59 int (*probe)(struct device *dev);
60 int (*remove)(struct device *dev);
61 void (*shutdown)(struct device *dev);
63 int (*suspend)(struct device *dev, pm_message_t state);
64 int (*suspend_late)(struct device *dev, pm_message_t state);
65 int (*resume_early)(struct device *dev);
66 int (*resume)(struct device *dev);
[all …]
Draid_class.h16 int (*is_raid)(struct device *);
17 void (*get_resync)(struct device *);
18 void (*get_state)(struct device *);
55 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \
56 struct device *device = \
59 BUG_ON(!device); \
60 rd = dev_get_drvdata(device); \
64 raid_get_##attr(struct raid_template *r, struct device *dev) { \
65 struct device *device = \
68 BUG_ON(!device); \
[all …]
Dswiotlb.h6 struct device;
30 extern dma_addr_t swiotlb_phys_to_bus(struct device *hwdev,
37 *swiotlb_alloc_coherent(struct device *hwdev, size_t size,
41 swiotlb_free_coherent(struct device *hwdev, size_t size,
45 swiotlb_map_single(struct device *hwdev, void *ptr, size_t size, int dir);
48 swiotlb_unmap_single(struct device *hwdev, dma_addr_t dev_addr,
52 swiotlb_map_single_attrs(struct device *hwdev, void *ptr, size_t size,
56 swiotlb_unmap_single_attrs(struct device *hwdev, dma_addr_t dev_addr,
60 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, int nents,
64 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents,
[all …]
Dtransport_class.h19 int (*setup)(struct transport_container *, struct device *,
20 struct device *);
21 int (*configure)(struct transport_container *, struct device *,
22 struct device *);
23 int (*remove)(struct transport_container *, struct device *,
24 struct device *);
64 void transport_remove_device(struct device *);
65 void transport_add_device(struct device *);
66 void transport_setup_device(struct device *);
67 void transport_configure_device(struct device *);
[all …]
Ddca.h35 struct device *cd;
40 int (*add_requester) (struct dca_provider *, struct device *);
41 int (*remove_requester) (struct dca_provider *, struct device *);
42 u8 (*get_tag) (struct dca_provider *, struct device *,
44 int (*dev_managed) (struct dca_provider *, struct device *);
49 int register_dca_provider(struct dca_provider *dca, struct device *dev);
59 int dca_add_requester(struct device *dev);
60 int dca_remove_requester(struct device *dev);
62 u8 dca3_get_tag(struct device *dev, int cpu);
67 int dca_sysfs_add_provider(struct dca_provider *dca, struct device *dev);
[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);
Dpm_wakeup.h33 static inline void device_init_wakeup(struct device *dev, int val) in device_init_wakeup()
38 static inline void device_set_wakeup_capable(struct device *dev, int val) in device_set_wakeup_capable()
43 static inline int device_can_wakeup(struct device *dev) in device_can_wakeup()
48 static inline void device_set_wakeup_enable(struct device *dev, int val) in device_set_wakeup_enable()
53 static inline int device_may_wakeup(struct device *dev) in device_may_wakeup()
61 static inline void device_init_wakeup(struct device *dev, int val) in device_init_wakeup()
66 static inline void device_set_wakeup_capable(struct device *dev, int val) { } in device_set_wakeup_capable()
68 static inline int device_can_wakeup(struct device *dev) in device_can_wakeup()
Dfirmware.h17 struct device;
39 struct device *device);
42 const char *name, struct device *device, void *context,
49 struct device *device) in request_firmware() argument
55 const char *name, struct device *device, void *context, in request_firmware_nowait() argument
Ddma-mapping.h46 static inline int is_device_dma_capable(struct device *dev) in is_device_dma_capable()
66 static inline u64 dma_get_mask(struct device *dev) in dma_get_mask()
73 extern u64 dma_get_required_mask(struct device *dev);
75 static inline unsigned int dma_get_max_seg_size(struct device *dev) in dma_get_max_seg_size()
80 static inline unsigned int dma_set_max_seg_size(struct device *dev, in dma_set_max_seg_size()
90 static inline unsigned long dma_get_seg_boundary(struct device *dev) in dma_get_seg_boundary()
96 static inline int dma_set_seg_boundary(struct device *dev, unsigned long mask) in dma_set_seg_boundary()
113 dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, in dma_declare_coherent_memory()
120 dma_release_declared_memory(struct device *dev) in dma_release_declared_memory()
125 dma_mark_declared_memory_occupied(struct device *dev, in dma_mark_declared_memory_occupied()
[all …]
Dpm.h37 struct device;
171 int (*prepare)(struct device *dev);
172 void (*complete)(struct device *dev);
173 int (*suspend)(struct device *dev);
174 int (*resume)(struct device *dev);
175 int (*freeze)(struct device *dev);
176 int (*thaw)(struct device *dev);
177 int (*poweroff)(struct device *dev);
178 int (*restore)(struct device *dev);
179 int (*suspend_noirq)(struct device *dev);
[all …]
Drtc.h136 int (*open)(struct device *);
137 void (*release)(struct device *);
138 int (*ioctl)(struct device *, unsigned int, unsigned long);
139 int (*read_time)(struct device *, struct rtc_time *);
140 int (*set_time)(struct device *, struct rtc_time *);
141 int (*read_alarm)(struct device *, struct rtc_wkalrm *);
142 int (*set_alarm)(struct device *, struct rtc_wkalrm *);
143 int (*proc)(struct device *, struct seq_file *);
144 int (*set_mmss)(struct device *, unsigned long secs);
145 int (*irq_set_state)(struct device *, int enabled);
[all …]
Denclosure.h85 struct device cdev;
86 struct device *dev;
98 struct device edev;
105 to_enclosure_device(struct device *dev) in to_enclosure_device()
111 to_enclosure_component(struct device *dev) in to_enclosure_component()
117 enclosure_register(struct device *, const char *, int,
124 struct device *dev);
126 struct enclosure_device *enclosure_find(struct device *dev);
Dbsg.h58 struct device *class_dev;
59 struct device *parent;
63 void (*release)(struct device *);
67 struct device *parent, const char *name,
68 void (*release)(struct device *));
72 struct device *parent, const char *name, in bsg_register_queue()
73 void (*release)(struct device *)) in bsg_register_queue() argument
Dsm501.h21 extern int sm501_unit_power(struct device *dev,
24 extern unsigned long sm501_set_clock(struct device *dev,
27 extern unsigned long sm501_find_clock(struct device *dev,
35 extern int sm501_misc_control(struct device *dev,
44 extern unsigned long sm501_modify_reg(struct device *dev,
169 int (*get_power)(struct device *dev);
170 int (*set_power)(struct device *dev, unsigned int on);
/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 …]
Ddma-mapping.h20 dma_supported(struct device *dev, u64 mask) in dma_supported()
28 dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask()
36 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_coherent()
45 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, in dma_free_coherent()
54 dma_map_single(struct device *dev, void *cpu_addr, size_t size, in dma_map_single()
63 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
72 dma_map_page(struct device *dev, struct page *page, in dma_map_page()
82 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
91 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, in dma_map_sg()
100 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, in dma_unmap_sg()
[all …]
Ddma-coherent.h9 int dma_alloc_from_coherent(struct device *dev, ssize_t size,
11 int dma_release_from_coherent(struct device *dev, int order, void *vaddr);
18 dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr,
22 dma_release_declared_memory(struct device *dev);
25 dma_mark_declared_memory_occupied(struct device *dev,
/include/asm-frv/
Ddma-mapping.h16 void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp);
17 void dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle);
26 extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size,
38 void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
60 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
69 void dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, in dma_unmap_sg()
76 dma_addr_t dma_map_page(struct device *dev, struct page *page, unsigned long offset,
80 void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
88 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu()
94 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_device()
[all …]
/include/asm-mn10300/
Ddma-mapping.h20 extern void *dma_alloc_coherent(struct device *dev, size_t size,
23 extern void dma_free_coherent(struct device *dev, size_t size,
37 dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, in dma_map_single()
54 void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
75 int dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents, in dma_map_sg()
100 void dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, in dma_unmap_sg()
111 dma_addr_t dma_map_page(struct device *dev, struct page *page, in dma_map_page()
120 void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
136 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu()
142 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device()
[all …]
/include/scsi/
Dfc_transport_fcoe.h23 unsigned short device; member
26 int (*create)(struct net_device *device);
27 int (*destroy)(struct net_device *device);
28 bool (*match)(struct net_device *device);
40 #define MODULE_ALIAS_FCOE_PCI(vendor, device) \ argument
41 MODULE_ALIAS("fcoe-pci-" __stringify(vendor) "-" __stringify(device))
/include/linux/spi/
Dmmc_spi.h19 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);
/include/sound/
Dmemalloc.h27 struct device;
34 struct device *dev; /* generic device */
40 #define snd_dma_continuous_data(x) ((struct device *)(unsigned long)(x))
66 void *snd_malloc_sgbuf_pages(struct device *device,
82 struct device *dev;
112 int snd_dma_alloc_pages(int type, struct device *dev, size_t size,
114 int snd_dma_alloc_pages_fallback(int type, struct device *dev, size_t size,
120 #define snd_dma_pci_buf_id(pci) (((unsigned int)(pci)->vendor << 16) | (pci)->device)
/include/acpi/
Dacpi_bus.h89 typedef int (*acpi_op_add) (struct acpi_device * device);
90 typedef int (*acpi_op_remove) (struct acpi_device * device, int type);
91 typedef int (*acpi_op_lock) (struct acpi_device * device, int type);
92 typedef int (*acpi_op_start) (struct acpi_device * device);
93 typedef int (*acpi_op_stop) (struct acpi_device * device, int type);
94 typedef int (*acpi_op_suspend) (struct acpi_device * device,
96 typedef int (*acpi_op_resume) (struct acpi_device * device);
97 typedef int (*acpi_op_scan) (struct acpi_device * device);
98 typedef int (*acpi_op_bind) (struct acpi_device * device);
99 typedef int (*acpi_op_unbind) (struct acpi_device * device);
[all …]

12345678910