/Linux-v5.10/tools/testing/selftests/net/forwarding/ |
D | devlink_lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 if [[ ! -v DEVLINK_DEV ]]; then 8 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \ 9 | jq -r '.port | keys[]' | cut -d/ -f-2) 10 if [ -z "$DEVLINK_DEV" ]; then 14 if [[ "$(echo $DEVLINK_DEV | grep -c pci)" -eq 0 ]]; then 19 DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \ 20 -n | cut -d" " -f3) 27 if [ $? -ne 0 ]; then 33 if [ $? -ne 0 ]; then [all …]
|
D | lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 29 if [[ -f $relative_path/forwarding.config ]]; then 38 tc -j &> /dev/null 39 if [[ $? -ne 0 ]]; then 48 if [[ $? -ne 0 ]]; then 57 if [[ $? -ne 0 ]]; then 65 tc actions help 2>&1 | grep -q hw_stats 66 if [[ $? -ne 0 ]]; then 72 if [[ "$(id -u)" -ne 0 ]]; then 85 if [[ ! -x "$(command -v "$cmd")" ]]; then [all …]
|
/Linux-v5.10/drivers/net/ethernet/emulex/benet/ |
D | be_hw.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2005-2016 Broadcom. 7 * linux-drivers@emulex.com 33 #define SLIPORT_SEMAPHORE_OFFSET_SH 0x94 /* PCI-CFG offset */ 44 #define POST_STAGE_HOST_RDY 0x2 /* Host has given go-ahed to FW */ 127 #define DB_EQ_RING_ID_MASK 0x1FF /* bits 0 - 8 */ 128 #define DB_EQ_RING_ID_EXT_MASK 0x3e00 /* bits 9-13 */ 129 #define DB_EQ_RING_ID_EXT_MASK_SHIFT (2) /* qid bits 9-13 placing at 11-15 */ 131 /* Clear the interrupt for this eq */ 136 #define DB_EQ_NUM_POPPED_SHIFT (16) /* bits 16 - 28 */ [all …]
|
D | be_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005 - 2016 Broadcom 7 * linux-drivers@emulex.com 39 /* Per-module error detection/recovery workq shared across all functions. 147 struct be_dma_mem *mem = &q->dma_mem; in be_queue_free() 149 if (mem->va) { in be_queue_free() 150 dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va, in be_queue_free() 151 mem->dma); in be_queue_free() 152 mem->va = NULL; in be_queue_free() 159 struct be_dma_mem *mem = &q->dma_mem; in be_queue_alloc() [all …]
|
/Linux-v5.10/sound/soc/codecs/ |
D | wm8996.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * wm8996.h - WM8996 audio codec interface 744 * R0 (0x00) - Software Reset 746 #define WM8996_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */ 747 #define WM8996_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */ 748 #define WM8996_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */ 751 * R1 (0x01) - Power Management (1) 783 * R2 (0x02) - Power Management (2) 803 * R3 (0x03) - Power Management (3) 847 * R4 (0x04) - Power Management (4) [all …]
|
D | wm8996.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8996.c - WM8996 audio codec interface 5 * Copyright 2011-2 Wolfson Microelectronics PLC. 108 regcache_mark_dirty(wm8996->regmap); \ 299 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -3600, 150, 0); 300 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7200, 75, 1); 301 static const DECLARE_TLV_DB_SCALE(out_digital_tlv, -1200, 150, 0); 302 static const DECLARE_TLV_DB_SCALE(out_tlv, -900, 75, 0); 303 static const DECLARE_TLV_DB_SCALE(spk_tlv, -900, 150, 0); 304 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | reporter_rx.c | 1 // SPDX-License-Identifier: GPL-2.0 17 return -ENOMEM; in mlx5e_query_rq_state() 37 if (icosq->cc == icosq->pc) in mlx5e_wait_for_icosq_flush() 43 netdev_err(icosq->channel->netdev, in mlx5e_wait_for_icosq_flush() 45 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_wait_for_icosq_flush() 47 return -ETIMEDOUT; in mlx5e_wait_for_icosq_flush() 52 WARN_ONCE(icosq->cc != icosq->pc, "ICOSQ 0x%x: cc (0x%x) != pc (0x%x)\n", in mlx5e_reset_icosq_cc_pc() 53 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_reset_icosq_cc_pc() 54 icosq->cc = 0; in mlx5e_reset_icosq_cc_pc() 55 icosq->pc = 0; in mlx5e_reset_icosq_cc_pc() [all …]
|
/Linux-v5.10/tools/testing/selftests/net/ |
D | udpgro_bench.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 9 local -r jobs="$(jobs -p)" 10 local -r ns="$(ip netns list|grep $PEER_NS)" 12 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null 13 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 18 # use 'rx' as separator between sender args and receiver args 19 local -r all="$@" 20 local -r tx_args=${all%rx*} 21 local rx_args=${all#*rx} [all …]
|
D | rtnetlink.sh | 5 # set -e 7 devdummy="test-dummy0" 9 # Kselftest framework requirement - SKIP code is 4. 15 if [ $ret -eq 0 ]; then 20 # same but inverted -- used when command must fail for test to pass 23 if [ $1 -eq 0 ]; then 51 ip -$f netconf show dev "$dev" > /dev/null 55 if [ $ret -ne 0 ] ;then 57 test $r -eq 0 && ret=0 65 devbr="test-br0" [all …]
|
D | udpgro.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 9 local -r jobs="$(jobs -p)" 10 local -r ns="$(ip netns list|grep $PEER_NS)" 12 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 13 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 19 ip -netns "${PEER_NS}" link set lo up 26 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 27 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 28 ip -netns "${PEER_NS}" link set dev veth1 up [all …]
|
/Linux-v5.10/tools/testing/selftests/drivers/net/netdevsim/ |
D | udp_tunnel_nic.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 30 [ -e /sys/class/net/$dev ] && ip link del dev $dev 36 if [ -e $NSIM_DEV_SYS ]; then 58 [ "$ipver" != '6' ] || ipfl="-6" 84 [ "$ipver" != '6' ] || ipfl="-6" 118 echo -e "port: $((val >> 16))\ttype: $((val & 0xffff))" 134 type_name="vxlan-gpe" 146 local -n expected=$2 149 read -a have < $path 151 if [ ${#expected[@]} -ne ${#have[@]} ]; then [all …]
|
/Linux-v5.10/drivers/infiniband/hw/hfi1/ |
D | pcie.c | 2 * Copyright(c) 2015 - 2019 Intel Corporation. 24 * - Redistributions of source code must retain the above copyright 26 * - Redistributions in binary form must reproduce the above copyright 30 * - Neither the name of Intel Corporation nor the names of its 69 struct pci_dev *pdev = dd->pcidev; in hfi1_pcie_init() 85 dd_dev_err(dd, "pci enable failed: error %d\n", -ret); in hfi1_pcie_init() 91 dd_dev_err(dd, "pci_request_regions fails: err %d\n", -ret); in hfi1_pcie_init() 140 * fields required to re-initialize after a chip reset, or for 161 return -EINVAL; in hfi1_pcie_ddinit() 164 dd->kregbase1 = ioremap(addr, RCV_ARRAY); in hfi1_pcie_ddinit() [all …]
|
D | platform.c | 24 * - Redistributions of source code must retain the above copyright 26 * - Redistributions in binary form must reproduce the above copyright 30 * - Neither the name of Intel Corporation nor the names of its 81 for (j = sizeof(u64); j != 0; j -= 2) { in validate_scratch_checksum() 103 struct hfi1_pportdata *ppd = dd->pport; in save_platform_config_fields() 109 (dd->hfi1_id ? PORT1_PORT_TYPE_SMASK : in save_platform_config_fields() 111 ppd->port_type = temp_dest >> in save_platform_config_fields() 112 (dd->hfi1_id ? PORT1_PORT_TYPE_SHIFT : in save_platform_config_fields() 116 (dd->hfi1_id ? PORT1_LOCAL_ATTEN_SMASK : in save_platform_config_fields() 118 ppd->local_atten = temp_dest >> in save_platform_config_fields() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/phy/ |
D | qcom,ipq806x-usb-phy-ss.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/phy/qcom,ipq806x-usb-phy-ss.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ansuel Smith <ansuelsmth@gmail.com> 13 DWC3 PHY nodes are defined to describe on-chip Synopsis Physical layer 19 const: qcom,ipq806x-usb-phy-ss 21 "#phy-cells": 31 clock-names: 35 - const: ref [all …]
|
/Linux-v5.10/drivers/firmware/arm_scmi/ |
D | notify.c | 1 // SPDX-License-Identifier: GPL-2.0 36 * All users provided callbacks and allocated notification-chains are stored in 44 * hash-keys. 51 * Upon reception of a notification message from the platform the SCMI RX ISR 54 * pushes the event-data itself on a protocol-dedicated kfifo queue for further 59 * queued items into the proper notification-chain: notifications processing can 65 * conveyed, converted into a custom per-event report struct, as the void *data 73 #define dev_fmt(fmt) "SCMI Notifications - " fmt 74 #define pr_fmt(fmt) "SCMI Notifications - " fmt 114 * Assumes that the stored obj includes its own hash-key in a field named 'key': [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | en_cq.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 51 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_cq() 58 return -ENOMEM; in mlx4_en_create_cq() 61 cq->size = entries; in mlx4_en_create_cq() 62 cq->buf_size = cq->size * mdev->dev->caps.cqe_size; in mlx4_en_create_cq() 64 cq->ring = ring; in mlx4_en_create_cq() 65 cq->type = mode; in mlx4_en_create_cq() 66 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq() 69 * dev->numa_node is used in mtt range allocation flow. in mlx4_en_create_cq() [all …]
|
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 4 * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 40 #include <linux/dma-mapping.h> 62 * Rx buffer size. We use largish buffers if possible but settle for single 68 # define FL_PG_ORDER (16 - PAGE_SHIFT) 76 * Main body length for sk_buffs used for Rx Ethernet packets with fragments. 91 * Max number of Rx buffers we replenish at a time. Again keep this modest, 97 * Period of the Rx queue check timer. This timer is infrequent as it has 115 #define NOMEM_TMR_IDX (SGE_NTIMERS - 1) [all …]
|
/Linux-v5.10/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Jan-Bernd Themann <themann@de.ibm.com> 46 static int msg_level = -1; 66 "[2^x - 1], x = [7..14]. Default = " 69 "[2^x - 1], x = [7..14]. Default = " 72 "[2^x - 1], x = [7..14]. Default = " 75 "[2^x - 1], x = [7..14]. Default = " 99 .compatible = "IBM,lhea-ethernet", 136 if (!test_bit(__EHEA_DISABLE_PORT_RESET, &port->flags)) in ehea_schedule_port_reset() 137 schedule_work(&port->reset_task); in ehea_schedule_port_reset() [all …]
|
/Linux-v5.10/drivers/phy/qualcomm/ |
D | phy-qcom-ipq806x-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 53 /* SSPHY control registers - Does this need 0x30? */ 85 /* RX OVRD IN HI bits */ 132 * @base - QCOM DWC3 PHY base virtual address. 133 * @offset - register offset. 134 * @mask - register bitmask specifying what should be updated 135 * @val - value to write. 141 u32 write_val, tmp = readl(phy_dwc3->base + offset); in usb_phy_write_readback() 146 writel(write_val, phy_dwc3->base + offset); in usb_phy_write_readback() 149 tmp = readl(phy_dwc3->base + offset); in usb_phy_write_readback() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 7 subdir-ccflags-y += -I$(src) 9 obj-$(CONFIG_MLX5_CORE) += mlx5_core.o 14 mlx5_core-y := main.o cmd.o debugfs.o fw.o eq.o uar.o pagealloc.o \ 24 mlx5_core-$(CONFIG_MLX5_CORE_EN) += en_main.o en_common.o en_fs.o en_ethtool.o \ 28 en/xsk/setup.o en/xsk/rx.o en/xsk/tx.o en/devlink.o 33 mlx5_core-$(CONFIG_MLX5_EN_ARFS) += en_arfs.o 34 mlx5_core-$(CONFIG_MLX5_EN_RXNFC) += en_fs_ethtool.o 35 mlx5_core-$(CONFIG_MLX5_CORE_EN_DCB) += en_dcbnl.o en/port_buffer.o 36 mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += en/hv_vhca_stats.o [all …]
|
/Linux-v5.10/Documentation/networking/device_drivers/ethernet/mellanox/ |
D | mlx5.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 12 - `Enabling the driver and kconfig options`_ 13 - `Devlink info`_ 14 - `Devlink parameters`_ 15 - `Devlink health reporters`_ 16 - `mlx5 tracepoints`_ 23 | Basic features, ethernet net device rx/tx offloads and XDP, are available with the most basic fla… 35 | Choosing this option will allow basic ethernet netdevice support with all of the standard rx/t… 37 | built-in into mlx5_core.ko. 42 | Enables Hardware-accelerated receive flow steering (arfs) support, and ntuple filtering. [all …]
|
/Linux-v5.10/drivers/gpu/drm/bridge/analogix/ |
D | analogix_dp_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 82 * "force-hpd" would indicate whether driver need this. in analogix_dp_detect_hpd() 84 if (!dp->force_hpd) in analogix_dp_detect_hpd() 85 return -ETIMEDOUT; in analogix_dp_detect_hpd() 92 dev_dbg(dp->dev, "failed to get hpd plug status, try to force hpd\n"); in analogix_dp_detect_hpd() 97 dev_err(dp->dev, "failed to get hpd plug in status\n"); in analogix_dp_detect_hpd() 98 return -EINVAL; in analogix_dp_detect_hpd() 101 dev_dbg(dp->dev, "success to get plug in status after force hpd\n"); in analogix_dp_detect_hpd() 111 ret = drm_dp_dpcd_readb(&dp->aux, DP_PSR_SUPPORT, &psr_version); in analogix_dp_detect_sink_psr() 113 dev_err(dp->dev, "failed to get PSR version, disable it\n"); in analogix_dp_detect_sink_psr() [all …]
|
/Linux-v5.10/tools/testing/selftests/netfilter/ |
D | nft_concat_range.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # nft_concat_range.sh - Tests for sets with concatenation of ranged fields 16 # - reported_issues: check for issues that were reported in the past 17 # - correctness: check that packets match given entries, and only those 18 # - concurrency: attempt races between insertion, deletion and lookup 19 # - timeout: check that packets match entries until they expire 20 # - performance: estimate matching rate, compare with rbtree and hash baselines 281 display net,mac - ICMP 298 display net6,mac - ICMPv6 337 display Add two elements, flush, re-add [all …]
|
/Linux-v5.10/drivers/phy/amlogic/ |
D | phy-meson-g12a-usb3-pcie.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <dt-bindings/phy/phy.h> 79 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr() 80 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr() 82 regmap_write(priv->regmap, PHY_R4, reg | PHY_R4_PHY_CR_CAP_ADDR); in phy_g12a_usb3_pcie_cr_bus_addr() 84 ret = regmap_read_poll_timeout(priv->regmap, PHY_R5, val, in phy_g12a_usb3_pcie_cr_bus_addr() 90 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr() 92 ret = regmap_read_poll_timeout(priv->regmap, PHY_R5, val, in phy_g12a_usb3_pcie_cr_bus_addr() 112 regmap_write(priv->regmap, PHY_R4, 0); in phy_g12a_usb3_pcie_cr_bus_read() 113 regmap_write(priv->regmap, PHY_R4, PHY_R4_PHY_CR_READ); in phy_g12a_usb3_pcie_cr_bus_read() [all …]
|
/Linux-v5.10/drivers/net/wireless/st/cw1200/ |
D | txrx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Datapath implementation for ST-Ericsson CW1200 mac80211 drivers 5 * Copyright (c) 2010, ST-Ericsson 34 cw1200_queue_lock(&priv->tx_queue[i]); in cw1200_tx_queues_lock() 41 cw1200_queue_unlock(&priv->tx_queue[i]); in cw1200_tx_queues_unlock() 50 policy->raw[0] & 0x0F, policy->raw[0] >> 4, in tx_policy_dump() 51 policy->raw[1] & 0x0F, policy->raw[1] >> 4, in tx_policy_dump() 52 policy->raw[2] & 0x0F, policy->raw[2] >> 4, in tx_policy_dump() 53 policy->raw[3] & 0x0F, policy->raw[3] >> 4, in tx_policy_dump() 54 policy->raw[4] & 0x0F, policy->raw[4] >> 4, in tx_policy_dump() [all …]
|