/arch/arm/mach-s3c/ |
D | platformdata.c | 15 void __init *s3c_set_platdata(void *pd, size_t pdsize, in s3c_set_platdata() argument 20 if (!pd) { in s3c_set_platdata() 26 npd = kmemdup(pd, pdsize, GFP_KERNEL); in s3c_set_platdata() 34 void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd, in s3c_sdhci_set_platdata() argument 37 set->cd_type = pd->cd_type; in s3c_sdhci_set_platdata() 38 set->ext_cd_init = pd->ext_cd_init; in s3c_sdhci_set_platdata() 39 set->ext_cd_cleanup = pd->ext_cd_cleanup; in s3c_sdhci_set_platdata() 40 set->ext_cd_gpio = pd->ext_cd_gpio; in s3c_sdhci_set_platdata() 41 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; in s3c_sdhci_set_platdata() 43 if (pd->max_width) in s3c_sdhci_set_platdata() [all …]
|
D | devs.c | 165 void __init s3c_fb_set_platdata(struct s3c_fb_platdata *pd) in s3c_fb_set_platdata() argument 167 s3c_set_platdata(pd, sizeof(struct s3c_fb_platdata), in s3c_fb_set_platdata() 181 void __init s3c_hwmon_set_platdata(struct s3c_hwmon_pdata *pd) in s3c_hwmon_set_platdata() argument 183 s3c_set_platdata(pd, sizeof(struct s3c_hwmon_pdata), in s3c_hwmon_set_platdata() 214 void s3c_sdhci0_set_platdata(struct s3c_sdhci_platdata *pd) in s3c_sdhci0_set_platdata() argument 216 s3c_sdhci_set_platdata(pd, &s3c_hsmmc0_def_platdata); in s3c_sdhci0_set_platdata() 244 void s3c_sdhci1_set_platdata(struct s3c_sdhci_platdata *pd) in s3c_sdhci1_set_platdata() argument 246 s3c_sdhci_set_platdata(pd, &s3c_hsmmc1_def_platdata); in s3c_sdhci1_set_platdata() 276 void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd) in s3c_sdhci2_set_platdata() argument 278 s3c_sdhci_set_platdata(pd, &s3c_hsmmc2_def_platdata); in s3c_sdhci2_set_platdata() [all …]
|
D | pm-s3c64xx.c | 38 struct generic_pm_domain pd; member 43 struct s3c64xx_pm_domain *pd; in s3c64xx_pd_off() local 46 pd = container_of(domain, struct s3c64xx_pm_domain, pd); in s3c64xx_pd_off() 49 val &= ~(pd->ena); in s3c64xx_pd_off() 57 struct s3c64xx_pm_domain *pd; in s3c64xx_pd_on() local 61 pd = container_of(domain, struct s3c64xx_pm_domain, pd); in s3c64xx_pd_on() 64 val |= pd->ena; in s3c64xx_pd_on() 68 if (pd->pwr_stat) { in s3c64xx_pd_on() 71 if (__raw_readl(S3C64XX_BLK_PWR_STAT) & pd->pwr_stat) in s3c64xx_pd_on() 76 pr_err("Failed to start domain %s\n", pd->name); in s3c64xx_pd_on() [all …]
|
D | sdhci.h | 24 extern void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd, 35 extern void s3c_sdhci0_set_platdata(struct s3c_sdhci_platdata *pd); 36 extern void s3c_sdhci1_set_platdata(struct s3c_sdhci_platdata *pd); 37 extern void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd); 38 extern void s3c_sdhci3_set_platdata(struct s3c_sdhci_platdata *pd);
|
D | pwm-core.h | 14 extern void samsung_pwm_set_platdata(struct samsung_pwm_variant *pd); 16 static inline void samsung_pwm_set_platdata(struct samsung_pwm_variant *pd) { } in samsung_pwm_set_platdata() argument
|
/arch/powerpc/platforms/ps3/ |
D | interrupt.c | 97 struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_mask() local 101 pd->thread_id, d->irq); in ps3_chip_mask() 104 clear_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_mask() 105 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_mask() 118 struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_unmask() local 122 pd->thread_id, d->irq); in ps3_chip_unmask() 125 set_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_unmask() 126 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_unmask() 139 const struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_eoi() local 143 if (!test_bit(63 - d->irq, &pd->ipi_mask)) in ps3_chip_eoi() [all …]
|
/arch/mips/netlogic/common/ |
D | irq.c | 90 struct nlm_pic_irq *pd = irq_data_get_irq_chip_data(d); in xlp_pic_enable() local 92 BUG_ON(!pd); in xlp_pic_enable() 93 spin_lock_irqsave(&pd->node->piclock, flags); in xlp_pic_enable() 94 nlm_pic_enable_irt(pd->node->picbase, pd->irt); in xlp_pic_enable() 95 spin_unlock_irqrestore(&pd->node->piclock, flags); in xlp_pic_enable() 100 struct nlm_pic_irq *pd = irq_data_get_irq_chip_data(d); in xlp_pic_disable() local 103 BUG_ON(!pd); in xlp_pic_disable() 104 spin_lock_irqsave(&pd->node->piclock, flags); in xlp_pic_disable() 105 nlm_pic_disable_irt(pd->node->picbase, pd->irt); in xlp_pic_disable() 106 spin_unlock_irqrestore(&pd->node->piclock, flags); in xlp_pic_disable() [all …]
|
/arch/arm64/boot/dts/freescale/ |
D | imx8-ss-img.dtsi | 31 power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, 32 <&pd IMX_SC_R_MJPEG_DEC_S0>, 33 <&pd IMX_SC_R_MJPEG_DEC_S1>, 34 <&pd IMX_SC_R_MJPEG_DEC_S2>, 35 <&pd IMX_SC_R_MJPEG_DEC_S3>; 50 power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, 51 <&pd IMX_SC_R_MJPEG_ENC_S0>, 52 <&pd IMX_SC_R_MJPEG_ENC_S1>, 53 <&pd IMX_SC_R_MJPEG_ENC_S2>, 54 <&pd IMX_SC_R_MJPEG_ENC_S3>; [all …]
|
D | imx8-ss-dma.dtsi | 31 power-domains = <&pd IMX_SC_R_UART_0>; 43 power-domains = <&pd IMX_SC_R_UART_1>; 55 power-domains = <&pd IMX_SC_R_UART_2>; 67 power-domains = <&pd IMX_SC_R_UART_3>; 80 power-domains = <&pd IMX_SC_R_UART_0>; 92 power-domains = <&pd IMX_SC_R_UART_1>; 104 power-domains = <&pd IMX_SC_R_UART_2>; 116 power-domains = <&pd IMX_SC_R_UART_3>; 126 power-domains = <&pd IMX_SC_R_I2C_0>; 137 power-domains = <&pd IMX_SC_R_I2C_1>; [all …]
|
D | imx8-ss-audio.dtsi | 35 power-domains = <&pd IMX_SC_R_DSP>; 45 power-domains = <&pd IMX_SC_R_DSP_RAM>; 55 power-domains = <&pd IMX_SC_R_MU_13A>, 56 <&pd IMX_SC_R_MU_13B>, 57 <&pd IMX_SC_R_DSP>, 58 <&pd IMX_SC_R_DSP_RAM>;
|
D | imx8-ss-lsio.dtsi | 37 power-domains = <&pd IMX_SC_R_GPIO_0>; 47 power-domains = <&pd IMX_SC_R_GPIO_1>; 57 power-domains = <&pd IMX_SC_R_GPIO_2>; 67 power-domains = <&pd IMX_SC_R_GPIO_3>; 77 power-domains = <&pd IMX_SC_R_GPIO_4>; 87 power-domains = <&pd IMX_SC_R_GPIO_5>; 97 power-domains = <&pd IMX_SC_R_GPIO_6>; 107 power-domains = <&pd IMX_SC_R_GPIO_7>; 148 power-domains = <&pd IMX_SC_R_MU_13A>; 169 power-domains = <&pd IMX_SC_R_PWM_0>; [all …]
|
D | imx8-ss-conn.dtsi | 44 power-domains = <&pd IMX_SC_R_SDHC_0>; 55 power-domains = <&pd IMX_SC_R_SDHC_1>; 68 power-domains = <&pd IMX_SC_R_SDHC_2>; 88 power-domains = <&pd IMX_SC_R_ENET_0>; 108 power-domains = <&pd IMX_SC_R_ENET_1>; 124 power-domains = <&pd IMX_SC_R_SDHC_0>; 138 power-domains = <&pd IMX_SC_R_SDHC_1>; 152 power-domains = <&pd IMX_SC_R_SDHC_2>; 174 power-domains = <&pd IMX_SC_R_ENET_0>; 196 power-domains = <&pd IMX_SC_R_ENET_1>;
|
/arch/mips/sgi-ip32/ |
D | ip32-platform.c | 54 struct platform_device *pd; in meth_devinit() local 57 pd = platform_device_alloc("meth", -1); in meth_devinit() 58 if (!pd) in meth_devinit() 61 ret = platform_device_add(pd); in meth_devinit() 63 platform_device_put(pd); in meth_devinit() 72 struct platform_device *pd; in sgio2audio_devinit() local 75 pd = platform_device_alloc("sgio2audio", -1); in sgio2audio_devinit() 76 if (!pd) in sgio2audio_devinit() 79 ret = platform_device_add(pd); in sgio2audio_devinit() 81 platform_device_put(pd); in sgio2audio_devinit()
|
/arch/mips/cobalt/ |
D | buttons.c | 20 struct platform_device *pd; in cobalt_add_buttons() local 23 pd = platform_device_alloc("Cobalt buttons", -1); in cobalt_add_buttons() 24 if (!pd) in cobalt_add_buttons() 27 error = platform_device_add_resources(pd, &cobalt_buttons_resource, 1); in cobalt_add_buttons() 31 error = platform_device_add(pd); in cobalt_add_buttons() 38 platform_device_put(pd); in cobalt_add_buttons()
|
/arch/mips/alchemy/devboards/ |
D | platform.c | 82 struct platform_device *pd; in db1x_register_pcmcia_socket() local 94 pd = platform_device_alloc("db1xxx_pcmcia", id); in db1x_register_pcmcia_socket() 95 if (!pd) { in db1x_register_pcmcia_socket() 136 pd->resource = sr; in db1x_register_pcmcia_socket() 137 pd->num_resources = cnt; in db1x_register_pcmcia_socket() 139 ret = platform_device_add(pd); in db1x_register_pcmcia_socket() 143 platform_device_put(pd); in db1x_register_pcmcia_socket() 156 struct platform_device *pd; in db1x_register_norflash() local 177 pd = platform_device_alloc("physmap-flash", 0); in db1x_register_norflash() 178 if (!pd) in db1x_register_norflash() [all …]
|
/arch/sh/drivers/ |
D | platform_early.c | 177 struct platform_device *pd; in sh_early_platform_match() local 179 list_for_each_entry(pd, &sh_early_platform_device_list, dev.devres_head) in sh_early_platform_match() 180 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in sh_early_platform_match() 181 if (pd->id == id) in sh_early_platform_match() 182 return pd; in sh_early_platform_match() 195 struct platform_device *pd; in sh_early_platform_left() local 197 list_for_each_entry(pd, &sh_early_platform_device_list, dev.devres_head) in sh_early_platform_left() 198 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in sh_early_platform_left() 199 if (pd->id >= id) in sh_early_platform_left() 332 struct platform_device *pd, *pd2; in early_platform_cleanup() local [all …]
|
/arch/x86/kernel/ |
D | pcspeaker.c | 8 struct platform_device *pd; in add_pcspkr() local 10 pd = platform_device_register_simple("pcspkr", -1, NULL, 0); in add_pcspkr() 12 return PTR_ERR_OR_ZERO(pd); in add_pcspkr()
|
/arch/arm/mach-rockchip/ |
D | platsmp.c | 38 static int pmu_power_domain_is_on(int pd) in pmu_power_domain_is_on() argument 47 return !(val & BIT(pd)); in pmu_power_domain_is_on() 64 static int pmu_set_power_domain(int pd, bool on) in pmu_set_power_domain() argument 66 u32 val = (on) ? 0 : BIT(pd); in pmu_set_power_domain() 67 struct reset_control *rstc = rockchip_get_core_reset(pd); in pmu_set_power_domain() 72 __func__, pd); in pmu_set_power_domain() 85 ret = regmap_update_bits(pmu, PMU_PWRDN_CON, BIT(pd), val); in pmu_set_power_domain() 94 ret = pmu_power_domain_is_on(pd); in pmu_set_power_domain()
|
/arch/powerpc/sysdev/ |
D | rtc_cmos_setup.c | 23 struct platform_device *pd; in add_rtc() local 62 pd = platform_device_register_simple("rtc_cmos", -1, in add_rtc() 65 return PTR_ERR_OR_ZERO(pd); in add_rtc()
|
/arch/mips/bcm63xx/ |
D | dev-pcmcia.c | 57 static struct bcm63xx_pcmcia_platform_data pd; variable 65 .platform_data = &pd, 114 pd.ready_gpio = 22; in bcm63xx_pcmcia_register() 118 pd.ready_gpio = 18; in bcm63xx_pcmcia_register()
|
D | dev-usb-usbd.c | 36 int __init bcm63xx_usbd_register(const struct bcm63xx_usbd_platform_data *pd) in bcm63xx_usbd_register() argument 62 platform_device_add_data(&bcm63xx_usbd_device, pd, sizeof(*pd)); in bcm63xx_usbd_register()
|
D | dev-enet.c | 211 const struct bcm63xx_enet_platform_data *pd) in bcm63xx_enet_register() argument 247 memcpy(dpd, pd, sizeof(*pd)); in bcm63xx_enet_register() 291 bcm63xx_enetsw_register(const struct bcm63xx_enetsw_platform_data *pd) in bcm63xx_enetsw_register() argument 310 memcpy(bcm63xx_enetsw_device.dev.platform_data, pd, sizeof(*pd)); in bcm63xx_enetsw_register()
|
/arch/powerpc/mm/ |
D | pgtable_32.c | 77 pmd_t *pd; in map_kernel_page() local 82 pd = pmd_off_k(va); in map_kernel_page() 85 pg = pte_alloc_kernel(pd, va); in map_kernel_page() 87 pg = early_pte_alloc_kernel(pd, va); in map_kernel_page()
|
/arch/mips/cavium-octeon/ |
D | octeon-platform.c | 317 struct platform_device *pd; in octeon_ehci_device_init() local 325 pd = of_find_device_by_node(ehci_node); in octeon_ehci_device_init() 327 if (!pd) in octeon_ehci_device_init() 330 pd->dev.platform_data = &octeon_ehci_pdata; in octeon_ehci_device_init() 331 octeon_ehci_hw_start(&pd->dev); in octeon_ehci_device_init() 332 put_device(&pd->dev); in octeon_ehci_device_init() 381 struct platform_device *pd; in octeon_ohci_device_init() local 389 pd = of_find_device_by_node(ohci_node); in octeon_ohci_device_init() 391 if (!pd) in octeon_ohci_device_init() 394 pd->dev.platform_data = &octeon_ohci_pdata; in octeon_ohci_device_init() [all …]
|
/arch/mips/include/asm/mach-bcm63xx/ |
D | bcm63xx_dev_enet.h | 103 const struct bcm63xx_enet_platform_data *pd); 105 int bcm63xx_enetsw_register(const struct bcm63xx_enetsw_platform_data *pd);
|