/Linux-v5.4/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 | 6204 u32 i, mac_reg, wuc; in e1000_init_phy_wakeup() local 6224 mac_reg = E1000_READ_REG_ARRAY(hw, E1000_MTA, i); in e1000_init_phy_wakeup() 6226 (u16)(mac_reg & 0xFFFF)); in e1000_init_phy_wakeup() 6228 (u16)((mac_reg >> 16) & 0xFFFF)); in e1000_init_phy_wakeup() 6233 mac_reg = er32(RCTL); in e1000_init_phy_wakeup() 6234 if (mac_reg & E1000_RCTL_UPE) in e1000_init_phy_wakeup() 6236 if (mac_reg & E1000_RCTL_MPE) in e1000_init_phy_wakeup() 6239 if (mac_reg & E1000_RCTL_MO_3) in e1000_init_phy_wakeup() 6240 phy_reg |= (((mac_reg & E1000_RCTL_MO_3) >> E1000_RCTL_MO_SHIFT) in e1000_init_phy_wakeup() 6242 if (mac_reg & E1000_RCTL_BAM) in e1000_init_phy_wakeup() [all …]
|
/Linux-v5.4/drivers/net/ethernet/amd/ |
D | au1000_eth.h | 56 struct mac_reg { struct 106 struct mac_reg *mac; /* mac registers */
|
D | au1000_eth.c | 1163 aup->mac = (struct mac_reg *) in au1000_probe()
|
/Linux-v5.4/drivers/staging/rtl8188eu/hal/ |
D | phy.c | 798 static void save_mac_registers(struct adapter *adapt, u32 *mac_reg, in save_mac_registers() argument 804 backup[i] = usb_read8(adapt, mac_reg[i]); in save_mac_registers() 806 backup[i] = usb_read32(adapt, mac_reg[i]); in save_mac_registers() 819 u32 *mac_reg, u32 *backup) in reload_mac_registers() argument 824 usb_write8(adapt, mac_reg[i], (u8)backup[i]); in reload_mac_registers() 826 usb_write32(adapt, mac_reg[i], backup[i]); in reload_mac_registers() 847 static void mac_setting_calibration(struct adapter *adapt, u32 *mac_reg, u32 *backup) in mac_setting_calibration() argument 851 usb_write8(adapt, mac_reg[i], 0x3F); in mac_setting_calibration() 854 usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT(3)))); in mac_setting_calibration() 856 usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT(5)))); in mac_setting_calibration()
|
/Linux-v5.4/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 | 3274 u32 mac_reg = (rtlhal->interfaceindex == 0 ? REG_MAC0 : REG_MAC1); in rtl92d_phy_set_poweron() local 3278 value8 = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_set_poweron() 3280 rtl_write_byte(rtlpriv, mac_reg, value8); in rtl92d_phy_set_poweron() 3282 value8 = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_set_poweron() 3284 rtl_write_byte(rtlpriv, mac_reg, value8); in rtl92d_phy_set_poweron()
|
/Linux-v5.4/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-v5.4/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-v5.4/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-dev.c | 974 struct netdev_hw_addr *ha, unsigned int *mac_reg) in xgbe_set_mac_reg() argument 994 ha->addr, *mac_reg); in xgbe_set_mac_reg() 999 XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_hi); in xgbe_set_mac_reg() 1000 *mac_reg += MAC_MACA_INC; in xgbe_set_mac_reg() 1001 XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_lo); in xgbe_set_mac_reg() 1002 *mac_reg += MAC_MACA_INC; in xgbe_set_mac_reg() 1009 unsigned int mac_reg; in xgbe_set_mac_addn_addrs() local 1012 mac_reg = MAC_MACA1HR; in xgbe_set_mac_addn_addrs() 1019 xgbe_set_mac_reg(pdata, ha, &mac_reg); in xgbe_set_mac_addn_addrs() 1027 xgbe_set_mac_reg(pdata, ha, &mac_reg); in xgbe_set_mac_addn_addrs() [all …]
|
/Linux-v5.4/drivers/net/ethernet/via/ |
D | via-velocity.c | 3110 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3113 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3116 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3170 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3175 writeb(~(*((u8 *) (context->mac_reg + i))), ptr + i + 4); in velocity_restore_context() 3177 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3181 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3184 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3187 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context()
|
D | via-velocity.h | 1226 u8 mac_reg[256]; member
|
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/ |
D | sta_cmd.c | 1159 struct host_cmd_ds_mac_reg_access *mac_reg; in mwifiex_cmd_reg_access() local 1161 cmd->size = cpu_to_le16(sizeof(*mac_reg) + S_DS_GEN); in mwifiex_cmd_reg_access() 1162 mac_reg = &cmd->params.mac_reg; in mwifiex_cmd_reg_access() 1163 mac_reg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_reg_access() 1164 mac_reg->offset = cpu_to_le16((u16) reg_rw->offset); in mwifiex_cmd_reg_access() 1165 mac_reg->value = cpu_to_le32(reg_rw->value); in mwifiex_cmd_reg_access()
|
D | sta_cmdresp.c | 782 r.mac = &resp->params.mac_reg; in mwifiex_ret_reg_access()
|
D | fw.h | 2354 struct host_cmd_ds_mac_reg_access mac_reg; member
|
/Linux-v5.4/drivers/staging/rtl8723bs/hal/ |
D | hal_com_phycfg.c | 2223 if ((pHalData->mac_reg_len == 0) && !pHalData->mac_reg) { in phy_ConfigMACWithParaFile() 2230 pHalData->mac_reg = vzalloc(rlen); in phy_ConfigMACWithParaFile() 2231 if (pHalData->mac_reg) { in phy_ConfigMACWithParaFile() 2232 memcpy(pHalData->mac_reg, pHalData->para_file_buf, rlen); in phy_ConfigMACWithParaFile() 2239 if ((pHalData->mac_reg_len != 0) && (pHalData->mac_reg != NULL)) { in phy_ConfigMACWithParaFile() 2240 memcpy(pHalData->para_file_buf, pHalData->mac_reg, pHalData->mac_reg_len); in phy_ConfigMACWithParaFile() 3261 if (pHalData->mac_reg) in phy_free_filebuf() 3262 vfree(pHalData->mac_reg); in phy_free_filebuf()
|
/Linux-v5.4/drivers/staging/rtl8723bs/include/ |
D | hal_data.h | 445 char *mac_reg; member
|