/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 | 6221 u32 i, mac_reg, wuc; in e1000_init_phy_wakeup() local 6241 mac_reg = E1000_READ_REG_ARRAY(hw, E1000_MTA, i); in e1000_init_phy_wakeup() 6243 (u16)(mac_reg & 0xFFFF)); in e1000_init_phy_wakeup() 6245 (u16)((mac_reg >> 16) & 0xFFFF)); in e1000_init_phy_wakeup() 6250 mac_reg = er32(RCTL); in e1000_init_phy_wakeup() 6251 if (mac_reg & E1000_RCTL_UPE) in e1000_init_phy_wakeup() 6253 if (mac_reg & E1000_RCTL_MPE) in e1000_init_phy_wakeup() 6256 if (mac_reg & E1000_RCTL_MO_3) in e1000_init_phy_wakeup() 6257 phy_reg |= (((mac_reg & E1000_RCTL_MO_3) >> E1000_RCTL_MO_SHIFT) in e1000_init_phy_wakeup() 6259 if (mac_reg & E1000_RCTL_BAM) in e1000_init_phy_wakeup() [all …]
|
/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()
|
/drivers/staging/rtl8188eu/hal/ |
D | phy.c | 797 static void save_mac_registers(struct adapter *adapt, const u32 *mac_reg, in save_mac_registers() argument 803 backup[i] = usb_read8(adapt, mac_reg[i]); in save_mac_registers() 805 backup[i] = usb_read32(adapt, mac_reg[i]); in save_mac_registers() 817 static void reload_mac_registers(struct adapter *adapt, const u32 *mac_reg, in reload_mac_registers() argument 823 usb_write8(adapt, mac_reg[i], (u8)backup[i]); in reload_mac_registers() 825 usb_write32(adapt, mac_reg[i], backup[i]); in reload_mac_registers() 846 static void mac_setting_calibration(struct adapter *adapt, const u32 *mac_reg, 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()
|
/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 | 3248 u32 mac_reg = (rtlhal->interfaceindex == 0 ? REG_MAC0 : REG_MAC1); in rtl92d_phy_set_poweron() local 3252 value8 = rtl_read_byte(rtlpriv, mac_reg); in rtl92d_phy_set_poweron() 3254 rtl_write_byte(rtlpriv, mac_reg, value8); in rtl92d_phy_set_poweron() 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()
|
/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()
|
/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 …]
|
/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 …]
|
/drivers/net/ethernet/via/ |
D | via-velocity.c | 3117 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3120 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3123 *((u32 *) (context->mac_reg + i)) = readl(ptr + i); in velocity_save_context() 3177 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3182 writeb(~(*((u8 *) (context->mac_reg + i))), ptr + i + 4); in velocity_restore_context() 3184 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3188 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3191 writel(*((u32 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context() 3194 writeb(*((u8 *) (context->mac_reg + i)), ptr + i); in velocity_restore_context()
|
D | via-velocity.h | 1226 u8 mac_reg[256]; member
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_cmd.c | 1152 struct host_cmd_ds_mac_reg_access *mac_reg; in mwifiex_cmd_reg_access() local 1154 cmd->size = cpu_to_le16(sizeof(*mac_reg) + S_DS_GEN); in mwifiex_cmd_reg_access() 1155 mac_reg = &cmd->params.mac_reg; in mwifiex_cmd_reg_access() 1156 mac_reg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_reg_access() 1157 mac_reg->offset = cpu_to_le16((u16) reg_rw->offset); in mwifiex_cmd_reg_access() 1158 mac_reg->value = cpu_to_le32(reg_rw->value); in mwifiex_cmd_reg_access()
|
D | sta_cmdresp.c | 790 r.mac = &resp->params.mac_reg; in mwifiex_ret_reg_access()
|
D | fw.h | 2358 struct host_cmd_ds_mac_reg_access mac_reg; member
|