/linux-6.14.4/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-intel.c | 35 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 96 if (priv->plat->max_speed == 2500) in intel_serdes_powerup() 249 priv->plat->max_speed = 2500; in intel_speed_mode_2500() 250 priv->plat->phy_interface = PHY_INTERFACE_MODE_2500BASEX; in intel_speed_mode_2500() 251 priv->plat->mdio_bus_data->default_an_inband = false; in intel_speed_mode_2500() 253 priv->plat->max_speed = 1000; in intel_speed_mode_2500() 265 intel_priv = (struct intel_priv_data *)priv->plat->bsp_priv; in intel_mgbe_ptp_clk_freq_config() 323 intel_priv = priv->plat->bsp_priv; in intel_crosststamp() 328 if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN) in intel_crosststamp() 331 priv->plat->flags |= STMMAC_FLAG_INT_SNAPSHOT_EN; in intel_crosststamp() [all …]
|
D | stmmac_pci.c | 19 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 22 static void common_default_data(struct plat_stmmacenet_data *plat) in common_default_data() argument 24 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in common_default_data() 25 plat->has_gmac = 1; in common_default_data() 26 plat->force_sf_dma_mode = 1; in common_default_data() 28 plat->mdio_bus_data->needs_reset = true; in common_default_data() 31 plat->multicast_filter_bins = HASH_TABLE_SIZE; in common_default_data() 34 plat->unicast_filter_entries = 1; in common_default_data() 37 plat->maxmtu = JUMBO_LEN; in common_default_data() 40 plat->tx_queues_to_use = 1; in common_default_data() [all …]
|
D | stmmac_platform.c | 129 * @plat: enet data 132 struct plat_stmmacenet_data *plat) in stmmac_mtl_setup() argument 144 plat->rx_queues_to_use = 1; in stmmac_mtl_setup() 145 plat->tx_queues_to_use = 1; in stmmac_mtl_setup() 151 plat->rx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup() 152 plat->tx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup() 166 &plat->rx_queues_to_use)) in stmmac_mtl_setup() 167 plat->rx_queues_to_use = 1; in stmmac_mtl_setup() 170 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP; in stmmac_mtl_setup() 172 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_WSP; in stmmac_mtl_setup() [all …]
|
D | dwmac-mediatek.c | 91 int (*dwmac_set_phy_interface)(struct mediatek_dwmac_plat_data *plat); 92 int (*dwmac_set_delay)(struct mediatek_dwmac_plat_data *plat); 112 static int mt2712_set_interface(struct mediatek_dwmac_plat_data *plat) in mt2712_set_interface() argument 114 int rmii_clk_from_mac = plat->rmii_clk_from_mac ? RMII_CLK_SRC_INTERNAL : 0; in mt2712_set_interface() 115 int rmii_rxc = plat->rmii_rxc ? RMII_CLK_SRC_RXC : 0; in mt2712_set_interface() 119 switch (plat->phy_mode) { in mt2712_set_interface() 133 dev_err(plat->dev, "phy interface not supported\n"); in mt2712_set_interface() 137 regmap_write(plat->peri_regmap, PERI_ETH_PHY_INTF_SEL, intf_val); in mt2712_set_interface() 142 static void mt2712_delay_ps2stage(struct mediatek_dwmac_plat_data *plat) in mt2712_delay_ps2stage() argument 144 struct mac_delay_struct *mac_delay = &plat->mac_delay; in mt2712_delay_ps2stage() [all …]
|
D | dwmac-loongson.c | 80 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 84 struct plat_stmmacenet_data *plat) in loongson_default_data() argument 87 plat->bus_id = pci_dev_id(pdev); in loongson_default_data() 89 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in loongson_default_data() 90 plat->has_gmac = 1; in loongson_default_data() 91 plat->force_sf_dma_mode = 1; in loongson_default_data() 94 plat->multicast_filter_bins = 256; in loongson_default_data() 96 plat->mac_interface = PHY_INTERFACE_MODE_NA; in loongson_default_data() 99 plat->unicast_filter_entries = 1; in loongson_default_data() 102 plat->maxmtu = JUMBO_LEN; in loongson_default_data() [all …]
|
D | dwmac-thead.c | 52 struct plat_stmmacenet_data *plat; member 57 static int thead_dwmac_set_phy_if(struct plat_stmmacenet_data *plat) in thead_dwmac_set_phy_if() argument 59 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_phy_if() 62 switch (plat->mac_interface) { in thead_dwmac_set_phy_if() 74 plat->mac_interface); in thead_dwmac_set_phy_if() 82 static int thead_dwmac_set_txclk_dir(struct plat_stmmacenet_data *plat) in thead_dwmac_set_txclk_dir() argument 84 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_txclk_dir() 87 switch (plat->mac_interface) { in thead_dwmac_set_txclk_dir() 99 plat->mac_interface); in thead_dwmac_set_txclk_dir() 109 struct plat_stmmacenet_data *plat; in thead_dwmac_fix_speed() local [all …]
|
D | dwmac-s32.c | 123 struct plat_stmmacenet_data *plat; in s32_dwmac_probe() local 140 plat = devm_stmmac_probe_config_dt(pdev, res.mac); in s32_dwmac_probe() 141 if (IS_ERR(plat)) in s32_dwmac_probe() 142 return dev_err_probe(dev, PTR_ERR(plat), in s32_dwmac_probe() 163 gmac->intf_mode = &plat->phy_interface; in s32_dwmac_probe() 167 plat->has_gmac4 = true; in s32_dwmac_probe() 168 plat->pmt = 1; in s32_dwmac_probe() 169 plat->flags |= STMMAC_FLAG_SPH_DISABLE; in s32_dwmac_probe() 170 plat->rx_fifo_size = 20480; in s32_dwmac_probe() 171 plat->tx_fifo_size = 20480; in s32_dwmac_probe() [all …]
|
D | dwmac-tegra.c | 216 struct plat_stmmacenet_data *plat; in tegra_mgbe_probe() local 305 plat = devm_stmmac_probe_config_dt(pdev, res.mac); in tegra_mgbe_probe() 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() 312 plat->flags |= STMMAC_FLAG_TSO_EN; 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() 317 plat->mdio_node = of_get_child_by_name(pdev->dev.of_node, "mdio"); in tegra_mgbe_probe() [all …]
|
D | stmmac_main.c | 153 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 156 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config() 158 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 161 if (priv->plat->clks_config) { in stmmac_bus_clks_config() 162 ret = priv->plat->clks_config(priv->plat->bsp_priv, enabled); in stmmac_bus_clks_config() 164 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 165 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config() 170 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 171 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config() 172 if (priv->plat->clks_config) in stmmac_bus_clks_config() [all …]
|
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 …]
|
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 …]
|
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()
|
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() 506 devnode = priv->plat->port_node; in stmmac_pcs_setup() 508 if (priv->plat->pcs_init) { in stmmac_pcs_setup() 509 ret = priv->plat->pcs_init(priv); in stmmac_pcs_setup() 515 } else if (priv->plat->mdio_bus_data && in stmmac_pcs_setup() 516 priv->plat->mdio_bus_data->pcs_mask) { in stmmac_pcs_setup() 517 addr = ffs(priv->plat->mdio_bus_data->pcs_mask) - 1; in stmmac_pcs_setup() 536 if (priv->plat->pcs_exit) in stmmac_pcs_clean() [all …]
|
D | stmmac_ethtool.c | 306 if (priv->plat->has_gmac || priv->plat->has_gmac4) in stmmac_ethtool_getdrvinfo() 308 else if (priv->plat->has_xgmac) in stmmac_ethtool_getdrvinfo() 314 if (priv->plat->pdev) { in stmmac_ethtool_getdrvinfo() 315 strscpy(info->bus_info, pci_name(priv->plat->pdev), in stmmac_ethtool_getdrvinfo() 325 if (!(priv->plat->flags & STMMAC_FLAG_HAS_INTEGRATED_PCS) && in stmmac_ethtool_get_link_ksettings() 412 if (!(priv->plat->flags & STMMAC_FLAG_HAS_INTEGRATED_PCS) && in stmmac_ethtool_set_link_ksettings() 446 if (priv->plat->has_xgmac) in stmmac_ethtool_get_regs_len() 448 else if (priv->plat->has_gmac4) in stmmac_ethtool_get_regs_len() 463 if (priv->plat->has_gmac4) { in stmmac_ethtool_gregs() 468 } else if (!priv->plat->has_xgmac) { in stmmac_ethtool_gregs() [all …]
|
/linux-6.14.4/drivers/media/platform/qcom/venus/ |
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() 34 freq = plat->codec_vpp_freq(session_type, codec); in hfi_platform_get_codec_vpp_freq() 42 const struct hfi_platform *plat; in hfi_platform_get_codec_vsp_freq() local 45 plat = hfi_platform_get(version); in hfi_platform_get_codec_vsp_freq() 46 if (!plat) in hfi_platform_get_codec_vsp_freq() 49 if (plat->codec_vpp_freq) in hfi_platform_get_codec_vsp_freq() 50 freq = plat->codec_vsp_freq(session_type, codec); in hfi_platform_get_codec_vsp_freq() [all …]
|
/linux-6.14.4/drivers/ata/ |
D | ahci_mtk.c | 48 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_platform_resets() local 52 plat->axi_rst = devm_reset_control_get_optional_exclusive(dev, "axi"); in mtk_ahci_platform_resets() 53 if (PTR_ERR(plat->axi_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 54 return PTR_ERR(plat->axi_rst); in mtk_ahci_platform_resets() 56 plat->sw_rst = devm_reset_control_get_optional_exclusive(dev, "sw"); in mtk_ahci_platform_resets() 57 if (PTR_ERR(plat->sw_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 58 return PTR_ERR(plat->sw_rst); in mtk_ahci_platform_resets() 60 plat->reg_rst = devm_reset_control_get_optional_exclusive(dev, "reg"); in mtk_ahci_platform_resets() 61 if (PTR_ERR(plat->reg_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 62 return PTR_ERR(plat->reg_rst); in mtk_ahci_platform_resets() [all …]
|
/linux-6.14.4/drivers/media/platform/mediatek/mdp3/ |
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 126 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_OFST(plat, cfg, ofst)) 128 #define _CFG_ADDR(plat, cfg, mem) (&((cfg)->config_##plat.mem)) argument 129 #define CFG_ADDR(plat, cfg, mem) \ argument 130 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_ADDR(plat, cfg, mem)) 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)) [all …]
|
/linux-6.14.4/drivers/mtd/maps/ |
D | sa1100-flash.c | 31 struct flash_platform_data *plat; member 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() 116 subdev->mtd = do_map_probe(subdev->plat->map_name, &subdev->map); in sa1100_probe_subdev() 134 static void sa1100_destroy(struct sa_info *info, struct flash_platform_data *plat) in sa1100_destroy() argument 148 if (plat->exit) in sa1100_destroy() 149 plat->exit(); in sa1100_destroy() 153 struct flash_platform_data *plat) in sa1100_setup_mtd() argument 179 if (plat->init) { in sa1100_setup_mtd() [all …]
|
/linux-6.14.4/drivers/input/keyboard/ |
D | tc3589x-keypad.c | 325 struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_of_probe() local 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() 353 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe() 355 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe() [all …]
|
/linux-6.14.4/drivers/net/ethernet/broadcom/ |
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() 48 return readl(bgmac->plat.idm_base + offset); in platform_bgmac_idm_read() 53 writel(value, bgmac->plat.idm_base + offset); in platform_bgmac_idm_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() 128 bgmac->plat.nicpm_base + NICPM_PADRING_CFG); in bgmac_nicpm_speed_set() 146 writel(val, bgmac->plat.nicpm_base + NICPM_IOMUX_CTRL); in bgmac_nicpm_speed_set() 155 if (bgmac->plat.nicpm_base) in platform_phy_connect() [all …]
|
/linux-6.14.4/drivers/mtd/nand/raw/ |
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 244 int ret = gpio_nand_get_config_of(dev, plat); in gpio_nand_get_config() 250 memcpy(plat, dev_get_platdata(dev), sizeof(*plat)); in gpio_nand_get_config() 314 ret = gpio_nand_get_config(dev, &gpiomtd->plat); in gpio_nand_probe() 352 chip->options = gpiomtd->plat.options; in gpio_nand_probe() [all …]
|
D | txx9ndfmc.c | 85 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in ndregaddr() local 87 return drvdata->base + (reg << plat->shift); in ndregaddr() 135 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_cmd_ctrl() local 153 if (plat->flags & NDFMC_PLAT_FLAG_DUMMYWRITE) { in txx9ndfmc_cmd_ctrl() 221 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_initialize() local 225 if (plat->flags & NDFMC_PLAT_FLAG_NO_RSTR) in txx9ndfmc_initialize() 244 (plat->flags & NDFMC_PLAT_FLAG_USE_BSPRT) ? in txx9ndfmc_initialize() 281 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_probe() local 285 unsigned long gbusclk = plat->gbus_clock; in txx9ndfmc_probe() 294 hold = plat->hold ?: 20; /* tDH */ in txx9ndfmc_probe() [all …]
|
/linux-6.14.4/drivers/net/ethernet/samsung/sxgbe/ |
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.14.4/Documentation/arch/arm/samsung/ |
D | overview.rst | 38 plat-samsung provides the base for all the implementations, and is the 43 plat-s5p is for s5p specific builds, and contains common support for the 51 The old plat-s3c and plat-s5pc1xx directories have been removed, with 52 support moved to either plat-samsung or plat-s5p as necessary. These moves
|
/linux-6.14.4/drivers/usb/typec/ |
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() 1476 i2c_set_clientdata(client, plat); in anx7411_i2c_probe() 1478 mutex_init(&plat->lock); in anx7411_i2c_probe() 1480 ret = anx7411_register_i2c_dummy_clients(plat, client); in anx7411_i2c_probe() 1486 ret = anx7411_typec_switch_probe(plat, dev); in anx7411_i2c_probe() 1492 ret = anx7411_typec_port_probe(plat, dev); in anx7411_i2c_probe() 1499 plat->intp_irq = client->irq; in anx7411_i2c_probe() [all …]
|