/Linux-v6.1/sound/soc/fsl/ |
D | imx-card.c | 115 struct imx_card_plat_data *plat_data; member 258 const struct imx_card_plat_data *plat_data = data->plat_data; in akcodec_get_mclk_rate() local 265 for (i = 0; i < plat_data->num_tdm_fs_mul; i++) { in akcodec_get_mclk_rate() 267 if (width != plat_data->tdm_fs_mul[i].min) in akcodec_get_mclk_rate() 269 return rate * plat_data->tdm_fs_mul[i].mul; in akcodec_get_mclk_rate() 272 for (i = 0; i < plat_data->num_fs_mul; i++) { in akcodec_get_mclk_rate() 273 if (rate >= plat_data->fs_mul[i].rmin && in akcodec_get_mclk_rate() 274 rate <= plat_data->fs_mul[i].rmax) { in akcodec_get_mclk_rate() 275 width = max(width, plat_data->fs_mul[i].wmin); in akcodec_get_mclk_rate() 276 width = min(width, plat_data->fs_mul[i].wmax); in akcodec_get_mclk_rate() [all …]
|
/Linux-v6.1/drivers/gpu/drm/exynos/ |
D | exynos_dp.c | 45 struct analogix_dp_plat_data plat_data; member 48 static int exynos_dp_crtc_clock_enable(struct analogix_dp_plat_data *plat_data, in exynos_dp_crtc_clock_enable() argument 51 struct exynos_dp_device *dp = to_dp(plat_data); in exynos_dp_crtc_clock_enable() 62 static int exynos_dp_poweron(struct analogix_dp_plat_data *plat_data) in exynos_dp_poweron() argument 64 return exynos_dp_crtc_clock_enable(plat_data, true); in exynos_dp_poweron() 67 static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data) in exynos_dp_poweroff() argument 69 return exynos_dp_crtc_clock_enable(plat_data, false); in exynos_dp_poweroff() 72 static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data, in exynos_dp_get_modes() argument 75 struct exynos_dp_device *dp = to_dp(plat_data); in exynos_dp_get_modes() 79 if (dp->plat_data.panel) in exynos_dp_get_modes() [all …]
|
/Linux-v6.1/drivers/net/ethernet/cadence/ |
D | macb_pci.c | 33 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 …]
|
/Linux-v6.1/drivers/ata/ |
D | ahci_seattle.c | 84 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()
|
D | ahci_st.c | 57 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() 158 hpriv->plat_data = drv_data; in st_ahci_probe() 185 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_suspend()
|
D | ahci_dwc.c | 127 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_bt1_init() 177 hpriv->plat_data = (void *)dpriv; in ahci_dwc_get_resources() 185 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_dwc_check_cap() 228 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_dwc_init_timer() 262 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_dwc_init_dmacr() 307 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_dwc_init_host() 342 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_dwc_reinit_host() 374 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_dwc_clear_host()
|
/Linux-v6.1/drivers/video/fbdev/mmp/panel/ |
D | tpo_tj032md01bw.c | 77 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()
|
/Linux-v6.1/drivers/iommu/ |
D | mtk_iommu.c | 222 const struct mtk_iommu_plat_data *plat_data; member 338 writel_relaxed(F_INVLD_EN1 | F_INVLD_EN0, base + data->plat_data->inv_sel_reg); in mtk_iommu_tlb_flush_all() 372 check_pm_status = !MTK_IOMMU_HAS_FLAG(data->plat_data, PM_CLK_AO); in mtk_iommu_tlb_flush_range_sync() 384 base + data->plat_data->inv_sel_reg); in mtk_iommu_tlb_flush_range_sync() 417 const struct mtk_iommu_plat_data *plat_data = data->plat_data; in mtk_iommu_isr() local 435 if (MTK_IOMMU_HAS_FLAG(plat_data, IOVA_34_EN)) { in mtk_iommu_isr() 443 if (MTK_IOMMU_IS_TYPE(plat_data, MTK_IOMMU_TYPE_MM)) { in mtk_iommu_isr() 445 if (MTK_IOMMU_HAS_FLAG(plat_data, HAS_SUB_COMM_2BITS)) { in mtk_iommu_isr() 448 } else if (MTK_IOMMU_HAS_FLAG(plat_data, HAS_SUB_COMM_3BITS)) { in mtk_iommu_isr() 454 fault_larb = data->plat_data->larbid_remap[fault_larb][sub_comm]; in mtk_iommu_isr() [all …]
|
/Linux-v6.1/sound/soc/sof/ |
D | core.c | 188 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_probe_continue() local 282 ret = snd_sof_machine_register(sdev, plat_data); in sof_probe_continue() 303 if (plat_data->sof_probe_complete) in sof_probe_continue() 304 plat_data->sof_probe_complete(sdev->dev); in sof_probe_continue() 311 snd_sof_machine_unregister(sdev, plat_data); in sof_probe_continue() 346 int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data) in snd_sof_device_probe() argument 361 sdev->pdata = plat_data; in snd_sof_device_probe() 366 if (!(BIT(plat_data->ipc_type) & plat_data->desc->ipc_supported_mask)) { in snd_sof_device_probe() 368 plat_data->ipc_type, plat_data->desc->ipc_supported_mask); in snd_sof_device_probe() 403 if (plat_data->desc->ipc_timeout == 0) in snd_sof_device_probe() [all …]
|
D | loader.c | 19 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw() local 25 if (plat_data->fw) in snd_sof_load_firmware_raw() 29 plat_data->fw_filename_prefix, in snd_sof_load_firmware_raw() 30 plat_data->fw_filename); in snd_sof_load_firmware_raw() 34 ret = request_firmware(&plat_data->fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw() 51 plat_data->fw_offset = ext_man_size; in snd_sof_load_firmware_raw() 70 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_memcpy() local 103 release_firmware(plat_data->fw); in snd_sof_load_firmware_memcpy() 104 plat_data->fw = NULL; in snd_sof_load_firmware_memcpy()
|
D | ipc3-loader.c | 141 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc3_fw_parse_ext_man() local 142 const struct firmware *fw = plat_data->fw; in sof_ipc3_fw_parse_ext_man() 313 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc3_load_fw_to_dsp() local 314 const struct firmware *fw = plat_data->fw; in sof_ipc3_load_fw_to_dsp() 321 if (!plat_data->fw) in sof_ipc3_load_fw_to_dsp() 324 header = (struct snd_sof_fw_header *)(fw->data + plat_data->fw_offset); in sof_ipc3_load_fw_to_dsp() 334 module = (struct snd_sof_mod_hdr *)(fw->data + plat_data->fw_offset + in sof_ipc3_load_fw_to_dsp() 336 remaining = fw->size - sizeof(*header) - plat_data->fw_offset; in sof_ipc3_load_fw_to_dsp() 377 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc3_validate_firmware() local 378 const struct firmware *fw = plat_data->fw; in sof_ipc3_validate_firmware() [all …]
|
D | sof-audio.c | 870 struct snd_sof_pdata *plat_data = pdata; in sof_machine_register() local 875 drv_name = plat_data->machine->drv_name; in sof_machine_register() 876 mach = plat_data->machine; in sof_machine_register() 877 size = sizeof(*plat_data->machine); in sof_machine_register() 880 plat_data->pdev_mach = in sof_machine_register() 883 if (IS_ERR(plat_data->pdev_mach)) in sof_machine_register() 884 return PTR_ERR(plat_data->pdev_mach); in sof_machine_register() 887 dev_name(&plat_data->pdev_mach->dev)); in sof_machine_register() 895 struct snd_sof_pdata *plat_data = pdata; in sof_machine_unregister() local 897 if (!IS_ERR_OR_NULL(plat_data->pdev_mach)) in sof_machine_unregister() [all …]
|
D | ipc4-loader.c | 20 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc4_fw_parse_ext_man() local 22 const struct firmware *fw = plat_data->fw; in sof_ipc4_fw_parse_ext_man() 141 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc4_validate_firmware() local 143 const struct firmware *fw = plat_data->fw; in sof_ipc4_validate_firmware()
|
/Linux-v6.1/drivers/gpu/drm/rockchip/ |
D | analogix_dp-rockchip.c | 71 struct analogix_dp_plat_data plat_data; member 81 static struct rockchip_dp_device *pdata_encoder_to_dp(struct analogix_dp_plat_data *plat_data) in pdata_encoder_to_dp() argument 83 return container_of(plat_data, struct rockchip_dp_device, plat_data); in pdata_encoder_to_dp() 95 static int rockchip_dp_poweron_start(struct analogix_dp_plat_data *plat_data) in rockchip_dp_poweron_start() argument 97 struct rockchip_dp_device *dp = pdata_encoder_to_dp(plat_data); in rockchip_dp_poweron_start() 116 static int rockchip_dp_powerdown(struct analogix_dp_plat_data *plat_data) in rockchip_dp_powerdown() argument 118 struct rockchip_dp_device *dp = pdata_encoder_to_dp(plat_data); in rockchip_dp_powerdown() 125 static int rockchip_dp_get_modes(struct analogix_dp_plat_data *plat_data, in rockchip_dp_get_modes() argument 346 dp->plat_data.encoder = &dp->encoder.encoder; in rockchip_dp_bind() 395 dp->plat_data.panel = panel; in rockchip_dp_probe() [all …]
|
/Linux-v6.1/arch/arm/mach-s3c/ |
D | dev-backlight-s3c64xx.c | 20 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()
|
/Linux-v6.1/drivers/memory/ |
D | emif.c | 65 struct emif_platform_data *plat_data; member 79 u32 type = emif->plat_data->device_info->type; in do_emif_regdump_show() 80 u32 ip_rev = emif->plat_data->ip_rev; in do_emif_regdump_show() 218 if ((emif->plat_data->ip_rev == EMIF_4D) && in set_lpmode() 380 struct emif_custom_configs *cust_cfgs = emif->plat_data->custom_configs; in get_pwr_mgmt_ctrl() 474 if (emif->plat_data->device_info->cs1_used) { in get_temperature_level() 506 type = emif->plat_data->device_info->type; in setup_temperature_sensitive_regs() 548 custom_configs = emif->plat_data->custom_configs; in handle_temp_alert() 612 if (emif->plat_data->hw_caps & EMIF_HW_CAPS_LL_INTERFACE) { in emif_interrupt_handler() 662 if (emif->plat_data->hw_caps & EMIF_HW_CAPS_LL_INTERFACE) in clear_all_interrupts() [all …]
|
/Linux-v6.1/drivers/gpu/drm/bridge/analogix/ |
D | analogix_dp_core.c | 945 if (dp->plat_data->panel) { in analogix_dp_commit() 946 if (drm_panel_disable(dp->plat_data->panel)) in analogix_dp_commit() 970 if (dp->plat_data->panel) { in analogix_dp_commit() 971 ret = drm_panel_enable(dp->plat_data->panel); in analogix_dp_commit() 1080 if (!dp->plat_data->panel) in analogix_dp_prepare_panel() 1093 ret = drm_panel_prepare(dp->plat_data->panel); in analogix_dp_prepare_panel() 1095 ret = drm_panel_unprepare(dp->plat_data->panel); in analogix_dp_prepare_panel() 1114 if (dp->plat_data->panel) { in analogix_dp_get_modes() 1115 num_modes += drm_panel_get_modes(dp->plat_data->panel, connector); in analogix_dp_get_modes() 1136 if (dp->plat_data->get_modes) in analogix_dp_get_modes() [all …]
|
D | analogix_dp_reg.c | 74 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() 888 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) { in analogix_dp_config_video_slave_mode()
|
/Linux-v6.1/drivers/input/joystick/ |
D | as5011.c | 218 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()
|
/Linux-v6.1/sound/soc/sof/intel/ |
D | hda-loader.c | 321 struct snd_sof_pdata *plat_data = sdev->pdata; in hda_dsp_cl_boot_firmware_iccmax() local 332 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware_iccmax() 337 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware_iccmax() 388 struct snd_sof_pdata *plat_data = sdev->pdata; in hda_dsp_cl_boot_firmware() local 389 const struct sof_dev_desc *desc = plat_data->desc; in hda_dsp_cl_boot_firmware() 408 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware() 413 stripped_firmware.data = plat_data->fw->data + plat_data->fw_offset; in hda_dsp_cl_boot_firmware() 414 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
|
/Linux-v6.1/drivers/gpu/drm/bridge/synopsys/ |
D | dw-mipi-dsi.c | 268 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() 320 if (device->lanes > dsi->plat_data->max_data_lanes) { in dw_mipi_dsi_host_attach() 352 const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; in dw_mipi_dsi_host_detach() 599 const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; in dw_mipi_dsi_init() 609 ret = phy_ops->get_esc_clk_rate(dsi->plat_data->priv_data, in dw_mipi_dsi_init() 762 const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; in dw_mipi_dsi_dphy_timing_config() 767 ret = phy_ops->get_timing(dsi->plat_data->priv_data, in dw_mipi_dsi_dphy_timing_config() 852 const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; in dw_mipi_dsi_bridge_post_atomic_disable() 872 phy_ops->power_off(dsi->plat_data->priv_data); in dw_mipi_dsi_bridge_post_atomic_disable() [all …]
|
/Linux-v6.1/drivers/gpu/drm/sun4i/ |
D | sun8i_dw_hdmi.c | 100 struct dw_hdmi_plat_data *plat_data; in sun8i_dw_hdmi_bind() local 114 plat_data = &hdmi->plat_data; in sun8i_dw_hdmi_bind() 185 plat_data->mode_valid = hdmi->quirks->mode_valid; in sun8i_dw_hdmi_bind() 186 plat_data->use_drm_infoframe = hdmi->quirks->use_drm_infoframe; in sun8i_dw_hdmi_bind() 187 sun8i_hdmi_phy_set_ops(hdmi->phy, plat_data); in sun8i_dw_hdmi_bind() 191 hdmi->hdmi = dw_hdmi_bind(pdev, encoder, plat_data); in sun8i_dw_hdmi_bind()
|
/Linux-v6.1/arch/arm/mach-pxa/ |
D | colibri-pxa3xx.c | 34 void __init colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data) in colibri_pxa3xx_init_eth() argument 52 plat_data->flags |= AXFLG_MAC_FROMPLATFORM; in colibri_pxa3xx_init_eth() 53 plat_data->mac_addr = ether_mac_addr; in colibri_pxa3xx_init_eth() 57 plat_data->flags |= AXFLG_MAC_FROMDEV; in colibri_pxa3xx_init_eth()
|
/Linux-v6.1/drivers/mmc/host/ |
D | sdhci-pic32.c | 142 struct pic32_sdhci_platform_data *plat_data; in pic32_sdhci_probe() local 155 plat_data = pdev->dev.platform_data; in pic32_sdhci_probe() 156 if (plat_data && plat_data->setup_dma) { in pic32_sdhci_probe() 157 ret = plat_data->setup_dma(ADMA_FIFO_RD_THSHLD, in pic32_sdhci_probe()
|
/Linux-v6.1/drivers/net/wireless/st/cw1200/ |
D | cw1200_spi.c | 360 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()
|