| /kernel/linux/linux-6.6/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->xpcs_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 | 14 static int loongson_default_data(struct plat_stmmacenet_data *plat) in loongson_default_data() argument 17 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in loongson_default_data() 18 plat->has_gmac = 1; in loongson_default_data() 19 plat->force_sf_dma_mode = 1; in loongson_default_data() 22 plat->multicast_filter_bins = HASH_TABLE_SIZE; in loongson_default_data() 25 plat->unicast_filter_entries = 1; in loongson_default_data() 28 plat->maxmtu = JUMBO_LEN; in loongson_default_data() 31 plat->tx_queues_to_use = 1; in loongson_default_data() 32 plat->rx_queues_to_use = 1; in loongson_default_data() 35 plat->tx_queues_cfg[0].use_prio = false; in loongson_default_data() [all …]
|
| D | stmmac_ptp.c | 59 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_adjust_time() 71 if (priv->plat->est && priv->plat->est->enable) { in stmmac_adjust_time() 74 priv->plat->est->enable = false; in stmmac_adjust_time() 75 stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time() 76 priv->plat->clk_ptp_rate); in stmmac_adjust_time() 93 time.tv_nsec = priv->plat->est->btr_reserve[0]; in stmmac_adjust_time() 94 time.tv_sec = priv->plat->est->btr_reserve[1]; in stmmac_adjust_time() 96 cycle_time = (u64)priv->plat->est->ctr[1] * NSEC_PER_SEC + in stmmac_adjust_time() 97 priv->plat->est->ctr[0]; in stmmac_adjust_time() 102 priv->plat->est->btr[0] = (u32)time.tv_nsec; in stmmac_adjust_time() [all …]
|
| D | dwmac-tegra.c | 216 struct plat_stmmacenet_data *plat; in tegra_mgbe_probe() local 305 plat = 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_tc.c | 285 if (!priv->plat->fpe_cfg) { in tc_init() 286 priv->plat->fpe_cfg = devm_kzalloc(priv->device, in tc_init() 287 sizeof(*priv->plat->fpe_cfg), in tc_init() 289 if (!priv->plat->fpe_cfg) in tc_init() 292 memset(priv->plat->fpe_cfg, 0, sizeof(*priv->plat->fpe_cfg)); in tc_init() 345 u32 tx_queues_count = priv->plat->tx_queues_to_use; in tc_setup_cbs() 385 mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use; in tc_setup_cbs() 391 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB; in tc_setup_cbs() 398 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB; in tc_setup_cbs() 404 priv->plat->tx_queues_cfg[queue].idle_slope = value & GENMASK(31, 0); in tc_setup_cbs() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
| D | dwmac-intel.c | 32 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 204 static void common_default_data(struct plat_stmmacenet_data *plat) in common_default_data() argument 206 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in common_default_data() 207 plat->has_gmac = 1; in common_default_data() 208 plat->force_sf_dma_mode = 1; in common_default_data() 210 plat->mdio_bus_data->needs_reset = true; in common_default_data() 213 plat->multicast_filter_bins = HASH_TABLE_SIZE; in common_default_data() 216 plat->unicast_filter_entries = 1; in common_default_data() 219 plat->maxmtu = JUMBO_LEN; in common_default_data() 222 plat->tx_queues_to_use = 1; in common_default_data() [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 | 64 int (*dwmac_set_phy_interface)(struct mediatek_dwmac_plat_data *plat); 65 int (*dwmac_set_delay)(struct mediatek_dwmac_plat_data *plat); 81 static int mt2712_set_interface(struct mediatek_dwmac_plat_data *plat) in mt2712_set_interface() argument 83 int rmii_clk_from_mac = plat->rmii_clk_from_mac ? RMII_CLK_SRC_INTERNAL : 0; in mt2712_set_interface() 84 int rmii_rxc = plat->rmii_rxc ? RMII_CLK_SRC_RXC : 0; in mt2712_set_interface() 91 * configured, equals to (plat->variant->num_clks - 1) in default for all the case, in mt2712_set_interface() 94 plat->num_clks_to_config = plat->variant->num_clks - 1; in mt2712_set_interface() 97 switch (plat->phy_mode) { in mt2712_set_interface() 102 if (plat->rmii_clk_from_mac) in mt2712_set_interface() 103 plat->num_clks_to_config++; in mt2712_set_interface() [all …]
|
| D | dwmac-loongson.c | 13 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 17 struct plat_stmmacenet_data *plat) in common_default_data() argument 19 plat->bus_id = (pci_domain_nr(pdev->bus) << 16) | PCI_DEVID(pdev->bus->number, pdev->devfn); in common_default_data() 20 plat->interface = PHY_INTERFACE_MODE_GMII; in common_default_data() 22 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in common_default_data() 23 plat->has_gmac = 1; in common_default_data() 24 plat->force_sf_dma_mode = 1; in common_default_data() 27 plat->multicast_filter_bins = 256; in common_default_data() 30 plat->unicast_filter_entries = 1; in common_default_data() 33 plat->maxmtu = JUMBO_LEN; in common_default_data() [all …]
|
| D | stmmac_tc.c | 312 u32 tx_queues_count = priv->plat->tx_queues_to_use; in tc_setup_cbs() 351 mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use; in tc_setup_cbs() 357 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB; in tc_setup_cbs() 364 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB; in tc_setup_cbs() 369 priv->plat->tx_queues_cfg[queue].idle_slope = value & GENMASK(31, 0); in tc_setup_cbs() 372 priv->plat->tx_queues_cfg[queue].send_slope = value & GENMASK(31, 0); in tc_setup_cbs() 375 priv->plat->tx_queues_cfg[queue].high_credit = value & GENMASK(31, 0); in tc_setup_cbs() 378 priv->plat->tx_queues_cfg[queue].low_credit = value & GENMASK(31, 0); in tc_setup_cbs() 381 priv->plat->tx_queues_cfg[queue].send_slope, in tc_setup_cbs() 382 priv->plat->tx_queues_cfg[queue].idle_slope, in tc_setup_cbs() [all …]
|
| D | stmmac_main.c | 129 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 132 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config() 134 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 138 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 139 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config() 173 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_disable_all_queues() 174 u32 tx_queues_cnt = priv->plat->tx_queues_to_use; in stmmac_disable_all_queues() 194 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_enable_all_queues() 195 u32 tx_queues_cnt = priv->plat->tx_queues_to_use; in stmmac_enable_all_queues() 239 clk_rate = clk_get_rate(priv->plat->stmmac_clk); in stmmac_clk_csr_set() [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/drivers/ata/ |
| D | ahci_mtk.c | 47 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_platform_resets() local 51 plat->axi_rst = devm_reset_control_get_optional_exclusive(dev, "axi"); in mtk_ahci_platform_resets() 52 if (PTR_ERR(plat->axi_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 53 return PTR_ERR(plat->axi_rst); in mtk_ahci_platform_resets() 55 plat->sw_rst = devm_reset_control_get_optional_exclusive(dev, "sw"); in mtk_ahci_platform_resets() 56 if (PTR_ERR(plat->sw_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 57 return PTR_ERR(plat->sw_rst); in mtk_ahci_platform_resets() 59 plat->reg_rst = devm_reset_control_get_optional_exclusive(dev, "reg"); in mtk_ahci_platform_resets() 60 if (PTR_ERR(plat->reg_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 61 return PTR_ERR(plat->reg_rst); in mtk_ahci_platform_resets() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp3/ |
| D | mtk-img-ipi.h | 119 #define CFG_CHECK(plat, p_id) ((plat) == (p_id)) argument 121 #define _CFG_OFST(plat, cfg, ofst) ((void *)(&((cfg)->config_##plat) + (ofst))) argument 122 #define CFG_OFST(plat, cfg, ofst) \ argument 123 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_OFST(plat, cfg, ofst)) 125 #define _CFG_ADDR(plat, cfg, mem) (&((cfg)->config_##plat.mem)) argument 126 #define CFG_ADDR(plat, cfg, mem) \ argument 127 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_ADDR(plat, cfg, mem)) 129 #define _CFG_GET(plat, cfg, mem) ((cfg)->config_##plat.mem) argument 130 #define CFG_GET(plat, cfg, mem) \ argument 131 (IS_ERR_OR_NULL(cfg) ? 0 : _CFG_GET(plat, cfg, mem)) [all …]
|
| /kernel/linux/linux-6.6/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 181 if (plat->init) { in sa1100_setup_mtd() [all …]
|
| /kernel/linux/linux-5.10/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 181 if (plat->init) { in sa1100_setup_mtd() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/keyboard/ |
| D | tc3589x-keypad.c | 325 struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_of_probe() local 333 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe() 334 if (!plat) in tc3589x_keypad_of_probe() 339 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe() 340 plat->krow = (u8) rows; in tc3589x_keypad_of_probe() 341 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe() 342 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe() 345 plat->kcol, plat->krow); in tc3589x_keypad_of_probe() 354 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe() 356 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe() [all …]
|
| /kernel/linux/linux-6.6/drivers/input/keyboard/ |
| D | tc3589x-keypad.c | 325 struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_of_probe() local 333 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe() 334 if (!plat) in tc3589x_keypad_of_probe() 339 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe() 340 plat->krow = (u8) rows; in tc3589x_keypad_of_probe() 341 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe() 342 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe() 345 plat->kcol, plat->krow); in tc3589x_keypad_of_probe() 354 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe() 356 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe() [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|