Home
last modified time | relevance | path

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

12345678910>>...44

/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/
H A 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 …]
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 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 …]
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A 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 …]
/openbmc/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 …]
/openbmc/qemu/hw/net/
H A Dsungem.c7 * Copyright 2017 Mark Cave-Ayland
12 #include "hw/qdev-properties.h"
44 #define GREG_STAT_TXMAC 0x00004000 /* TX MAC signalled interrupt */
45 #define GREG_STAT_RXMAC 0x00008000 /* RX MAC signalled interrupt */
46 #define GREG_STAT_MAC 0x00010000 /* MAC Control signalled irq */
119 /* MAC Registers */
122 #define MAC_TXRST 0x0000UL /* TX MAC Software Reset Command */
123 #define MAC_RXRST 0x0004UL /* RX MAC Software Reset Command */
124 #define MAC_TXSTAT 0x0010UL /* TX MAC Status Register */
125 #define MAC_RXSTAT 0x0014UL /* RX MAC Status Register */
[all …]
H A De1000.c4 * Software developer's manual:
31 #include "hw/qdev-properties.h"
144 #define chkflag(x) (s->compat_flags & E1000_FLAG_##x)
152 #define TYPE_E1000_BASE "e1000-base"
159 e1000_link_up(E1000State *s) in DECLARE_OBJ_CHECKERS()
161 e1000x_update_regs_on_link_up(s->mac_reg, s->phy_reg); in DECLARE_OBJ_CHECKERS()
164 qemu_flush_queued_packets(qemu_get_queue(s->nic)); in DECLARE_OBJ_CHECKERS()
168 e1000_autoneg_done(E1000State *s) in e1000_autoneg_done() argument
170 e1000x_update_regs_on_autoneg_done(s->mac_reg, s->phy_reg); in e1000_autoneg_done()
173 qemu_flush_queued_packets(qemu_get_queue(s->nic)); in e1000_autoneg_done()
[all …]
/openbmc/openbmc-test-automation/redfish/managers/
H A Dtest_bmc_network_mac.robot16 # AA:AA:AA:AA:AA:AA series is a valid MAC and does not exist in
17 # our network, so this is chosen to avoid MAC conflict.
23 # There will be 6 bytes in MAC address (e.g. xx.xx.xx.xx.xx.xx).
29 # MAC address with special characters.
34 Configure Valid MAC And Verify
35 [Documentation] Configure valid MAC via Redfish and verify.
38 Configure MAC Settings ${valid_mac}
40 # Verify whether new MAC is configured on BMC and FW_Env.
41 Validate MAC On BMC ${valid_mac}
42 Verify MAC Address Via FW_Env ${valid_mac}
[all …]
/openbmc/openbmc/meta-google/recipes-google/networking/
H A Dgbmc-mac-config.bb1 SUMMARY = "Configures MAC addresses on a gBMC system"
3 LICENSE = "Apache-2.0"
4 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacd…
9 file://gbmc-mac-config.service \
10 file://gbmc-mac-config.sh.in \
13 S = "${WORKDIR}/sources"
14 UNPACKDIR = "${S}"
18 ipmi-fru-sh \
23 SYSTEMD_SERVICE:${PN} += "gbmc-mac-config.service"
27 # Maps the MAC address offset from the base address to an interface name
[all …]
/openbmc/linux/arch/arm64/crypto/
H A 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 …]
/openbmc/u-boot/drivers/net/
H A Dftmac100.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Po-Yu Chuang <ratbert@faraday-tech.com>
31 * Reset MAC
35 struct ftmac100 *ftmac100 = (struct ftmac100 *)priv->iobase; in ftmac100_reset()
37 debug ("%s()\n", __func__); in ftmac100_reset()
39 writel (FTMAC100_MACCR_SW_RST, &ftmac100->maccr); in ftmac100_reset()
41 while (readl (&ftmac100->maccr) & FTMAC100_MACCR_SW_RST) in ftmac100_reset()
44 * When soft reset complete, write mac address immediately maybe fail somehow in ftmac100_reset()
51 * Set MAC address
54 const unsigned char *mac) in ftmac100_set_mac() argument
[all …]
/openbmc/u-boot/board/renesas/sh7757lcr/
H A Dsh7757lcr.c1 // SPDX-License-Identifier: GPL-2.0+
28 writel(graofst | 0x20000f00, &gctrl->gracr3); in init_gctrl()
39 printf("%s: spi_flash probe error.\n", __func__); in init_pcie_bridge_from_spi()
50 printf("%s: spi_flash read error.\n", __func__); in init_pcie_bridge_from_spi()
68 if (!(readw(&pciebrg->ctrl_h8s) & 0x0001)) in init_pcie_bridge()
78 printf("%s: malloc error.\n", __func__); in init_pcie_bridge()
89 printf("%s: skipped initialization\n", __func__); in init_pcie_bridge()
93 writew(0xa501, &pciebrg->ctrl_h8s); /* reset */ in init_pcie_bridge()
94 writew(0x0000, &pciebrg->cp_ctrl); in init_pcie_bridge()
95 writew(0x0000, &pciebrg->cp_addr); in init_pcie_bridge()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/Documentation/devicetree/bindings/net/
H A 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 …]
/openbmc/openbmc/meta-facebook/recipes-fb/network-wait-ipv6-ll/network-wait-ipv6-ll/
H A Dcheck-ipv6-ll1 #!/bin/bash -e
8 if [ "$((0x${1:0:2} & 0x2))" -gt 0 ]; then
15 IFS=':' read -r -a oct <<< "$1"
17 sed -E 's/:0+/:/g; s/:{3,}/::/; s/:$/:0/'
21 ip -6 addr show dev "$eth_intf" scope link | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d'
25 echo "global mac address found"
28 echo "non-global mac address, start fix $eth_intf ipv6-ll"
35 # wait getting address from NC-SI
36 mac=$(cat /sys/class/net/"$eth_intf"/address)
37 if ! is_local_mac "$mac"; then
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/
H A 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 …]
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 …]
/openbmc/openbmc-test-automation/lib/
H A Dbmc_network_utils.robot10 # MAC input from user.
16 Check And Reset MAC
17 [Documentation] Update BMC with user input MAC address.
20 # Description of argument(s):
21 # mac_address The mac address (e.g. 00:01:6c:80:02:28).
31 ... Set MAC Address
34 Set MAC Address
35 [Documentation] Update eth0 with input MAC address.
38 # Description of argument(s):
39 # mac_address The mac address (e.g. 00:01:6c:80:02:28).
[all …]
/openbmc/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 …]
/openbmc/skeleton/pyinventorymgr/
H A Dsync_inventory_items.py1 #!/usr/bin/python -u
9 # http://www.apache.org/licenses/LICENSE-2.0
41 # IEEE 802 MAC address mask for locally administered.
42 # This means the admin has set the MAC and is no longer
69 # Get the MAC address
87 if path.split("/")[-1].find("_") < 0:
120 # Get the value of the mac on the system (from u-boot) without ':' separators
124 sys_mac = subprocess.check_output(["fw_printenv", "-n", "ethaddr"])
126 # Handle when mac does not exist in u-boot
131 # Replace the value of the system mac with the value of the inventory
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/fman/
H A 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 */
122 __be16 cksum; /* Running-sum */
123 /* Flags&fragment-offset field of the last IP-header */
130 u8 ip_pid_off; /* IP PID (last IP-proto) offset */
146 * buffer; Note that the private-area will start from the base
152 * order to get the parser-result from a buffer.
[all …]
/openbmc/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 …]
/openbmc/u-boot/board/freescale/mpc8569mds/
H A DREADME2 --------
3 MPC8569MDS is composed of two boards - PB (Processor Board) and PIB (Platform
6 Building U-Boot
7 -----------
12 ----------
25 Flashing U-Boot Images
26 ---------------
28 Use the following commands to program U-Boot image into flash:
30 => tftp 1000000 u-boot.bin
36 Setting the correct MAC addresses
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A 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 …]

12345678910>>...44