| /linux-6.15/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_pci.c | 25 plat->has_gmac = 1; in common_default_data() 57 plat->bus_id = 1; in stmmac_default_data() 58 plat->phy_addr = 0; in stmmac_default_data() 77 plat->clk_csr = 5; in snps_gmac5_default_data() 81 plat->pmt = 1; in snps_gmac5_default_data() 113 plat->bus_id = 1; in snps_gmac5_default_data() 121 plat->axi = devm_kzalloc(&pdev->dev, sizeof(*plat->axi), GFP_KERNEL); in snps_gmac5_default_data() 122 if (!plat->axi) in snps_gmac5_default_data() 162 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in stmmac_pci_probe() 163 if (!plat) in stmmac_pci_probe() [all …]
|
| H A D | stmmac_platform.c | 437 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in stmmac_probe_config_dt() 438 if (!plat) in stmmac_probe_config_dt() 455 plat->mac_interface = rc < 0 ? plat->phy_interface : rc; in stmmac_probe_config_dt() 634 plat->clk_ptp_rate = clk_get_rate(plat->stmmac_clk); in stmmac_probe_config_dt() 638 plat->clk_ptp_rate = clk_get_rate(plat->clk_ptp_ref); in stmmac_probe_config_dt() 656 return plat; in stmmac_probe_config_dt() 694 return plat; in devm_stmmac_probe_config_dt() 701 return plat; in devm_stmmac_probe_config_dt() 775 ret = plat->init(pdev, plat->bsp_priv); in stmmac_pltfr_init() 790 plat->exit(pdev, plat->bsp_priv); in stmmac_pltfr_exit() [all …]
|
| H A D | dwmac-intel.c | 651 plat->tx_fifo_size = plat->tx_queues_to_use * 4096; in intel_mgbe_common_data() 652 plat->rx_fifo_size = plat->rx_queues_to_use * 4096; in intel_mgbe_common_data() 671 plat->axi = devm_kzalloc(&pdev->dev, sizeof(*plat->axi), in intel_mgbe_common_data() 673 if (!plat->axi) in intel_mgbe_common_data() 684 plat->ptp_max_adj = plat->clk_ptp_rate; in intel_mgbe_common_data() 685 plat->eee_usecs_rate = plat->clk_ptp_rate; in intel_mgbe_common_data() 719 plat->vlan_fail_q = plat->rx_queues_to_use - 1; in intel_mgbe_common_data() 798 plat->bus_id = 1; in ehl_sgmii_data() 820 plat->bus_id = 1; in ehl_rgmii_data() 1258 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in intel_eth_pci_probe() [all …]
|
| H A D | dwmac-mediatek.c | 119 switch (plat->phy_mode) { in mt2712_set_interface() 146 switch (plat->phy_mode) { in mt2712_delay_ps2stage() 230 if (plat->rmii_rxc) { in mt2712_set_delay() 387 if (plat->rmii_rxc) { in mt8195_set_delay() 486 plat->rmii_rxc = of_property_read_bool(plat->np, "mediatek,rmii-rxc"); in mediatek_dwmac_config_dt() 488 plat->mac_wol = of_property_read_bool(plat->np, "mediatek,mac-wol"); in mediatek_dwmac_config_dt() 498 plat->clks = devm_kcalloc(plat->dev, variant->num_clks, sizeof(*plat->clks), GFP_KERNEL); in mediatek_dwmac_clk_init() 499 if (!plat->clks) in mediatek_dwmac_clk_init() 505 ret = devm_clk_bulk_get(plat->dev, variant->num_clks, plat->clks); in mediatek_dwmac_clk_init() 516 plat->rmii_internal_clk = devm_clk_get(plat->dev, "rmii_internal"); in mediatek_dwmac_clk_init() [all …]
|
| H A D | dwmac-loongson.c | 90 plat->has_gmac = 1; in loongson_default_data() 115 plat->phy_addr = -1; in loongson_default_data() 127 ld = plat->bsp_priv; in loongson_gmac_data() 178 ld = plat->bsp_priv; in loongson_gnet_data() 462 plat->bus_id = ret; in loongson_dwmac_dt_config() 541 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in loongson_dwmac_probe() 542 if (!plat) in loongson_dwmac_probe() 552 if (!plat->dma_cfg) in loongson_dwmac_probe() 574 plat->bsp_priv = ld; in loongson_dwmac_probe() 585 plat->tx_fifo_size = SZ_16K * plat->tx_queues_to_use; in loongson_dwmac_probe() [all …]
|
| H A D | dwmac-thead.c | 59 switch (plat->mac_interface) { in thead_dwmac_set_phy_if() 71 plat->mac_interface); in thead_dwmac_set_phy_if() 84 switch (plat->mac_interface) { in thead_dwmac_set_txclk_dir() 96 plat->mac_interface); in thead_dwmac_set_txclk_dir() 113 plat = dwmac->plat; in thead_set_clk_tx_rate() 115 switch (plat->mac_interface) { in thead_set_clk_tx_rate() 147 plat->mac_interface); in thead_set_clk_tx_rate() 174 plat->mac_interface); in thead_dwmac_enable_clk() 223 if (IS_ERR(plat)) in thead_dwmac_probe() 237 dwmac->plat = plat; in thead_dwmac_probe() [all …]
|
| H A D | dwmac-s32.c | 105 struct plat_stmmacenet_data *plat; in s32_dwmac_probe() local 123 if (IS_ERR(plat)) in s32_dwmac_probe() 145 gmac->intf_mode = &plat->phy_interface; in s32_dwmac_probe() 149 plat->has_gmac4 = true; in s32_dwmac_probe() 150 plat->pmt = 1; in s32_dwmac_probe() 152 plat->rx_fifo_size = 20480; in s32_dwmac_probe() 153 plat->tx_fifo_size = 20480; in s32_dwmac_probe() 155 plat->init = s32_gmac_init; in s32_dwmac_probe() 156 plat->exit = s32_gmac_exit; in s32_dwmac_probe() 158 plat->clk_tx_i = gmac->tx_clk; in s32_dwmac_probe() [all …]
|
| H A D | stmmac_main.c | 163 ret = priv->plat->clks_config(priv->plat->bsp_priv, enabled); in stmmac_bus_clks_config() 174 priv->plat->clks_config(priv->plat->bsp_priv, enabled); in stmmac_bus_clks_config() 550 if (priv->plat->has_gmac4 || priv->plat->has_xgmac) in stmmac_get_rx_hwtstamp() 798 bool xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_init_tstamp_counter() 846 bool xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_init_ptp() 1053 ret = priv->plat->set_clk_tx_rate(priv->plat->bsp_priv, in stmmac_mac_link_up() 2461 if (priv->plat->has_gmac4 || priv->plat->has_xgmac) { in stmmac_dma_operation_mode() 3110 if (!priv->plat->dma_cfg || !priv->plat->dma_cfg->pbl) { in stmmac_init_dma_engine() 6049 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_common_interrupt() 7438 if (priv->plat->has_gmac4 || priv->plat->has_xgmac) in stmmac_xdp_rx_timestamp() [all …]
|
| H A D | dwmac-tegra.c | 306 if (IS_ERR(plat)) { in tegra_mgbe_probe() 307 err = PTR_ERR(plat); in tegra_mgbe_probe() 311 plat->has_xgmac = 1; in tegra_mgbe_probe() 313 plat->pmt = 1; in tegra_mgbe_probe() 314 plat->bsp_priv = mgbe; in tegra_mgbe_probe() 316 if (!plat->mdio_node) in tegra_mgbe_probe() 319 if (!plat->mdio_bus_data) { in tegra_mgbe_probe() 320 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, sizeof(*plat->mdio_bus_data), in tegra_mgbe_probe() 322 if (!plat->mdio_bus_data) { in tegra_mgbe_probe() 349 plat->tx_fifo_size = 131072; in tegra_mgbe_probe() [all …]
|
| H A D | stmmac_ptp.c | 58 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_adjust_time() 75 priv->plat->clk_ptp_rate); in stmmac_adjust_time() 105 priv->plat->clk_ptp_rate); in stmmac_adjust_time() 210 priv->plat->flags |= STMMAC_FLAG_EXT_SNAPSHOT_EN; in stmmac_enable() 216 priv->plat->flags &= ~STMMAC_FLAG_EXT_SNAPSHOT_EN; in stmmac_enable() 250 if (priv->plat->crosststamp) in stmmac_get_syncdevicetime() 251 return priv->plat->crosststamp(device, system, ctx); in stmmac_get_syncdevicetime() 319 priv->plat->cdc_error_adj = 0; in stmmac_ptp_register() 320 if (priv->plat->has_gmac4 && priv->plat->clk_ptp_rate) in stmmac_ptp_register() 321 priv->plat->cdc_error_adj = (2 * NSEC_PER_SEC) / priv->plat->clk_ptp_rate; in stmmac_ptp_register() [all …]
|
| H A D | dwmac4_lib.c | 32 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_rx_tail_ptr() 40 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_tx_tail_ptr() 48 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_start_tx() 62 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_stop_tx() 73 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_start_rx() 89 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_stop_rx() 99 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_tx_ring_len() 107 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_rx_ring_len() 115 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_enable_dma_irq() 129 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac410_enable_dma_irq() [all …]
|
| H A D | stmmac_mdio.c | 291 if (priv->plat->has_gmac4) in stmmac_mdio_read_c22() 391 if (priv->plat->has_gmac4) in stmmac_mdio_write_c22() 492 if (!priv->plat->has_gmac4) in stmmac_mdio_reset() 508 if (priv->plat->pcs_init) { in stmmac_pcs_setup() 539 if (priv->plat->pcs_exit) in stmmac_pcs_clean() 540 priv->plat->pcs_exit(priv); in stmmac_pcs_clean() 578 if (priv->plat->has_xgmac) { in stmmac_mdio_register() 599 if (priv->plat->has_gmac4) { in stmmac_mdio_register() 627 if (priv->plat->has_xgmac) in stmmac_mdio_register() 631 fwnode = priv->plat->port_node; in stmmac_mdio_register() [all …]
|
| H A D | dwmac-loongson1.c | 52 struct plat_stmmacenet_data *plat = dwmac->plat_dat; in ls1b_dwmac_syscon_init() local 65 switch (plat->phy_interface) { in ls1b_dwmac_syscon_init() 78 plat->phy_interface); in ls1b_dwmac_syscon_init() 88 switch (plat->phy_interface) { in ls1b_dwmac_syscon_init() 102 plat->phy_interface); in ls1b_dwmac_syscon_init() 119 struct plat_stmmacenet_data *plat = dwmac->plat_dat; in ls1c_dwmac_syscon_init() local 122 switch (plat->phy_interface) { in ls1c_dwmac_syscon_init() 133 plat->phy_interface); in ls1c_dwmac_syscon_init()
|
| H A D | hwif.c | 61 if (priv->plat->enh_desc) { in stmmac_dwmac1_quirks() 96 struct plat_stmmacenet_data *plat = priv ? priv->plat : NULL; in stmmac_reset() local 101 if (plat && plat->fix_soc_reset) in stmmac_reset() 102 return plat->fix_soc_reset(plat, ioaddr); in stmmac_reset() 303 bool needs_xgmac = priv->plat->has_xgmac; in stmmac_hwif_init() 304 bool needs_gmac4 = priv->plat->has_gmac4; in stmmac_hwif_init() 305 bool needs_gmac = priv->plat->has_gmac; in stmmac_hwif_init() 336 if (priv->plat->setup) { in stmmac_hwif_init() 337 mac = priv->plat->setup(priv); in stmmac_hwif_init()
|
| /linux-6.15/drivers/media/platform/qcom/venus/ |
| H A D | hfi_platform.c | 26 const struct hfi_platform *plat; in hfi_platform_get_codec_vpp_freq() local 29 plat = hfi_platform_get(version); in hfi_platform_get_codec_vpp_freq() 30 if (!plat) in hfi_platform_get_codec_vpp_freq() 33 if (plat->codec_vpp_freq) in hfi_platform_get_codec_vpp_freq() 42 const struct hfi_platform *plat; in hfi_platform_get_codec_vsp_freq() local 46 if (!plat) in hfi_platform_get_codec_vsp_freq() 49 if (plat->codec_vpp_freq) in hfi_platform_get_codec_vsp_freq() 62 if (!plat) in hfi_platform_get_codec_lp_freq() 65 if (plat->codec_lp_freq) in hfi_platform_get_codec_lp_freq() 77 if (!plat) in hfi_platform_get_codecs() [all …]
|
| /linux-6.15/drivers/ata/ |
| H A D | ahci_mtk.c | 54 return PTR_ERR(plat->axi_rst); in mtk_ahci_platform_resets() 58 return PTR_ERR(plat->sw_rst); in mtk_ahci_platform_resets() 62 return PTR_ERR(plat->reg_rst); in mtk_ahci_platform_resets() 64 err = reset_control_assert(plat->axi_rst); in mtk_ahci_platform_resets() 70 err = reset_control_assert(plat->sw_rst); in mtk_ahci_platform_resets() 113 if (IS_ERR(plat->mode)) { in mtk_ahci_parse_property() 115 return PTR_ERR(plat->mode); in mtk_ahci_parse_property() 128 struct mtk_ahci_plat *plat; in mtk_ahci_probe() local 132 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in mtk_ahci_probe() 133 if (!plat) in mtk_ahci_probe() [all …]
|
| /linux-6.15/drivers/media/platform/mediatek/mdp3/ |
| H A D | mtk-img-ipi.h | 122 #define CFG_CHECK(plat, p_id) ((plat) == (p_id)) argument 124 #define _CFG_OFST(plat, cfg, ofst) ((void *)(&((cfg)->config_##plat) + (ofst))) argument 125 #define CFG_OFST(plat, cfg, ofst) \ argument 128 #define _CFG_ADDR(plat, cfg, mem) (&((cfg)->config_##plat.mem)) argument 129 #define CFG_ADDR(plat, cfg, mem) \ argument 132 #define _CFG_GET(plat, cfg, mem) ((cfg)->config_##plat.mem) argument 133 #define CFG_GET(plat, cfg, mem) \ argument 134 (IS_ERR_OR_NULL(cfg) ? 0 : _CFG_GET(plat, cfg, mem)) 136 #define _CFG_COMP(plat, comp, mem) ((comp)->comp_##plat.mem) argument 137 #define CFG_COMP(plat, comp, mem) \ argument [all …]
|
| /linux-6.15/drivers/mtd/maps/ |
| H A D | sa1100-flash.c | 50 subdev->plat->set_vpp(1); in sa1100_set_vpp() 53 subdev->plat->set_vpp(0); in sa1100_set_vpp() 99 if (subdev->plat->set_vpp) in sa1100_probe_subdev() 148 if (plat->exit) in sa1100_destroy() 149 plat->exit(); in sa1100_destroy() 179 if (plat->init) { in sa1100_setup_mtd() 180 ret = plat->init(); in sa1100_setup_mtd() 198 subdev->plat = plat; in sa1100_setup_mtd() 238 plat->name); in sa1100_setup_mtd() 264 if (!plat) in sa1100_mtd_probe() [all …]
|
| /linux-6.15/drivers/input/keyboard/ |
| H A D | tc3589x-keypad.c | 332 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe() 333 if (!plat) in tc3589x_keypad_of_probe() 338 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe() 339 plat->krow = (u8) rows; in tc3589x_keypad_of_probe() 340 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe() 341 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe() 344 plat->kcol, plat->krow); in tc3589x_keypad_of_probe() 370 return plat; in tc3589x_keypad_of_probe() 382 if (IS_ERR(plat)) { in tc3589x_keypad_probe() 384 return PTR_ERR(plat); in tc3589x_keypad_probe() [all …]
|
| /linux-6.15/drivers/net/ethernet/broadcom/ |
| H A D | bgmac-platform.c | 38 return readl(bgmac->plat.base + offset); in platform_bgmac_read() 43 writel(value, bgmac->plat.base + offset); in platform_bgmac_write() 58 if (!bgmac->plat.idm_base) in platform_bgmac_clk_enabled() 72 if (!bgmac->plat.idm_base) in platform_bgmac_clk_enable() 123 if (!bgmac->plat.nicpm_base) in bgmac_nicpm_speed_set() 155 if (bgmac->plat.nicpm_base) in platform_phy_connect() 208 bgmac->plat.base = in bgmac_probe() 210 if (IS_ERR(bgmac->plat.base)) in bgmac_probe() 211 return PTR_ERR(bgmac->plat.base); in bgmac_probe() 217 if (IS_ERR(bgmac->plat.idm_base)) in bgmac_probe() [all …]
|
| /linux-6.15/drivers/mtd/nand/raw/ |
| H A D | gpio.c | 35 struct gpio_nand_platdata plat; member 186 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument 195 plat->options |= NAND_BUSWIDTH_16; in gpio_nand_get_config_of() 203 plat->chip_delay = val; in gpio_nand_get_config_of() 229 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument 242 struct gpio_nand_platdata *plat) in gpio_nand_get_config() argument 250 memcpy(plat, dev_get_platdata(dev), sizeof(*plat)); in gpio_nand_get_config() 352 chip->options = gpiomtd->plat.options; in gpio_nand_probe() 375 if (gpiomtd->plat.adjust_parts) in gpio_nand_probe() 376 gpiomtd->plat.adjust_parts(&gpiomtd->plat, mtd->size); in gpio_nand_probe() [all …]
|
| H A D | txx9ndfmc.c | 87 return drvdata->base + (reg << plat->shift); in ndregaddr() 153 if (plat->flags & NDFMC_PLAT_FLAG_DUMMYWRITE) { in txx9ndfmc_cmd_ctrl() 225 if (plat->flags & NDFMC_PLAT_FLAG_NO_RSTR) in txx9ndfmc_initialize() 244 (plat->flags & NDFMC_PLAT_FLAG_USE_BSPRT) ? in txx9ndfmc_initialize() 285 unsigned long gbusclk = plat->gbus_clock; in txx9ndfmc_probe() 294 hold = plat->hold ?: 20; /* tDH */ in txx9ndfmc_probe() 295 spw = plat->spw ?: 90; /* max(tREADID, tWP, tRP) */ in txx9ndfmc_probe() 299 if (plat->flags & NDFMC_PLAT_FLAG_HOLDADD) in txx9ndfmc_probe() 320 if (!(plat->ch_mask & (1 << i))) in txx9ndfmc_probe() 341 if (plat->ch_mask != 1) { in txx9ndfmc_probe() [all …]
|
| /linux-6.15/drivers/net/ethernet/samsung/sxgbe/ |
| H A D | sxgbe_platform.c | 28 struct sxgbe_plat_data *plat) in sxgbe_probe_config_dt() argument 37 err = of_get_phy_mode(np, &plat->interface); in sxgbe_probe_config_dt() 41 plat->bus_id = of_alias_get_id(np, "ethernet"); in sxgbe_probe_config_dt() 42 if (plat->bus_id < 0) in sxgbe_probe_config_dt() 43 plat->bus_id = 0; in sxgbe_probe_config_dt() 45 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in sxgbe_probe_config_dt() 46 sizeof(*plat->mdio_bus_data), in sxgbe_probe_config_dt() 48 if (!plat->mdio_bus_data) in sxgbe_probe_config_dt() 55 plat->dma_cfg = dma_cfg; in sxgbe_probe_config_dt() 64 struct sxgbe_plat_data *plat) in sxgbe_probe_config_dt() argument
|
| /linux-6.15/sound/soc/ux500/ |
| H A D | Makefile | 4 snd-soc-ux500-plat-msp-i2s-y := ux500_msp_dai.o ux500_msp_i2s.o 5 obj-$(CONFIG_SND_SOC_UX500_PLAT_MSP_I2S) += snd-soc-ux500-plat-msp-i2s.o 7 snd-soc-ux500-plat-dma-y := ux500_pcm.o 8 obj-$(CONFIG_SND_SOC_UX500_PLAT_DMA) += snd-soc-ux500-plat-dma.o
|
| /linux-6.15/drivers/usb/typec/ |
| H A D | anx7411.c | 1464 struct anx7411_data *plat; in anx7411_i2c_probe() local 1471 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in anx7411_i2c_probe() 1472 if (!plat) in anx7411_i2c_probe() 1475 plat->tcpc_client = client; in anx7411_i2c_probe() 1478 mutex_init(&plat->lock); in anx7411_i2c_probe() 1501 anx7411_get_gpio_irq(plat); in anx7411_i2c_probe() 1503 if (!plat->intp_irq) { in anx7411_i2c_probe() 1509 plat->dev = dev; in anx7411_i2c_probe() 1522 if (!plat->workqueue) { in anx7411_i2c_probe() 1532 "anx7411-intp", plat); in anx7411_i2c_probe() [all …]
|