/linux-6.3-rc2/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, 0); 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() 1161 skb = ieee80211_get_buffered_bc(mac->hw, mac->vif); in zd_beacon_done() 1372 memset(mac, 0, sizeof(*mac)); in zd_mac_alloc_hw() 1381 mac->band.bitrates = mac->rates; in zd_mac_alloc_hw() 1383 mac->band.channels = mac->channels; in zd_mac_alloc_hw() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-mac.c | 30 mac->features = 0; in dpaa2_mac_detect_features() 152 return mac->pcs; in dpaa2_mac_select_pcs() 177 err = dpmac_set_protocol(mac->mc_io, 0, mac->mc_dev->mc_handle, in dpaa2_mac_config() 273 if (!mac->pcs) { in dpaa2_pcs_create() 292 mac->pcs = NULL; in dpaa2_pcs_destroy() 305 if (mac->pcs) { in dpaa2_mac_set_supported_interfaces() 367 mac->if_link_type = mac->attr.link_type; in dpaa2_mac_connect() 409 err = dpaa2_pcs_create(mac, dpmac_node, mac->attr.id); in dpaa2_mac_connect() 414 memset(&mac->phylink_config, 0, sizeof(mac->phylink_config)); in dpaa2_mac_connect() 484 err = dpmac_get_api_version(mac->mc_io, 0, &mac->ver_major, &mac->ver_minor); in dpaa2_mac_open() [all …]
|
A D | dpaa2-mac.h | 33 static inline bool dpaa2_mac_is_type_phy(struct dpaa2_mac *mac) in dpaa2_mac_is_type_phy() argument 35 if (!mac) in dpaa2_mac_is_type_phy() 38 return mac->attr.link_type == DPMAC_LINK_TYPE_PHY || in dpaa2_mac_is_type_phy() 39 mac->attr.link_type == DPMAC_LINK_TYPE_BACKPLANE; in dpaa2_mac_is_type_phy() 42 int dpaa2_mac_open(struct dpaa2_mac *mac); 44 void dpaa2_mac_close(struct dpaa2_mac *mac); 46 int dpaa2_mac_connect(struct dpaa2_mac *mac); 48 void dpaa2_mac_disconnect(struct dpaa2_mac *mac); 54 void dpaa2_mac_get_ethtool_stats(struct dpaa2_mac *mac, u64 *data); 56 void dpaa2_mac_start(struct dpaa2_mac *mac); [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/net/wireless/purelifi/plfxlc/ |
A D | mac.c | 135 if (mac->vif) { in plfxlc_restore_settings() 136 beacon = ieee80211_beacon_get(mac->hw, mac->vif, 0); in plfxlc_restore_settings() 414 if (!mac->vif) in plfxlc_mac_rx() 437 !mac->pass_ctrl) in plfxlc_mac_rx() 520 mac->vif = vif; in plfxlc_op_add_interface() 533 mac->vif = NULL; in plfxlc_op_remove_interface() 678 data[0] = mac->rssi; in plfxlc_get_et_stats() 717 memset(mac, 0, sizeof(*mac)); in plfxlc_mac_alloc_hw() 719 mac->hw = hw; in plfxlc_mac_alloc_hw() 726 mac->band.bitrates = mac->rates; in plfxlc_mac_alloc_hw() [all …]
|
/linux-6.3-rc2/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() 613 vif->mac->macid, vif->vifid, mac); in qtnf_change_station() 625 if (params->mac && in qtnf_del_station() 634 vif->mac->macid, vif->vifid, params->mac); in qtnf_del_station() 657 queue_delayed_work(mac->bus->workqueue, &mac->scan_timeout, in qtnf_scan() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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() 292 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-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_hw.h | 304 #define ENETC_PM_RALN(mac) (0x8110 + ENETC_PMAC_OFFSET * (mac)) argument 305 #define ENETC_PM_RXPF(mac) (0x8118 + ENETC_PMAC_OFFSET * (mac)) argument 306 #define ENETC_PM_RFRM(mac) (0x8120 + ENETC_PMAC_OFFSET * (mac)) argument 307 #define ENETC_PM_RFCS(mac) (0x8128 + ENETC_PMAC_OFFSET * (mac)) argument 309 #define ENETC_PM_RERR(mac) (0x8138 + ENETC_PMAC_OFFSET * (mac)) argument 310 #define ENETC_PM_RUCA(mac) (0x8140 + ENETC_PMAC_OFFSET * (mac)) argument 311 #define ENETC_PM_RMCA(mac) (0x8148 + ENETC_PMAC_OFFSET * (mac)) argument 312 #define ENETC_PM_RBCA(mac) (0x8150 + ENETC_PMAC_OFFSET * (mac)) argument 313 #define ENETC_PM_RDRP(mac) (0x8158 + ENETC_PMAC_OFFSET * (mac)) argument 316 #define ENETC_PM_R64(mac) (0x8170 + ENETC_PMAC_OFFSET * (mac)) argument [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/ |
A D | lan966x_mdb.c | 16 unsigned char mac[ETH_ALEN]; member 63 if (ether_addr_equal(mdb_entry->mac, mac) && in lan966x_mdb_entry_get() 93 ether_addr_copy(mac, mdb_entry->mac); in lan966x_mdb_encode_mac() 96 mac[0] = 0; in lan966x_mdb_encode_mac() 112 unsigned char mac[ETH_ALEN]; in lan966x_mdb_ip_add() local 147 unsigned char mac[ETH_ALEN]; in lan966x_mdb_ip_del() local 256 unsigned char mac[ETH_ALEN]; in lan966x_mdb_l2_add() local 305 unsigned char mac[ETH_ALEN]; in lan966x_mdb_l2_del() local 357 if (mac[0] == 0x01 && mac[1] == 0x00 && mac[2] == 0x5e) in lan966x_mdb_classify() 359 if (mac[0] == 0x33 && mac[1] == 0x33) in lan966x_mdb_classify() [all …]
|
A D | lan966x_mac.c | 62 mach |= mac[0] << 8; in lan966x_mac_select() 63 mach |= mac[1] << 0; in lan966x_mac_select() 64 macl |= mac[2] << 24; in lan966x_mac_select() 65 macl |= mac[3] << 16; in lan966x_mac_select() 66 macl |= mac[4] << 8; in lan966x_mac_select() 67 macl |= mac[5] << 0; in lan966x_mac_select() 213 memcpy(mac_entry->mac, mac, ETH_ALEN); in lan966x_mac_alloc_entry() 222 const unsigned char *mac, in lan966x_mac_find_entry() argument 230 ether_addr_equal(mac, mac_entry->mac) && in lan966x_mac_find_entry() 267 info.addr = mac; in lan966x_fdb_call_notifiers() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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() 1198 mac->mode = 0; in rtl_op_bss_info_changed() 1379 mac->tsf = tsf; in rtl_op_set_tsf() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sunplus/ |
A D | spl2sw_driver.c | 226 u8 *mac; in spl2sw_nvmem_get_mac_address() local 236 if (IS_ERR(mac)) in spl2sw_nvmem_get_mac_address() 237 return PTR_ERR(mac); in spl2sw_nvmem_get_mac_address() 240 kfree(mac); in spl2sw_nvmem_get_mac_address() 253 kfree(mac); in spl2sw_nvmem_get_mac_address() 258 kfree(mac); in spl2sw_nvmem_get_mac_address() 266 struct spl2sw_mac *mac; in spl2sw_init_netdev() local 279 mac = netdev_priv(ndev); in spl2sw_init_netdev() 280 mac->ndev = ndev; in spl2sw_init_netdev() 328 struct spl2sw_mac *mac; in spl2sw_probe() local [all …]
|
A D | spl2sw_mac.c | 53 int spl2sw_mac_addr_add(struct spl2sw_mac *mac) in spl2sw_mac_addr_add() argument 55 struct spl2sw_common *comm = mac->comm; in spl2sw_mac_addr_add() 60 writel((mac->mac_addr[0] << 0) + (mac->mac_addr[1] << 8), in spl2sw_mac_addr_add() 62 writel((mac->mac_addr[2] << 0) + (mac->mac_addr[3] << 8) + in spl2sw_mac_addr_add() 63 (mac->mac_addr[4] << 16) + (mac->mac_addr[5] << 24), in spl2sw_mac_addr_add() 90 struct spl2sw_common *comm = mac->comm; in spl2sw_mac_addr_del() 95 writel((mac->mac_addr[0] << 0) + (mac->mac_addr[1] << 8), in spl2sw_mac_addr_del() 97 writel((mac->mac_addr[2] << 0) + (mac->mac_addr[3] << 8) + in spl2sw_mac_addr_del() 98 (mac->mac_addr[4] << 16) + (mac->mac_addr[5] << 24), in spl2sw_mac_addr_del() 220 struct spl2sw_common *comm = mac->comm; in spl2sw_mac_rx_mode_set() [all …]
|
A D | spl2sw_phy.c | 16 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_mii_link_change() local 18 struct spl2sw_common *comm = mac->comm; in spl2sw_mii_link_change() 24 reg |= FIELD_PREP(MAC_FORCE_RMII_LINK, mac->lan_port); in spl2sw_mii_link_change() 27 reg |= FIELD_PREP(MAC_FORCE_RMII_SPD, mac->lan_port); in spl2sw_mii_link_change() 29 reg &= FIELD_PREP(MAC_FORCE_RMII_SPD, ~mac->lan_port) | in spl2sw_mii_link_change() 34 reg |= FIELD_PREP(MAC_FORCE_RMII_DPX, mac->lan_port); in spl2sw_mii_link_change() 41 reg |= FIELD_PREP(MAC_FORCE_RMII_FC, mac->lan_port); in spl2sw_mii_link_change() 43 reg &= FIELD_PREP(MAC_FORCE_RMII_FC, ~mac->lan_port) | in spl2sw_mii_link_change() 60 struct spl2sw_mac *mac; in spl2sw_phy_connect() local 66 mac = netdev_priv(ndev); in spl2sw_phy_connect() [all …]
|
/linux-6.3-rc2/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() 250 memcpy(mact_entry->mac, mac, ETH_ALEN); in alloc_mact_entry() 266 ether_addr_equal(mac, mact_entry->mac) && in find_mact_entry() 283 info.addr = mac; in sparx5_fdb_call_notifiers() 383 ether_addr_equal(mac, mact_entry->mac)) { in sparx5_mact_handle_entry() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbevf/ |
A D | vf.c | 52 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_init_hw_vf() 73 hw->mac.ops.stop_adapter(hw); in ixgbevf_reset_hw_vf() 706 struct ixgbe_mac_info *mac = &hw->mac; in ixgbevf_check_mac_link_vf() local 715 if (!mac->get_link_status) in ixgbevf_check_mac_link_vf() 797 struct ixgbe_mac_info *mac = &hw->mac; in ixgbevf_hv_check_mac_link_vf() local 804 if (!mac->get_link_status) in ixgbevf_hv_check_mac_link_vf() 1036 .mac = ixgbe_mac_82599_vf, 1046 .mac = ixgbe_mac_X540_vf, 1051 .mac = ixgbe_mac_X540_vf, 1056 .mac = ixgbe_mac_X550_vf, [all …]
|
/linux-6.3-rc2/arch/arm64/crypto/ |
A D | sm4-ce-ccm-glue.c | 109 sm4_ce_crypt_block(ctx->rkey_enc, mac, mac); in ccm_calculate_auth_mac() 133 mac, mac); in ccm_calculate_auth_mac() 139 mac, ptr, nblocks); in ccm_calculate_auth_mac() 150 crypto_xor(mac + len, ptr, l); in ccm_calculate_auth_mac() 163 u32 *rkey_enc, u8 mac[], in ccm_crypt() argument 166 unsigned int nbytes, u8 *mac)) in ccm_crypt() argument 178 ccm_calculate_auth_mac(req, mac); in ccm_crypt() 185 walk->nbytes - tail, mac); in ccm_crypt() 197 walk->nbytes, mac); in ccm_crypt() 217 u8 __aligned(8) mac[SM4_BLOCK_SIZE]; in ccm_encrypt() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_tc_tunnel.sh | 119 echo "ip gre $mac" 120 $0 ipv4 gre $mac 100 122 echo "ip6 gre $mac" 125 echo "ip gre $mac gso" 126 $0 ipv4 gre $mac 2000 131 echo "ip udp $mac" 132 $0 ipv4 udp $mac 100 134 echo "ip6 udp $mac" 137 echo "ip udp $mac gso" 138 $0 ipv4 udp $mac 2000 [all …]
|