/openbmc/linux/include/uapi/linux/ |
H A D | ethtool_netlink.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 3 * include/uapi/linux/ethtool_netlink.h - netlink interface for ethtool 5 * See Documentation/networking/ethtool-netlink.rst in kernel source tree for 14 /* message types - userspace to kernel */ 63 ETHTOOL_MSG_USER_MAX = __ETHTOOL_MSG_USER_CNT - 1 66 /* message types - kernel to userspace */ 115 ETHTOOL_MSG_KERNEL_MAX = __ETHTOOL_MSG_KERNEL_CNT - 1 135 ETHTOOL_A_HEADER_FLAGS, /* u32 - ETHTOOL_FLAG_* */ 139 ETHTOOL_A_HEADER_MAX = __ETHTOOL_A_HEADER_CNT - 1 152 ETHTOOL_A_BITSET_BIT_MAX = __ETHTOOL_A_BITSET_BIT_CNT - 1 [all …]
|
H A D | if_team.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 3 * include/linux/if_team.h - Network team device driver header 29 TEAM_CMD_MAX = (__TEAM_CMD_MAX - 1), 35 TEAM_ATTR_LIST_OPTION, /* nest */ 36 TEAM_ATTR_LIST_PORT, /* nest */ 39 TEAM_ATTR_MAX = __TEAM_ATTR_MAX - 1, 60 TEAM_ATTR_ITEM_OPTION, /* nest */ 63 TEAM_ATTR_ITEM_OPTION_MAX = __TEAM_ATTR_ITEM_OPTION_MAX - 1, 73 TEAM_ATTR_OPTION_PORT_IFINDEX, /* u32 */ /* for per-port options */ 74 TEAM_ATTR_OPTION_ARRAY_INDEX, /* u32 */ /* for array options */ [all …]
|
/openbmc/linux/Documentation/userspace-api/netlink/ |
H A D | genetlink-legacy.rst | 1 .. SPDX-License-Identifier: BSD-3-Clause 9 the ``genetlink-legacy`` protocol level. 15 -------------------- 17 New Netlink families should use ``multi-attr`` to define arrays. 19 define array types reusing attribute type to carry information. 21 For reference the ``multi-attr`` array may look like this:: 23 [ARRAY-ATTR] 27 [SOME-OTHER-ATTR] 28 [ARRAY-ATTR] 33 where ``ARRAY-ATTR`` is the array entry type. [all …]
|
H A D | specs.rst | 1 .. SPDX-License-Identifier: BSD-3-Clause 17 - the C uAPI header 18 - documentation of the protocol as a ReST file 19 - policy tables for input attribute validation 20 - operation tables 25 See :doc:`intro-specs` for a practical starting guide. 28 ``((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)`` 40 - ``genetlink`` - most streamlined, should be used by all new families 41 - ``genetlink-c`` - superset of ``genetlink`` with extra attributes allowing 45 - ``genetlink-legacy`` - Generic Netlink catch all schema supporting quirks of [all …]
|
/openbmc/linux/Documentation/netlink/ |
H A D | genetlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 36 uapi-header: 37 description: Path to the uAPI header, default is linux/${family-name}.h 42 type: array [all …]
|
H A D | genetlink-c.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 35 enum: [ genetlink, genetlink-c ] 36 uapi-header: 37 description: Path to the uAPI header, default is linux/${family-name}.h [all …]
|
H A D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 35 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim 36 uapi-header: 37 description: Path to the uAPI header, default is linux/${family-name}.h [all …]
|
H A D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 31 enum: [ netlink-raw ] # Trim 32 # Start netlink-raw 34 description: Protocol number to use for netlink-raw [all …]
|
/openbmc/linux/net/ethtool/ |
H A D | bitset.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 /* Some bitmaps are internally represented as an array of unsigned long, some 9 * as an array of u32 (some even as single u32 for now). To avoid the need of 17 return ~(u32)0 >> (32 - n % 32); in ethnl_lower_bits() 26 * ethnl_bitmap32_clear() - Clear u32 based bitmap 78 * ethnl_bitmap32_not_zero() - Check if any bit is set in an interval 83 * Return: true if there is non-zero bit with index @start <= i < @end, 108 (end_word - start_word) * sizeof(u32))) in ethnl_bitmap32_not_zero() 116 * ethnl_bitmap32_update() - Modify u32 based bitmap according to value/mask 146 nbits -= 32; in ethnl_bitmap32_update() [all …]
|
H A D | stats.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 [ETHTOOL_STATS_ETH_PHY] = "eth-phy", 32 [ETHTOOL_STATS_ETH_MAC] = "eth-mac", 33 [ETHTOOL_STATS_ETH_CTRL] = "eth-ctrl", 96 err = ethnl_update_bitset(req_info->stat_mask, __ETHTOOL_STATS_CNT, in stats_parse_request() 104 return -EINVAL; in stats_parse_request() 110 req_info->src = src; in stats_parse_request() 121 enum ethtool_mac_stats_src src = req_info->src; in stats_prepare_data() 122 struct net_device *dev = reply_base->dev; in stats_prepare_data() 132 NL_SET_ERR_MSG_MOD(info->extack, in stats_prepare_data() [all …]
|
/openbmc/qemu/tests/qapi-schema/ |
H A D | event-nest-struct.err | 1 event-nest-struct.json: In event 'EVENT_A': 2 event-nest-struct.json:1: 'data' member 'a' should be a type name or array
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_tlv.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 7 * fm10k_tlv_msg_init - Initialize message block for TLV data storage 25 * fm10k_tlv_attr_put_null_string - Place null terminated string on message 76 * fm10k_tlv_attr_get_null_string - Get null terminated string from attribute 81 * it in the array pointed by string. It will return success if provided 95 while (len--) in fm10k_tlv_attr_get_null_string() 102 * fm10k_tlv_attr_put_mac_vlan - Store MAC/VLAN attribute in message 140 * fm10k_tlv_attr_get_mac_vlan - Get MAC/VLAN stored in attribute 146 * place it in the array pointed by mac_addr. It will return success [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | imc-pmu.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * IMC Nest Performance Monitor counter support. 22 #define IMC_DTB_COMPAT "ibm,opal-in-memory-counters" 23 #define IMC_DTB_UNIT_COMPAT "ibm,imc-counters" 28 * perf/imc-pmu.c has the LDBAR layout information. 35 * For debugfs interface for imc-mode and imc-command 50 * Place holder for nest pmu events and values. 87 /* Event attribute array index */ 146 * In-Memory Collection Counters type. 164 /* For trace-imc the domain is still thread but it operates in trace-mode */
|
/openbmc/linux/drivers/net/ethernet/rocker/ |
H A D | rocker_hw.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * drivers/net/ethernet/rocker/rocker_hw.h - Rocker switch device driver 4 * Copyright (c) 2014-2016 Jiri Pirko <jiri@mellanox.com> 32 /* MSI-X vectors */ 45 (ROCKER_MSIX_VEC_RX((portcnt - 1)) + 1) 56 #define ROCKER_TEST_REG64 0x0018 /* 8-byte */ 58 #define ROCKER_TEST_DMA_ADDR 0x0028 /* 8-byte */ 68 #define ROCKER_DMA_DESC_ADDR(x) (0x1000 + (x) * 32) /* 8-byte */ 121 ROCKER_TLV_CMD_INFO, /* nest */ 124 ROCKER_TLV_CMD_MAX = __ROCKER_TLV_CMD_MAX - 1, [all …]
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_hw.h | 45 * MSI-X vectors 60 (ROCKER_MSIX_VEC_RX((portcnt) - 1) + 1) 75 #define ROCKER_TEST_REG64 0x0018 /* 8-byte */ 77 #define ROCKER_TEST_DMA_ADDR 0x0028 /* 8-byte */ 96 #define ROCKER_DMA_DESC_ADDR_OFFSET 0x00 /* 8-byte */ 149 ROCKER_TLV_CMD_INFO, /* nest */ 152 ROCKER_TLV_CMD_MAX = __ROCKER_TLV_CMD_MAX - 1, 169 ROCKER_TLV_CMD_TYPE_MAX = __ROCKER_TLV_CMD_TYPE_MAX - 1, 185 ROCKER_TLV_CMD_PORT_SETTINGS_MAX = __ROCKER_TLV_CMD_PORT_SETTINGS_MAX - 1, 196 ROCKER_TLV_EVENT_INFO, /* nest */ [all …]
|
/openbmc/linux/include/linux/ |
H A D | ptr_ring.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 * This is a limited-size FIFO maintaining pointers in FIFO order, with 13 * This implementation tries to minimize cache-contention when there is a 37 /* Read-only by both the producer and the consumer */ 51 return r->queue[r->producer]; in __ptr_ring_full() 58 spin_lock(&r->producer_lock); in ptr_ring_full() 60 spin_unlock(&r->producer_lock); in ptr_ring_full() 69 spin_lock_irq(&r->producer_lock); in ptr_ring_full_irq() 71 spin_unlock_irq(&r->producer_lock); in ptr_ring_full_irq() 81 spin_lock_irqsave(&r->producer_lock, flags); in ptr_ring_full_any() [all …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | rt_link.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: rt-link 4 protocol: netlink-raw 11 - 12 name: ifinfo-flags 15 - 17 - 19 - 21 - 23 - [all …]
|
/openbmc/qemu/include/hw/pci-host/ |
H A D | pnv_phb4.h | 4 * Copyright (c) 2018-2020, IBM Corporation. 7 * COPYING file in the top-level directory. 13 #include "hw/pci-host/pnv_phb.h" 37 #define PHB_INVALID_PE (-1) 49 #define TYPE_PNV_PHB4_ROOT_BUS "pnv-phb4-root" 61 #define TYPE_PNV_PHB4 "pnv-phb4" 97 /* Extra SCOM-only register */ 114 /* PCI registers (excluding pass-through) */ 119 /* Nest registers */ 124 /* PHB pass-through XSCOM */ [all …]
|
/openbmc/linux/Documentation/arch/x86/ |
H A D | entry_64.rst | 1 .. SPDX-License-Identifier: GPL-2.0 16 for 64-bit, arch/x86/entry/entry_32.S for 32-bit and finally 17 arch/x86/entry/entry_64_compat.S which implements the 32-bit compatibility 18 syscall entry points and thus provides for 32-bit processes the 19 ability to execute syscalls when running on 64-bit kernels. 25 - system_call: syscall instruction from 64-bit code. 27 - entry_INT80_compat: int 0x80 from 32-bit or 64-bit code; compat syscall 30 - entry_INT80_compat, ia32_sysenter: syscall and sysenter from 32-bit 33 - interrupt: An array of entries. Every IDT vector that doesn't 35 value in interrupts. These point to a whole array of [all …]
|
/openbmc/linux/net/sched/ |
H A D | act_api.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 47 const struct tcf_chain *chain = rcu_dereference_bh(a->goto_chain); in tcf_action_goto_chain_exec() 49 res->goto_tp = rcu_dereference_bh(chain->filter_chain); in tcf_action_goto_chain_exec() 56 kfree(cookie->data); in tcf_free_cookie_rcu() 67 call_rcu(&old->rcu, tcf_free_cookie_rcu); in tcf_set_action_cookie() 74 int opcode = TC_ACT_EXT_OPCODE(action), ret = -EINVAL; in tcf_action_check_ctrlact() 78 ret = action > TC_ACT_VALUE_MAX ? -EINVAL : 0; in tcf_action_check_ctrlact() 89 ret = -EINVAL; in tcf_action_check_ctrlact() 94 *newchain = tcf_chain_get_by_act(tp->chain->block, chain_index); in tcf_action_check_ctrlact() 96 ret = -ENOMEM; in tcf_action_check_ctrlact() [all …]
|
/openbmc/linux/lib/ |
H A D | rhashtable.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2014-2015 Thomas Graf <tgraf@suug.ch> 7 * Copyright (c) 2008-2014 Patrick McHardy <kaber@trash.net> 41 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 49 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 57 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held() 59 return bit_spin_is_locked(0, (unsigned long *)&tbl->buckets[hash]); in lockdep_rht_bucket_is_held() 69 /* The top-level bucket entry does not need RCU protection in nested_table_top() 70 * because it's set at the same time as tbl->nest. in nested_table_top() 72 return (void *)rcu_dereference_protected(tbl->buckets[0], 1); in nested_table_top() [all …]
|
/openbmc/linux/arch/powerpc/perf/ |
H A D | imc-pmu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * In-Memory Collection (IMC) Performance Monitor counter support. 13 #include <asm/imc-pmu.h> 19 /* Nest IMC data structures and variables */ 22 * Used to avoid races in counting the nest-pmu units during hotplug 51 * core and trace-imc 61 return container_of(event->pmu, struct imc_pmu, pmu); in imc_event_to_pmu() 64 PMU_FORMAT_ATTR(event, "config:0-61"); 65 PMU_FORMAT_ATTR(offset, "config:0-31"); 67 PMU_FORMAT_ATTR(mode, "config:33-40"); [all …]
|
/openbmc/linux/net/netlink/ |
H A D | genetlink.c | 1 // SPDX-License-Identifier: GPL-2.0 57 if (!family->parallel_ops) in genl_op_lock() 63 if (!family->parallel_ops) in genl_op_unlock() 75 * Bit 1 is marked as already used since the drop-monitor code 80 * and the code no longer marks pre-reserved IDs as used. 93 /* We need the last attribute with non-zero ID therefore a 2-entry array */ 107 BUILD_BUG_ON(ARRAY_SIZE(genl_policy_reject_all) - 1 != 1); in genl_op_fill_in_reject_policy() 109 if (op->policy || op->cmd < family->resv_start_op) in genl_op_fill_in_reject_policy() 112 op->policy = genl_policy_reject_all; in genl_op_fill_in_reject_policy() 113 op->maxattr = 1; in genl_op_fill_in_reject_policy() [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx_csbcpb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 104 #define NX_CPB_FDM(c) ((c)->cpb.hdr.fdm) 105 #define NX_CPB_KS_DS(c) ((c)->cpb.hdr.ks_ds) 137 /* co-processor status block */ 147 /* Nest accelerator workbook section 4.4 */ 199 /* indices into the array of algorithm properties */
|
/openbmc/linux/tools/net/ynl/lib/ |
H A D | ynl.py | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 84 return f"Netlink error: {os.strerror(-self.nl_msg.error)}\n{self.nl_msg}" 111 return format.big if byte_order == "big-endian" \ 134 return self.raw.decode('ascii')[:-1] 147 # TODO: handle non-scalar members 216 self.extack['miss-type'] = extack.as_scalar('u32') 218 self.extack['miss-nest'] = extack.as_scalar('u32') 220 self.extack['bad-attr-offs'] = extack.as_scalar('u32') 228 if 'miss-type' in self.extack and 'miss-nest' not in self.extack: 229 miss_type = self.extack['miss-type'] [all …]
|