Home
last modified time | relevance | path

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

12345678910>>...46

/linux-6.12.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-6.12.1/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2 /* Copyright 2017-2019 NXP */
44 struct enetc_hw *hw = &priv->si->hw; in enetc_get_reglen()
48 len += ARRAY_SIZE(enetc_txbdr_regs) * priv->num_tx_rings; in enetc_get_reglen()
49 len += ARRAY_SIZE(enetc_rxbdr_regs) * priv->num_rx_rings; in enetc_get_reglen()
51 if (hw->port) in enetc_get_reglen()
54 if (hw->port && !!(priv->si->hw_features & ENETC_SI_F_QBU)) in enetc_get_reglen()
66 struct enetc_hw *hw = &priv->si->hw; in enetc_get_regs()
76 for (i = 0; i < priv->num_tx_rings; i++) { in enetc_get_regs()
85 for (i = 0; i < priv->num_rx_rings; i++) { in enetc_get_regs()
[all …]
/linux-6.12.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-6.12.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-6.12.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>
19 local-mac-address:
21 Specifies the MAC address that was assigned to the network device.
22 $ref: /schemas/types.yaml#/definitions/uint8-array
26 mac-address:
28 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-6.12.1/Documentation/devicetree/bindings/nvmem/
Dbrcm,nvram.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Broadcom's NVRAM
10 Broadcom's NVRAM is a structure containing device specific environment
14 NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9
20 - Rafał Miłecki <rafal@milecki.pl>
23 - $ref: nvmem.yaml#
38 description: First Ethernet interface's MAC address
40 "#nvmem-cell-cells":
[all …]
/linux-6.12.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-6.12.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-6.12.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-6.12.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-6.12.1/drivers/net/ethernet/intel/igbvf/
Dvf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009 - 2018 Intel Corporation. */
22 * e1000_init_mac_params_vf - Inits MAC params
27 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local
29 /* VF's have no MTA Registers - PF feature only */ in e1000_init_mac_params_vf()
30 mac->mta_reg_count = 128; in e1000_init_mac_params_vf()
31 /* VF's have no access to RAR entries */ 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()
[all …]
/linux-6.12.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-6.12.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-6.12.1/net/core/
Dof_net.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/nvmem-consumer.h>
18 * of_get_phy_mode - Get phy mode for given device_node
22 * The function gets phy interface string from property 'phy-mode' or
23 * 'phy-connection-type'. The index in phy_modes table is set in
25 * PHY_INTERFACE_MODE_NA and an errno is returned, e.g. -ENODEV.
34 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode()
36 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode()
46 return -ENODEV; in of_get_phy_mode()
54 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) { in of_get_mac_addr()
[all …]
/linux-6.12.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-6.12.1/arch/arm64/crypto/
Daes-ce-ccm-core.S1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * aes-ce-ccm-core.S - AES-CCM transform for ARMv8 with Crypto Extensions
5 * Copyright (C) 2013 - 2017 Linaro Ltd.
15 .arch armv8-a+crypto
20 ld1 {v10.4s-v13.4s}, [\rk]
21 ld1 {v14.4s-v17.4s}, [\tmp], #64
22 ld1 {v18.4s-v21.4s}, [\tmp], #64
23 ld1 {v3.4s-v5.4s}, [\tmp]
50 ld1 {v0.16b}, [x5] /* load mac */
67 eor v2.16b, v2.16b, v5.16b /* final round enc+mac */
[all …]
/linux-6.12.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-6.12.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()
113 /* Update use_hash(bit-20) to 'true' and in npc_update_use_hash()
114 * bytesm1(bit-16:19) to '0x3' in KEX_LD_CFG in npc_update_use_hash()
125 struct npc_mcam_kex_hash *mkex_hash = rvu->kpu.mkex_hash; in npc_program_mkex_hash_rx()
135 if (mkex_hash->lid_lt_ld_hash_en[intf][lid][lt][ld]) { in npc_program_mkex_hash_rx()
147 mkex_hash->hash[intf][ld]); in npc_program_mkex_hash_rx()
[all …]
/linux-6.12.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-6.12.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 …]

12345678910>>...46