/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | match.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */ 15 ext->nfp_flow_key_layer = key_type; in nfp_flower_compile_meta() 16 ext->mask_id = ~0; in nfp_flower_compile_meta() 18 msk->nfp_flow_key_layer = key_type; in nfp_flower_compile_meta() 19 msk->mask_id = ~0; in nfp_flower_compile_meta() 30 struct flow_match_vlan match; in nfp_flower_compile_tci() local 32 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_tci() 36 match.key->vlan_priority) | in nfp_flower_compile_tci() 38 match.key->vlan_id); in nfp_flower_compile_tci() [all …]
|
/openbmc/linux/sound/soc/intel/common/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 2 snd-soc-sst-dsp-objs := sst-dsp.o 3 snd-soc-sst-ipc-objs := sst-ipc.o 4 snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-match.o \ 5 soc-acpi-intel-hsw-bdw-match.o \ 6 soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \ 7 soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \ 8 soc-acpi-intel-cnl-match.o soc-acpi-intel-cfl-match.o \ 9 soc-acpi-intel-cml-match.o soc-acpi-intel-icl-match.o \ 10 soc-acpi-intel-tgl-match.o soc-acpi-intel-ehl-match.o \ [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | fib_rule_tests.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # Kselftest framework requirement - SKIP code is 4. 12 IP="ip -netns testns" 13 IP_PEER="ip -netns peerns" 35 if [ ${rc} -eq ${expected} ]; then 37 printf "\n TEST: %-50s [ OK ]\n" "${msg}" 41 printf "\n TEST: %-50s [FAIL]\n" "${msg}" 75 if [ "${ret}" -eq 0 ]; then 78 echo "nettest not found (try 'make -C ${SELFTEST_PATH} nettest')" 86 set -e [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flower.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ 22 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in mlxsw_sp_policer_validate() 25 return -EOPNOTSUPP; in mlxsw_sp_policer_validate() 28 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in mlxsw_sp_policer_validate() 29 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in mlxsw_sp_policer_validate() 32 return -EOPNOTSUPP; in mlxsw_sp_policer_validate() 35 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in mlxsw_sp_policer_validate() 39 return -EOPNOTSUPP; in mlxsw_sp_policer_validate() 42 if (act->police.peakrate_bytes_ps || in mlxsw_sp_policer_validate() [all …]
|
H A D | spectrum_dpipe.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ 102 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_matches_dump() local 104 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_erif_matches_dump() 105 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_matches_dump() 106 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_erif_matches_dump() 108 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_erif_matches_dump() 112 mlxsw_sp_erif_match_action_prepare(struct devlink_dpipe_match *match, in mlxsw_sp_erif_match_action_prepare() argument 115 action->type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_erif_match_action_prepare() 116 action->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_erif_match_action_prepare() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flower.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 19 prestera_acl_ruleset_put(template->ruleset); in prestera_flower_template_free() 20 list_del(&template->list); in prestera_flower_template_free() 29 list_for_each_entry_safe(template, tmp, &block->template_list, list) in prestera_flower_template_cleanup() 41 if (act->chain_index <= chain_index) in prestera_flower_parse_goto_action() 43 return -EINVAL; in prestera_flower_parse_goto_action() 45 if (rule->re_arg.jump.valid) in prestera_flower_parse_goto_action() 46 return -EEXIST; in prestera_flower_parse_goto_action() 48 ruleset = prestera_acl_ruleset_get(block->sw->acl, block, in prestera_flower_parse_goto_action() 49 act->chain_index); in prestera_flower_parse_goto_action() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | component.c | 1 // SPDX-License-Identifier: GPL-2.0 16 * The component helper allows drivers to collect a pile of sub-devices, 20 * subsystem-specific way to find a device is not available: The component 33 * Aggregate drivers first assemble a component match list of what they need 62 struct component_match *match; member 85 struct aggregate_device *m = s->private; in component_devices_show() 86 struct component_match *match = m->match; in component_devices_show() local 90 seq_printf(s, "%-40s %20s\n", "aggregate_device name", "status"); in component_devices_show() 91 seq_puts(s, "-------------------------------------------------------------\n"); in component_devices_show() 92 seq_printf(s, "%-40s %20s\n\n", in component_devices_show() [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | matches.hpp | 13 namespace match namespace 17 using namespace sdbusplus::bus::match; 20 * @brief A match function that constructs a PropertiesChanged match string 21 * @details Constructs a PropertiesChanged match string with a given object 24 * @param[in] obj - Object's path name 25 * @param[in] iface - Interface name 27 * @return - A PropertiesChanged match string 35 * @brief A match function that constructs an InterfacesAdded match string 36 * @details Constructs an InterfacesAdded match string with a given object 39 * @param[in] obj - Object's path name [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 71 and is also scheduled to replace the old syslog-based ipt_LOG 94 filtering (see `Connection state match support' below). 107 If both are enabled the backend to use can be configured at run-time 108 by means of per-address-family sysctl tunables. 119 `CONNMARK' target and `connmark' match. Similar to the mark value 182 This allows you to store the flow start-time and to obtain 183 the flow-stop time (once it has been destroyed) via Connection 191 This option enables support for assigning user-defined flag bits 193 match and the nftables ct expression. [all …]
|
/openbmc/linux/net/sched/ |
H A D | em_ipt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 const struct xt_match *match; member 52 mtpar.hook_mask = 1 << im->hook; in check_match() 53 mtpar.family = im->match->family; in check_match() 54 mtpar.match = im->match; in check_match() 56 mtpar.matchinfo = (void *)im->match_data; in check_match() 63 pr_err("only policy match revision 0 supported"); in policy_validate_match_data() 64 return -EINVAL; in policy_validate_match_data() 69 return -EINVAL; in policy_validate_match_data() 78 pr_err("only addrtype match revision 1 supported"); in addrtype_validate_match_data() [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de> 22 #include <media/v4l2-async.h> 23 #include <media/v4l2-device.h> 24 #include <media/v4l2-fwnode.h> 25 #include <media/v4l2-subdev.h> 27 #include "v4l2-subdev-priv.h" 33 if (!n->ops || !n->ops->bound) in v4l2_async_nf_call_bound() 36 return n->ops->bound(n, subdev, asc); in v4l2_async_nf_call_bound() 43 if (!n->ops || !n->ops->unbind) in v4l2_async_nf_call_unbind() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/timer/ |
H A D | renesas,rz-mtu3.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/renesas,rz-mtu3.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas RZ/G2L Multi-Function Timer Pulse Unit 3 (MTU3a) 10 - Biju Das <biju.das.jz@bp.renesas.com> 13 This hardware block consists of eight 16-bit timer channels and one 14 32- bit timer channel. It supports the following specifications: 15 - Pulse input/output: 28 lines max. 16 - Pulse input 3 lines [all …]
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | kernel-arch.bbclass | 4 # SPDX-License-Identifier: MIT 9 # modules). return value must match one of the architecture directories 31 if re.match('(i.86|athlon|x86.64)$', a): return 'x86' 32 elif re.match('arceb$', a): return 'arc' 33 elif re.match('armeb$', a): return 'arm' 34 elif re.match('aarch64$', a): return 'arm64' 35 elif re.match('aarch64_be$', a): return 'arm64' 36 elif re.match('aarch64_ilp32$', a): return 'arm64' 37 elif re.match('aarch64_be_ilp32$', a): return 'arm64' 38 elif re.match('loongarch(32|64|)$', a): return 'loongarch' [all …]
|
/openbmc/linux/lib/xz/ |
H A D | xz_lzma2.h | 5 * Igor Pavlov <https://7-zip.org/> 34 * - Literal: One 8-bit byte 35 * - Match: Repeat a chunk of data at some distance 36 * - Long repeat: Multi-byte match at a recently seen distance 37 * - Short repeat: One-byte repeat at a recently seen distance 40 * either short or long repeated match, and NONLIT means any non-literal. 69 *state -= 3; in lzma_state_literal() 71 *state -= 6; in lzma_state_literal() 74 /* Indicate that the latest symbol was a match. */ 80 /* Indicate that the latest state was a long repeated match. */ [all …]
|
/openbmc/qemu/tests/tcg/plugins/ |
H A D | insn.c | 5 * See the COPYING file in the top-level directory. 15 #include <qemu-plugin.h> 35 } Match; typedef 40 Match *match; member 51 static Instruction * get_insn_record(const char *disas, uint64_t vaddr, Match *m) in get_insn_record() 68 record->disas = g_strdup(disas); in get_insn_record() 69 record->vaddr = vaddr; in get_insn_record() 70 record->match = m; in get_insn_record() 76 qemu_plugin_outs(ts->str); in get_insn_record() 93 for (int i = 0; i < reg_list->len; i++) { in vcpu_init() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_flower.sh | 2 # SPDX-License-Identifier: GPL-2.0 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 56 check_fail $? "Did not match on correct filter" 61 log_test "dst_mac match ($tcflags)" 75 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 76 -t ip -q 82 check_fail $? "Did not match on correct filter" 87 log_test "src_mac match ($tcflags)" 101 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-dbg-g-chip-info.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_DBG_G_CHIP_INFO - Identify the chips on a TV card 42 contact the linux-media mailing list 49 To query the driver applications must initialize the ``match.type`` and 50 ``match.addr`` or ``match.name`` fields of a struct 56 When ``match.type`` is ``V4L2_CHIP_MATCH_BRIDGE``, ``match.addr`` 58 chips by starting at zero and incrementing ``match.addr`` by one until 61 the PCI or USB bus. Non-zero numbers identify specific parts of the 64 When ``match.type`` is ``V4L2_CHIP_MATCH_SUBDEV``, ``match.addr`` 65 selects the nth sub-device. This allows you to enumerate over all [all …]
|
H A D | vidioc-dbg-g-register.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_DBG_G_REGISTER - VIDIOC_DBG_S_REGISTER - Read or write hardware registers 55 ``match.type`` and ``match.addr`` or ``match.name`` fields select a chip 59 To read a register applications must initialize the ``match.type``, 60 ``match.addr`` or ``match.name`` and ``reg`` fields, and call 65 When ``match.type`` is ``V4L2_CHIP_MATCH_BRIDGE``, ``match.addr`` 66 selects the nth non-sub-device chip on the TV card. The number zero 71 When ``match.type`` is ``V4L2_CHIP_MATCH_SUBDEV``, ``match.addr`` 72 selects the nth sub-device. 83 We recommended the v4l2-dbg utility over calling these ioctls directly. [all …]
|
/openbmc/linux/net/openvswitch/ |
H A D | flow_netlink.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2007-2017 Nicira, Inc. 49 #define OVS_ATTR_NESTED -1 50 #define OVS_ATTR_VARIABLE -2 94 static void update_range(struct sw_flow_match *match, in update_range() argument 102 range = &match->range; in update_range() 104 range = &match->mask->range; in update_range() 106 if (range->start == range->end) { in update_range() 107 range->start = start; in update_range() 108 range->end = end; in update_range() [all …]
|
/openbmc/u-boot/include/ |
H A D | slre.h | 2 * Copyright (c) 2004-2005 Sergey Lyubka <valenok@gmail.com> 5 * "THE BEER-WARE LICENSE" (Revision 42): 35 * ^ Match beginning of a buffer 36 * $ Match end of a buffer 38 * [...] Match any character from set 39 * [^...] Match any character but ones from set 40 * \s Match whitespace 41 * \S Match non-whitespace 42 * \d Match decimal digit 43 * \r Match carriage return [all …]
|
/openbmc/openbmc/poky/bitbake/contrib/vim/syntax/ |
H A D | bitbake.vim | 30 syn case match 33 syn match bbUnmatched "." 38 syn match bbComment "#.*$" contains=@bbCommentGroup 41 syn match bbQuote +['"]+ contained 42 syn match bbDelimiter "[(){}=]" contained 43 syn match bbArrayBrackets "[\[\]]" contained 46 syn match bbContinue "\\$" 51 syn match bbExport "^export" nextgroup=bbIdentifier skipwhite 53 syn match bbIdentifier "[a-zA-Z0-9\-_\.\/\+]\+" display contained 54 syn match bbVarDeref "${[a-zA-Z0-9\-_:\.\/\+]\+}" contained [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_flower.c | 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 133 /* Translate the enabled NAT 4-tuple fields to one of the in cxgb4_action_natmode_tweak() 140 fs->nat_mode = cxgb4_natmode_config_array[i].natmode; in cxgb4_action_natmode_tweak() 150 spin_lock_init(&new->lock); in allocate_flower_entry() 158 return rhashtable_lookup_fast(&adap->flower_tbl, &flower_cookie, in ch_flower_lookup() 159 adap->flower_ht_params); in ch_flower_lookup() 169 struct flow_match_control match; in cxgb4_process_flow_match() local 171 flow_rule_match_control(rule, &match); in cxgb4_process_flow_match() 172 addr_type = match.key->addr_type; in cxgb4_process_flow_match() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2020-2022 Xilinx Inc. 48 return ERR_PTR(-EOPNOTSUPP); in efx_tc_flower_lookup_efv() 50 if (dev == efx->net_dev) in efx_tc_flower_lookup_efv() 53 if (dev->netdev_ops != &efx_ef100_rep_netdev_ops) in efx_tc_flower_lookup_efv() 54 return ERR_PTR(-EOPNOTSUPP); in efx_tc_flower_lookup_efv() 59 if (efv->parent != efx) in efx_tc_flower_lookup_efv() 60 return ERR_PTR(-EOPNOTSUPP); in efx_tc_flower_lookup_efv() 64 /* Convert a driver-internal vport ID into an internal device (PF or VF) */ 74 efx_mae_mport_mport(efx, efv->mport, &mport); in efx_tc_flower_internal_mport() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2019-2021, Intel Corporation. */ 13 * ice_tc_count_lkups - determine lookup count for switch filter 14 * @flags: TC-flower flags 27 * - Direction flag (always present) in ice_tc_count_lkups() 28 * - ICE_TC_FLWR_FIELD_VLAN_TPID (present if specified) in ice_tc_count_lkups() 29 * - Tunnel flag (present if tunnel) in ice_tc_count_lkups() 31 if (fltr->direction == ICE_ESWITCH_FLTR_EGRESS) in ice_tc_count_lkups() 139 /* NO_PAY profiles will not work with GTP-U */ in ice_proto_type_from_tunnel() 183 struct ice_tc_flower_lyr_2_4_hdrs *hdr = &fltr->outer_headers; in ice_tc_fill_tunnel_outer() [all …]
|
/openbmc/sdbusplus/include/sdbusplus/async/ |
H A D | match.hpp | 4 #include <sdbusplus/bus/match.hpp> 20 /** Generator of dbus match Senders. 22 * This class registers a signal match pattern with the dbus and generates 25 class match : private bus::details::bus_friend class 28 match() = delete; 29 match(const match&) = delete; 30 match& operator=(const match&) = delete; 31 match(match&&) = delete; 32 match& operator=(match&&) = delete; 33 ~match(); [all …]
|