/openbmc/qemu/hw/net/ |
H A D | e1000.c | 90 uint32_t mac_reg[0x8000]; member 161 e1000x_update_regs_on_link_up(s->mac_reg, s->phy_reg); in DECLARE_OBJ_CHECKERS() 170 e1000x_update_regs_on_autoneg_done(s->mac_reg, s->phy_reg); in e1000_autoneg_done() 196 e1000x_restart_autoneg(s->mac_reg, s->phy_reg, s->autoneg_timer); in set_phy_ctrl() 281 s->mac_reg[ICR] = val; in set_interrupt_cause() 291 s->mac_reg[ICS] = val; in set_interrupt_cause() 293 pending_ints = (s->mac_reg[IMS] & s->mac_reg[ICR]); in set_interrupt_cause() 316 mit_update_delay(&mit_delay, s->mac_reg[TADV] * 4); in set_interrupt_cause() 318 if (s->mac_reg[RDTR] && (pending_ints & E1000_ICS_RXT0)) { in set_interrupt_cause() 319 mit_update_delay(&mit_delay, s->mac_reg[RADV] * 4); in set_interrupt_cause() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | sun8i_emac.c | 134 void *mac_reg; member 172 writel(miiaddr, priv->mac_reg + EMAC_MII_CMD); in sun8i_mdio_read() 176 if (!(readl(priv->mac_reg + EMAC_MII_CMD) & MDIO_CMD_MII_BUSY)) in sun8i_mdio_read() 177 return readl(priv->mac_reg + EMAC_MII_DATA); in sun8i_mdio_read() 204 writel(val, priv->mac_reg + EMAC_MII_DATA); in sun8i_mdio_write() 205 writel(miiaddr, priv->mac_reg + EMAC_MII_CMD); in sun8i_mdio_write() 209 if (!(readl(priv->mac_reg + EMAC_MII_CMD) & in sun8i_mdio_write() 228 writel(macid_hi, priv->mac_reg + EMAC_ADDR0_HIGH); in _sun8i_write_hwaddr() 229 writel(macid_lo, priv->mac_reg + EMAC_ADDR0_LOW); in _sun8i_write_hwaddr() 239 v = readl(priv->mac_reg + EMAC_CTL0); in sun8i_adjust_link() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | ich8lan.c | 182 u32 mac_reg = 0; in e1000_phy_is_accessible_pchlan() local 238 mac_reg = er32(CTRL_EXT); in e1000_phy_is_accessible_pchlan() 239 mac_reg &= ~E1000_CTRL_EXT_FORCE_SMBUS; in e1000_phy_is_accessible_pchlan() 240 ew32(CTRL_EXT, mac_reg); in e1000_phy_is_accessible_pchlan() 256 u32 mac_reg; in e1000_toggle_lanphypc_pch_lpt() local 259 mac_reg = er32(FEXTNVM3); in e1000_toggle_lanphypc_pch_lpt() 260 mac_reg &= ~E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK; in e1000_toggle_lanphypc_pch_lpt() 261 mac_reg |= E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC; in e1000_toggle_lanphypc_pch_lpt() 262 ew32(FEXTNVM3, mac_reg); in e1000_toggle_lanphypc_pch_lpt() 265 mac_reg = er32(CTRL); in e1000_toggle_lanphypc_pch_lpt() [all …]
|
H A D | netdev.c | 6213 u32 i, mac_reg, wuc; in e1000_init_phy_wakeup() local 6233 mac_reg = E1000_READ_REG_ARRAY(hw, E1000_MTA, i); in e1000_init_phy_wakeup() 6235 (u16)(mac_reg & 0xFFFF)); in e1000_init_phy_wakeup() 6237 (u16)((mac_reg >> 16) & 0xFFFF)); in e1000_init_phy_wakeup() 6242 mac_reg = er32(RCTL); in e1000_init_phy_wakeup() 6243 if (mac_reg & E1000_RCTL_UPE) in e1000_init_phy_wakeup() 6245 if (mac_reg & E1000_RCTL_MPE) in e1000_init_phy_wakeup() 6248 if (mac_reg & E1000_RCTL_MO_3) in e1000_init_phy_wakeup() 6249 phy_reg |= (FIELD_GET(E1000_RCTL_MO_3, mac_reg) in e1000_init_phy_wakeup() 6251 if (mac_reg & E1000_RCTL_BAM) in e1000_init_phy_wakeup() [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | au1000_eth.h | 56 struct mac_reg { struct 106 struct mac_reg *mac; /* mac registers */
|
H A D | au1000_eth.c | 1144 aup->mac = (struct mac_reg *) in au1000_probe()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
H A D | rf.c | 388 u8 mac_reg = bmac0 ? REG_MAC1 : REG_MAC0; in rtl92d_phy_enable_anotherphy() local 396 u1btmp = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_enable_anotherphy() 419 u8 mac_reg = bmac0 ? REG_MAC1 : REG_MAC0; in rtl92d_phy_powerdown_anotherphy() local 427 u1btmp = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_powerdown_anotherphy()
|
H A D | phy.c | 3245 u32 mac_reg = (rtlhal->interfaceindex == 0 ? REG_MAC0 : REG_MAC1); in rtl92d_phy_set_poweron() local 3249 value8 = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_set_poweron() 3251 rtl_write_byte(rtlpriv, mac_reg, value8); in rtl92d_phy_set_poweron() 3253 value8 = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_set_poweron() 3255 rtl_write_byte(rtlpriv, mac_reg, value8); in rtl92d_phy_set_poweron()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | phy.c | 241 u32 mac_reg; in mt76x0_phy_set_chan_rf_params() local 385 mac_reg = mt76_rr(dev, MT_TX_ALC_CFG_1); in mt76x0_phy_set_chan_rf_params() 386 mac_reg &= 0x896400FF; in mt76x0_phy_set_chan_rf_params() 387 mt76_wr(dev, MT_TX_ALC_CFG_1, mac_reg); in mt76x0_phy_set_chan_rf_params() 393 mac_reg = mt76_rr(dev, MT_TX_ALC_CFG_1); in mt76x0_phy_set_chan_rf_params() 394 mac_reg &= 0x890400FF; in mt76x0_phy_set_chan_rf_params() 395 mt76_wr(dev, MT_TX_ALC_CFG_1, mac_reg); in mt76x0_phy_set_chan_rf_params()
|
/openbmc/linux/drivers/net/ethernet/synopsys/ |
H A D | dwc-xlgmac-hw.c | 76 unsigned int *mac_reg) in xlgmac_set_mac_reg() argument 96 ha->addr, *mac_reg); in xlgmac_set_mac_reg() 104 writel(mac_addr_hi, pdata->mac_regs + *mac_reg); in xlgmac_set_mac_reg() 105 *mac_reg += MAC_MACA_INC; in xlgmac_set_mac_reg() 106 writel(mac_addr_lo, pdata->mac_regs + *mac_reg); in xlgmac_set_mac_reg() 107 *mac_reg += MAC_MACA_INC; in xlgmac_set_mac_reg() 300 unsigned int mac_reg; in xlgmac_set_mac_addn_addrs() local 302 mac_reg = MAC_MACA1HR; in xlgmac_set_mac_addn_addrs() 309 xlgmac_set_mac_reg(pdata, ha, &mac_reg); in xlgmac_set_mac_addn_addrs() 317 xlgmac_set_mac_reg(pdata, ha, &mac_reg); in xlgmac_set_mac_addn_addrs() [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dev.c | 984 struct netdev_hw_addr *ha, unsigned int *mac_reg) in xgbe_set_mac_reg() argument 1004 ha->addr, *mac_reg); in xgbe_set_mac_reg() 1009 XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_hi); in xgbe_set_mac_reg() 1010 *mac_reg += MAC_MACA_INC; in xgbe_set_mac_reg() 1011 XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_lo); in xgbe_set_mac_reg() 1012 *mac_reg += MAC_MACA_INC; in xgbe_set_mac_reg() 1019 unsigned int mac_reg; in xgbe_set_mac_addn_addrs() local 1022 mac_reg = MAC_MACA1HR; in xgbe_set_mac_addn_addrs() 1029 xgbe_set_mac_reg(pdata, ha, &mac_reg); in xgbe_set_mac_addn_addrs() 1037 xgbe_set_mac_reg(pdata, ha, &mac_reg); in xgbe_set_mac_addn_addrs() [all …]
|
/openbmc/linux/drivers/net/ethernet/via/ |
H A D | via-velocity.c | 3115 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3118 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3121 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3175 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3180 writeb(~(*((u8 *) (context->mac_reg + i))), ptr + i + 4); in velocity_restore_context() 3182 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3186 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3189 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3192 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context()
|
H A D | via-velocity.h | 1225 u8 mac_reg[256]; member
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_cmd.c | 1145 struct host_cmd_ds_mac_reg_access *mac_reg; in mwifiex_cmd_reg_access() local 1147 cmd->size = cpu_to_le16(sizeof(*mac_reg) + S_DS_GEN); in mwifiex_cmd_reg_access() 1148 mac_reg = &cmd->params.mac_reg; in mwifiex_cmd_reg_access() 1149 mac_reg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_reg_access() 1150 mac_reg->offset = cpu_to_le16((u16) reg_rw->offset); in mwifiex_cmd_reg_access() 1151 mac_reg->value = cpu_to_le32(reg_rw->value); in mwifiex_cmd_reg_access()
|
H A D | sta_cmdresp.c | 803 r.mac = &resp->params.mac_reg; in mwifiex_ret_reg_access()
|
H A D | fw.h | 2355 struct host_cmd_ds_mac_reg_access mac_reg; member
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | rtw8852a_rfk.c | 3512 const struct rtw89_chip_info *mac_reg = rtwdev->chip; in _tssi_pre_tx() local 3533 xdbm = (power * 100) >> mac_reg->txpwr_factor_mac; in _tssi_pre_tx()
|