| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/emulex/benet/ |
| D | be_hw.h | 2 * Copyright (C) 2005-2016 Broadcom. 11 * linux-drivers@emulex.com 37 #define SLIPORT_SEMAPHORE_OFFSET_SH 0x94 /* PCI-CFG offset */ 48 #define POST_STAGE_HOST_RDY 0x2 /* Host has given go-ahed to FW */ 131 #define DB_EQ_RING_ID_MASK 0x1FF /* bits 0 - 8 */ 132 #define DB_EQ_RING_ID_EXT_MASK 0x3e00 /* bits 9-13 */ 133 #define DB_EQ_RING_ID_EXT_MASK_SHIFT (2) /* qid bits 9-13 placing at 11-15 */ 135 /* Clear the interrupt for this eq */ 140 #define DB_EQ_NUM_POPPED_SHIFT (16) /* bits 16 - 28 */ 144 #define DB_EQ_R2I_DLY_SHIFT (30) /* bits 30 - 31 */ [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/mm/ |
| D | slb_low.S | 2 * Low-level SLB routines 19 #include <asm/asm-offsets.h> 25 #include <asm/feature-fixups.h> 32 * rt = register containing the proto-VSID and into which the 34 * rx = scratch register (clobbered) 37 * - rt and rx must be different registers 38 * - The answer will end up in the low VSID_BITS bits of rt. The higher 42 #define ASM_VSID_SCRAMBLE(rt, rx, rf, size) \ argument 43 lis rx,VSID_MULTIPLIER_##size@h; \ 44 ori rx,rx,VSID_MULTIPLIER_##size@l; \ [all …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-4.19/sound/soc/codecs/ |
| D | wm8996.h | 2 * wm8996.h - WM8996 audio codec interface 748 * R0 (0x00) - Software Reset 750 #define WM8996_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */ 751 #define WM8996_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */ 752 #define WM8996_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */ 755 * R1 (0x01) - Power Management (1) 787 * R2 (0x02) - Power Management (2) 807 * R3 (0x03) - Power Management (3) 851 * R4 (0x04) - Power Management (4) 887 * R5 (0x05) - Power Management (5) [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/ |
| D | udpgro.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 11 if [ $ret -eq 0 ]; then 17 local -r jobs="$(jobs -p)" 18 local -r ns="$(ip netns list|grep $PEER_NS)" 20 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 21 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 27 ip -netns "${PEER_NS}" link set lo up 34 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 35 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad [all …]
|
| 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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-4.19/tools/testing/selftests/net/ |
| D | rtnetlink.sh | 5 # set -e 7 devdummy="test-dummy0" 10 # Kselftest framework requirement - SKIP code is 4. 16 if [ $ret -eq 0 ]; then 21 # same but inverted -- used when command must fail for test to pass 24 if [ $1 -eq 0 ]; then 52 ip -$f netconf show dev "$dev" > /dev/null 56 if [ $ret -ne 0 ] ;then 58 test $r -eq 0 && ret=0 66 devbr="test-br0" [all …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/hfi1/ |
| D | pcie.c | 2 * Copyright(c) 2015 - 2017 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 92 hfi1_early_err(&pdev->dev, "pci enable failed: error %d\n", in hfi1_pcie_init() 93 -ret); in hfi1_pcie_init() 99 hfi1_early_err(&pdev->dev, in hfi1_pcie_init() 100 "pci_request_regions fails: err %d\n", -ret); in hfi1_pcie_init() 113 hfi1_early_err(&pdev->dev, in hfi1_pcie_init() 122 hfi1_early_err(&pdev->dev, in hfi1_pcie_init() [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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-4.19/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() 60 return -ENOMEM; in mlx4_en_create_cq() 64 cq->size = entries; in mlx4_en_create_cq() 65 cq->buf_size = cq->size * mdev->dev->caps.cqe_size; in mlx4_en_create_cq() 67 cq->ring = ring; in mlx4_en_create_cq() 68 cq->type = mode; in mlx4_en_create_cq() 69 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq() 72 * dev->numa_node is used in mtt range allocation flow. in mlx4_en_create_cq() [all …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/ibm/ehea/ |
| D | ehea_main.c | 10 * Jan-Bernd Themann <themann@de.ibm.com> 60 static int msg_level = -1; 80 "[2^x - 1], x = [7..14]. Default = " 83 "[2^x - 1], x = [7..14]. Default = " 86 "[2^x - 1], x = [7..14]. Default = " 89 "[2^x - 1], x = [7..14]. Default = " 113 .compatible = "IBM,lhea-ethernet", 150 if (!test_bit(__EHEA_DISABLE_PORT_RESET, &port->flags)) in ehea_schedule_port_reset() 151 schedule_work(&port->reset_task); in ehea_schedule_port_reset() 171 struct ehea_port *port = adapter->port[k]; in ehea_update_firmware_handles() [all …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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 …]
|