Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/Documentation/userspace-api/netlink/
Dgenetlink-legacy.rst1 .. 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 …]
Dspecs.rst1 .. 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 …]
/kernel/linux/linux-6.6/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)?$
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 …]
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)?$
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 …]
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)?$
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 …]
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/include/uapi/linux/
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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 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 by mac_addr. It will return success
[all …]
/kernel/linux/linux-6.6/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 */
/kernel/linux/linux-5.10/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 */
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/Documentation/netlink/specs/
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 …]
/kernel/linux/linux-5.10/net/sched/
Dact_api.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 const struct tcf_chain *chain = rcu_dereference_bh(a->goto_chain); in tcf_action_goto_chain_exec()
30 res->goto_tp = rcu_dereference_bh(chain->filter_chain); in tcf_action_goto_chain_exec()
37 kfree(cookie->data); in tcf_free_cookie_rcu()
48 call_rcu(&old->rcu, tcf_free_cookie_rcu); in tcf_set_action_cookie()
55 int opcode = TC_ACT_EXT_OPCODE(action), ret = -EINVAL; in tcf_action_check_ctrlact()
59 ret = action > TC_ACT_VALUE_MAX ? -EINVAL : 0; in tcf_action_check_ctrlact()
70 ret = -EINVAL; in tcf_action_check_ctrlact()
75 *newchain = tcf_chain_get_by_act(tp->chain->block, chain_index); in tcf_action_check_ctrlact()
77 ret = -ENOMEM; in tcf_action_check_ctrlact()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/Documentation/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 …]
/kernel/linux/linux-6.6/net/sched/
Dact_api.c1 // 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 …]

12345