Home
last modified time | relevance | path

Searched full:mac (Results 1 – 25 of 2450) sorted by relevance

12345678910>>...98

/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dxgmac.c41 static inline int macidx(const struct cmac *mac) in macidx() argument
43 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); in macidx()
46 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset() argument
54 struct adapter *adap = mac->adapter; in xaui_serdes_reset()
55 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; in xaui_serdes_reset()
57 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset()
70 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset() argument
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()
79 int t3_mac_reset(struct cmac *mac) in t3_mac_reset() argument
[all …]
/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_mac.c125 static void housekeeping_init(struct zd_mac *mac);
126 static void housekeeping_enable(struct zd_mac *mac);
127 static void housekeeping_disable(struct zd_mac *mac);
128 static void beacon_init(struct zd_mac *mac);
129 static void beacon_enable(struct zd_mac *mac);
130 static void beacon_disable(struct zd_mac *mac);
131 static void set_rts_cts(struct zd_mac *mac, unsigned int short_preamble);
152 struct zd_mac *mac = zd_hw_mac(hw); in zd_check_signal() local
154 dev_dbg_f_cond(zd_mac_dev(mac), signal < 0 || signal > 100, in zd_check_signal()
170 struct zd_mac *mac = zd_hw_mac(hw); in zd_mac_preinit_hw() local
[all …]
/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.c65 MODULE_PARM_DESC(debug, "PA Semi MAC bitmapped debugging message enable value");
83 static unsigned int read_mac_reg(const struct pasemi_mac *mac, unsigned int reg) in read_mac_reg() argument
85 return pasemi_read_mac_reg(mac->dma_if, reg); in read_mac_reg()
88 static void write_mac_reg(const struct pasemi_mac *mac, unsigned int reg, in write_mac_reg() argument
91 pasemi_write_mac_reg(mac->dma_if, reg, val); in write_mac_reg()
104 static struct pasemi_mac_rxring *rx_ring(const struct pasemi_mac *mac) in rx_ring() argument
106 return mac->rx; in rx_ring()
109 static struct pasemi_mac_txring *tx_ring(const struct pasemi_mac *mac) in tx_ring() argument
111 return mac->tx; in tx_ring()
124 static int mac_to_intf(struct pasemi_mac *mac) in mac_to_intf() argument
[all …]
/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dcore.c42 struct qtnf_wmac *mac = NULL; in qtnf_core_get_mac() local
45 pr_err("invalid MAC index %u\n", macid); in qtnf_core_get_mac()
50 mac = bus->mac[macid]; in qtnf_core_get_mac()
52 if (unlikely(!mac)) { in qtnf_core_get_mac()
53 pr_err("MAC%u: not initialized\n", macid); in qtnf_core_get_mac()
57 return mac; in qtnf_core_get_mac()
84 queue_work(vif->mac->bus->hprio_workqueue, &vif->high_pri_tx_work); in qtnf_packet_send_hi_pri()
93 struct qtnf_wmac *mac; in qtnf_netdev_hard_start_xmit() local
109 mac = vif->mac; in qtnf_netdev_hard_start_xmit()
110 if (unlikely(!mac)) { in qtnf_netdev_hard_start_xmit()
[all …]
H A Dcfg80211.c78 struct qtnf_wmac *mac; in qtnf_validate_iface_combinations() local
86 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations()
87 if (!mac) in qtnf_validate_iface_combinations()
91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations()
112 vif = qtnf_mac_get_base_vif(mac); in qtnf_validate_iface_combinations()
116 pr_err("MAC%u invalid combination: AP as primary repeater interface is not supported\n", in qtnf_validate_iface_combinations()
117 mac->macid); in qtnf_validate_iface_combinations()
137 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf()
146 qtnf_scan_done(vif->mac, true); in qtnf_change_virtual_intf()
151 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf()
[all …]
H A Devent.c19 qtnf_event_handle_sta_assoc(struct qtnf_wmac *mac, struct qtnf_vif *vif, in qtnf_event_handle_sta_assoc() argument
34 mac->macid, vif->vifid, len, sizeof(*sta_assoc)); in qtnf_event_handle_sta_assoc()
40 mac->macid, vif->vifid); in qtnf_event_handle_sta_assoc()
51 pr_debug("VIF%u.%u: MAC:%pM FC:%x\n", mac->macid, vif->vifid, sta_addr, in qtnf_event_handle_sta_assoc()
102 qtnf_event_handle_sta_deauth(struct qtnf_wmac *mac, struct qtnf_vif *vif, in qtnf_event_handle_sta_deauth() argument
111 mac->macid, vif->vifid, len, in qtnf_event_handle_sta_deauth()
118 mac->macid, vif->vifid); in qtnf_event_handle_sta_deauth()
125 pr_debug("VIF%u.%u: MAC:%pM reason:%x\n", mac->macid, vif->vifid, in qtnf_event_handle_sta_deauth()
140 struct wiphy *wiphy = priv_to_wiphy(vif->mac); in qtnf_event_handle_bss_join()
154 vif->mac->macid, vif->vifid, len, in qtnf_event_handle_bss_join()
[all …]
/linux/drivers/net/wireless/purelifi/plfxlc/
H A Dmac.c14 #include "mac.h"
87 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); in plfxlc_mac_init_hw() local
88 struct plfxlc_chip *chip = &mac->chip; in plfxlc_mac_init_hw()
93 dev_warn(plfxlc_mac_dev(mac), "init hw failed (%d)\n", r); in plfxlc_mac_init_hw()
97 dev_dbg(plfxlc_mac_dev(mac), "irq_disabled (%d)\n", irqs_disabled()); in plfxlc_mac_init_hw()
110 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); in plfxlc_op_stop() local
112 clear_bit(PURELIFI_DEVICE_RUNNING, &mac->flags); in plfxlc_op_stop()
115 int plfxlc_restore_settings(struct plfxlc_mac *mac) in plfxlc_restore_settings() argument
120 spin_lock_irq(&mac->lock); in plfxlc_restore_settings()
121 beacon_interval = mac->beacon.interval; in plfxlc_restore_settings()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dvsc7326.c4 /* Driver for Vitesse VSC7326 (Schaumburg) MAC */
16 * interface is down (MAC port disabled). This is a workaround
17 * for disabling the T2/MAC flow-control. When the interface is
50 pr_err("Invalid tpi read from MAC, breaking loop.\n"); in vsc_read()
74 /* Hard reset the MAC. This wipes out *all* configuration. */
84 val |= 0x1; /* Enable mac MAC itself */ in vsc7326_full_reset()
361 static int mac_intr_handler(struct cmac *mac) in mac_intr_handler() argument
366 static int mac_intr_enable(struct cmac *mac) in mac_intr_enable() argument
371 static int mac_intr_disable(struct cmac *mac) in mac_intr_disable() argument
376 static int mac_intr_clear(struct cmac *mac) in mac_intr_clear() argument
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mdb.c16 unsigned char mac[ETH_ALEN]; member
57 const unsigned char *mac, in lan966x_mdb_entry_get() argument
63 if (ether_addr_equal(mdb_entry->mac, mac) && in lan966x_mdb_entry_get()
81 ether_addr_copy(mdb_entry->mac, mdb->addr); in lan966x_mdb_entry_add()
89 static void lan966x_mdb_encode_mac(unsigned char *mac, in lan966x_mdb_encode_mac() argument
93 ether_addr_copy(mac, mdb_entry->mac); in lan966x_mdb_encode_mac()
96 mac[0] = 0; in lan966x_mdb_encode_mac()
97 mac[1] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac()
98 mac[2] = mdb_entry->ports & 0xff; in lan966x_mdb_encode_mac()
100 mac[0] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac()
[all …]
H A Dlan966x_mac.c21 unsigned char mac[ETH_ALEN] __aligned(2); member
53 const unsigned char mac[ETH_ALEN], in lan966x_mac_select()
58 /* Set the MAC address to handle and the vlan associated in a format in lan966x_mac_select()
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()
75 const unsigned char mac[ETH_ALEN], in __lan966x_mac_learn_locked()
[all …]
/linux/arch/m68k/include/uapi/asm/
H A Dbootinfo-mac.h3 ** asm/bootinfo-mac.h -- Macintosh-specific boot information definitions
14 #define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */
15 #define BI_MAC_VADDR 0x8001 /* Mac video base address */
16 #define BI_MAC_VDEPTH 0x8002 /* Mac video depth */
17 #define BI_MAC_VROW 0x8003 /* Mac video rowbytes */
18 #define BI_MAC_VDIM 0x8004 /* Mac video dimensions */
19 #define BI_MAC_VLOGICAL 0x8005 /* Mac video logical base */
20 #define BI_MAC_SCCBASE 0x8006 /* Mac SCC base address */
21 #define BI_MAC_BTIME 0x8007 /* Mac boot time */
22 #define BI_MAC_GMTBIAS 0x8008 /* Mac GMT timezone offset */
[all …]
/linux/net/core/
H A Dof_net.c65 const void *mac; in of_get_mac_address_nvmem() local
78 cell = of_nvmem_cell_get(np, "mac-address"); in of_get_mac_address_nvmem()
82 mac = nvmem_cell_read(cell, &len); in of_get_mac_address_nvmem()
85 if (IS_ERR(mac)) in of_get_mac_address_nvmem()
86 return PTR_ERR(mac); in of_get_mac_address_nvmem()
88 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in of_get_mac_address_nvmem()
89 kfree(mac); in of_get_mac_address_nvmem()
93 memcpy(addr, mac, ETH_ALEN); in of_get_mac_address_nvmem()
94 kfree(mac); in of_get_mac_address_nvmem()
105 * Search the device tree for the best MAC address to use. 'mac-address' is
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dcore.c139 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_stop() local
160 mac->link_state = MAC80211_NOLINK; in rtl_op_stop()
161 eth_zero_addr(mac->bssid); in rtl_op_stop()
162 mac->vendor = PEER_UNKNOWN; in rtl_op_stop()
203 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_add_interface() local
207 if (mac->vif) { in rtl_op_add_interface()
209 "vif has been set!! mac->vif = 0x%p\n", mac->vif); in rtl_op_add_interface()
220 mac->p2p = P2P_ROLE_CLIENT; in rtl_op_add_interface()
223 if (mac->beacon_enabled == 1) { in rtl_op_add_interface()
226 mac->beacon_enabled = 0; in rtl_op_add_interface()
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dmac.c19 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() local
31 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie()
107 * register to the devices MAC address and clearing all the other receive
116 e_dbg("Programming MAC Address into RAR[0]\n"); in e1000e_init_rx_addrs()
118 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000e_init_rx_addrs()
123 hw->mac.ops.rar_set(hw, mac_addr, i); in e1000e_init_rx_addrs()
127 * e1000_check_alt_mac_addr_generic - Check for alternate MAC addr
130 * Checks the nvm for an alternate MAC address. An alternate MAC address
132 * address and must override the actual permanent MAC address. If an
133 * alternate MAC address is found it is programmed into RAR0, replacing
[all …]
H A D82571.c62 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()
174 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
188 * e1000_init_mac_params_82571 - Init MAC func ptrs.
193 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82571() local
204 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
206 mac->ops.check_for_link = e1000e_check_for_fiber_link; in e1000_init_mac_params_82571()
207 mac->ops.get_link_up_info = in e1000_init_mac_params_82571()
215 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
[all …]
/linux/Documentation/admin-guide/perf/
H A Dfujitsu_uncore_pmu.rst7 This driver supports the Uncore MAC PMUs and the Uncore PCI PMUs found
9 Each MAC PMU on these chips is exposed as a uncore perf PMU with device name
10 mac_iod<iod>_mac<mac>_ch<ch>.
15 options in sysfs, see /sys/bus/event_sources/devices/mac_iod<iod>_mac<mac>_ch<ch>/
29 This driver supports the following events for MAC:
32 This event counts MAC cycles at MAC frequency.
34 This event counts the number of read requests to MAC.
36 This event counts the number of read requests including retry to MAC.
38 This event counts the number of responses to read requests to MAC.
55 This event counts the number of write requests to MAC (including zero write,
[all …]
/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_mac.c53 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()
59 /* Write 6-octet MAC address. */ 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()
67 reg = MAC_W_CPU_PORT_0 | FIELD_PREP(MAC_W_VID, mac->vlan_id) | in spl2sw_mac_addr_add()
75 netdev_err(mac->ndev, "Failed to add address to table!\n"); in spl2sw_mac_addr_add()
79 netdev_dbg(mac->ndev, "mac_ad0 = %08x, mac_ad = %08x%04x\n", in spl2sw_mac_addr_add()
88 int spl2sw_mac_addr_del(struct spl2sw_mac *mac) in spl2sw_mac_addr_del() argument
[all …]
H A Dspl2sw_phy.c16 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()
36 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()
47 reg &= FIELD_PREP(MAC_FORCE_RMII_LINK, ~mac->lan_port) | in spl2sw_mii_link_change()
[all …]
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c520 struct mtk_mac *mac = container_of(config, struct mtk_mac, in mtk_mac_select_pcs() local
522 struct mtk_eth *eth = mac->hw; in mtk_mac_select_pcs()
528 0 : mac->id; in mtk_mac_select_pcs()
539 struct mtk_mac *mac = container_of(config, struct mtk_mac, in mtk_mac_prepare() local
541 struct mtk_eth *eth = mac->hw; in mtk_mac_prepare()
544 mac->id != MTK_GMAC1_ID) { in mtk_mac_prepare()
545 mtk_m32(mac->hw, XMAC_MCR_TRX_DISABLE, in mtk_mac_prepare()
546 XMAC_MCR_TRX_DISABLE, MTK_XMAC_MCR(mac->id)); in mtk_mac_prepare()
548 mtk_m32(mac->hw, MTK_XGMAC_FORCE_MODE(mac->id) | in mtk_mac_prepare()
549 MTK_XGMAC_FORCE_LINK(mac->id), in mtk_mac_prepare()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_fltr.c29 * @list: pointer to the list which contains MAC filters entry
144 * ice_fltr_add_mac_list - add list of MAC filters
154 * ice_fltr_remove_mac_list - remove list of MAC filters
219 * ice_fltr_add_mac_to_list - add MAC filter info to exsisting list
222 * @mac: MAC address to add
227 const u8 *mac, enum ice_sw_fwd_act_type action) in ice_fltr_add_mac_to_list() argument
237 ether_addr_copy(info.l_data.mac.mac_addr, mac); in ice_fltr_add_mac_to_list()
299 * ice_fltr_prepare_mac - add or remove MAC rule
301 * @mac: MAC address to add
303 * @mac_action: pointer to add or remove MAC function
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dbridge_fdb_learning_limit.sh27 mac() function
32 H1_DEFAULT_MAC=$(mac 42)
42 # swp2 is only used for replying when learning on swp1, its MAC should not be learned.
111 local mac=${1}
114 jq "map(select(.mac == \"${mac}\" and (has(\"vlan\") | not))) | length"
122 fdb_add learned "$(mac "$i")"
130 # Keep the default MAC address of h1 in the table. We set it to a different one when
137 local type=$1 mac=$2
141 ip link set "$h1" addr "$mac"
149 ip link set dev "$swp3" addr "$mac" && ip link set "$swp3" master br0
[all …]
/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_param.c128 * pch_gbe_option - Force the MAC's flow control settings
324 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
328 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
329 hw->mac.link_duplex = DUPLEX_HALF; in pch_gbe_check_copper_options()
336 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
339 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
340 hw->mac.link_duplex = DUPLEX_HALF; in pch_gbe_check_copper_options()
347 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
351 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
352 hw->mac.link_duplex = DUPLEX_FULL; in pch_gbe_check_copper_options()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh127 for mac in none mpls eth ; do
128 echo "ip gre $mac"
129 $0 ipv4 gre $mac 100
131 echo "ip6 gre $mac"
132 $0 ipv6 ip6gre $mac 100
134 echo "ip gre $mac gso"
135 $0 ipv4 gre $mac 2000
137 echo "ip6 gre $mac gso"
138 $0 ipv6 ip6gre $mac 2000
140 echo "ip udp $mac"
[all …]
/linux/drivers/net/ethernet/intel/igbvf/
H A Dvf.c22 * e1000_init_mac_params_vf - Inits MAC params
27 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local
30 mac->mta_reg_count = 128; in e1000_init_mac_params_vf()
32 mac->rar_entry_count = 1; in e1000_init_mac_params_vf()
36 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf()
38 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf()
40 mac->ops.check_for_link = e1000_check_for_link_vf; in e1000_init_mac_params_vf()
42 mac->ops.get_link_up_info = e1000_get_link_up_info_vf; in e1000_init_mac_params_vf()
44 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_vf; in e1000_init_mac_params_vf()
45 /* set mac address */ in e1000_init_mac_params_vf()
[all …]
/linux/Documentation/networking/
H A Doa-tc6-framework.rst4 OPEN Alliance 10BASE-T1x MAC-PHY Serial Interface (TC6) Framework Support
29 The MAC-PHY solution integrates an IEEE Clause 4 MAC and a 10BASE-T1x PHY
32 to existing low-end microcontrollers which do not integrate a MAC
38 The MAC-PHY is specified to carry both data (Ethernet frames) and control
54 low to the MAC-PHY and ends with the deassertion of CSn high. In between
78 10BASE-T1x MAC-PHY Serial Interface Specification,
88 | | | MAC-PHY |
90 | SPI Host | | | SPI Slave | | MAC | | PHY | |
107 | MAC Driver |<--->| OPEN Alliance TC6 Framework |
121 | 10BASE-T1x MAC-PHY Device |
[all …]

12345678910>>...98