Home
last modified time | relevance | path

Searched +full:mac +full:- +full:s (Results 1 – 25 of 1103) sorted by relevance

12345678910>>...45

/Linux-v6.1/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2 /* Copyright 2017-2019 NXP */
37 struct enetc_hw *hw = &priv->si->hw; in enetc_get_reglen()
41 len += ARRAY_SIZE(enetc_txbdr_regs) * priv->num_tx_rings; in enetc_get_reglen()
42 len += ARRAY_SIZE(enetc_rxbdr_regs) * priv->num_rx_rings; in enetc_get_reglen()
44 if (hw->port) in enetc_get_reglen()
56 struct enetc_hw *hw = &priv->si->hw; in enetc_get_regs()
66 for (i = 0; i < priv->num_tx_rings; i++) { in enetc_get_regs()
75 for (i = 0; i < priv->num_rx_rings; i++) { in enetc_get_regs()
84 if (!hw->port) in enetc_get_regs()
[all …]
/Linux-v6.1/drivers/net/wireless/quantenna/qtnfmac/
Dcommands.c1 // SPDX-License-Identifier: GPL-2.0+
2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
25 if (unlikely(le16_to_cpu(resp->cmd_id) != cmd_id)) { in qtnf_cmd_check_reply_header()
27 mac_id, vif_id, cmd_id, le16_to_cpu(resp->cmd_id)); in qtnf_cmd_check_reply_header()
28 return -EINVAL; in qtnf_cmd_check_reply_header()
31 if (unlikely(resp->macid != mac_id)) { in qtnf_cmd_check_reply_header()
32 pr_warn("VIF%u.%u CMD%x: bad MAC in response: %u\n", in qtnf_cmd_check_reply_header()
33 mac_id, vif_id, cmd_id, resp->macid); in qtnf_cmd_check_reply_header()
34 return -EINVAL; in qtnf_cmd_check_reply_header()
37 if (unlikely(resp->vifid != vif_id)) { in qtnf_cmd_check_reply_header()
[all …]
Dcore.c1 // SPDX-License-Identifier: GPL-2.0+
2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
42 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()
81 struct qtnf_vif *vif = qtnf_netdev_get_priv(skb->dev); in qtnf_packet_send_hi_pri()
83 skb_queue_tail(&vif->high_pri_tx_queue, skb); in qtnf_packet_send_hi_pri()
[all …]
Dcfg80211.c1 // SPDX-License-Identifier: GPL-2.0+
2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
78 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()
88 return -EFAULT; in qtnf_validate_iface_combinations()
91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations()
92 if (vif->wdev.iftype != NL80211_IFTYPE_UNSPECIFIED) in qtnf_validate_iface_combinations()
93 params.iftype_num[vif->wdev.iftype]++; in qtnf_validate_iface_combinations()
98 params.iftype_num[change_vif->wdev.iftype]--; in qtnf_validate_iface_combinations()
[all …]
Devent.c1 // SPDX-License-Identifier: GPL-2.0+
2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
19 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()
35 return -EINVAL; in qtnf_event_handle_sta_assoc()
38 if (vif->wdev.iftype != NL80211_IFTYPE_AP) { in qtnf_event_handle_sta_assoc()
40 mac->macid, vif->vifid); in qtnf_event_handle_sta_assoc()
41 return -EPROTO; in qtnf_event_handle_sta_assoc()
46 return -ENOMEM; in qtnf_event_handle_sta_assoc()
48 sta_addr = sta_assoc->sta_addr; in qtnf_event_handle_sta_assoc()
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb3/
Dxgmac.c2 * Copyright (c) 2005-2008 Chelsio, Inc. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
41 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
[all …]
/Linux-v6.1/arch/arm64/crypto/
Daes-ce-ccm-core.S1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * aesce-ccm-core.S - AES-CCM transform for ARMv8 with Crypto Extensions
5 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org>
12 .arch armv8-a+crypto
15 * u32 ce_aes_ccm_auth_data(u8 mac[], u8 const in[], u32 abytes,
19 ld1 {v0.16b}, [x0] /* load mac */
31 1: ld1 {v3.4s}, [x4] /* load first round key */
41 ld1 {v5.4s}, [x6], #16 /* load 2nd round key */
44 4: ld1 {v3.4s}, [x6], #16 /* load next round key */
47 5: ld1 {v4.4s}, [x6], #16 /* load next round key */
[all …]
/Linux-v6.1/Documentation/networking/
Dsfp-phylink.rst1 .. SPDX-License-Identifier: GPL-2.0
10 phylink is a mechanism to support hot-pluggable networking modules
11 directly connected to a MAC without needing to re-initialise the
12 adapter on hot-plug events.
14 phylink supports conventional phylib-based setups, fixed link setups
26 the PHY, and pass them to the MAC driver. We expect the MAC driver
32 Fixed mode is the same as PHY mode as far as the MAC driver is
35 3. In-band mode
37 In-band mode is used with 802.3z, SGMII and similar interface modes,
38 and we are expecting to use and honor the in-band negotiation or
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb/
Dcxgb2.c22 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. *
46 #include <linux/dma-mapping.h>
62 schedule_delayed_work(&ap->stats_update_task, secs * HZ); in schedule_mac_stats_update()
67 cancel_delayed_work(&ap->stats_update_task); in cancel_mac_stats_update()
113 * Setup MAC to receive the types of packets we want.
117 struct adapter *adapter = dev->ml_priv; in t1_set_rxmode()
118 struct cmac *mac = adapter->port[dev->if_port].mac; in t1_set_rxmode() local
122 mac->ops->set_rx_mode(mac, &rm); in t1_set_rxmode()
127 if (!netif_carrier_ok(p->dev)) in link_report()
128 netdev_info(p->dev, "link down\n"); in link_report()
[all …]
Dsubr.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. *
40 * t1_wait_op_done - wait until an operation is completed
43 * @mask: a single-bit field within @reg that indicates completion
56 u32 val = readl(adapter->regs + reg) & mask; in t1_wait_op_done()
60 if (--attempts == 0) in t1_wait_op_done()
76 writel(addr, adapter->regs + A_TPI_ADDR); in __t1_tpi_write()
77 writel(value, adapter->regs + A_TPI_WR_DATA); in __t1_tpi_write()
78 writel(F_TPIWR, adapter->regs + A_TPI_CSR); in __t1_tpi_write()
83 pr_alert("%s: TPI write to 0x%x failed\n", in __t1_tpi_write()
[all …]
/Linux-v6.1/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_param.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1999 - 2010 Intel Corporation.
12 #define OPTION_UNSET -1
17 * TxDescriptors - Transmit Descriptor Count
18 * @Valid Range: PCH_GBE_MIN_TXD - PCH_GBE_MAX_TXD
26 * RxDescriptors -Receive Descriptor Count
27 * @Valid Range: PCH_GBE_MIN_RXD - PCH_GBE_MAX_RXD
35 * Speed - User Specified Speed Override
37 * - 0: auto-negotiate at all supported speeds
38 * - 10: only link at 10 Mbps
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/net/
Dethernet-controller.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/net/ethernet-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - David S. Miller <davem@davemloft.net>
20 local-mac-address:
22 Specifies the MAC address that was assigned to the network device.
23 $ref: /schemas/types.yaml#/definitions/uint8-array
27 mac-address:
29 Specifies the MAC address that was last used by the boot
[all …]
Dkeystone-netcp.txt6 switch sub-module to send and receive packets. NetCP also includes a packet
12 Keystone II SoC's also have a 10 Gigabit Ethernet Subsystem (XGbE) which
13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates
16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP
17 sub-modules exist as a loadable kernel module which plug in to the netcp core.
18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is
19 mandatory to have the ethernet switch sub-module for the ethernet interface to
20 be operational. Any other sub-module like the PA is optional.
24 -----------------------------
26 -----------------------------
[all …]
/Linux-v6.1/drivers/net/ethernet/freescale/fman/
Dfman.h1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later */
3 * Copyright 2008 - 2015 Freescale Semiconductor Inc.
21 /* TX-Port: Unsupported Format */
29 /* IPR non-consistent-sp */
66 /* non Frame-Manager error */
119 __be16 cksum; /* Running-sum */
120 /* Flags&fragment-offset field of the last IP-header */
127 u8 ip_pid_off; /* IP PID (last IP-proto) offset */
143 * buffer; Note that the private-area will start from the base
149 * order to get the parser-result from a buffer.
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x540.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
31 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() local
32 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X540()
35 phy->ops.set_phy_power = ixgbe_set_copper_phy_power; in ixgbe_get_invariants_X540()
37 mac->mcft_size = IXGBE_X540_MC_TBL_SIZE; in ixgbe_get_invariants_X540()
38 mac->vft_size = IXGBE_X540_VFT_TBL_SIZE; in ixgbe_get_invariants_X540()
39 mac->num_rar_entries = IXGBE_X540_RAR_ENTRIES; in ixgbe_get_invariants_X540()
40 mac->rx_pb_size = IXGBE_X540_RX_PB_SIZE; in ixgbe_get_invariants_X540()
41 mac->max_rx_queues = IXGBE_X540_MAX_RX_QUEUES; in ixgbe_get_invariants_X540()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/igbvf/
Dvf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009 - 2018 Intel Corporation. */
20 * e1000_init_mac_params_vf - Inits MAC params
25 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local
27 /* VF's have no MTA Registers - PF feature only */ in e1000_init_mac_params_vf()
28 mac->mta_reg_count = 128; in e1000_init_mac_params_vf()
29 /* VF's have no access to RAR entries */ 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()
[all …]
/Linux-v6.1/drivers/net/ethernet/pasemi/
Dpasemi_mac.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2006-2007 PA Semi, Inc
17 #include <asm/dma-mapping.h>
40 * - Multicast support
41 * - Large MTU support
42 * - Multiqueue RX/TX
63 static int debug = -1; /* -1 == use DEFAULT_MSG_ENABLE as value */
65 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()
[all …]
/Linux-v6.1/samples/bpf/
Dxdp_router_ipv4_user.c1 // SPDX-License-Identifier: GPL-2.0-only
33 "Usage: xdp_router_ipv4 <IFNAME-0> ... <IFNAME-N>\n";
51 { "skb-mode", no_argument, NULL, 'S' },
55 { "stats", no_argument, NULL, 's' },
69 len = recv(sock, buf_ptr, sizeof(buf) - nll, 0); in recv_msg()
75 if (nh->nlmsg_type == NLMSG_DONE) in recv_msg()
103 __be64 mac; in read_route() member
106 __be64 mac; in read_route() member
113 __be64 mac; in read_route() member
119 rtm_family = rt_msg->rtm_family; in read_route()
[all …]
/Linux-v6.1/net/core/
Dof_net.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/nvmem-consumer.h>
17 * of_get_phy_mode - Get phy mode for given device_node
21 * The function gets phy interface string from property 'phy-mode' or
22 * 'phy-connection-type'. The index in phy_modes table is set in
24 * PHY_INTERFACE_MODE_NA and an errno is returned, e.g. -ENODEV.
33 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode()
35 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode()
45 return -ENODEV; in of_get_phy_mode()
53 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) { in of_get_mac_addr()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_fltr.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2018-2020, Intel Corporation. */
8 * ice_fltr_free_list - free filter lists helper
20 list_del(&e->list_entry); in ice_fltr_free_list()
26 * ice_fltr_add_entry_to_list - allocate and add filter entry to list
29 * @list: pointer to the list which contains MAC filters entry
39 return -ENOMEM; in ice_fltr_add_entry_to_list()
41 entry->fltr_info = *info; in ice_fltr_add_entry_to_list()
43 INIT_LIST_HEAD(&entry->list_entry); in ice_fltr_add_entry_to_list()
44 list_add(&entry->list_entry, list); in ice_fltr_add_entry_to_list()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_hash.c1 // SPDX-License-Identifier: GPL-2.0
27 const size_t msb = start_bit + width_bits - 1; in rvu_npc_wide_extract()
36 lbits = 64 - (start_bit & 63); in rvu_npc_wide_extract()
68 for (i = data_bit_len - 1; i >= 0; i--) { in rvu_npc_toeplitz_hash()
73 hash_out ^= (u32)(rvu_npc_wide_extract(key, key_bit_len - 32, 32)); in rvu_npc_toeplitz_hash()
94 data_padded[0] = mkex_hash->hash_mask[intf][hash_idx][0] & ldata[0]; in npc_field_hash_calc()
95 data_padded[1] = mkex_hash->hash_mask[intf][hash_idx][1] & ldata[1]; in npc_field_hash_calc()
98 field_hash &= mkex_hash->hash_ctrl[intf][hash_idx] >> 32; in npc_field_hash_calc()
99 field_hash |= mkex_hash->hash_ctrl[intf][hash_idx]; in npc_field_hash_calc()
109 /* Update use_hash(bit-20) and bytesm1 (bit-16:19) in npc_update_use_hash()
[all …]
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-mac.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
5 #include <linux/pcs-lynx.h>
9 #include "dpaa2-eth.h"
10 #include "dpaa2-mac.h"
20 static int dpaa2_mac_cmp_ver(struct dpaa2_mac *mac, in dpaa2_mac_cmp_ver() argument
23 if (mac->ver_major == ver_major) in dpaa2_mac_cmp_ver()
24 return mac->ver_minor - ver_minor; in dpaa2_mac_cmp_ver()
25 return mac->ver_major - ver_major; in dpaa2_mac_cmp_ver()
28 static void dpaa2_mac_detect_features(struct dpaa2_mac *mac) in dpaa2_mac_detect_features() argument
30 mac->features = 0; in dpaa2_mac_detect_features()
[all …]
/Linux-v6.1/drivers/staging/rtl8723bs/include/
Drtw_cmd.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
45 u8 *cmd_buf; /* shall be non-paged, and 4 bytes aligned */
47 u8 *rsp_buf; /* shall be non-paged, and 4 bytes aligned */
66 u8 *evt_buf; /* shall be non-paged, and 4 bytes aligned */
75 INIT_LIST_HEAD(&pcmd->list);\
76 pcmd->cmdcode = code;\
77 pcmd->parmbuf = (u8 *)(pparm);\
78 pcmd->cmdsz = sizeof(*pparm);\
79 pcmd->rsp = NULL;\
[all …]
/Linux-v6.1/drivers/staging/rtl8712/
Drtl871x_cmd.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
45 u8 *cmd_buf; /*shall be non-paged, and 4 bytes aligned*/
47 u8 *rsp_buf; /*shall be non-paged, and 4 bytes aligned*/
66 u8 *evt_buf; /*shall be non-paged, and 4 bytes aligned*/
73 INIT_LIST_HEAD(&pcmd->list);\
74 pcmd->cmdcode = code;\
75 pcmd->parmbuf = (u8 *)(pparm);\
76 pcmd->cmdsz = sizeof(*pparm);\
77 pcmd->rsp = NULL;\
[all …]
/Linux-v6.1/drivers/net/wireless/ath/
Dhw.c23 #define REG_READ (common->ops->read)
24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg)
27 * ath_hw_setbssidmask - filter out bssids we listen
32 * which bits of the interface's MAC address should be looked at when trying
36 * accept frames for all BSSes and so we tweak some bits of our mac address
44 * set of ~ ( MAC XOR BSSID ) for all bssids we handle.
48 * the MAC address to obtain the relevant bits and compare the result with
49 * (frame's BSSID & mask) to see if they match.
52 * BSSID-01 and BSSID-02. Lets assume BSSID-01 will not use the MAC address.
53 * There is another BSSID-03 but you are not part of it. For simplicity's sake,
[all …]

12345678910>>...45