/linux/drivers/net/wireless/zydas/zd1211rw/ |
A D | zd_mac.c | 249 r = zd_write_mac_addr(&mac->chip, mac->vif->addr); in set_mac_and_bssid() 259 return zd_write_bssid(&mac->chip, mac->vif->addr); in set_mac_and_bssid() 401 beacon = ieee80211_beacon_get(mac->hw, mac->vif); in zd_restore_settings() 547 mac->ack_pending ? mac->ack_signal : 0, in zd_mac_tx_failed() 587 mac->ack_pending ? mac->ack_signal : 0, in zd_mac_tx_to_dev() 995 mac->ack_pending ? mac->ack_signal : 0, in filter_ack() 1170 beacon = ieee80211_beacon_get(mac->hw, mac->vif); in zd_beacon_done() 1370 memset(mac, 0, sizeof(*mac)); in zd_mac_alloc_hw() 1379 mac->band.bitrates = mac->rates; in zd_mac_alloc_hw() 1381 mac->band.channels = mac->channels; in zd_mac_alloc_hw() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | xgmac.c | 72 t3_set_reg_field(mac->adapter, A_XGM_RESET_CTRL + mac->offset, in t3b_pcs_reset() 75 t3_set_reg_field(mac->adapter, A_XGM_RESET_CTRL + mac->offset, 0, in t3b_pcs_reset() 146 memset(&mac->stats, 0, sizeof(mac->stats)); in t3_mac_reset() 157 if (!macidx(mac)) in t3b2_mac_reset() 260 mac->nucast = n; in t3_mac_set_num_ucast() 512 mac->txen = 0; in t3_mac_disable() 560 if ((tx_tcnt != mac->tx_tcnt) && (mac->tx_xcnt == 0)) { in t3b2_mac_watchdog_task() 581 t3_write_reg(adap, A_XGM_TX_CTRL + mac->offset, mac->txen); in t3b2_mac_watchdog_task() 600 #define RMON_READ(mac, addr) t3_read_reg(mac->adapter, addr + mac->offset) in t3_mac_update_stats() argument 602 (mac)->stats.name += (u64)RMON_READ(mac, A_XGM_STAT_##reg) in t3_mac_update_stats() [all …]
|
/linux/drivers/net/ethernet/pasemi/ |
A D | pasemi_mac.c | 432 ring->mac = mac; in pasemi_mac_setup_rx_resources() 496 ring->mac = mac; in pasemi_mac_setup_tx_resources() 696 struct pasemi_mac *mac = rx->mac; in pasemi_mac_clean_rx() local 817 struct pasemi_mac *mac = txring->mac; in pasemi_mac_clean_tx() local 909 struct pasemi_mac *mac = rxring->mac; in pasemi_mac_rx_intr() local 938 struct pasemi_mac *mac = txring->mac; in pasemi_mac_tx_timer() local 951 struct pasemi_mac *mac = txring->mac; in pasemi_mac_tx_intr() local 1174 mac->tx_irq_name, mac->tx); in pasemi_mac_open() 1185 mac->rx_irq_name, mac->rx); in pasemi_mac_open() 1498 csring = mac->cs[mac->last_cs]; in pasemi_mac_start_tx() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-mac.c | 102 if (mac->pcs && in dpaa2_mac_phy_mode_mismatch() 278 if (!mac->pcs) { in dpaa2_pcs_create() 295 mac->pcs = NULL; in dpaa2_pcs_destroy() 306 mac->if_link_type = mac->attr.link_type; in dpaa2_mac_connect() 334 err = dpaa2_pcs_create(mac, dpmac_node, mac->attr.id); in dpaa2_mac_connect() 351 if (mac->pcs) in dpaa2_mac_connect() 352 phylink_set_pcs(mac->phylink, &mac->pcs->pcs); in dpaa2_mac_connect() 372 if (!mac->phylink) in dpaa2_mac_disconnect() 394 &mac->attr); in dpaa2_mac_open() 403 mac->fw_node = dpaa2_mac_get_node(&mac->mc_dev->dev, mac->attr.id); in dpaa2_mac_open() [all …]
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
A D | core.c | 50 mac = bus->mac[macid]; in qtnf_core_get_mac() 57 return mac; in qtnf_core_get_mac() 109 mac = vif->mac; in qtnf_netdev_hard_start_xmit() 144 if (unlikely(!vif || !vif->mac || !vif->mac->bus)) in qtnf_netdev_tx_timeout() 147 mac = vif->mac; in qtnf_netdev_tx_timeout() 445 vif->mac = mac; in qtnf_core_mac_alloc() 453 bus->mac[macid] = mac; in qtnf_core_mac_alloc() 512 mac = bus->mac[macid]; in qtnf_core_mac_detach() 597 ether_addr_copy(mac->bus->hw_id, mac->macaddr); in qtnf_core_mac_attach() 862 mac = bus->mac[meta->macid]; in qtnf_classify_skb() [all …]
|
A D | cfg80211.c | 78 struct qtnf_wmac *mac; in qtnf_validate_iface_combinations() local 87 if (!mac) in qtnf_validate_iface_combinations() 91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations() 117 mac->macid); in qtnf_validate_iface_combinations() 202 struct qtnf_wmac *mac; in qtnf_add_virtual_intf() local 210 if (!mac) in qtnf_add_virtual_intf() 610 vif->mac->macid, vif->vifid, mac); in qtnf_change_station() 622 if (params->mac && in qtnf_del_station() 631 vif->mac->macid, vif->vifid, params->mac); in qtnf_del_station() 654 queue_delayed_work(mac->bus->workqueue, &mac->scan_timeout, in qtnf_scan() [all …]
|
A D | commands.c | 1032 mac->rd = kzalloc(struct_size(mac->rd, reg_rules, resp->n_reg_rules), in qtnf_parse_variable_mac_info() 1034 if (!mac->rd) in qtnf_parse_variable_mac_info() 1065 mac->macid); in qtnf_parse_variable_mac_info() 1071 mac->macid); in qtnf_parse_variable_mac_info() 1128 mac->macid); in qtnf_parse_variable_mac_info() 1135 mac->macid); in qtnf_parse_variable_mac_info() 1174 mac->macid, mac->macinfo.n_if_comb, n_comb); in qtnf_parse_variable_mac_info() 1929 if (params->mac) in qtnf_cmd_send_del_sta() 2051 mac->macid, in qtnf_cmd_send_scan() 2058 mac->macid, in qtnf_cmd_send_scan() [all …]
|
A D | event.c | 40 mac->macid, vif->vifid); in qtnf_event_handle_sta_assoc() 118 mac->macid, vif->vifid); in qtnf_event_handle_sta_deauth() 175 vif->mac->macid, vif->vifid, in qtnf_event_handle_bss_join() 189 vif->mac->macid, vif->vifid, in qtnf_event_handle_bss_join() 194 vif->mac->macid, vif->vifid, in qtnf_event_handle_bss_join() 203 vif->mac->macid, vif->vifid, in qtnf_event_handle_bss_join() 467 vif = &mac->iflist[i]; in qtnf_event_handle_freq_change() 506 vif->mac->macid, in qtnf_event_handle_radar() 694 vif = &mac->iflist[vifid]; in qtnf_event_parse() 758 struct qtnf_wmac *mac; in qtnf_event_process_skb() local [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
A D | vsc7326.c | 551 mac_reset(mac); in mac_disable() 625 rmon_update(mac, REG_TX_OK_BYTES(port), &mac->stats.TxOctetsOK); in port_stats_update() 626 rmon_update(mac, REG_RX_OK_BYTES(port), &mac->stats.RxOctetsOK); in port_stats_update() 627 rmon_update(mac, REG_RX_BAD_BYTES(port), &mac->stats.RxOctetsBad); in port_stats_update() 657 return &mac->stats; in mac_update_statistics() 662 kfree(mac); in mac_destroy() 684 struct cmac *mac; in vsc7326_mac_create() local 688 mac = kzalloc(sizeof(*mac) + sizeof(cmac_instance), GFP_KERNEL); in vsc7326_mac_create() 689 if (!mac) in vsc7326_mac_create() 693 mac->instance = (cmac_instance *)(mac + 1); in vsc7326_mac_create() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | dwmac-ingenic.c | 127 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in jz4775_mac_set_mode() 145 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, 0); in x1000_mac_set_mode() 165 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in x1600_mac_set_mode() 186 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in x1830_mac_set_mode() 208 if (mac->tx_delay == 0) in x2000_mac_set_mode() 214 if (mac->rx_delay == 0) in x2000_mac_set_mode() 229 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in x2000_mac_set_mode() 249 mac = devm_kzalloc(&pdev->dev, sizeof(*mac), GFP_KERNEL); in ingenic_mac_probe() 250 if (!mac) { in ingenic_mac_probe() 290 mac->soc_info = data; in ingenic_mac_probe() [all …]
|
A D | hwif.c | 99 const void *mac; member 292 mac = devm_kzalloc(priv->device, sizeof(*mac), GFP_KERNEL); in stmmac_hwif_init() 295 if (!mac) in stmmac_hwif_init() 315 mac->desc = mac->desc ? : entry->desc; in stmmac_hwif_init() 316 mac->dma = mac->dma ? : entry->dma; in stmmac_hwif_init() 317 mac->mac = mac->mac ? : entry->mac; in stmmac_hwif_init() 318 mac->ptp = mac->ptp ? : entry->hwtimestamp; in stmmac_hwif_init() 319 mac->mode = mac->mode ? : entry->mode; in stmmac_hwif_init() 320 mac->tc = mac->tc ? : entry->tc; in stmmac_hwif_init() 321 mac->mmc = mac->mmc ? : entry->mmc; in stmmac_hwif_init() [all …]
|
/linux/drivers/net/ethernet/intel/e1000e/ |
A D | mac.c | 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() local 120 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000e_init_rx_addrs() 398 struct e1000_mac_info *mac = &hw->mac; in e1000e_check_for_copper_link() local 461 struct e1000_mac_info *mac = &hw->mac; in e1000e_check_for_fiber_link() local 526 struct e1000_mac_info *mac = &hw->mac; in e1000e_check_for_serdes_link() local 723 struct e1000_mac_info *mac = &hw->mac; in e1000_commit_fc_settings_generic() local 789 struct e1000_mac_info *mac = &hw->mac; in e1000_poll_fiber_serdes_link_generic() local 1003 struct e1000_mac_info *mac = &hw->mac; in e1000e_config_fc_after_link_up() local 1468 struct e1000_mac_info *mac = &hw->mac; in e1000e_id_led_init_generic() local 1729 struct e1000_mac_info *mac = &hw->mac; in e1000e_reset_adaptive() local [all …]
|
A D | 82571.c | 62 switch (hw->mac.type) { in e1000_init_phy_params_82571() 90 switch (hw->mac.type) { in e1000_init_phy_params_82571() 143 switch (hw->mac.type) { in e1000_init_nvm_params_82571() 194 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82571() local 247 mac->has_fwsm = true; in e1000_init_mac_params_82571() 1068 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_82571() local 1109 switch (mac->type) { in e1000_init_hw_82571() 1228 if ((hw->mac.type == e1000_82571) || (hw->mac.type == e1000_82572)) { in e1000_initialize_hw_bits_82571() 1498 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_serdes_link_82571() local 1714 hw->mac.ops.rar_set(hw, hw->mac.addr, in e1000e_set_laa_state_82571() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
A D | core.c | 218 if (mac->vif) { in rtl_op_add_interface() 297 if (mac->p2p) { in rtl_op_add_interface() 304 mac->vif = vif; in rtl_op_add_interface() 342 mac->p2p = 0; in rtl_op_remove_interface() 343 mac->vif = NULL; in rtl_op_remove_interface() 588 if (mac->skip_scan) in rtl_op_config() 663 mac->n_channels++; in rtl_op_config() 924 if (mac->p2p) in rtl_op_sta_add() 1197 mac->mode = 0; in rtl_op_bss_info_changed() 1378 mac->tsf = tsf; in rtl_op_set_tsf() [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_mactable.c | 69 mach |= mac[0] << 8; in sparx5_mact_select() 70 mach |= mac[1] << 0; in sparx5_mact_select() 71 macl |= mac[2] << 24; in sparx5_mact_select() 72 macl |= mac[3] << 16; in sparx5_mact_select() 73 macl |= mac[4] << 8; in sparx5_mact_select() 74 macl |= mac[5] << 0; in sparx5_mact_select() 249 memcpy(mact_entry->mac, mac, ETH_ALEN); in alloc_mact_entry() 265 ether_addr_equal(mac, mact_entry->mac) && in find_mact_entry() 282 info.addr = mac; in sparx5_fdb_call_notifiers() 380 ether_addr_equal(mac, mact_entry->mac)) { in sparx5_mact_handle_entry() [all …]
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_param.c | 324 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 336 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 347 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 359 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 367 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 374 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 384 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 393 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 401 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 418 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() [all …]
|
/linux/drivers/net/ethernet/mediatek/ |
A D | mtk_eth_soc.c | 356 mcr_cur = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_config() 363 mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id)); in mtk_mac_config() 414 mtk_sgmii_restart_an(mac->hw, mac->id); in mtk_mac_an_restart() 422 u32 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_down() 425 mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id)); in mtk_mac_link_down() 435 u32 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_up() 463 mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id)); in mtk_mac_link_up() 739 if (!eth->mac[i] || !eth->mac[i]->hw_stats) in mtk_stats_update() 1935 mac->hwlro_ip_cnt = mtk_hwlro_get_ip_cnt(mac); in mtk_hwlro_add_ipaddr() 1957 mac->hwlro_ip_cnt = mtk_hwlro_get_ip_cnt(mac); in mtk_hwlro_del_ipaddr() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
A D | vf.c | 53 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_init_hw_vf() 74 hw->mac.ops.stop_adapter(hw); in ixgbevf_reset_hw_vf() 661 struct ixgbe_mac_info *mac = &hw->mac; in ixgbevf_check_mac_link_vf() local 670 if (!mac->get_link_status) in ixgbevf_check_mac_link_vf() 749 struct ixgbe_mac_info *mac = &hw->mac; in ixgbevf_hv_check_mac_link_vf() local 756 if (!mac->get_link_status) in ixgbevf_hv_check_mac_link_vf() 984 .mac = ixgbe_mac_82599_vf, 994 .mac = ixgbe_mac_X540_vf, 999 .mac = ixgbe_mac_X540_vf, 1004 .mac = ixgbe_mac_X550_vf, [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | test_tc_tunnel.sh | 115 echo "ip gre $mac" 116 $0 ipv4 gre $mac 100 118 echo "ip6 gre $mac" 121 echo "ip gre $mac gso" 122 $0 ipv4 gre $mac 2000 127 echo "ip udp $mac" 128 $0 ipv4 udp $mac 100 130 echo "ip6 udp $mac" 133 echo "ip udp $mac gso" 134 $0 ipv4 udp $mac 2000 [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | e1000_mac.c | 115 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in igb_init_rx_addrs() 531 memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); in igb_update_mc_addr_list() 548 if (hw->mac.type == e1000_i210 || hw->mac.type == e1000_i211) in igb_update_mc_addr_list() 609 struct e1000_mac_info *mac = &hw->mac; in igb_check_for_copper_link() local 644 if (!mac->autoneg) { in igb_check_for_copper_link() 902 struct e1000_mac_info *mac = &hw->mac; in igb_config_fc_after_link_up() local 912 if (mac->autoneg_failed) { in igb_config_fc_after_link_up() 1099 && mac->autoneg) { in igb_config_fc_after_link_up() 1397 struct e1000_mac_info *mac = &hw->mac; in igb_id_led_init() local 1416 mac->ledctl_mode1 = mac->ledctl_default; in igb_id_led_init() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_82599.c | 65 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() local 74 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599() 242 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82599() local 268 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82599() local 1022 hw->mac.orig_autoc = in ixgbe_reset_hw_82599() 1044 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82599() 1055 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_82599() 1060 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_82599() 1062 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599() 1066 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599() [all …]
|
A D | ixgbe_x540.c | 31 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() local 76 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X540() 125 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X540() 133 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_X540() 136 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_X540() 141 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_X540() 143 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_X540() 147 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_X540() 151 hw->mac.num_rar_entries--; in ixgbe_reset_hw_X540() 155 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_X540() [all …]
|
/linux/drivers/staging/r8188eu/core/ |
A D | rtw_br_ext.c | 169 unsigned char *mac; in update_nd_link_layer_addr() local 174 if (mac) { in update_nd_link_layer_addr() 176 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], in update_nd_link_layer_addr() 185 if (mac) { in update_nd_link_layer_addr() 187 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], in update_nd_link_layer_addr() 196 if (mac) { in update_nd_link_layer_addr() 198 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], in update_nd_link_layer_addr() 207 if (mac) { in update_nd_link_layer_addr() 209 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], in update_nd_link_layer_addr() 218 if (mac) { in update_nd_link_layer_addr() [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_vf.c | 13 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() 40 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 70 hw->mac.reset_while_pending++; in fm10k_reset_hw_vf() 126 hw->mac.max_queues = i; in fm10k_init_hw_vf() 142 hw->mac.max_queues = 0; in fm10k_init_hw_vf() 272 const u8 *mac, u16 vid, bool add, in fm10k_update_uc_addr_vf() argument 283 if (!is_valid_ether_addr(mac)) in fm10k_update_uc_addr_vf() 288 !ether_addr_equal(hw->mac.perm_addr, mac)) in fm10k_update_uc_addr_vf() 326 if (!is_multicast_ether_addr(mac)) in fm10k_update_mc_addr_vf() 336 mac, vid); in fm10k_update_mc_addr_vf() [all …]
|
/linux/drivers/net/ethernet/intel/igbvf/ |
A D | vf.c | 25 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local 28 mac->mta_reg_count = 128; in e1000_init_mac_params_vf() 30 mac->rar_entry_count = 1; in e1000_init_mac_params_vf() 34 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf() 36 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf() 44 mac->ops.rar_set = e1000_rar_set_vf; in e1000_init_mac_params_vf() 321 memcpy(hw->mac.addr, hw->mac.perm_addr, ETH_ALEN); in e1000_read_mac_addr_vf() 375 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_link_vf() local 386 mac->get_link_status = true; in e1000_check_for_link_vf() 388 if (!mac->get_link_status) in e1000_check_for_link_vf() [all …]
|