Home
last modified time | relevance | path

Searched refs:mac_ctrl_data (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c385 u32 mac_ctrl_data; in atl1c_set_multi() local
389 AT_READ_REG(hw, REG_MAC_CTRL, &mac_ctrl_data); in atl1c_set_multi()
392 mac_ctrl_data |= MAC_CTRL_PROMIS_EN; in atl1c_set_multi()
394 mac_ctrl_data |= MAC_CTRL_MC_ALL_EN; in atl1c_set_multi()
395 mac_ctrl_data &= ~MAC_CTRL_PROMIS_EN; in atl1c_set_multi()
397 mac_ctrl_data &= ~(MAC_CTRL_PROMIS_EN | MAC_CTRL_MC_ALL_EN); in atl1c_set_multi()
400 AT_WRITE_REG(hw, REG_MAC_CTRL, mac_ctrl_data); in atl1c_set_multi()
413 static void __atl1c_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data) in __atl1c_vlan_mode() argument
417 *mac_ctrl_data |= MAC_CTRL_RMV_VLAN; in __atl1c_vlan_mode()
420 *mac_ctrl_data &= ~MAC_CTRL_RMV_VLAN; in __atl1c_vlan_mode()
[all …]
/linux-3.4.99/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c288 u32 mac_ctrl_data = 0; in atl1e_set_multi() local
292 mac_ctrl_data = AT_READ_REG(hw, REG_MAC_CTRL); in atl1e_set_multi()
295 mac_ctrl_data |= MAC_CTRL_PROMIS_EN; in atl1e_set_multi()
297 mac_ctrl_data |= MAC_CTRL_MC_ALL_EN; in atl1e_set_multi()
298 mac_ctrl_data &= ~MAC_CTRL_PROMIS_EN; in atl1e_set_multi()
300 mac_ctrl_data &= ~(MAC_CTRL_PROMIS_EN | MAC_CTRL_MC_ALL_EN); in atl1e_set_multi()
303 AT_WRITE_REG(hw, REG_MAC_CTRL, mac_ctrl_data); in atl1e_set_multi()
316 static void __atl1e_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data) in __atl1e_vlan_mode() argument
320 *mac_ctrl_data |= MAC_CTRL_RMV_VLAN; in __atl1e_vlan_mode()
323 *mac_ctrl_data &= ~MAC_CTRL_RMV_VLAN; in __atl1e_vlan_mode()
[all …]