| /external/rootdev/ |
| D | rootdev_test.sh | 3 # Use of this source code is governed by a BSD-style license that can be 9 set -u 20 PASS_COUNT=0 24 return 0 27 FAIL_COUNT=0 31 return 0 36 if [ -n "$WORKDIR" ]; then 37 rm -rf "$WORKDIR" 39 trap - EXIT 43 WORKDIR=$(mktemp -d rootdev_test.XXXXXXX) [all …]
|
| /external/coreboot/src/mainboard/kontron/986lcd-m/ |
| D | early_init.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 int lpt_en = 0; in mainboard_lpc_decode() 18 if (get_uint_option("lpt", 0)) in mainboard_lpc_decode() 21 pci_update_config16(PCI_DEV(0, 0x1f, 0), LPC_EN, ~LPT_LPC_EN, lpt_en); in mainboard_lpc_decode() 31 pnp_devfn_t dev; in bootblock_mainboard_early_init() local 33 dev = PNP_DEV(0x2e, W83627THG_SP1); in bootblock_mainboard_early_init() 34 pnp_enter_conf_state(dev); in bootblock_mainboard_early_init() 36 pnp_write_config(dev, 0x24, 0xc6); /* PNPCSV */ in bootblock_mainboard_early_init() 38 pnp_write_config(dev, 0x29, 0x43); /* GPIO settings */ in bootblock_mainboard_early_init() 39 pnp_write_config(dev, 0x2a, 0x40); /* GPIO settings */ in bootblock_mainboard_early_init() [all …]
|
| /external/linux-kselftest/tools/testing/selftests/drivers/net/mlxsw/ |
| D | vxlan.sh | 2 # SPDX-License-Identifier: GPL-2.0 35 lib_dir=$(dirname $0)/../../../net/forwarding 45 ip link set dev $swp1 up 46 ip link set dev $swp2 up 53 ip link set dev $swp2 down 54 ip link set dev $swp1 down 59 ip link set dev $swp1 master br0 61 ip link set dev vxlan0 master br0 64 ip link set dev $swp1 nomaster 66 ip link set dev $swp1 master br0 [all …]
|
| D | q_in_q_veto.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 lib_dir=$(dirname $0)/../../../net/forwarding 28 ip link set dev $swp1 up 29 ip link set dev $swp2 up 38 ip link set dev $swp2 down 39 ip link set dev $swp1 down 44 RET=0 49 ip link add dev br0 type bridge vlan_filtering 1 \ 50 vlan_protocol $bridge_proto vlan_default_pvid 0 mcast_snooping 0 52 ip link set dev br0 up [all …]
|
| /external/wpa_supplicant_8/src/wps/ |
| D | wps_dev_attr.c | 2 * Wi-Fi Protected Setup - device attributes 16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument 21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer() 23 if (len == 0) { in wps_build_manufacturer() 25 * Some deployed WPS implementations fail to parse zero-length in wps_build_manufacturer() 31 return 0; in wps_build_manufacturer() 35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer() 36 return 0; in wps_build_manufacturer() 40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument 45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name() [all …]
|
| /external/linux-kselftest/tools/testing/selftests/net/ |
| 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 38 ip link del dev "$devdummy" 44 dev="$1" 47 ip netconf show dev "$dev" > /dev/null 51 ip -$f netconf show dev "$dev" > /dev/null [all …]
|
| /external/libdrm/amdgpu/ |
| D | amdgpu_gpu_info.c | 33 drm_public int amdgpu_query_info(amdgpu_device_handle dev, unsigned info_id, in amdgpu_query_info() argument 38 memset(&request, 0, sizeof(request)); in amdgpu_query_info() 43 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_info() 47 drm_public int amdgpu_query_crtc_from_id(amdgpu_device_handle dev, unsigned id, in amdgpu_query_crtc_from_id() argument 52 memset(&request, 0, sizeof(request)); in amdgpu_query_crtc_from_id() 58 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_crtc_from_id() 62 drm_public int amdgpu_read_mm_registers(amdgpu_device_handle dev, in amdgpu_read_mm_registers() argument 68 memset(&request, 0, sizeof(request)); in amdgpu_read_mm_registers() 77 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_read_mm_registers() 81 drm_public int amdgpu_query_hw_ip_count(amdgpu_device_handle dev, in amdgpu_query_hw_ip_count() argument [all …]
|
| /external/vboot_reference/tests/ |
| D | run_cgpt_tests.sh | 1 #!/bin/bash -eu 4 # Use of this source code is governed by a BSD-style license that can be 10 . "$(dirname "$0")/common.sh" 12 CGPT=$(readlink -f "$1") 13 [ -x ""${CGPT}"" ] || error "Can't execute $CGPT" 19 [ -d "$DIR" ] || mkdir -p "$DIR" 25 if "$@" 2>/dev/null; then 28 set -e 36 DEV=fake_dev.bin 37 rm -f ${DEV} [all …]
|
| /external/linux-kselftest/tools/testing/selftests/net/forwarding/ |
| D | tc_flower.sh | 2 # SPDX-License-Identifier: GPL-2.0 29 tc qdisc add dev $h2 clsact 34 tc qdisc del dev $h2 clsact 42 RET=0 44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 49 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 50 -t ip -q 52 tc_check_packets "dev $h2 ingress" 101 1 55 tc_check_packets "dev $h2 ingress" 102 1 [all …]
|
| D | bridge_vlan_mcast.sh | 2 # SPDX-License-Identifier: GPL-2.0 40 ip link add dev br0 type bridge mcast_snooping 1 mcast_querier 1 vlan_filtering 1 42 ip link set dev $swp1 master br0 43 ip link set dev $swp2 master br0 45 ip link set dev br0 up 46 ip link set dev $swp1 up 47 ip link set dev $swp2 up 49 tc qdisc add dev $swp1 clsact 50 tc qdisc add dev $swp2 clsact 52 bridge vlan add vid 10-11 dev $swp1 master [all …]
|
| /external/coreboot/payloads/libpayload/drivers/usb/ |
| D | usbmsc.c | 36 msc_subclass_rbc = 0x1, 37 msc_subclass_mmc2 = 0x2, 38 msc_subclass_qic157 = 0x3, 39 msc_subclass_ufi = 0x4, 40 msc_subclass_sff8070i = 0x5, 41 msc_subclass_scsitrans = 0x6 47 "MMC-2", 48 "QIC-157", 50 "SFF-8070i", 54 msc_proto_cbi_wcomp = 0x0, [all …]
|
| /external/linux-kselftest/tools/testing/selftests/bpf/ |
| D | test_tunnel.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # End-to-end eBPF tunnel test suite 8 # --------- 11 # ----------- | ----------- 12 # | tnl dev | | | tnl dev | (overlay network) 13 # ----------- | ----------- 14 # metadata-mode | native-mode 17 # ---------- | ---------- 18 # | veth1 | --------- | veth0 | (underlay network) 19 # ---------- peer ---------- [all …]
|
| /external/mesa3d/src/asahi/lib/ |
| D | agx_device.c | 5 * SPDX-License-Identifier: MIT 25 #include "drm-uapi/dma-buf.h" 28 #include "util/mesa-sha1.h" 40 asahi_simple_ioctl(struct agx_device *dev, unsigned cmd, void *req) in asahi_simple_ioctl() argument 42 if (dev->is_virtio) { in asahi_simple_ioctl() 43 return agx_virtio_simple_ioctl(dev, cmd, req); in asahi_simple_ioctl() 45 return drmIoctl(dev->fd, cmd, req); in asahi_simple_ioctl() 49 /* clang-format off */ 53 {"no16", AGX_DBG_NO16, "Disable 16-bit support"}, 58 {"precompile",AGX_DBG_PRECOMPILE,"Precompile shaders for shader-db"}, [all …]
|
| /external/trusty/lk/dev/virtio/ |
| D | virtio.c | 2 * Copyright (c) 2014-2015 Travis Geiselbrecht 23 #include <dev/virtio.h> 24 #include <dev/virtio/virtio_ring.h> 43 #include <dev/virtio/block.h> 46 #include <dev/virtio/net.h> 49 #include <dev/virtio/gpu.h> 52 #define LOCAL_TRACE 0 59 printf("\tmagic 0x%x\n", mmio->magic); in dump_mmio_config() 60 printf("\tversion 0x%x\n", mmio->version); in dump_mmio_config() 61 printf("\tdevice_id 0x%x\n", mmio->device_id); in dump_mmio_config() [all …]
|
| /external/mesa3d/src/freedreno/decode/ |
| D | replay.c | 3 * SPDX-License-Identifier: MIT 26 #include "drm-uapi/msm_drm.h" 29 #include "drm-uapi/d3dkmthk.h" 50 * - /sys/kernel/debug/dri/0/rd 51 * - /sys/kernel/debug/dri/0/hangrd 53 * - echo 1 > /sys/module/msm/parameters/rd_full 57 * pre-allocate a single buffer and hope it always allocated starting 63 * Code from Freedreno/Turnip is not re-used here since the relevant 67 * For how-to see freedreno.rst 81 /* clang-format off */ in print_usage() [all …]
|
| /external/coreboot/src/soc/intel/broadwell/pch/ |
| D | pcie.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 24 /* RPFN is a write-once register so keep a copy until it is written */ 42 static inline int root_port_is_first(struct device *dev) in root_port_is_first() argument 44 return PCI_FUNC(dev->path.pci.devfn) == 0; in root_port_is_first() 47 static inline int root_port_is_last(struct device *dev) in root_port_is_last() argument 49 return PCI_FUNC(dev->path.pci.devfn) == (rpc.num_ports - 1); in root_port_is_last() 53 static inline int root_port_number(struct device *dev) in root_port_number() argument 55 return PCI_FUNC(dev->path.pci.devfn) + 1; in root_port_number() 64 switch ((rpc.strpfusecfg1 >> 16) & 0x7) { in root_port_config_update_gbe_port() 65 case 0: in root_port_config_update_gbe_port() [all …]
|
| /external/coreboot/src/device/ |
| D | pci_device.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 30 u8 pci_moving_config8(struct device *dev, unsigned int reg) in pci_moving_config8() argument 34 value = pci_read_config8(dev, reg); in pci_moving_config8() 36 pci_write_config8(dev, reg, 0xff); in pci_moving_config8() 37 ones = pci_read_config8(dev, reg); in pci_moving_config8() 39 pci_write_config8(dev, reg, 0x00); in pci_moving_config8() 40 zeroes = pci_read_config8(dev, reg); in pci_moving_config8() 42 pci_write_config8(dev, reg, value); in pci_moving_config8() 47 u16 pci_moving_config16(struct device *dev, unsigned int reg) in pci_moving_config16() argument 51 value = pci_read_config16(dev, reg); in pci_moving_config16() [all …]
|
| /external/linux-kselftest/tools/testing/selftests/tc-testing/tc-tests/filters/ |
| D | flow.json | 13 "$TC qdisc add dev $DEV1 ingress" 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 16 "expExitCode": "0", 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 18 …tern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst and 0x000… 21 "$TC qdisc del dev $DEV1 ingress" 35 "$TC qdisc add dev $DEV1 ingress" 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 38 "expExitCode": "0", 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", [all …]
|
| /external/coreboot/src/mainboard/ibase/mb899/ |
| D | early_init.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #define SUPERIO_DEV PNP_DEV(0x4e, 0) 19 pnp_devfn_t dev; in bootblock_mainboard_early_init() local 21 dev = SUPERIO_DEV; in bootblock_mainboard_early_init() 22 pnp_enter_conf_state(dev); in bootblock_mainboard_early_init() 24 pnp_write_config(dev, 0x24, 0xc4); // PNPCVS in bootblock_mainboard_early_init() 26 pnp_write_config(dev, 0x29, 0x01); // GPIO settings in bootblock_mainboard_early_init() 27 pnp_write_config(dev, 0x2a, 0x40); // GPIO settings should be fc but gets set to 02 in bootblock_mainboard_early_init() 28 pnp_write_config(dev, 0x2b, 0xc0); // GPIO settings? in bootblock_mainboard_early_init() 29 pnp_write_config(dev, 0x2c, 0x03); // GPIO settings? in bootblock_mainboard_early_init() [all …]
|
| /external/wmediumd/wmediumd/lib/ |
| D | vhost.c | 2 * Copyright (C) 2019 - 2020 Intel Corporation 4 * SPDX-License-Identifier: BSD-3-Clause 53 cpu_to_virtio##bits(struct usfstl_vhost_user_dev_int *dev, \ 56 if (dev->ext.features & (1ULL << VIRTIO_F_VERSION_1)) \ 61 virtio_to_cpu##bits(struct usfstl_vhost_user_dev_int *dev, \ 64 if (dev->ext.features & (1ULL << VIRTIO_F_VERSION_1)) \ 74 usfstl_vhost_user_get_virtq_buf(struct usfstl_vhost_user_dev_int *dev, in usfstl_vhost_user_get_virtq_buf() argument 79 struct vring *virtq = &dev->virtqs[virtq_idx].virtq; in usfstl_vhost_user_get_virtq_buf() 80 uint16_t avail_idx = virtio_to_cpu16(dev, virtq->avail->idx); in usfstl_vhost_user_get_virtq_buf() 83 unsigned int n_in = 0, n_out = 0; in usfstl_vhost_user_get_virtq_buf() [all …]
|
| /external/coreboot/src/superio/smsc/lpc47n217/ |
| D | superio.c | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 /* RAM-based driver for SMSC LPC47N217 Super I/O chip. */ 14 static void enable_dev(struct device *dev); 15 static void lpc47n217_pnp_set_resources(struct device *dev); 16 static void lpc47n217_pnp_enable_resources(struct device *dev); 17 static void lpc47n217_pnp_enable(struct device *dev); 18 static void lpc47n217_init(struct device *dev); 19 static void lpc47n217_pnp_set_resource(struct device *dev, struct resource *resource); 20 static void lpc47n217_pnp_set_iobase(struct device *dev, u16 iobase); 21 static void lpc47n217_pnp_set_drq(struct device *dev, u8 drq); [all …]
|
| /external/trusty/bootloader/ql-tipc/ |
| D | trusty_dev_common.c | 35 #define LOCAL_LOG 0 40 * Select RXTX map smc variant based on register size. Note that the FF-A spec 54 static int trusty_ffa_send_direct_msg(struct trusty_dev* dev, in trusty_ffa_send_direct_msg() argument 63 src_dst = FFA_PACK_SRC_DST(dev->ffa_local_id, dev->ffa_remote_id); in trusty_ffa_send_direct_msg() 66 smc_ret = smc8(SMC_FC_FFA_MSG_SEND_DIRECT_REQ, src_dst, 0, msg, a0, a1, a2, in trusty_ffa_send_direct_msg() 75 trusty_error("unexpected FFA_INTERRUPT(0x%x, 0x%x)\n", in trusty_ffa_send_direct_msg() 80 trusty_error("unexpected FFA_ERROR(0x%x, 0x%x)\n", (uint32_t)smc_ret.r1, in trusty_ffa_send_direct_msg() 88 trusty_error("unknown FF-A result: 0x%x\n", (uint32_t)smc_ret.r0); in trusty_ffa_send_direct_msg() 93 static int trusty_ffa_run(struct trusty_dev* dev) { in trusty_ffa_run() argument 97 dst_cpu = FFA_PACK_DST_CPU(dev->ffa_remote_id, in trusty_ffa_run() [all …]
|
| /external/linux-kselftest/tools/testing/selftests/drivers/net/dsa/ |
| D | bridge_vlan_mcast.sh | 2 # SPDX-License-Identifier: GPL-2.0 40 ip link add dev br0 type bridge mcast_snooping 1 mcast_querier 1 vlan_filtering 1 42 ip link set dev $swp1 master br0 43 ip link set dev $swp2 master br0 45 ip link set dev br0 up 46 ip link set dev $swp1 up 47 ip link set dev $swp2 up 49 tc qdisc add dev $swp1 clsact 50 tc qdisc add dev $swp2 clsact 52 bridge vlan add vid 10-11 dev $swp1 master [all …]
|
| /external/linux-kselftest/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ |
| D | cake.json | 13 "$IP link add dev $DUMMY type dummy || /bin/true" 15 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake", 16 "expExitCode": "0", 17 "verifyCmd": "$TC qdisc show dev $DUMMY", 18 …ern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash … 21 "$TC qdisc del dev $DUMMY handle 1: root", 22 "$IP link del dev $DUMMY type dummy" 36 "$IP link add dev $DUMMY type dummy || /bin/true" 38 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake bandwidth 1000", 39 "expExitCode": "0", [all …]
|
| D | fq.json | 13 "$IP link add dev $DUMMY type dummy || /bin/true" 15 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq", 16 "expExitCode": "0", 17 "verifyCmd": "$TC qdisc show dev $DUMMY", 18 "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit", 21 "$TC qdisc del dev $DUMMY handle 1: root", 22 "$IP link del dev $DUMMY type dummy" 36 "$IP link add dev $DUMMY type dummy || /bin/true" 38 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq limit 3000", 39 "expExitCode": "0", [all …]
|