Lines Matching refs:prueth
111 struct prueth *prueth = emac->prueth; in icssg_config_mii_init() local
115 mii_rt = prueth->mii_rt; in icssg_config_mii_init()
143 static void icssg_miig_queues_init(struct prueth *prueth, int slice) in icssg_miig_queues_init() argument
145 struct regmap *miig_rt = prueth->miig_rt; in icssg_miig_queues_init()
146 void __iomem *smem = prueth->shram.va; in icssg_miig_queues_init()
203 struct prueth *prueth = emac->prueth; in icssg_config_ipg() local
208 icssg_mii_update_ipg(prueth->mii_rt, slice, MII_RT_TX_IPG_1G); in icssg_config_ipg()
211 icssg_mii_update_ipg(prueth->mii_rt, slice, MII_RT_TX_IPG_100M); in icssg_config_ipg()
215 icssg_mii_update_ipg(prueth->mii_rt, slice, MII_RT_TX_IPG_100M); in icssg_config_ipg()
256 struct prueth *prueth = emac->prueth; in prueth_emac_buffer_setup() local
265 addr = lower_32_bits(prueth->msmcram.pa); in prueth_emac_buffer_setup()
270 dev_warn(prueth->dev, "buffer pool needs to be 64KB aligned\n"); in prueth_emac_buffer_setup()
311 static void icssg_init_emac_mode(struct prueth *prueth) in icssg_init_emac_mode() argument
318 if (prueth->emacs_initialized) in icssg_init_emac_mode()
321 regmap_update_bits(prueth->miig_rt, FDB_GEN_CFG1, in icssg_init_emac_mode()
323 regmap_write(prueth->miig_rt, FDB_GEN_CFG2, 0); in icssg_init_emac_mode()
325 icssg_class_set_host_mac_addr(prueth->miig_rt, mac); in icssg_init_emac_mode()
328 int icssg_config(struct prueth *prueth, struct prueth_emac *emac, int slice) in icssg_config() argument
334 icssg_init_emac_mode(prueth); in icssg_config()
337 icssg_miig_queues_init(prueth, slice); in icssg_config()
345 regmap_update_bits(prueth->miig_rt, ICSSG_CFG_OFFSET, in icssg_config()
347 icssg_miig_set_interface_mode(prueth->miig_rt, slice, emac->phy_if); in icssg_config()
350 icssg_update_rgmii_cfg(prueth->miig_rt, emac); in icssg_config()
353 pruss_cfg_gpimode(prueth->pruss, prueth->pru_id[slice], in icssg_config()
357 pruss_cfg_xfr_enable(prueth->pruss, PRU_TYPE_PRU, true); in icssg_config()
358 pruss_cfg_xfr_enable(prueth->pruss, PRU_TYPE_RTU, true); in icssg_config()
361 pru_rproc_set_ctable(prueth->pru[slice], PRU_C28, 0x100 << 8); in icssg_config()
362 pru_rproc_set_ctable(prueth->rtu[slice], PRU_C28, 0x100 << 8); in icssg_config()
363 pru_rproc_set_ctable(prueth->txpru[slice], PRU_C28, 0x100 << 8); in icssg_config()