Home
last modified time | relevance | path

Searched +full:num +full:- +full:ids (Results 1 – 25 of 259) sorted by relevance

1234567891011

/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Den_tc_tracepoint.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
7 void put_ids_to_array(int *ids, in put_ids_to_array() argument
9 unsigned int num) in put_ids_to_array() argument
13 for (i = 0; i < num; i++) in put_ids_to_array()
14 ids[i] = entries[i].id; in put_ids_to_array()
43 int *ids, in parse_action() argument
44 unsigned int num) in parse_action() argument
49 for (i = 0; i < num; i++) { in parse_action()
50 if (ids[i] < NUM_FLOW_ACTIONS) in parse_action()
51 trace_seq_printf(p, "%s ", FLOWACT2STR[ids[i]]); in parse_action()
/linux/drivers/firmware/imx/
H A Dsm-misc.c1 // SPDX-License-Identifier: GPL-2.0+
20 return -EPROBE_DEFER; in scmi_imx_misc_ctrl_set()
22 return imx_misc_ctrl_ops->misc_ctrl_set(ph, id, 1, &val); in scmi_imx_misc_ctrl_set()
26 int scmi_imx_misc_ctrl_get(u32 id, u32 *num, u32 *val) in scmi_imx_misc_ctrl_get() argument
29 return -EPROBE_DEFER; in scmi_imx_misc_ctrl_get()
31 return imx_misc_ctrl_ops->misc_ctrl_get(ph, id, num, val); in scmi_imx_misc_ctrl_get()
49 const struct scmi_handle *handle = sdev->handle; in scmi_imx_misc_ctrl_probe()
50 struct device_node *np = sdev->dev.of_node; in scmi_imx_misc_ctrl_probe()
52 int ret, i, num; in scmi_imx_misc_ctrl_probe() local
55 return -ENODEV; in scmi_imx_misc_ctrl_probe()
[all …]
/linux/tools/perf/util/
H A Dexpr.y12 #include "expr-bison.h"
18 %parse-param { double *final_val }
19 %parse-param { struct expr_parse_ctx *ctx }
20 %parse-param { bool compute_ids }
21 %parse-param {void *scanner}
22 %lex-param {void* scanner}
25 double num;
27 struct ids {
29 * When creating ids, holds the working set of event ids. NULL
32 struct hashmap *ids;
[all …]
H A Dbpf-filter.c1 /* SPDX-License-Identifier: GPL-2.0 */
15 * To support non-root users, the filters map can be loaded and pinned in the BPF
16 * filesystem by root (perf record --setup-filter pin). Then each user will get
18 * BPF program will find the filter using (task-id, event-id) as a key.
24 * event->id ---> | id | ---+ idx_hash | filters
26 * | .... | +-> | idx | --+--> | exprs | ---> perf_bpf_filter_entry[]
28 * task id (tgid) --------------+ | .... | | | ... | .term (+ part)
33 * This is used for per-task use cases while system-wide profiling (normally from
35 * it can proceed even if a lot of non-root users are using the filters at the
59 #include "util/bpf-utils.h"
[all …]
/linux/arch/arm/boot/dts/nxp/mxs/
H A Dimx28-cfa10049.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * The CFA-10049 is an expansion board for the CFA-10036 module, thus we
8 * need to include the CFA-10036 DTS.
10 #include "imx28-cfa10036.dts"
13 model = "Crystalfontz CFA-10049 Board";
17 compatible = "i2c-mux-gpio";
18 #address-cells = <1>;
19 #size-cells = <0>;
20 pinctrl-names = "default";
21 pinctrl-0 = <&i2cmux_pins_cfa10049>;
[all …]
H A Dimx28-cfa10055.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * The CFA-10055 is an expansion board for the CFA-10036 module and
9 * CFA-10037, thus we need to include the CFA-10037 DTS.
11 #include "imx28-cfa10037.dts"
14 model = "Crystalfontz CFA-10055 Board";
17 spi-2 {
18 compatible = "spi-gpio";
19 pinctrl-names = "default";
20 pinctrl-0 = <&spi2_pins_cfa10055>;
22 sck-gpios = <&gpio2 16 0>;
[all …]
H A Dimx28-cfa10056.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * The CFA-10055 is an expansion board for the CFA-10036 module and
8 * CFA-10037, thus we need to include the CFA-10037 DTS.
10 #include "imx28-cfa10037.dts"
13 model = "Crystalfontz CFA-10056 Board";
16 spi-2 {
17 compatible = "spi-gpio";
18 pinctrl-names = "default";
19 pinctrl-0 = <&spi2_pins_cfa10056>;
21 sck-gpios = <&gpio2 16 0>;
[all …]
H A Dimx28-amarula-rmm.dts1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
13 compatible = "amarula,imx28-rmm", "fsl,imx28";
22 compatible = "pwm-backlight";
24 brightness-levels = <0 255>;
25 num-interpolated-steps = <255>;
26 default-brightness-level = <255>;
27 power-supply = <&reg_5v>;
[all …]
/linux/drivers/iommu/
H A Dmsm_iommu.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
25 /* Maximum number of Machine IDs that we are allowing to be mapped to the same
37 * struct msm_iommu_dev - a single IOMMU hardware instance
64 * struct msm_iommu_ctx_dev - an IOMMU context bank instance
66 * num Index of this context bank within the hardware
67 * mids List of Machine IDs that are to be mapped into this context
68 * bank, terminated by -1. The MID is a set of signals on the
76 int num; member
/linux/drivers/pnp/pnpacpi/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pnpacpi -- PnP ACPI driver
18 static int num; variable
21 * Compatible Device IDs
45 pnp_dbg(&dev->dev, "get resources\n"); in pnpacpi_get_resources()
55 pnp_dbg(&dev->dev, "set resources\n"); in pnpacpi_set_resources()
57 acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_set_resources()
59 dev_dbg(&dev->dev, "ACPI device not found in %s!\n", __func__); in pnpacpi_set_resources()
60 return -ENODEV; in pnpacpi_set_resources()
63 if (WARN_ON_ONCE(acpi_dev != dev->data)) in pnpacpi_set_resources()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_sriov_pf_config.c1 // SPDX-License-Identifier: MIT
3 * Copyright © 2023-2024 Intel Corporation
56 return xe_guc_ct_send_block(&guc->ct, request, ARRAY_SIZE(request)); in guc_action_update_vf_cfg()
64 struct xe_guc *guc = &gt->uc.guc; in pf_send_vf_cfg_reset()
69 return ret <= 0 ? ret : -EPROTO; in pf_send_vf_cfg_reset()
78 struct xe_guc *guc = &gt->uc.guc; in pf_send_vf_buf_klvs()
84 * Return: 0 on success, -ENOKEY if some KLVs were not updated, -EPROTO if reply was malformed,
95 int err = ret < 0 ? ret : ret < num_klvs ? -ENOKEY : -EPROTO; in pf_push_vf_buf_klvs()
122 * Return: 0 on success, -ENOBUFS if no free buffer for the indirect data,
128 CLASS(xe_guc_buf_from_data, buf)(&gt->uc.guc.buf, klvs, num_dwords * sizeof(u32)); in pf_push_vf_cfg_klvs()
[all …]
/linux/drivers/usb/misc/
H A Dusb-ljca.c1 // SPDX-License-Identifier: GPL-2.0-only
30 (LJCA_MAX_PACKET_SIZE - sizeof(struct ljca_msg))
78 u8 num; member
79 struct ljca_i2c_ctr_info info[] __counted_by(num);
89 u8 num; member
90 struct ljca_spi_ctr_info info[] __counted_by(num);
108 * struct ljca_adapter - represent a ljca adapter
162 const struct acpi_device_id *ids; member
197 list_for_each_entry(client, &adap->client_list, link) { in ljca_handle_event()
203 if (client->type == header->type) { in ljca_handle_event()
[all …]
/linux/include/linux/crush/
H A Dcrush.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 * CRUSH is a pseudo-random data distribution algorithm that
20 * https://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf
39 * CRUSH uses user-defined "rules" to describe how inputs should be
53 CRUSH_RULE_CHOOSE_FIRSTN = 2, /* arg1 = num items to pick */
69 * for specifying choose num (arg1) relative to the max parameter
73 #define CRUSH_CHOOSE_N_MINUS(x) (-(x))
106 * ------------------------------------------------
133 __u16 type; /* non-zero; type=0 is reserved for devices */
136 __u32 weight; /* 16-bit fixed point */
[all …]
/linux/sound/soc/meson/
H A Daiu.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <sound/soc-dai.h>
15 #include <dt-bindings/sound/meson-aiu.h>
17 #include "aiu-fifo.h"
52 if (args->args_count != 2) in aiu_of_xlate_dai_name()
53 return -EINVAL; in aiu_of_xlate_dai_name()
55 if (args->args[0] != component_id) in aiu_of_xlate_dai_name()
56 return -EINVAL; in aiu_of_xlate_dai_name()
58 id = args->args[1]; in aiu_of_xlate_dai_name()
60 if (id < 0 || id >= component->num_dai) in aiu_of_xlate_dai_name()
[all …]
/linux/tools/lib/bpf/
H A Dbtf_relocate.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
25 #define qsort(base, num, sz, cmp) sort(base, num, sz, cmp, NULL) argument
55 #define BTF_IS_EMBEDDED ((__u32)-1)
68 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_type_id()
78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id()
83 * types are named. If strings match, and size is non-zero for both elements
90 int name_diff = strcmp(ni1->name, ni2->name); in cmp_btf_name_size()
92 if (!name_diff && ni1->needs_size && ni2->needs_size) in cmp_btf_name_size()
93 return ni2->size - ni1->size; in cmp_btf_name_size()
107 int high = nelems - 1; in search_btf_name_size()
[all …]
/linux/fs/squashfs/
H A Dsuper.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Squashfs - a compressed read only filesystem for Linux
13 * in-memory structures at mount time, and all the VFS glue code to register
76 opts->thread_ops = &squashfs_decompressor_single; in squashfs_parse_param_threads_str()
80 opts->thread_ops = &squashfs_decompressor_multi; in squashfs_parse_param_threads_str()
84 opts->thread_ops = &squashfs_decompressor_percpu; in squashfs_parse_param_threads_str()
88 return -EINVAL; in squashfs_parse_param_threads_str()
95 unsigned long num; in squashfs_parse_param_threads_num() local
97 ret = kstrtoul(str, 0, &num); in squashfs_parse_param_threads_num()
99 return -EINVAL; in squashfs_parse_param_threads_num()
[all …]
/linux/drivers/xen/
H A Dxen-acpi-pad.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * xen-acpi-pad.c - Xen pad interface
16 #include <xen/xen-ops.h>
48 * return -1 on failure
54 int num = -1; in acpi_pad_pur() local
57 return num; in acpi_pad_pur()
60 return num; in acpi_pad_pur()
64 if (package->type == ACPI_TYPE_PACKAGE && in acpi_pad_pur()
65 package->package.count == 2 && in acpi_pad_pur()
66 package->package.elements[0].integer.value == 1) /* rev 1 */ in acpi_pad_pur()
[all …]
/linux/arch/parisc/kernel/
H A Ddrivers.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de>
9 * Copyright (c) 2004-2005 Thibaut VARENE <varenet@parisc-linux.org>
16 * - 715/Mirage device paths have a dummy device between Lasi and its children
17 * - The EISA adapter may show up as a sibling or child of Wax
18 * - Dino has an optionally functional serial port. If firmware enables it,
21 * - Dino has both parisc and pci devices as children
22 * - parisc devices are discovered in a random order, including children
33 #include <linux/dma-map-ops.h>
37 #include <asm/parisc-device.h>
[all …]
/linux/arch/um/drivers/
H A Dvirtio_uml.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Virtio vhost-user driver
7 * This driver allows virtio devices to be used over a vhost-user socket.
14 * <socket> := vhost-user socket path to connect
21 * Based on Virtio MMIO driver by Pawel Moll, copyright 2011-2014, ARM Ltd.
30 #include <linux/time-internal.h>
31 #include <linux/virtio-uml.h>
32 #include <shared/as-layout.h>
76 #define vu_err(vu_dev, ...) dev_err(&(vu_dev)->pdev->dev, ##__VA_ARGS__)
78 /* Vhost-user protocol */
[all …]
/linux/drivers/scsi/bnx2i/
H A Dbnx2i.h3 * Copyright (c) 2006 - 2013 Broadcom Corporation
14 * Maintained by: QLogic-Storage-Upstream@qlogic.com
60 #define ISCSI_MAX_CMDS_PER_HBA_5708 (28 * (ISCSI_MAX_CMDS_PER_SESS - 1))
61 #define ISCSI_MAX_CMDS_PER_HBA_5709 (128 * (ISCSI_MAX_CMDS_PER_SESS - 1))
62 #define ISCSI_MAX_CMDS_PER_HBA_57710 (256 * (ISCSI_MAX_CMDS_PER_SESS - 1))
129 readl(__hba->regview + offset)
131 writel(val, __hba->regview + offset)
136 spin_lock_bh(&__hba->stat_lock); \
137 dst->field##_lo = __hba->stats.field##_lo; \
138 dst->field##_hi = __hba->stats.field##_hi; \
[all …]
/linux/drivers/base/
H A Dplatform.c1 // SPDX-License-Identifier: GPL-2.0
3 * platform.c - platform 'pseudo' bus for legacy devices
5 * Copyright (c) 2002-3 Patrick Mochel
6 * Copyright (c) 2002-3 Open Source Development Labs
8 * Please see Documentation/driver-api/driver-model/platform.rst for more
20 #include <linux/dma-mapping.h>
28 #include <linux/clk/clk-conf.h>
34 #include <linux/dma-map-ops.h>
39 /* For automatically allocated device IDs */
48 * platform_get_resource - get a resource for a device
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_virtchnl.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * struct idpf_vc_xn_manager - Manager for tracking transactions
26 * idpf_vid_to_vport - Translate vport id to vport pointer
39 if (adapter->vport_ids[i] == v_id) in idpf_vid_to_vport()
40 return adapter->vports[i]; in idpf_vid_to_vport()
46 * idpf_handle_event_link - Handle link event message
56 vport = idpf_vid_to_vport(adapter, le32_to_cpu(v2e->vport_id)); in idpf_handle_event_link()
58 dev_err_ratelimited(&adapter->pdev->dev, "Failed to find vport_id %d for link event\n", in idpf_handle_event_link()
59 v2e->vport_id); in idpf_handle_event_link()
62 np = netdev_priv(vport->netdev); in idpf_handle_event_link()
[all …]
/linux/rust/kernel/list/
H A Darc.rs1 // SPDX-License-Identifier: GPL-2.0
68 fn try_new_list_arc(&self) -> bool; in try_new_list_arc()
86 (impl$({$($generics:tt)*})? ListArcSafe<$num:tt> for $t:ty { untracked; } $($rest:tt)*) => {
87 impl$(<$($generics)*>)? $crate::list::ListArcSafe<$num> for $t {
94 (impl$({$($generics:tt)*})? ListArcSafe<$num:tt> for $t:ty {
97 impl$(<$($generics)*>)? $crate::list::ListArcSafe<$num> for $t {
107 <$fty as $crate::list::ListArcSafe<$num>>::on_create_list_arc_from_unique(field)
113 … unsafe { <$fty as $crate::list::ListArcSafe<$num>>::on_drop_list_arc(&self.$field) };
116 unsafe impl$(<$($generics)*>)? $crate::list::TryNewListArc<$num> for $t
118 $fty: TryNewListArc<$num>,
[all …]
/linux/drivers/clk/mediatek/
H A Dclk-mtk.h1 /* SPDX-License-Identifier: GPL-2.0-only */
10 #include <linux/clk-provider.h>
28 * We need the clock IDs to start from zero but to maintain devicetree
60 int mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks, int num,
62 void mtk_clk_unregister_fixed_clks(const struct mtk_fixed_clk *clks, int num,
86 int mtk_clk_register_factors(const struct mtk_fixed_factor *clks, int num,
88 void mtk_clk_unregister_factors(const struct mtk_fixed_factor *clks, int num,
123 .divider_shift = -1, \
157 .gate_shift = -1, \
158 .divider_shift = -1, \
[all …]
/linux/include/linux/cdx/
H A Dcdx_bus.h1 /* SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
57 * CDX_DEVICE - macro used to describe a specific CDX device
70 * CDX_DEVICE_DRIVER_OVERRIDE - macro used to describe a CDX device with
85 * struct cdx_ops - Callbacks supported by CDX controller.
118 * struct cdx_device - CDX device object
176 #define cdx_resource_start(dev, num) ((dev)->res[(num)].start) argument
177 #define cdx_resource_end(dev, num) ((dev)->res[(num)].end) argument
178 #define cdx_resource_flags(dev, num) ((dev)->res[(num)].flags) argument
179 #define cdx_resource_len(dev, num) \ argument
[all …]

1234567891011