Searched refs:pdev (Results 1 - 25 of 326) sorted by relevance

1234567891011>>

/arch/arm/include/asm/
H A Dfiq_debugger.h44 int (*uart_init)(struct platform_device *pdev);
45 void (*uart_free)(struct platform_device *pdev);
46 int (*uart_resume)(struct platform_device *pdev);
47 int (*uart_getc)(struct platform_device *pdev);
48 void (*uart_putc)(struct platform_device *pdev, unsigned int c);
49 void (*uart_flush)(struct platform_device *pdev);
50 void (*uart_enable)(struct platform_device *pdev);
51 void (*uart_disable)(struct platform_device *pdev);
53 int (*uart_dev_suspend)(struct platform_device *pdev);
54 int (*uart_dev_resume)(struct platform_device *pdev);
[all...]
/arch/mips/pci/
H A Dfixup-fuloong2e.c51 static void __init loongson2e_nec_fixup(struct pci_dev *pdev) argument
56 pci_read_config_dword(pdev, 0xe0, &val);
57 pci_write_config_dword(pdev, 0xe0, (val & ~7) | 0x4);
60 pci_write_config_dword(pdev, 0xe4, 1 << 5);
63 static void __init loongson2e_686b_func0_fixup(struct pci_dev *pdev) argument
67 sb_slot = PCI_SLOT(pdev->devfn);
72 pci_write_config_byte(pdev, 0x40, 0x08);
75 pci_write_config_byte(pdev, 0x41, 0x01);
78 pci_write_config_byte(pdev, 0x45, 0x00);
81 pci_write_config_byte(pdev,
138 loongson2e_686b_func1_fixup(struct pci_dev *pdev) argument
171 loongson2e_686b_func2_fixup(struct pci_dev *pdev) argument
177 loongson2e_686b_func3_fixup(struct pci_dev *pdev) argument
183 loongson2e_686b_func5_fixup(struct pci_dev *pdev) argument
[all...]
H A Dfixup-malta.c52 static void __init malta_piix_func0_fixup(struct pci_dev *pdev) argument
65 pci_read_config_byte(pdev, 0x60+i, &reg_val);
73 if (PCI_SLOT(pdev->devfn) == 10) {
78 pci_read_config_byte(pdev, 0x69, &reg_val);
79 pci_write_config_byte(pdev, 0x69, reg_val | 0xf0);
86 static void __init malta_piix_func1_fixup(struct pci_dev *pdev) argument
91 if (PCI_SLOT(pdev->devfn) == 10) {
95 pci_read_config_byte(pdev, 0x41, &reg_val);
96 pci_write_config_byte(pdev, 0x41, reg_val|0x80);
97 pci_read_config_byte(pdev,
[all...]
/arch/arm/mach-exynos/include/mach/
H A Dohci.h15 int (*phy_init)(struct platform_device *pdev, int type);
16 int (*phy_exit)(struct platform_device *pdev, int type);
/arch/arm/plat-samsung/include/plat/
H A Dusb-phy.h19 extern int s5p_usb_phy_init(struct platform_device *pdev, int type);
20 extern int s5p_usb_phy_exit(struct platform_device *pdev, int type);
H A Dehci.h15 int (*phy_init)(struct platform_device *pdev, int type);
16 int (*phy_exit)(struct platform_device *pdev, int type);
H A Dudc-hs.h30 int (*phy_init)(struct platform_device *pdev, int type);
31 int (*phy_exit)(struct platform_device *pdev, int type);
/arch/x86/include/asm/
H A Dprobe_roms.h5 extern void __iomem *pci_map_biosrom(struct pci_dev *pdev);
7 extern size_t pci_biosrom_size(struct pci_dev *pdev);
/arch/powerpc/platforms/pseries/
H A Deeh_sysfs.c43 struct pci_dev *pdev = to_pci_dev(dev); \
44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \
60 void eeh_sysfs_add_device(struct pci_dev *pdev) argument
64 rc += device_create_file(&pdev->dev, &dev_attr_eeh_mode);
65 rc += device_create_file(&pdev->dev, &dev_attr_eeh_config_addr);
66 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_config_addr);
67 rc += device_create_file(&pdev->dev, &dev_attr_eeh_check_count);
68 rc += device_create_file(&pdev->dev, &dev_attr_eeh_false_positives);
69 rc += device_create_file(&pdev->dev, &dev_attr_eeh_freeze_count);
75 void eeh_sysfs_remove_device(struct pci_dev *pdev) argument
[all...]
/arch/mips/cobalt/
H A Dled.c35 struct platform_device *pdev; local
40 pdev = platform_device_alloc("cobalt-qube-leds", -1);
42 pdev = platform_device_alloc("cobalt-raq-leds", -1);
44 if (!pdev)
47 retval = platform_device_add_resources(pdev, &cobalt_led_resource, 1);
51 retval = platform_device_add(pdev);
58 platform_device_put(pdev);
H A Dlcd.c33 struct platform_device *pdev; local
36 pdev = platform_device_alloc("cobalt-lcd", -1);
37 if (!pdev)
40 retval = platform_device_add_resources(pdev, &cobalt_lcd_resource, 1);
44 retval = platform_device_add(pdev);
51 platform_device_put(pdev);
H A Drtc.c41 struct platform_device *pdev; local
44 pdev = platform_device_alloc("rtc_cmos", -1);
45 if (!pdev)
48 retval = platform_device_add_resources(pdev, cobalt_rtc_resource,
53 retval = platform_device_add(pdev);
60 platform_device_put(pdev);
/arch/arm/plat-mxc/include/mach/
H A Dimx-uart.h26 int (*init)(struct platform_device *pdev);
27 void (*exit)(struct platform_device *pdev);
/arch/mips/wrppmc/
H A Dserial.c54 struct platform_device *pdev; local
57 pdev = platform_device_alloc("serial8250", -1);
58 if (!pdev)
61 pdev->id = PLAT8250_DEV_PLATFORM;
62 pdev->dev.platform_data = wrppmc_serial8250_port;
64 retval = platform_device_add_resources(pdev, wrppmc_uart_resource,
69 retval = platform_device_add(pdev);
76 platform_device_put(pdev);
/arch/sh/drivers/
H A Dpush-switch.c39 struct platform_device *pdev = psw->pdev; local
43 kobject_uevent(&pdev->dev.kobj, KOBJ_CHANGE);
46 static int switch_drv_probe(struct platform_device *pdev) argument
56 irq = platform_get_irq(pdev, 0);
62 psw_info = pdev->dev.platform_data;
67 psw_info->name ? psw_info->name : DRV_NAME, pdev);
72 ret = device_create_file(&pdev->dev, &dev_attr_switch);
74 dev_err(&pdev->dev, "Failed creating device attrs\n");
87 psw->pdev
100 switch_drv_remove(struct platform_device *pdev) argument
[all...]
/arch/arm/mach-mxs/
H A Ddevices.c31 struct platform_device *pdev; local
33 pdev = platform_device_alloc(name, id);
34 if (!pdev)
44 pdev->dev.dma_mask =
45 kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL);
46 if (!pdev->dev.dma_mask)
50 *pdev->dev.dma_mask = dmamask;
51 pdev->dev.coherent_dma_mask = dmamask;
55 ret = platform_device_add_resources(pdev, res, num_resources);
61 ret = platform_device_add_data(pdev, dat
[all...]
/arch/arm/plat-omap/include/plat/
H A Domap_device.h53 * @pdev: platform_device
71 struct platform_device *pdev; member in struct:omap_device
85 int omap_device_enable(struct platform_device *pdev);
86 int omap_device_idle(struct platform_device *pdev);
87 int omap_device_shutdown(struct platform_device *pdev);
103 struct omap_device *omap_device_alloc(struct platform_device *pdev,
108 int omap_device_register(struct platform_device *pdev);
114 int omap_device_align_pm_lat(struct platform_device *pdev,
117 int omap_device_get_context_loss_count(struct platform_device *pdev);
157 static inline struct omap_device *to_omap_device(struct platform_device *pdev) argument
163 omap_device_disable_idle_on_suspend(struct platform_device *pdev) argument
[all...]
H A Dflash.h15 extern void omap1_set_vpp(struct platform_device *pdev, int enable);
/arch/avr32/mach-at32ap/
H A Dpdc.c14 static int __init pdc_probe(struct platform_device *pdev) argument
18 pclk = clk_get(&pdev->dev, "pclk");
20 dev_err(&pdev->dev, "no pclk defined\n");
23 hclk = clk_get(&pdev->dev, "hclk");
25 dev_err(&pdev->dev, "no hclk defined\n");
33 dev_info(&pdev->dev, "Atmel Peripheral DMA Controller enabled\n");
/arch/ia64/pci/
H A Dfixup.c27 static void __devinit pci_fixup_video(struct pci_dev *pdev) argument
38 if ((pdev->class >> 8) != PCI_CLASS_DISPLAY_VGA)
42 bus = pdev->bus;
63 pci_read_config_word(pdev, PCI_COMMAND, &config);
65 pdev->resource[PCI_ROM_RESOURCE].flags |= IORESOURCE_ROM_SHADOW;
66 dev_printk(KERN_DEBUG, &pdev->dev, "Boot video device\n");
/arch/mips/ath79/
H A Ddev-gpio-buttons.c23 struct platform_device *pdev; local
34 pdev = platform_device_alloc("gpio-keys-polled", id);
35 if (!pdev)
43 err = platform_device_add_data(pdev, &pdata, sizeof(pdata));
47 err = platform_device_add(pdev);
54 platform_device_put(pdev);
H A Ddev-leds-gpio.c22 struct platform_device *pdev; local
33 pdev = platform_device_alloc("leds-gpio", id);
34 if (!pdev)
41 err = platform_device_add_data(pdev, &pdata, sizeof(pdata));
45 err = platform_device_add(pdev);
52 platform_device_put(pdev);
/arch/arm/mach-omap2/
H A Dhwspinlock.c35 struct platform_device *pdev; local
48 pdev = omap_device_build(dev_name, 0, oh, &omap_hwspinlock_pdata,
51 if (IS_ERR(pdev)) {
54 retval = PTR_ERR(pdev);
/arch/powerpc/include/asm/
H A Dppc-pci.h64 void eeh_sysfs_add_device(struct pci_dev *pdev);
65 void eeh_sysfs_remove_device(struct pci_dev *pdev);
67 static inline const char *eeh_pci_name(struct pci_dev *pdev) argument
69 return pdev ? pci_name(pdev) : "<null>";
72 static inline const char *eeh_driver_name(struct pci_dev *pdev) argument
74 return (pdev && pdev->driver) ? pdev->driver->name : "<null>";
/arch/sh/include/asm/
H A Ddevice.h13 int platform_resource_setup_memory(struct platform_device *pdev,

Completed in 510 milliseconds

1234567891011>>