Home
last modified time | relevance | path

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

12345678910>>...56

/arch/x86/platform/olpc/
Dolpc-xo15-sci.c138 static int xo15_sci_add(struct acpi_device *device) in xo15_sci_add() argument
144 if (!device) in xo15_sci_add()
147 strcpy(acpi_device_name(device), XO15_SCI_DEVICE_NAME); in xo15_sci_add()
148 strcpy(acpi_device_class(device), XO15_SCI_CLASS); in xo15_sci_add()
151 status = acpi_evaluate_integer(device->handle, "_GPE", NULL, &tmp); in xo15_sci_add()
158 xo15_sci_gpe_handler, device); in xo15_sci_add()
162 dev_info(&device->dev, "Initialized, GPE = 0x%lx\n", xo15_sci_gpe); in xo15_sci_add()
164 r = sysfs_create_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); in xo15_sci_add()
175 if (device->wakeup.flags.valid) in xo15_sci_add()
176 device_init_wakeup(&device->dev, true); in xo15_sci_add()
[all …]
/arch/x86/video/
Dfbdev.c29 struct device *device = info->device; in fb_is_primary_device() local
32 if (!device || !dev_is_pci(device)) in fb_is_primary_device()
35 pci_dev = to_pci_dev(device); in fb_is_primary_device()
/arch/x86/kernel/
Dprobe_roms.c82 static bool match_id(struct pci_dev *pdev, unsigned short vendor, unsigned short device) in match_id() argument
87 if (pdev->vendor == vendor && pdev->device == device) in match_id()
91 if (id->vendor == vendor && id->device == device) in match_id()
100 unsigned short device; in probe_list() local
103 if (get_kernel_nofault(device, rom_list) != 0) in probe_list()
104 device = 0; in probe_list()
106 if (device && match_id(pdev, vendor, device)) in probe_list()
110 } while (device); in probe_list()
112 return !!device; in probe_list()
122 unsigned short offset, vendor, device, list, rev; in find_oprom() local
[all …]
/arch/mips/cavium-octeon/
Ddma-octeon.c31 dma_addr_t (*phys_to_dma)(struct device *dev, phys_addr_t paddr);
32 phys_addr_t (*dma_to_phys)(struct device *dev, dma_addr_t daddr);
51 static dma_addr_t octeon_gen1_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_gen1_phys_to_dma()
58 static phys_addr_t octeon_gen1_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen1_dma_to_phys()
73 static dma_addr_t octeon_gen2_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_gen2_phys_to_dma()
78 static phys_addr_t octeon_gen2_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen2_dma_to_phys()
88 static dma_addr_t octeon_big_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_big_phys_to_dma()
100 static phys_addr_t octeon_big_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_big_dma_to_phys()
115 static dma_addr_t octeon_small_phys_to_dma(struct device *dev, in octeon_small_phys_to_dma()
130 static phys_addr_t octeon_small_dma_to_phys(struct device *dev, in octeon_small_dma_to_phys()
[all …]
/arch/powerpc/platforms/pseries/
Dibmebus.c54 static struct device ibmebus_bus_device = { /* fake "parent" device */
67 static void *ibmebus_alloc_coherent(struct device *dev, in ibmebus_alloc_coherent()
81 static void ibmebus_free_coherent(struct device *dev, in ibmebus_free_coherent()
89 static dma_addr_t ibmebus_map_page(struct device *dev, in ibmebus_map_page()
99 static void ibmebus_unmap_page(struct device *dev, in ibmebus_unmap_page()
108 static int ibmebus_map_sg(struct device *dev, in ibmebus_map_sg()
124 static void ibmebus_unmap_sg(struct device *dev, in ibmebus_unmap_sg()
132 static int ibmebus_dma_supported(struct device *dev, u64 mask) in ibmebus_dma_supported()
137 static u64 ibmebus_dma_get_required_mask(struct device *dev) in ibmebus_dma_get_required_mask()
153 static int ibmebus_match_path(struct device *dev, const void *data) in ibmebus_match_path()
[all …]
Dsuspend.c17 static struct device suspend_dev;
74 static ssize_t store_hibernate(struct device *dev, in store_hibernate()
119 static ssize_t show_hibernate(struct device *dev, in show_hibernate()
144 static int pseries_suspend_sysfs_register(struct device *dev) in pseries_suspend_sysfs_register()
146 struct device *dev_root; in pseries_suspend_sysfs_register()
/arch/powerpc/platforms/cell/
Dcbe_thermal.c66 static struct cbe_pmd_regs __iomem *get_pmd_regs(struct device *dev) in get_pmd_regs()
76 static u8 spu_read_register_value(struct device *dev, union spe_reg __iomem *reg) in spu_read_register_value()
87 static ssize_t spu_show_temp(struct device *dev, struct device_attribute *attr, in spu_show_temp()
137 static ssize_t spu_show_throttle_end(struct device *dev, in spu_show_throttle_end()
143 static ssize_t spu_show_throttle_begin(struct device *dev, in spu_show_throttle_begin()
149 static ssize_t spu_show_throttle_full_stop(struct device *dev, in spu_show_throttle_full_stop()
155 static ssize_t spu_store_throttle_end(struct device *dev, in spu_store_throttle_end()
161 static ssize_t spu_store_throttle_begin(struct device *dev, in spu_store_throttle_begin()
167 static ssize_t spu_store_throttle_full_stop(struct device *dev, in spu_store_throttle_full_stop()
173 static ssize_t ppe_show_temp(struct device *dev, char *buf, int pos) in ppe_show_temp()
[all …]
/arch/powerpc/kernel/
Ddma-iommu.c17 bool arch_dma_map_page_direct(struct device *dev, phys_addr_t addr) in arch_dma_map_page_direct()
27 bool arch_dma_unmap_page_direct(struct device *dev, dma_addr_t dma_handle) in arch_dma_unmap_page_direct()
35 bool arch_dma_map_sg_direct(struct device *dev, struct scatterlist *sg, in arch_dma_map_sg_direct()
52 bool arch_dma_unmap_sg_direct(struct device *dev, struct scatterlist *sg, in arch_dma_unmap_sg_direct()
78 static void *dma_iommu_alloc_coherent(struct device *dev, size_t size, in dma_iommu_alloc_coherent()
87 static void dma_iommu_free_coherent(struct device *dev, size_t size, in dma_iommu_free_coherent()
99 static dma_addr_t dma_iommu_map_page(struct device *dev, struct page *page, in dma_iommu_map_page()
109 static void dma_iommu_unmap_page(struct device *dev, dma_addr_t dma_handle, in dma_iommu_unmap_page()
118 static int dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, in dma_iommu_map_sg()
126 static void dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, in dma_iommu_unmap_sg()
[all …]
/arch/arm/boot/dts/samsung/
Dexynos5422-odroidxu3-common.dtsi3 * Hardkernel Odroid XU3/XU3-Lite/XU4 boards common device tree source
101 cooling-device = <&fan0 0 1>;
105 cooling-device = <&fan0 1 2>;
109 cooling-device = <&fan0 2 3>;
118 cooling-device = <&cpu0 0 2>,
134 cooling-device = <&cpu0 3 8>,
184 cooling-device = <&fan0 0 1>;
188 cooling-device = <&fan0 1 2>;
192 cooling-device = <&fan0 2 3>;
196 cooling-device = <&cpu0 0 2>,
[all …]
Dexynos5422-odroidhc1.dts3 * Hardkernel Odroid HC1 board device tree source
61 cooling-device = <&cpu0 0 2>,
77 cooling-device = <&cpu0 3 8>,
110 cooling-device = <&cpu0 0 2>,
121 cooling-device = <&cpu0 3 8>,
154 cooling-device = <&cpu0 0 2>,
165 cooling-device = <&cpu0 3 8>,
198 cooling-device = <&cpu0 0 2>,
209 cooling-device = <&cpu0 3 8>,
242 cooling-device = <&gpu 0 2>;
[all …]
Ds3c6400.dtsi3 * Samsung's S3C6400 SoC device tree source
7 * Samsung's S3C6400 SoC device nodes are listed in this file. S3C6400
11 * Note: This file does not include device nodes for all the controllers in
12 * S3C6400 SoC. As device tree coverage for S3C6400 increases, additional
/arch/arm/include/asm/hardware/
Dscoop.h49 struct device *dev; /* Pointer to this socket's scoop device */
60 void (*power_ctrl)(struct device *scoop, unsigned short cpr, int nr);
65 void reset_scoop(struct device *dev);
66 unsigned short read_scoop_reg(struct device *dev, unsigned short reg);
67 void write_scoop_reg(struct device *dev, unsigned short reg, unsigned short data);
/arch/parisc/kernel/
Ddrivers.c44 static struct device root = {
48 static inline int check_dev(struct device *dev) in check_dev()
58 static struct device *
59 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath);
63 int (*fn)(struct device *, void *);
66 static int descend_children(struct device * dev, void * data) in descend_children()
86 static int for_each_padev(int (*fn)(struct device *, void *), void * data) in for_each_padev() argument
122 static int parisc_driver_probe(struct device *dev) in parisc_driver_probe()
136 static void __exit parisc_driver_remove(struct device *dev) in parisc_driver_remove()
183 static int match_and_count(struct device * dev, void * data) in match_and_count()
[all …]
/arch/sh/drivers/dma/
Ddma-sysfs.c23 static ssize_t dma_show_devices(struct device *dev, in dma_show_devices()
48 struct device *dev_root; in dma_subsys_init()
64 static ssize_t dma_show_dev_id(struct device *dev, in dma_show_dev_id()
71 static ssize_t dma_store_dev_id(struct device *dev, in dma_store_dev_id()
82 static ssize_t dma_store_config(struct device *dev, in dma_store_config()
97 static ssize_t dma_show_mode(struct device *dev, in dma_show_mode()
104 static ssize_t dma_store_mode(struct device *dev, in dma_store_mode()
116 static ssize_t dma_show_##field(struct device *dev, \
129 struct device *dev = &chan->dev; in dma_create_sysfs_files()
157 struct device *dev = &chan->dev; in dma_remove_sysfs_files()
/arch/um/drivers/
Dnet_kern.c337 static void net_device_release(struct device *dev) in net_device_release()
339 struct uml_net *device = dev_get_drvdata(dev); in net_device_release() local
340 struct net_device *netdev = device->dev; in net_device_release()
345 list_del(&device->list); in net_device_release()
346 kfree(device); in net_device_release()
372 struct uml_net *device; in eth_configure() local
379 device = kzalloc(sizeof(*device), gfp_mask); in eth_configure()
380 if (device == NULL) { in eth_configure()
393 INIT_LIST_HEAD(&device->list); in eth_configure()
394 device->index = n; in eth_configure()
[all …]
/arch/arm/mach-s3c/
DKconfig66 # device definitions to compile in
71 Compile in platform device definitions for HSMMC code
76 Compile in platform device definitions for HSMMC channel 1
81 Compile in platform device definitions for HSMMC channel 2
86 Compile in platform device definitions for HSMMC channel 3
91 Compile in platform device definitions for I2C channel 1
96 Compile in platform device definition for framebuffer
101 Compile in platform device definition for USB host.
106 Compile in platform device definition for USB high-speed OtG
111 Compile in platform device definitions for S3C64XX's type
[all …]
/arch/x86/pci/
Dirq.c52 u16 vendor, device; member
62 int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
919 dev->vendor, dev->device, pirq, irq); in pirq_amd756_get()
927 dev->vendor, dev->device, pirq, irq); in pirq_amd756_set()
964 static __init int intel_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in intel_router_probe() argument
976 switch (device) { in intel_router_probe()
1034 if ((device >= PCI_DEVICE_ID_INTEL_5_3400_SERIES_LPC_MIN && in intel_router_probe()
1035 device <= PCI_DEVICE_ID_INTEL_5_3400_SERIES_LPC_MAX) in intel_router_probe()
1036 || (device >= PCI_DEVICE_ID_INTEL_COUGARPOINT_LPC_MIN && in intel_router_probe()
1037 device <= PCI_DEVICE_ID_INTEL_COUGARPOINT_LPC_MAX) in intel_router_probe()
[all …]
Dacpi.c254 static int check_segment(u16 seg, struct device *dev, char *estr) in check_segment()
278 struct device *dev = &ci->bridge->dev; in setup_mcfg_map()
332 struct acpi_device *device = root->device; in pci_acpi_root_get_node() local
333 int node = acpi_get_node(device->handle); in pci_acpi_root_get_node()
338 …dev_info(&device->dev, FW_BUG "no _PXM; falling back to node %d from hardware (may be inconsistent… in pci_acpi_root_get_node()
380 struct acpi_device *device = ci->bridge; in pci_acpi_root_prepare_resources() local
395 dev_printk(KERN_DEBUG, &device->dev, in pci_acpi_root_prepare_resources()
436 .companion = root->device in pci_acpi_scan_root()
445 dev_err(&root->device->dev, in pci_acpi_scan_root()
451 info->sd.companion = root->device; in pci_acpi_scan_root()
/arch/powerpc/include/asm/
Diommu.h137 static inline void set_iommu_table_base(struct device *dev, in set_iommu_table_base()
143 static inline void *get_iommu_table_base(struct device *dev) in get_iommu_table_base()
148 extern int dma_iommu_dma_supported(struct device *dev, u64 mask);
210 struct device *dev);
230 struct device *dev) in iommu_add_device()
236 u64 dma_iommu_get_required_mask(struct device *dev);
239 static inline void *get_iommu_table_base(struct device *dev) in get_iommu_table_base()
244 static inline int dma_iommu_dma_supported(struct device *dev, u64 mask) in dma_iommu_dma_supported()
251 extern int ppc_iommu_map_sg(struct device *dev, struct iommu_table *tbl,
262 extern void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl,
[all …]
/arch/arm/boot/dts/vt8500/
Dwm8750.dtsi128 compatible = "via,vt8500-device-clock";
135 compatible = "via,vt8500-device-clock";
142 compatible = "via,vt8500-device-clock";
149 compatible = "via,vt8500-device-clock";
156 compatible = "via,vt8500-device-clock";
164 compatible = "via,vt8500-device-clock";
172 compatible = "via,vt8500-device-clock";
180 compatible = "via,vt8500-device-clock";
188 compatible = "via,vt8500-device-clock";
196 compatible = "via,vt8500-device-clock";
[all …]
/arch/s390/include/asm/
Dccwgroup.h26 struct device dev;
54 int ccwgroup_create_dev(struct device *root, struct ccwgroup_driver *gdrv,
67 bool dev_is_ccwgroup(struct device *dev);
69 static inline bool dev_is_ccwgroup(struct device *dev) in dev_is_ccwgroup()
/arch/mips/sgi-ip22/
Dip22-gio.c31 static void gio_bus_release(struct device *dev) in gio_bus_release()
36 static struct device gio_bus = {
65 struct device *tmp; in gio_dev_get()
91 void gio_release_dev(struct device *dev) in gio_release_dev()
114 static int gio_bus_match(struct device *dev, struct device_driver *drv) in gio_bus_match()
122 static int gio_device_probe(struct device *dev) in gio_device_probe()
146 static void gio_device_remove(struct device *dev) in gio_device_remove()
155 static void gio_device_shutdown(struct device *dev) in gio_device_shutdown()
164 static ssize_t modalias_show(struct device *dev, struct device_attribute *a, in modalias_show()
174 static ssize_t name_show(struct device *dev, in name_show()
[all …]
/arch/arm64/boot/dts/exynos/
Dexynos5433-tmu.dtsi58 cooling-device = <&cpu4 1 2>, <&cpu5 1 2>,
64 cooling-device = <&cpu4 2 3>, <&cpu5 2 3>,
70 cooling-device = <&cpu4 3 4>, <&cpu5 3 4>,
76 cooling-device = <&cpu4 4 5>, <&cpu5 4 5>,
82 cooling-device = <&cpu4 5 7>, <&cpu5 5 7>,
88 cooling-device = <&cpu4 7 9>, <&cpu5 7 9>,
94 cooling-device = <&cpu4 9 14>, <&cpu5 9 14>,
232 cooling-device = <&cpu0 1 2>, <&cpu1 1 2>,
238 cooling-device = <&cpu0 2 3>, <&cpu1 2 3>,
244 cooling-device = <&cpu0 3 4>, <&cpu1 3 4>,
[all …]
/arch/ia64/kernel/
Derr_inject.c58 show_##name(struct device *dev, struct device_attribute *attr, \
67 store_##name(struct device *dev, struct device_attribute *attr, \
81 store_call_start(struct device *dev, struct device_attribute *attr, in show()
130 show_virtual_to_phys(struct device *dev, struct device_attribute *attr, in store()
138 store_virtual_to_phys(struct device *dev, struct device_attribute *attr, in store_virtual_to_phys()
161 show_err_data_buffer(struct device *dev, in store()
173 store_err_data_buffer(struct device *dev, in store_err_data_buffer()
229 struct device *sys_dev = get_cpu_device(cpu); in err_inject_add_dev()
236 struct device *sys_dev = get_cpu_device(cpu); in err_inject_remove_dev()
/arch/arm/mach-omap2/
Dboard-n8x0.c139 static struct device *mmc_device;
163 static int n8x0_mmc_set_power_menelaus(struct device *dev, int slot, in n8x0_mmc_set_power_menelaus()
232 static int n8x0_mmc_set_power(struct device *dev, int slot, int power_on, in n8x0_mmc_set_power()
243 static int n8x0_mmc_set_bus_mode(struct device *dev, int slot, int bus_mode) in n8x0_mmc_set_bus_mode()
267 static int n8x0_mmc_get_cover_state(struct device *dev, int slot) in n8x0_mmc_get_cover_state()
303 static int n8x0_mmc_late_init(struct device *dev) in n8x0_mmc_late_init()
360 static void n8x0_mmc_shutdown(struct device *dev) in n8x0_mmc_shutdown()
373 static void n8x0_mmc_cleanup(struct device *dev) in n8x0_mmc_cleanup()
474 static int n8x0_menelaus_late_init(struct device *dev) in n8x0_menelaus_late_init()
488 static int n8x0_menelaus_late_init(struct device *dev) in n8x0_menelaus_late_init()

12345678910>>...56