Lines Matching refs:gem
89 struct gemac_s *gem = priv->gem; in pfe_eth_write_hwaddr() local
94 gem->gemac_base + EMAC_PHY_ADDR_LOW); in pfe_eth_write_hwaddr()
95 writel((mac[4] << 24) + (mac[5] << 16) + 0x8808, gem->gemac_base + in pfe_eth_write_hwaddr()
110 pfe_gemac_disable(priv->gem->gemac_base); in pfe_eth_stop()
112 gpi_disable(priv->gem->egpi_base); in pfe_eth_stop()
118 struct gemac_s *gem = priv->gem; in pfe_eth_start() local
124 writel(EMAC_TFWR, gem->gemac_base + EMAC_TFWR_STR_FWD); in pfe_eth_start()
125 writel(EMAC_RX_SECTION_FULL_32, gem->gemac_base + EMAC_RX_SECTIOM_FULL); in pfe_eth_start()
126 writel(EMAC_TRUNC_FL_16K, gem->gemac_base + EMAC_TRUNC_FL); in pfe_eth_start()
127 writel(EMAC_TX_SECTION_EMPTY_30, gem->gemac_base in pfe_eth_start()
129 writel(EMAC_MIBC_NO_CLR_NO_DIS, gem->gemac_base in pfe_eth_start()
147 pfe_gemac_set_speed(gem->gemac_base, speed); in pfe_eth_start()
150 gpi_enable(gem->egpi_base); in pfe_eth_start()
153 pfe_gemac_enable(gem->gemac_base); in pfe_eth_start()
241 priv->gem = &gem_info[priv->gemac_port]; in pfe_eth_probe()
247 priv->gem->gemac_base = EMAC1_BASE_ADDR; in pfe_eth_probe()
248 priv->gem->egpi_base = EGPI1_BASE_ADDR; in pfe_eth_probe()
251 priv->gem->gemac_base = EMAC2_BASE_ADDR; in pfe_eth_probe()
252 priv->gem->egpi_base = EGPI2_BASE_ADDR; in pfe_eth_probe()