Home
last modified time | relevance | path

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

123

/linux/Documentation/netlink/specs/
H A Dnl80211.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
4 protocol: genetlink-legacy
6 doc: >-
10 -
14 - unspec
15 - get-wiphy
16 - set-wiphy
17 - new-wiphy
18 - del-wiphy
[all …]
H A Dnlctrl.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
4 protocol: genetlink-legacy
5 uapi-header: linux/genetlink.h
8 genetlink meta-family that exposes information about all genetlink
12 -
13 name: op-flags
15 enum-name:
17 - admin-perm
18 - cmd-cap-do
[all …]
H A Drt-link.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
[all...]
H A Ddevlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
5 protocol: genetlink-legacy
10 -
12 name: sb-pool-type
14 -
16 -
18 -
20 name: port-type
22 -
[all …]
H A Dnetdev.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
5 doc: >-
9 -
11 name: page-size
17 -
19 name: xdp-act
20 render-max: true
22 -
24 doc: >-
[all …]
/linux/Documentation/userspace-api/netlink/
H A 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 …]
/linux/net/ethtool/
H A Dbitset.c1 // SPDX-License-Identifier: GPL-2.0-only
9 /* Some bitmaps are internally represented as an array of unsigned long, some
10 * as an array of u32 (some even as single u32 for now). To avoid the need of
18 return ~(u32)0 >> (32 - n % 32); in ethnl_lower_bits()
27 * ethnl_bitmap32_clear() - Clear u32 based bitmap
79 * ethnl_bitmap32_not_zero() - Check if any bit is set in an interval
84 * Return: true if there is non-zero bit with index @start <= i < @end,
109 (end_word - start_word) * sizeof(u32))) in ethnl_bitmap32_not_zero()
117 * ethnl_bitmap32_update() - Modify u32 based bitmap according to value/mask
147 nbits -= 32; in ethnl_bitmap32_update()
[all …]
/linux/Documentation/netlink/
H A 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
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
[all …]
H A 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, const name, or limit based on fixed-width type
18 # e.g. u8-min, u16-max, etc.
20 pattern: ^[0-9A-Za-z_-]+$
[all …]
H A 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
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
[all …]
H A 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
11 pattern: ^[0-9a-z-]+$
12 name-cap:
14 pattern: ^[0-9a-zA-Z-]+$
18 len-or-define:
20 pattern: ^[0-9A-Za-z_-]+( - 1)?$
22 len-or-limit:
[all …]
/linux/drivers/net/ethernet/intel/fm10k/
H A 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/drivers/net/ethernet/rocker/
H A 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/arch/powerpc/include/asm/
H A 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/include/linux/
H A 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 data_race(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/Documentation/arch/x86/
H A 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/arch/powerpc/perf/
H A 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/tools/net/ynl/pyynl/
H A Dynl_gen_c.py2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
4 # pylint: disable=line-too-long, missing-class-docstring, missing-function-docstring
5 # pylint: disable=too-many-positional-arguments, too-many-arguments, too-many-statements
6 # pylint: disable=too-many-branches, too-many-locals, too-many-instance-attributes
7 # pylint: disable=too-many-nested-blocks, too-many-lines, too-few-public-methods
8 # pylint: disable=broad-exception-raised, broad-exception-caught, protected-access
26 # pylint: disable=no-name-in-module,wrong-import-position
33 return name.upper().replace('-', '_')
37 return name.lower().replace('-', '_')
42 Turn a string limit like u32-max or s64-min into its numerical value
[all …]
/linux/include/net/
H A Dnet_shaper.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
33 * struct net_shaper - represents a shaping node on the NIC H/W
61 * struct net_shaper_ops - Operations on device H/W shapers
66 * The network core keeps track of the applied user-configuration in
74 * comprising the shaper scope and a scope-specific id.
77 * ------------------
84 * - @group calls in the driver facing API may have nodes as leaves (user is
86 * - @group calls may update leaf's parent if the parent is about
87 * to be removed (re-parenting nodes explicitly is not supported in the uAPI)
90 * -----------------
[all …]
/linux/net/sched/
H A Dact_api.c1 // SPDX-License-Identifier: GPL-2.0-or-later
47 res->goto_tp = rcu_dereference_bh(chain->filter_chain); in tcf_action_goto_chain_exec()
54 kfree(cookie->data); in tcf_free_cookie_rcu()
65 call_rcu(&old->rcu, tcf_free_cookie_rcu); in tcf_set_action_cookie()
72 int opcode = TC_ACT_EXT_OPCODE(action), ret = -EINVA in tcf_action_check_ctrlact()
509 struct nlattr *nest; tcf_action_dump_1() local
555 struct nlattr *nest; tcf_dump_walker() local
632 struct nlattr *nest; tcf_del_walker() local
1251 struct nlattr *nest; tcf_action_dump() local
1654 struct nlattr *nest; tca_get_fill() local
1759 struct nlattr *nest; tca_action_flush() local
2208 struct nlattr *nest; tc_dump_action() local
[all...]
/linux/lib/
H A 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>
43 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
51 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held()
59 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held()
61 return bit_spin_is_locked(0, (unsigned long *)&tbl->buckets[hash]); in lockdep_rht_bucket_is_held()
71 /* The top-level bucket entry does not need RCU protection in nested_table_top()
72 * because it's set at the same time as tbl->nest. in nested_table_top()
74 return (void *)rcu_dereference_protected(tbl->buckets[0], 1); in nested_table_top()
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 # pylint: disable=missing-class-docstring, missing-function-docstring
4 # pylint: disable=too-many-branches, too-many-locals, too-many-instance-attributes
5 # pylint: disable=too-many-lines
39 # pylint: disable=too-few-public-methods
121 'binary', 'string', 'nul-string',
122 'nested', 'nested-array',
128 self.error = -nl_msg.error
154 pol = ynl.get_policy('page-pool-stats-get', 'do')
160 nested). Optional attributes depending on the 'type': min-value,
[all …]
/linux/drivers/crypto/nx/
H A 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/fs/btrfs/
H A Dctree.h1 /* SPDX-License-Identifier: GPL-2.0 */
53 * The slots array records the index of the item or block pointer
89 * This defines an on-stack path that will be auto released when exiting the scope.
101 * btrfs_record_root_in_trans is a multi-step process, and it can race
115 * - How balance works
120 * While for non-shareable trees, we just simply do a tree search
123 * - How dirty roots are tracked
125 * track them, while non-subvolume roots have TRACK_DIRTY bit, they
224 /* The dirty list is only used by non-shareable roots */
229 /* Xarray that keeps track of in-memory inodes. */
[all …]
/linux/include/uapi/linux/
H A Dnetlink.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
17 #define NETLINK_ISCSI 8 /* Open-iSCSI */
45 * struct nlmsghdr - fixed format metadata header of Netlink messages
99 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
106 NLMSG_ALIGN((nlh)->nlmsg_len)))
108 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
109 (nlh)->nlmsg_len <= (len))
110 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
134 * enum nlmsgerr_attrs - nlmsgerr attributes
[all …]

123