/openbmc/linux/tools/testing/selftests/net/ |
H A D | udpgro.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 15 if [ $ret -eq 0 ]; then 21 local -r jobs="$(jobs -p)" 22 local -r ns="$(ip netns list|grep $PEER_NS)" 24 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 25 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 31 ip -netns "${PEER_NS}" link set lo up 38 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 39 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad [all …]
|
H A D | udpgro_bench.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 13 local -r jobs="$(jobs -p)" 14 local -r ns="$(ip netns list|grep $PEER_NS)" 16 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null 17 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 22 # use 'rx' as separator between sender args and receiver args 23 local -r all="$@" 24 local -r tx_args=${all%rx*} 25 local rx_args=${all#*rx} [all …]
|
H A D | udpgro_frglist.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 13 local -r jobs="$(jobs -p)" 14 local -r ns="$(ip netns list|grep $PEER_NS)" 16 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null 17 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 22 # use 'rx' as separator between sender args and receiver args 23 local -r all="$@" 24 local -r tx_args=${all%rx*} 25 local rx_args=${all#*rx} [all …]
|
H A D | rtnetlink.sh | 5 # set -e 33 devdummy="test-dummy0" 35 # Kselftest framework requirement - SKIP code is 4. 41 if [ $ret -eq 0 ]; then 46 # same but inverted -- used when command must fail for test to pass 49 if [ $1 -eq 0 ]; then 77 ip -$f netconf show dev "$dev" > /dev/null 81 if [ $ret -ne 0 ] ;then 83 test $r -eq 0 && ret=0 91 devbr="test-br0" [all …]
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 9 readonly KSFT_TEST="${MPTCP_LIB_KSFT_TEST:-$(basename "${0}" .sh)}" 11 # These variables are used in some selftests, read-only 12 declare -rx MPTCP_LIB_EVENT_CREATED=1 # MPTCP_EVENT_CREATED 13 declare -rx MPTCP_LIB_EVENT_ESTABLISHED=2 # MPTCP_EVENT_ESTABLISHED 14 declare -rx MPTCP_LIB_EVENT_CLOSED=3 # MPTCP_EVENT_CLOSED 15 declare -rx MPTCP_LIB_EVENT_ANNOUNCED=6 # MPTCP_EVENT_ANNOUNCED 16 declare -rx MPTCP_LIB_EVENT_REMOVED=7 # MPTCP_EVENT_REMOVED 17 declare -rx MPTCP_LIB_EVENT_SUB_ESTABLISHED=10 # MPTCP_EVENT_SUB_ESTABLISHED 18 declare -rx MPTCP_LIB_EVENT_SUB_CLOSED=11 # MPTCP_EVENT_SUB_CLOSED [all …]
|
H A D | mptcp_join.sh | 2 # SPDX-License-Identifier: GPL-2.0 48 declare -A all_tests 49 declare -a only_tests_ids 50 declare -a only_tests_names 51 declare -A failed_tests 90 rndh=$(printf %x $sec)-$(mktemp -u XXXXXX) 92 ns1="ns1-$rndh" 93 ns2="ns2-$rndh" 98 ip -net $netns link set lo up 99 ip netns exec $netns sysctl -q net.mptcp.enabled=1 [all …]
|
/openbmc/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-ipq8064-v2.0.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include "qcom-ipq8064.dtsi" 6 model = "Qualcomm Technologies, Inc. IPQ8064-v2.0"; 13 stdout-path = "serial0:115200n8"; 16 reserved-memory { 17 #address-cells = <1>; 18 #size-cells = <1>; 23 no-map; 44 compatible = "qcom,pcie-ipq8064-v2"; 48 compatible = "qcom,pcie-ipq8064-v2"; [all …]
|
/openbmc/openpower-debug-collector/dump/tools/common/include/ |
H A D | gendumpinfo | 5 declare -rx DUMP_MANAGER='xyz.openbmc_project.Dump.Manager' 6 declare -rx DUMP_PATH='/xyz/openbmc_project/dump/opdump/entry' 7 declare -rx DUMP_PROP='xyz.openbmc_project.Common.Progress' 10 declare -x DRIVER="" 11 declare -x YAML_FILE="" 12 declare -x ADDL_DATA_PATH="" 13 declare -x START_TIME=0 14 declare -x END_TIME=0 18 DRIVER=$(awk -F '[=()]' '/VERSION_ID/ {print $2}' /etc/os-release) 25 START_TIME=$(busctl get-property "$DUMP_MANAGER" "$DUMP_PATH/$dump_id" \ [all …]
|
H A D | gendumpheader | 13 declare -rx DUMP_HEADER_ENTRY_SIZE='516' 14 declare -rx SIZE_4='4' 15 declare -rx SIZE_8='8' 16 declare -rx SIZE_12='12' 17 declare -rx SIZE_32='32' 19 declare -rx DUMP_SUMMARY_SIZE='1024' 20 declare -rx HW_DUMP='00' 21 declare -rx HB_DUMP='20' 22 declare -rx SBE_DUMP='30' 23 declare -rx OP_DUMP="opdump" [all …]
|
/openbmc/linux/Documentation/networking/devlink/ |
H A D | mlx5.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 .. list-table:: Generic parameters implemented 15 * - Name 16 - Mode 17 - Validation 18 * - ``enable_roce`` 19 - driverinit 20 - Type: Boolean 26 * - ``io_eq_size`` 27 - driverinit [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ds90ub960.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the Texas Instruments DS90UB960-Q1 video deserializer 12 * - PM for serializer and remote peripherals. We need to manage: 13 * - VPOC 14 * - Power domain? Regulator? Somehow any remote device should be able to 16 * - Link between the deserializer and the serializer 17 * - Related to VPOC management. We probably always want to turn on the VPOC 19 * - Serializer's services: i2c, gpios, power 20 * - The serializer needs to resume before the remote peripherals can 22 * - How to handle gpios? Reserving a gpio essentially keeps the provider [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | devlink_lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Kselftest framework requirement - SKIP code is 4. 10 if [[ ! -v DEVLINK_DEV ]]; then 11 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \ 12 | jq -r '.port | keys[]' | cut -d/ -f-2) 13 if [ -z "$DEVLINK_DEV" ]; then 17 if [[ "$(echo $DEVLINK_DEV | grep -c pci)" -eq 0 ]]; then 22 DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \ 23 -n | cut -d" " -f3) 24 elif [[ ! -z "$DEVLINK_DEV" ]]; then [all …]
|
/openbmc/linux/drivers/net/ethernet/emulex/benet/ |
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | ti,ds90ub960.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments DS90UB9XX Family FPD-Link Deserializer Hubs 10 - Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> 13 The TI DS90UB9XX devices are FPD-Link video deserializers with I2C and GPIO 17 - $ref: /schemas/i2c/i2c-atr.yaml# 22 - ti,ds90ub960-q1 23 - ti,ds90ub9702-q1 33 clock-names: [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A 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 …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | ethtool-ring.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 4 source ethtool-common.sh 9 echo $(ethtool -g $NSIM_NETDEV | \ 10 tail -n +$CURR_SETT_LINE | \ 11 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[\t ]/, "", $2); print $2}') 21 if ! ethtool -h | grep -q set-ring >/dev/null; then 22 echo "SKIP: No --set-ring support in ethtool" 28 set -o pipefail 30 declare -A SETTINGS_MAP=( 31 ["rx"]="RX" [all …]
|
H A D | ethtool-coalesce.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 4 source ethtool-common.sh 9 echo $(ethtool -c $NSIM_NETDEV | \ 10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}') 20 if ! ethtool -h | grep -q coalesce; then 21 echo "SKIP: No --coalesce support in ethtool" 27 set -o pipefail 29 declare -A SETTINGS_MAP=( 30 ["rx-frames-low"]="rx-frame-low" 31 ["tx-frames-low"]="tx-frame-low" [all …]
|
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | hw_channel.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 9 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_get_msg_index() 13 down(&hwc->sema); in mana_hwc_get_msg_index() 15 spin_lock_irqsave(&r->lock, flags); in mana_hwc_get_msg_index() 17 index = find_first_zero_bit(hwc->inflight_msg_res.map, in mana_hwc_get_msg_index() 18 hwc->inflight_msg_res.size); in mana_hwc_get_msg_index() 20 bitmap_set(hwc->inflight_msg_res.map, index, 1); in mana_hwc_get_msg_index() 22 spin_unlock_irqrestore(&r->lock, flags); in mana_hwc_get_msg_index() 31 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_put_msg_index() 34 spin_lock_irqsave(&r->lock, flags); in mana_hwc_put_msg_index() [all …]
|
H A D | mana_en.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 44 apc->port_is_up = true; in mana_open() 59 if (!apc->port_is_up) in mana_close() 72 if (skb->protocol == htons(ETH_P_IP)) { in mana_checksum_info() 75 if (ip->protocol == IPPROTO_TCP) in mana_checksum_info() 78 if (ip->protocol == IPPROTO_UDP) in mana_checksum_info() 80 } else if (skb->protocol == htons(ETH_P_IPV6)) { in mana_checksum_info() 83 if (ip6->nexthdr == IPPROTO_TCP) in mana_checksum_info() 86 if (ip6->nexthdr == IPPROTO_UDP) in mana_checksum_info() 97 ash->dma_handle[sg_i] = da; in mana_add_sge() [all …]
|
/openbmc/linux/drivers/usb/typec/mux/ |
H A D | nb7vpq904m.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * OnSemi NB7VPQ904M Type-C driver 75 struct mutex lock; /* protect non-concurrent retimer & switch */ 84 u8 eq, out_comp, flat_gain, loss_match; in nb7vpq904m_set_channel() local 87 eq = NB7_IS_CHAN_AD(channel) ? 0x6 : 0x4; in nb7vpq904m_set_channel() 92 eq = 0x4; in nb7vpq904m_set_channel() 98 regmap_update_bits(nb7->regmap, EQ_SETTING_REG(channel), in nb7vpq904m_set_channel() 99 EQ_SETTING_MASK, FIELD_PREP(EQ_SETTING_MASK, eq)); in nb7vpq904m_set_channel() 100 regmap_update_bits(nb7->regmap, OUTPUT_COMPRESSION_AND_POL_REG(channel), in nb7vpq904m_set_channel() 102 regmap_update_bits(nb7->regmap, FLAT_GAIN_REG(channel), in nb7vpq904m_set_channel() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | reporter_rx.c | 1 // SPDX-License-Identifier: GPL-2.0 33 return -ENOMEM; in mlx5e_query_rq_state() 49 struct mlx5_core_dev *dev = icosq->channel->mdev; in mlx5e_wait_for_icosq_flush() 55 if (icosq->cc == icosq->pc) in mlx5e_wait_for_icosq_flush() 61 netdev_err(icosq->channel->netdev, in mlx5e_wait_for_icosq_flush() 63 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_wait_for_icosq_flush() 65 return -ETIMEDOUT; in mlx5e_wait_for_icosq_flush() 70 WARN_ONCE(icosq->cc != icosq->pc, "ICOSQ 0x%x: cc (0x%x) != pc (0x%x)\n", in mlx5e_reset_icosq_cc_pc() 71 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_reset_icosq_cc_pc() 72 icosq->cc = 0; in mlx5e_reset_icosq_cc_pc() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | rescan-wf-bic | 6 busnum=$(($1 - 1)) 8 # We found one corner case is that if the rescan-wf-bic script checks a WF 12 # MCTP response timeout for EID e.g. 72 (WF-7) occurred and it caused mctpd 15 # To avoid this issue, a 10-second delay is not enough when the BMC is busy 23 while [ $count -lt 12 ]; do 24 …busctl get-property au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$… 27 if [ $isMctpConnect -eq 0 ]; then 37 while [ $count -lt 3 ]; do 39 output=$(pldmtool raw -m "$sd_eid" -d 0x80 0x02 0x3A 0x4c 0xff) 42 if [ $status -ne 0 ]; then [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | pcie.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 3 * Copyright(c) 2015 - 2019 Intel Corporation. 27 struct pci_dev *pdev = dd->pcidev; in hfi1_pcie_init() 43 dd_dev_err(dd, "pci enable failed: error %d\n", -ret); in hfi1_pcie_init() 49 dd_dev_err(dd, "pci_request_regions fails: err %d\n", -ret); in hfi1_pcie_init() 53 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in hfi1_pcie_init() 60 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in hfi1_pcie_init() 90 * fields required to re-initialize after a chip reset, or for 111 return -EINVAL; in hfi1_pcie_ddinit() 114 dd->kregbase1 = ioremap(addr, RCV_ARRAY); in hfi1_pcie_ddinit() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A 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: 34 - const: ref [all …]
|