/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 | 96 struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_mask() local 100 pd->thread_id, d->irq); in ps3_chip_mask() 103 clear_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_mask() 104 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_mask() 117 struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_unmask() local 121 pd->thread_id, d->irq); in ps3_chip_unmask() 124 set_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_unmask() 125 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_unmask() 138 const struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_eoi() local 142 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/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()
|
D | sysfb.c | 41 struct platform_device *pd; in sysfb_init() local 64 pd = platform_device_register_resndata(NULL, name, 0, in sysfb_init() 66 return PTR_ERR_OR_ZERO(pd); in sysfb_init()
|
D | sysfb_simplefb.c | 63 struct platform_device *pd; in create_simplefb() local 108 pd = platform_device_register_resndata(NULL, "simple-framebuffer", 0, in create_simplefb() 110 return PTR_ERR_OR_ZERO(pd); in create_simplefb()
|
/arch/arm64/boot/dts/freescale/ |
D | imx8qxp.dtsi | 178 pd: imx8qx-pd { label 179 compatible = "fsl,imx8qxp-scu-pd"; 245 power-domains = <&pd IMX_SC_R_MU_13A>, 246 <&pd IMX_SC_R_MU_13B>, 247 <&pd IMX_SC_R_DSP>, 248 <&pd IMX_SC_R_DSP_RAM>; 266 power-domains = <&pd IMX_SC_R_UART_0>; 277 power-domains = <&pd IMX_SC_R_UART_1>; 288 power-domains = <&pd IMX_SC_R_UART_2>; 299 power-domains = <&pd IMX_SC_R_UART_3>; [all …]
|
/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/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/powerpc/mm/ |
D | pgtable_32.c | 76 pmd_t *pd; in map_kernel_page() local 81 pd = pmd_off_k(va); in map_kernel_page() 84 pg = pte_alloc_kernel(pd, va); in map_kernel_page() 86 pg = early_pte_alloc_kernel(pd, va); in map_kernel_page()
|
/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);
|
/arch/powerpc/include/asm/ |
D | pgtable-types.h | 70 typedef struct { unsigned long pd; } hugepd_t; member 74 return x.pd; in hpd_val()
|
/arch/mips/pci/ |
D | pci-alchemy.c | 364 struct alchemy_pci_platdata *pd = pdev->dev.platform_data; in alchemy_pci_probe() local 373 if (!pd) { in alchemy_pci_probe() 442 if (pd->board_map_irq) in alchemy_pci_probe() 443 ctx->board_map_irq = pd->board_map_irq; in alchemy_pci_probe() 445 if (pd->board_pci_idsel) in alchemy_pci_probe() 446 ctx->board_pci_idsel = pd->board_pci_idsel; in alchemy_pci_probe() 474 val &= ~pd->pci_cfg_clr; in alchemy_pci_probe() 475 val |= pd->pci_cfg_set; in alchemy_pci_probe()
|