Home
last modified time | relevance | path

Searched refs:mac_reg (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/intel/e1000e/
Dich8lan.c182 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 …]
Dnetdev.c6221 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/
Dau1000_eth.h56 struct mac_reg { struct
106 struct mac_reg *mac; /* mac registers */
Dau1000_eth.c1144 aup->mac = (struct mac_reg *) in au1000_probe()
/drivers/staging/rtl8188eu/hal/
Dphy.c797 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/
Drf.c388 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()
Dphy.c3248 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/
Dphy.c241 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/
Ddwc-xlgmac-hw.c76 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/
Dxgbe-dev.c981 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/
Dvia-velocity.c3117 *((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()
Dvia-velocity.h1226 u8 mac_reg[256]; member
/drivers/net/wireless/marvell/mwifiex/
Dsta_cmd.c1152 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()
Dsta_cmdresp.c790 r.mac = &resp->params.mac_reg; in mwifiex_ret_reg_access()
Dfw.h2358 struct host_cmd_ds_mac_reg_access mac_reg; member