Home
last modified time | relevance | path

Searched refs:plat_data (Results 1 – 25 of 81) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/
Dmacb_pci.c33 struct macb_platform_data plat_data; in macb_probe() local
59 memset(&plat_data, 0, sizeof(plat_data)); in macb_probe()
62 plat_data.pclk = clk_register_fixed_rate(&pdev->dev, "pclk", NULL, 0, in macb_probe()
64 if (IS_ERR(plat_data.pclk)) { in macb_probe()
65 err = PTR_ERR(plat_data.pclk); in macb_probe()
69 plat_data.hclk = clk_register_fixed_rate(&pdev->dev, "hclk", NULL, 0, in macb_probe()
71 if (IS_ERR(plat_data.hclk)) { in macb_probe()
72 err = PTR_ERR(plat_data.hclk); in macb_probe()
84 plat_info.data = &plat_data; in macb_probe()
85 plat_info.size_data = sizeof(plat_data); in macb_probe()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_dp.c44 struct analogix_dp_plat_data plat_data; member
47 static int exynos_dp_crtc_clock_enable(struct analogix_dp_plat_data *plat_data, in exynos_dp_crtc_clock_enable() argument
50 struct exynos_dp_device *dp = to_dp(plat_data); in exynos_dp_crtc_clock_enable()
61 static int exynos_dp_poweron(struct analogix_dp_plat_data *plat_data) in exynos_dp_poweron() argument
63 return exynos_dp_crtc_clock_enable(plat_data, true); in exynos_dp_poweron()
66 static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data) in exynos_dp_poweroff() argument
68 return exynos_dp_crtc_clock_enable(plat_data, false); in exynos_dp_poweroff()
71 static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data, in exynos_dp_get_modes() argument
74 struct exynos_dp_device *dp = to_dp(plat_data); in exynos_dp_get_modes()
78 if (dp->plat_data.panel) in exynos_dp_get_modes()
[all …]
/kernel/linux/linux-5.10/drivers/ata/
Dahci_seattle.c84 struct seattle_plat_data *plat_data = hpriv->plat_data; in seattle_transmit_led_message() local
96 val = ioread32(plat_data->sgpio_ctrl); in seattle_transmit_led_message()
112 iowrite32(val, plat_data->sgpio_ctrl); in seattle_transmit_led_message()
128 struct seattle_plat_data *plat_data; in ahci_seattle_get_port_info() local
131 plat_data = devm_kzalloc(dev, sizeof(*plat_data), GFP_KERNEL); in ahci_seattle_get_port_info()
132 if (!plat_data) in ahci_seattle_get_port_info()
135 plat_data->sgpio_ctrl = devm_ioremap_resource(dev, in ahci_seattle_get_port_info()
137 if (IS_ERR(plat_data->sgpio_ctrl)) in ahci_seattle_get_port_info()
140 val = ioread32(plat_data->sgpio_ctrl); in ahci_seattle_get_port_info()
148 hpriv->plat_data = plat_data; in ahci_seattle_get_port_info()
Dahci_st.c57 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_deassert_resets()
90 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop()
106 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_probe_resets()
159 hpriv->plat_data = drv_data; in st_ahci_probe()
189 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_suspend()
Dahci_mtk.c47 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_platform_resets()
105 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_parse_property()
141 hpriv->plat_data = plat; in mtk_ahci_probe()
/kernel/linux/linux-5.10/drivers/video/fbdev/mmp/panel/
Dtpo_tj032md01bw.c77 struct tpohvga_plat_data *plat = panel->plat_data; in tpohvga_onoff()
130 struct tpohvga_plat_data *plat_data; in tpohvga_probe() local
147 plat_data = kzalloc(sizeof(*plat_data), GFP_KERNEL); in tpohvga_probe()
148 if (plat_data == NULL) in tpohvga_probe()
151 plat_data->spi = spi; in tpohvga_probe()
152 plat_data->plat_onoff = mi->plat_set_onoff; in tpohvga_probe()
153 panel_tpohvga.plat_data = plat_data; in tpohvga_probe()
/kernel/linux/linux-5.10/sound/soc/sof/intel/
Dhda-loader.c283 struct snd_sof_pdata *plat_data = sdev->pdata; in hda_dsp_cl_boot_firmware_iccmax() local
293 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware_iccmax()
298 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware_iccmax()
332 struct snd_sof_pdata *plat_data = sdev->pdata; in hda_dsp_cl_boot_firmware() local
333 const struct sof_dev_desc *desc = plat_data->desc; in hda_dsp_cl_boot_firmware()
341 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware()
346 stripped_firmware.data = plat_data->fw->data + plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
347 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Ddev-backlight-s3c64xx.c20 struct platform_pwm_backlight_data plat_data; member
29 struct samsung_bl_drvdata, plat_data); in samsung_bl_init()
48 struct samsung_bl_drvdata, plat_data); in samsung_bl_exit()
65 .plat_data = {
100 samsung_bl_device->dev.platform_data = &samsung_bl_drvdata->plat_data; in samsung_bl_set()
102 samsung_bl_data = &samsung_bl_drvdata->plat_data; in samsung_bl_set()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c944 if (dp->plat_data->panel) { in analogix_dp_commit()
945 if (drm_panel_disable(dp->plat_data->panel)) in analogix_dp_commit()
969 if (dp->plat_data->panel) { in analogix_dp_commit()
970 ret = drm_panel_enable(dp->plat_data->panel); in analogix_dp_commit()
1079 if (!dp->plat_data->panel) in analogix_dp_prepare_panel()
1092 ret = drm_panel_prepare(dp->plat_data->panel); in analogix_dp_prepare_panel()
1094 ret = drm_panel_unprepare(dp->plat_data->panel); in analogix_dp_prepare_panel()
1113 if (dp->plat_data->panel) { in analogix_dp_get_modes()
1114 num_modes += drm_panel_get_modes(dp->plat_data->panel, connector); in analogix_dp_get_modes()
1137 if (dp->plat_data->get_modes) in analogix_dp_get_modes()
[all …]
Danalogix_dp_reg.c74 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) { in analogix_dp_init_analog_param()
76 if (dp->plat_data->dev_type == RK3288_DP) in analogix_dp_init_analog_param()
125 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_reset()
237 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) { in analogix_dp_set_pll_power_down()
258 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down()
263 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down()
321 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down()
333 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down()
481 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_init_aux()
976 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) { in analogix_dp_config_video_slave_mode()
/kernel/linux/linux-5.10/sound/soc/sof/
Dcore.c140 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_probe_continue() local
234 ret = snd_sof_machine_register(sdev, plat_data); in sof_probe_continue()
246 if (plat_data->sof_probe_complete) in sof_probe_continue()
247 plat_data->sof_probe_complete(sdev->dev); in sof_probe_continue()
282 int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data) in snd_sof_device_probe() argument
296 sdev->pdata = plat_data; in snd_sof_device_probe()
324 if (plat_data->desc->ipc_timeout == 0) in snd_sof_device_probe()
327 sdev->ipc_timeout = plat_data->desc->ipc_timeout; in snd_sof_device_probe()
328 if (plat_data->desc->boot_timeout == 0) in snd_sof_device_probe()
331 sdev->boot_timeout = plat_data->desc->boot_timeout; in snd_sof_device_probe()
Dsof-audio.c488 struct snd_sof_pdata *plat_data = pdata; in sof_machine_register() local
493 drv_name = plat_data->machine->drv_name; in sof_machine_register()
494 mach = plat_data->machine; in sof_machine_register()
495 size = sizeof(*plat_data->machine); in sof_machine_register()
498 plat_data->pdev_mach = in sof_machine_register()
501 if (IS_ERR(plat_data->pdev_mach)) in sof_machine_register()
502 return PTR_ERR(plat_data->pdev_mach); in sof_machine_register()
505 dev_name(&plat_data->pdev_mach->dev)); in sof_machine_register()
513 struct snd_sof_pdata *plat_data = pdata; in sof_machine_unregister() local
515 if (!IS_ERR_OR_NULL(plat_data->pdev_mach)) in sof_machine_unregister()
[all …]
Dloader.c660 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw() local
666 if (plat_data->fw) in snd_sof_load_firmware_raw()
670 plat_data->fw_filename_prefix, in snd_sof_load_firmware_raw()
671 plat_data->fw_filename); in snd_sof_load_firmware_raw()
675 ret = request_firmware(&plat_data->fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw()
687 ext_man_size = snd_sof_fw_ext_man_parse(sdev, plat_data->fw); in snd_sof_load_firmware_raw()
690 plat_data->fw_offset = ext_man_size; in snd_sof_load_firmware_raw()
709 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_memcpy() local
717 ret = check_header(sdev, plat_data->fw, plat_data->fw_offset); in snd_sof_load_firmware_memcpy()
731 ret = load_modules(sdev, plat_data->fw, plat_data->fw_offset); in snd_sof_load_firmware_memcpy()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Danalogix_dp-rockchip.c73 struct analogix_dp_plat_data plat_data; member
85 static int rockchip_dp_poweron_start(struct analogix_dp_plat_data *plat_data) in rockchip_dp_poweron_start() argument
87 struct rockchip_dp_device *dp = to_dp(plat_data); in rockchip_dp_poweron_start()
106 static int rockchip_dp_powerdown(struct analogix_dp_plat_data *plat_data) in rockchip_dp_powerdown() argument
108 struct rockchip_dp_device *dp = to_dp(plat_data); in rockchip_dp_powerdown()
115 static int rockchip_dp_get_modes(struct analogix_dp_plat_data *plat_data, in rockchip_dp_get_modes() argument
336 dp->plat_data.encoder = &dp->encoder; in rockchip_dp_bind()
385 dp->plat_data.panel = panel; in rockchip_dp_probe()
386 dp->plat_data.dev_type = dp->data->chip_type; in rockchip_dp_probe()
387 dp->plat_data.power_on_start = rockchip_dp_poweron_start; in rockchip_dp_probe()
[all …]
Ddw_hdmi-rockchip.c491 struct dw_hdmi_plat_data *plat_data; in dw_hdmi_rockchip_bind() local
506 plat_data = devm_kmemdup(&pdev->dev, match->data, in dw_hdmi_rockchip_bind()
507 sizeof(*plat_data), GFP_KERNEL); in dw_hdmi_rockchip_bind()
508 if (!plat_data) in dw_hdmi_rockchip_bind()
512 hdmi->chip_data = plat_data->phy_data; in dw_hdmi_rockchip_bind()
513 plat_data->phy_data = hdmi; in dw_hdmi_rockchip_bind()
552 hdmi->hdmi = dw_hdmi_bind(pdev, encoder, plat_data); in dw_hdmi_rockchip_bind()
/kernel/linux/linux-5.10/drivers/input/joystick/
Das5011.c218 const struct as5011_platform_data *plat_data; in as5011_probe() local
224 plat_data = dev_get_platdata(&client->dev); in as5011_probe()
225 if (!plat_data) in as5011_probe()
228 if (!plat_data->axis_irq) { in as5011_probe()
252 as5011->button_gpio = plat_data->button_gpio; in as5011_probe()
253 as5011->axis_irq = plat_data->axis_irq; in as5011_probe()
293 error = as5011_configure_chip(as5011, plat_data); in as5011_probe()
299 plat_data->axis_irqflags | IRQF_ONESHOT, in as5011_probe()
303 "Can't allocate axis irq %d\n", plat_data->axis_irq); in as5011_probe()
/kernel/linux/linux-5.10/drivers/memory/
Demif.c67 struct emif_platform_data *plat_data; member
82 u32 type = emif->plat_data->device_info->type; in do_emif_regdump_show()
83 u32 ip_rev = emif->plat_data->ip_rev; in do_emif_regdump_show()
243 if ((emif->plat_data->ip_rev == EMIF_4D) && in set_lpmode()
340 const struct lpddr2_timings *timings_arr = emif->plat_data->timings; in get_timings_table()
351 for (i = 0; i < emif->plat_data->timings_arr_size; i++) { in get_timings_table()
713 struct emif_custom_configs *cust_cfgs = emif->plat_data->custom_configs; in get_pwr_mgmt_ctrl()
807 if (emif->plat_data->device_info->cs1_used) { in get_temperature_level()
838 if (emif->plat_data->ip_rev != EMIF_4D5) in setup_registers()
884 type = emif->plat_data->device_info->type; in setup_temperature_sensitive_regs()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
Dcolibri-pxa3xx.c35 void __init colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data) in colibri_pxa3xx_init_eth() argument
53 plat_data->flags |= AXFLG_MAC_FROMPLATFORM; in colibri_pxa3xx_init_eth()
54 plat_data->mac_addr = ether_mac_addr; in colibri_pxa3xx_init_eth()
58 plat_data->flags |= AXFLG_MAC_FROMDEV; in colibri_pxa3xx_init_eth()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/synopsys/
Ddw-mipi-dsi.c268 const struct dw_mipi_dsi_plat_data *plat_data; member
316 const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; in dw_mipi_dsi_host_attach()
321 if (device->lanes > dsi->plat_data->max_data_lanes) { in dw_mipi_dsi_host_attach()
361 const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; in dw_mipi_dsi_host_detach()
608 const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; in dw_mipi_dsi_init()
618 ret = phy_ops->get_esc_clk_rate(dsi->plat_data->priv_data, in dw_mipi_dsi_init()
771 const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; in dw_mipi_dsi_dphy_timing_config()
776 ret = phy_ops->get_timing(dsi->plat_data->priv_data, in dw_mipi_dsi_dphy_timing_config()
860 const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; in dw_mipi_dsi_bridge_post_disable()
880 phy_ops->power_off(dsi->plat_data->priv_data); in dw_mipi_dsi_bridge_post_disable()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun8i_dw_hdmi.c124 struct dw_hdmi_plat_data *plat_data; in sun8i_dw_hdmi_bind() local
138 plat_data = &hdmi->plat_data; in sun8i_dw_hdmi_bind()
226 plat_data->mode_valid = hdmi->quirks->mode_valid; in sun8i_dw_hdmi_bind()
227 plat_data->use_drm_infoframe = hdmi->quirks->use_drm_infoframe; in sun8i_dw_hdmi_bind()
228 sun8i_hdmi_phy_set_ops(hdmi->phy, plat_data); in sun8i_dw_hdmi_bind()
232 hdmi->hdmi = dw_hdmi_bind(pdev, encoder, plat_data); in sun8i_dw_hdmi_bind()
Dsun8i_hdmi_phy.c566 struct dw_hdmi_plat_data *plat_data) in sun8i_hdmi_phy_set_ops() argument
571 plat_data->phy_ops = &sun8i_hdmi_phy_ops; in sun8i_hdmi_phy_set_ops()
572 plat_data->phy_name = "sun8i_dw_hdmi_phy"; in sun8i_hdmi_phy_set_ops()
573 plat_data->phy_data = phy; in sun8i_hdmi_phy_set_ops()
575 plat_data->mpll_cfg = variant->mpll_cfg; in sun8i_hdmi_phy_set_ops()
576 plat_data->cur_ctr = variant->cur_ctr; in sun8i_hdmi_phy_set_ops()
577 plat_data->phy_config = variant->phy_cfg; in sun8i_hdmi_phy_set_ops()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-pic32.c145 struct pic32_sdhci_platform_data *plat_data; in pic32_sdhci_probe() local
158 plat_data = pdev->dev.platform_data; in pic32_sdhci_probe()
159 if (plat_data && plat_data->setup_dma) { in pic32_sdhci_probe()
160 ret = plat_data->setup_dma(ADMA_FIFO_RD_THSHLD, in pic32_sdhci_probe()
/kernel/linux/linux-5.10/drivers/iommu/
Dmtk_iommu.c191 data->base + data->plat_data->inv_sel_reg); in mtk_iommu_tlb_flush_all()
208 data->base + data->plat_data->inv_sel_reg); in mtk_iommu_tlb_flush_range_sync()
269 if (MTK_IOMMU_HAS_FLAG(data->plat_data, HAS_SUB_COMM)) { in mtk_iommu_isr()
275 fault_larb = data->plat_data->larbid_remap[fault_larb][sub_comm]; in mtk_iommu_isr()
562 if (data->plat_data->m4u_plat == M4U_MT8173) { in mtk_iommu_hw_init()
588 if (MTK_IOMMU_HAS_FLAG(data->plat_data, HAS_LEGACY_IVRP_PADDR)) in mtk_iommu_hw_init()
596 MTK_IOMMU_HAS_FLAG(data->plat_data, HAS_VLD_PA_RNG)) { in mtk_iommu_hw_init()
605 if (MTK_IOMMU_HAS_FLAG(data->plat_data, WR_THROT_EN)) { in mtk_iommu_hw_init()
612 if (MTK_IOMMU_HAS_FLAG(data->plat_data, RESET_AXI)) { in mtk_iommu_hw_init()
618 if (MTK_IOMMU_HAS_FLAG(data->plat_data, OUT_ORDER_WR_EN)) in mtk_iommu_hw_init()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dcw1200_spi.c360 const struct cw1200_platform_data_spi *plat_data = in cw1200_spi_probe() local
372 if (plat_data->spi_bits_per_word) in cw1200_spi_probe()
373 func->bits_per_word = plat_data->spi_bits_per_word; in cw1200_spi_probe()
384 if (cw1200_spi_on(plat_data)) { in cw1200_spi_probe()
400 self->pdata = plat_data; in cw1200_spi_probe()
419 cw1200_spi_off(plat_data); in cw1200_spi_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/xen/
Dxen_drm_front_evtchnl.c297 struct xen_drm_front_cfg *plat_data; in xen_drm_front_evtchnl_publish_all() local
300 plat_data = &front_info->cfg; in xen_drm_front_evtchnl_publish_all()
310 for (conn = 0; conn < plat_data->num_connectors; conn++) { in xen_drm_front_evtchnl_publish_all()
312 plat_data->connectors[conn].xenstore_path, in xen_drm_front_evtchnl_publish_all()
319 plat_data->connectors[conn].xenstore_path, in xen_drm_front_evtchnl_publish_all()

1234