Home
last modified time | relevance | path

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

12345678910>>...44

/linux/drivers/net/ethernet/chelsio/cxgb3/
H A 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/Documentation/networking/
H A 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/drivers/net/wireless/quantenna/qtnfmac/
H A 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 …]
H A 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 …]
H A 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/drivers/net/ethernet/oki-semi/pch_gbe/
H A 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/Documentation/devicetree/bindings/nvmem/
H A 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/drivers/net/ethernet/chelsio/cxgb/
H A 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/drivers/net/ethernet/intel/igbvf/
H A 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/drivers/net/ethernet/pasemi/
H A 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/samples/bpf/
H A 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/drivers/net/ethernet/intel/ice/
H A 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/net/core/
H A 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/tools/testing/selftests/drivers/net/bonding/
H A Dbond_options.sh2 # SPDX-License-Identifier: GPL-2.0
24 ip -n ${s_ns} link set eth0 type bond_slave prio 10
25 [[ $? -ne 0 ]] && skip=0
28 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10"
29 [[ $? -ne 0 ]] && skip=0
39 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6}
40 [[ $? -ne 0 ]] && skip=0
43 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}"
44 [[ $? -ne 0 ]] && skip=0
46 ip -n ${s_ns} link del bond1
[all …]
/linux/arch/arm64/crypto/
H A 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/Documentation/devicetree/bindings/net/
H A 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/drivers/net/ethernet/marvell/octeontx2/af/
H A 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/drivers/net/ethernet/hisilicon/hibmcge/
H A Dhbg_mdio.c1 // SPDX-License-Identifier: GPL-2.0+
12 #define HBG_MAC_GET_PRIV(mac) ((struct hbg_priv *)(mac)->mdio_bus->priv) argument
13 #define HBG_MII_BUS_GET_MAC(bus) (&((struct hbg_priv *)(bus)->priv)->mac)
24 static void hbg_mdio_set_command(struct hbg_mac *mac, u32 cmd) in hbg_mdio_set_command() argument
26 hbg_reg_write(HBG_MAC_GET_PRIV(mac), HBG_REG_MDIO_COMMAND_ADDR, cmd); in hbg_mdio_set_command()
29 static void hbg_mdio_get_command(struct hbg_mac *mac, u32 *cmd) in hbg_mdio_get_command() argument
31 *cmd = hbg_reg_read(HBG_MAC_GET_PRIV(mac), HBG_REG_MDIO_COMMAND_ADDR); in hbg_mdio_get_command()
34 static void hbg_mdio_set_wdata_reg(struct hbg_mac *mac, u16 wdata_value) in hbg_mdio_set_wdata_reg() argument
36 hbg_reg_write_field(HBG_MAC_GET_PRIV(mac), HBG_REG_MDIO_WDATA_ADDR, in hbg_mdio_set_wdata_reg()
40 static u32 hbg_mdio_get_rdata_reg(struct hbg_mac *mac) in hbg_mdio_get_rdata_reg() argument
[all …]
/linux/drivers/staging/rtl8723bs/include/
H A 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/lib/crypto/riscv/
H A Dpoly1305-riscv.pl2 # SPDX-License-Identifier: GPL-1.0+ OR BSD-3-Clause
5 # Written by Andy Polyakov, @dot-asm, initially for use with OpenSSL.
8 # Poly1305 hash for RISC-V.
12 # In the essence it's pretty straightforward transliteration of MIPS
13 # module [without big-endian option].
15 # 1.8 cycles per byte on U74, >100% faster than compiler-generated
34 for (@ARGV) { $output=$_ if (/\w[\w\-]*\.\w+$/); }
51 # 64-bit code path...
86 andi $inp,$inp,-8 # align $inp
107 addi $tmp0,$tmp0,-63 # 0x00000000ffffffc1
[all …]
/linux/drivers/net/wireless/ath/
H A 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 …]
/linux/drivers/net/ethernet/micrel/
H A Dks8842.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <linux/dma-mapping.h>
147 #define KS8842_USE_DMA(adapter) (((adapter)->dma_tx.channel != -1) && \
148 ((adapter)->dma_rx.channel != -1))
168 iowrite32(1, adapter->hw_addr + REQ_TIMB_DMA_RESUME); in ks8842_resume_dma()
173 iowrite16(bank, adapter->hw_addr + REG_SELECT_BANK); in ks8842_select_bank()
180 iowrite8(value, adapter->hw_addr + offset); in ks8842_write8()
187 iowrite16(value, adapter->hw_addr + offset); in ks8842_write16()
195 reg = ioread16(adapter->hw_addr + offset); in ks8842_enable_bits()
197 iowrite16(reg, adapter->hw_addr + offset); in ks8842_enable_bits()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2012 Realtek Corporation.*/
71 if (rtlpriv->cfg->alt_fw_name) { in rtl_fw_do_work()
73 rtlpriv->cfg->alt_fw_name, in rtl_fw_do_work()
74 rtlpriv->io.dev); in rtl_fw_do_work()
75 pr_info("Loading alternative firmware %s\n", in rtl_fw_do_work()
76 rtlpriv->cfg->alt_fw_name); in rtl_fw_do_work()
81 rtlpriv->max_fw_size = 0; in rtl_fw_do_work()
85 if (firmware->size > rtlpriv->max_fw_size) { in rtl_fw_do_work()
91 memcpy(rtlpriv->rtlhal.pfirmware, firmware->data, in rtl_fw_do_work()
[all …]
/linux/drivers/net/ethernet/amd/
H A Dau1000_eth.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright 2001-2003, 2006 MontaVista Software Inc.
8 * Added ethtool/mii-tool support,
11 * or riemer@riemer-nt.de: fixed the link beat detection with
14 * converted to use linux-2.6.x's PHY framework
22 #include <linux/dma-mapping.h>
67 #define DRV_DESC "Au1xxx on-chip Ethernet driver"
73 /* AU1000 MAC registers and bits */
202 * make sure there's no out-of-order writes, and that all writes
207 * board-specific configurations
[all …]
/linux/tools/testing/selftests/net/
H A Dtest_neigh.sh2 # SPDX-License-Identifier: GPL-2.0
27 if [ "$VERBOSE" -eq 1 ] && [ -n "$out" ]; then
39 set -e
43 ip -n "$ns1" link add veth0 type veth peer name veth1 netns "$ns2"
44 ip -n "$ns1" link set dev veth0 up
45 ip -n "$ns2" link set dev veth1 up
47 ip -n "$ns1" address add 192.0.2.1/24 dev veth0
48 ip -n "$ns1" address add 2001:db8:1::1/64 dev veth0 nodad
49 ip -n "$ns2" address add 192.0.2.2/24 dev veth1
50 ip -n "$ns2" address add 2001:db8:1::2/64 dev veth1 nodad
[all …]

12345678910>>...44