Home
last modified time | relevance | path

Searched +full:array +full:- +full:nest (Results 1 – 25 of 63) sorted by relevance

123

/linux-6.8/include/uapi/linux/
Dethtool_netlink.h1 /* 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 …]
Dif_team.h1 /* 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 …]
/linux-6.8/net/ethtool/
Dbitset.c1 // 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 …]
Dstats.c1 // 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 …]
/linux-6.8/Documentation/userspace-api/netlink/
Dgenetlink-legacy.rst1 .. SPDX-License-Identifier: BSD-3-Clause
9 the ``genetlink-legacy`` protocol level.
15 -------
29 --------------------
31 New Netlink families should use ``multi-attr`` to define arrays.
33 define array types reusing attribute type to carry information.
35 For reference the ``multi-attr`` array may look like this::
37 [ARRAY-ATTR]
41 [SOME-OTHER-ATTR]
42 [ARRAY-ATTR]
[all …]
Dspecs.rst1 .. SPDX-License-Identifier: BSD-3-Clause
17 - the C uAPI header
18- documentation of the protocol as a ReST file - see :ref:`Documentation/networking/netlink_spec/i…
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 …]
/linux-6.8/Documentation/netlink/
Dgenetlink.yaml1 # 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)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dgenetlink-c.yaml1 # 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)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dgenetlink-legacy.yaml1 # 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)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dnetlink-raw.yaml1 # 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 …]
/linux-6.8/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.c1 // 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 …]
/linux-6.8/arch/powerpc/include/asm/
Dimc-pmu.h1 /* 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 */
/linux-6.8/drivers/net/ethernet/rocker/
Drocker_hw.h1 /* 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 …]
/linux-6.8/include/linux/
Dptr_ring.h1 /* 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 …]
/linux-6.8/Documentation/netlink/specs/
Dtc.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
4 protocol: netlink-raw
12 -
16 -
19 -
23 -
26 -
29 -
32 -
35 -
[all …]
Drt_link.yaml1 # 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 …]
/linux-6.8/Documentation/arch/x86/
Dentry_64.rst1 .. 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 …]
/linux-6.8/arch/powerpc/perf/
Dimc-pmu.c1 // 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 …]
/linux-6.8/lib/
Drhashtable.c1 // 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 …]
/linux-6.8/arch/arm64/include/asm/stacktrace/
Dcommon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
20 * struct unwind_state - state used for robust unwinding.
26 * @stacks: An array of stacks which can be unwound.
49 if (!info->low) in stackinfo_on_stack()
52 if (sp < info->low || sp + size < sp || sp + size > info->high) in stackinfo_on_stack()
60 state->stack = stackinfo_get_unknown(); in unwind_init_common()
67 for (int i = 0; i < state->nr_stacks; i++) { in unwind_find_next_stack()
68 struct stack_info *info = &state->stacks[i]; in unwind_find_next_stack()
78 * unwind_consume_stack() - Check if an object is on an accessible stack,
94 if (stackinfo_on_stack(&state->stack, sp, size)) in unwind_consume_stack()
[all …]
/linux-6.8/drivers/crypto/nx/
Dnx_csbcpb.h1 /* 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 */
/linux-6.8/net/netlink/
Dgenetlink.c1 // 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 …]
/linux-6.8/tools/net/ynl/lib/
Dynl.py1 # 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}"
112 return format.big if byte_order == "big-endian" \
136 raise Exception(f"Auto-scalar len payload be 4 or 8 bytes, got {len(self.raw)}")
142 return self.raw.decode('ascii')[:-1]
155 # TODO: handle non-scalar members
222 self.extack['miss-type'] = extack.as_scalar('u32')
224 self.extack['miss-nest'] = extack.as_scalar('u32')
226 self.extack['bad-attr-offs'] = extack.as_scalar('u32')
234 if 'miss-type' in self.extack and 'miss-nest' not in self.extack:
[all …]
/linux-6.8/fs/btrfs/
Dctree.h1 /* SPDX-License-Identifier: GPL-2.0 */
56 * The slots array records the index of the item or block pointer
93 * btrfs_record_root_in_trans is a multi-step process, and it can race
107 * - How balance works
112 * While for non-shareable trees, we just simply do a tree search
115 * - How dirty roots are tracked
117 * track them, while non-subvolume roots have TRACK_DIRTY bit, they
220 /* The dirty list is only used by non-shareable roots */
226 /* red-black tree that keeps track of in-memory inodes */
280 * manipulation with the read-only status via SUBVOL_SETFLAGS
[all …]
/linux-6.8/kernel/trace/
Dring_buffer.c1 // SPDX-License-Identifier: GPL-2.0
81 * +------+
84 * +------+ +---+ +---+ +---+
85 * | |-->| |-->| |
86 * +---+ +---+ +---+
89 * +---------------+
92 * +------+
94 * |page |------------------v
95 * +------+ +---+ +---+ +---+
96 * | |-->| |-->| |
[all …]

123