/linux-6.1.9/drivers/net/ethernet/intel/e1000e/ |
D | ich8lan.c | 182 u32 mac_reg = 0; in e1000_phy_is_accessible_pchlan() local 231 mac_reg = er32(CTRL_EXT); in e1000_phy_is_accessible_pchlan() 232 mac_reg &= ~E1000_CTRL_EXT_FORCE_SMBUS; in e1000_phy_is_accessible_pchlan() 233 ew32(CTRL_EXT, mac_reg); in e1000_phy_is_accessible_pchlan() 249 u32 mac_reg; in e1000_toggle_lanphypc_pch_lpt() local 252 mac_reg = er32(FEXTNVM3); in e1000_toggle_lanphypc_pch_lpt() 253 mac_reg &= ~E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK; in e1000_toggle_lanphypc_pch_lpt() 254 mac_reg |= E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC; in e1000_toggle_lanphypc_pch_lpt() 255 ew32(FEXTNVM3, mac_reg); in e1000_toggle_lanphypc_pch_lpt() 258 mac_reg = er32(CTRL); in e1000_toggle_lanphypc_pch_lpt() [all …]
|
D | netdev.c | 6245 u32 i, mac_reg, wuc; in e1000_init_phy_wakeup() local 6265 mac_reg = E1000_READ_REG_ARRAY(hw, E1000_MTA, i); in e1000_init_phy_wakeup() 6267 (u16)(mac_reg & 0xFFFF)); in e1000_init_phy_wakeup() 6269 (u16)((mac_reg >> 16) & 0xFFFF)); in e1000_init_phy_wakeup() 6274 mac_reg = er32(RCTL); in e1000_init_phy_wakeup() 6275 if (mac_reg & E1000_RCTL_UPE) in e1000_init_phy_wakeup() 6277 if (mac_reg & E1000_RCTL_MPE) in e1000_init_phy_wakeup() 6280 if (mac_reg & E1000_RCTL_MO_3) in e1000_init_phy_wakeup() 6281 phy_reg |= (((mac_reg & E1000_RCTL_MO_3) >> E1000_RCTL_MO_SHIFT) in e1000_init_phy_wakeup() 6283 if (mac_reg & E1000_RCTL_BAM) in e1000_init_phy_wakeup() [all …]
|
/linux-6.1.9/drivers/net/ethernet/amd/ |
D | au1000_eth.h | 56 struct mac_reg { struct 106 struct mac_reg *mac; /* mac registers */
|
D | au1000_eth.c | 1144 aup->mac = (struct mac_reg *) in au1000_probe()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
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()
|
D | phy.c | 3252 u32 mac_reg = (rtlhal->interfaceindex == 0 ? REG_MAC0 : REG_MAC1); in rtl92d_phy_set_poweron() local 3256 value8 = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_set_poweron() 3258 rtl_write_byte(rtlpriv, mac_reg, value8); in rtl92d_phy_set_poweron() 3260 value8 = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_set_poweron() 3262 rtl_write_byte(rtlpriv, mac_reg, value8); in rtl92d_phy_set_poweron()
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt76x0/ |
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()
|
/linux-6.1.9/drivers/net/ethernet/synopsys/ |
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 …]
|
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-dev.c | 981 struct netdev_hw_addr *ha, unsigned int *mac_reg) in xgbe_set_mac_reg() argument 1001 ha->addr, *mac_reg); in xgbe_set_mac_reg() 1006 XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_hi); in xgbe_set_mac_reg() 1007 *mac_reg += MAC_MACA_INC; in xgbe_set_mac_reg() 1008 XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_lo); in xgbe_set_mac_reg() 1009 *mac_reg += MAC_MACA_INC; in xgbe_set_mac_reg() 1016 unsigned int mac_reg; in xgbe_set_mac_addn_addrs() local 1019 mac_reg = MAC_MACA1HR; in xgbe_set_mac_addn_addrs() 1026 xgbe_set_mac_reg(pdata, ha, &mac_reg); in xgbe_set_mac_addn_addrs() 1034 xgbe_set_mac_reg(pdata, ha, &mac_reg); in xgbe_set_mac_addn_addrs() [all …]
|
/linux-6.1.9/drivers/net/ethernet/via/ |
D | via-velocity.c | 3116 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3119 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3122 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3176 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3181 writeb(~(*((u8 *) (context->mac_reg + i))), ptr + i + 4); in velocity_restore_context() 3183 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3187 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3190 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3193 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context()
|
D | via-velocity.h | 1225 u8 mac_reg[256]; member
|
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/ |
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()
|
D | sta_cmdresp.c | 803 r.mac = &resp->params.mac_reg; in mwifiex_ret_reg_access()
|
D | fw.h | 2353 struct host_cmd_ds_mac_reg_access mac_reg; member
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/ |
D | rtw8852a_rfk.c | 3539 const struct rtw89_chip_info *mac_reg = rtwdev->chip; in _tssi_pre_tx() local 3560 xdbm = (power * 100) >> mac_reg->txpwr_factor_mac; in _tssi_pre_tx()
|