Home
last modified time | relevance | path

Searched full:ids (Results 1 – 25 of 1782) sorted by relevance

12345678910>>...72

/linux/tools/perf/util/
H A Dexpr.y27 struct ids {
29 * When creating ids, holds the working set of event ids. NULL
32 struct hashmap *ids;
34 * The metric value. When not creating ids this is the value
36 * creating ids the value is either a constant or BOTTOM. NAN is
41 } ids;
56 %type <ids> expr if_expr
57 %destructor { ids__free($$.ids); } <ids>
[all...]
H A Dexpr.c77 void ids__free(struct hashmap *ids) in ids__free()
82 if (ids == NULL) in ids__free()
85 hashmap__for_each_entry(ids, cur, bkt) { in ids__free()
90 hashmap__free(ids); in ids__free()
93 int ids__insert(struct hashmap *ids, const char *id) in ids__insert()
99 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data); in ids__insert()
145 return ids__insert(ctx->ids, id); in expr__add_id()
170 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data); in expr__add_id_val_source_count()
217 ret = hashmap__set(ctx->ids, name, data_ptr, &old_key, &old_data); in expr__add_ref()
234 return hashmap__find(ctx->ids, i in expr__subset_of_ids()
76 ids__free(struct hashmap * ids) ids__free() argument
92 ids__insert(struct hashmap * ids,const char * id) ids__insert() argument
[all...]
H A Dexpr.h16 struct hashmap *ids; member
23 void ids__free(struct hashmap *ids);
24 int ids__insert(struct hashmap *ids, const char *id);
26 * Union two sets of ids (hashmaps) and construct a third, freeing ids1 and
54 struct expr_parse_ctx *ids);
/linux/tools/perf/tests/
H A Dexpr.c134 TEST_ASSERT_VAL("find ids", in test__expr()
137 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3); in test__expr()
138 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", &val_ptr)); in test__expr()
139 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", &val_ptr)); in test__expr()
140 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", &val_ptr)); in test__expr()
144 TEST_ASSERT_VAL("find ids", in test__expr()
147 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr()
148 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", &val_ptr)); in test__expr()
149 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", &val_ptr)); in test__expr()
152 TEST_ASSERT_VAL("find ids", in test__expr()
[all …]
/linux/ipc/
H A Dutil.c38 * The ids->rwsem must be taken when:
76 int ids; member
110 * @ids: ipc identifier set
113 * below ipc_mni) then initialise the keys hashtable and ids idr.
115 void ipc_init_ids(struct ipc_ids *ids) in ipc_init_ids() argument
117 ids->in_use = 0; in ipc_init_ids()
118 ids->seq = 0; in ipc_init_ids()
119 init_rwsem(&ids->rwsem); in ipc_init_ids()
120 rhashtable_init(&ids->key_ht, &ipc_kht_params); in ipc_init_ids()
121 idr_init(&ids->ipcs_idr); in ipc_init_ids()
[all …]
H A Dutil.h114 void ipc_init_ids(struct ipc_ids *ids);
117 int ids, int (*show)(struct seq_file *, void *));
120 #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) argument
131 /* must be called with ids->rwsem acquired for writing */
145 * @ids: ipc identifier set
147 * The function returns the highest assigned index for @ids. The function
152 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument
154 if (ids->in_use == 0) in ipc_get_maxidx()
157 if (ids->in_use == ipc_mni) in ipc_get_maxidx()
160 return ids->max_idx; in ipc_get_maxidx()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_field_iter.c10 __u32 ids[5]; member
13 { .ids = {}, .strs = {} },
14 { .ids = {}, .strs = { "int" } },
15 { .ids = {}, .strs = { "int64" } },
16 { .ids = { 1 }, .strs = { "" } },
17 { .ids = { 2, 1 }, .strs = { "" } },
18 { .ids = { 3, 1 }, .strs = { "s1", "f1", "f2" } },
19 { .ids = { 1, 5 }, .strs = { "u1", "f1", "f2" } },
20 { .ids = {}, .strs = { "e1", "v1", "v2" } },
21 { .ids = {}, .strs = { "fw1" } },
[all …]
H A Dtracing_multi.c84 __u32 *ids = NULL; in get_ids() local
100 ids = calloc(funcs_cnt, sizeof(ids[0])); in get_ids()
101 if (!ids) in get_ids()
143 * array index and have the resulting ids array matching the original in get_ids()
150 ids[idx] = type_id; in get_ids()
156 free(ids); in get_ids()
157 ids = NULL; in get_ids()
164 return ids; in get_ids()
243 __u32 *ids; in test_link_api_ids() local
252 ids = get_ids(bpf_fentry_test, cnt, NULL); in test_link_api_ids()
[all …]
H A Dfill_link_info.c458 * The kernel tracing multi attach sorts ids. We sort as well, in setup_tmulti_targets()
459 * so we can easily compare ids and cookies later. in setup_tmulti_targets()
476 __u32 ids[TRACING_MULTI_CNT]; in verify_tracing_multi_link_info() local
492 memset(ids, 0, sizeof(ids)); in verify_tracing_multi_link_info()
496 info.tracing_multi.ids = ptr_to_u64(ids); in verify_tracing_multi_link_info()
513 ASSERT_EQ(ids[i], targets[i].id, "tracing_multi.ids"); in verify_tracing_multi_link_info()
535 __u32 ids[TRACING_MULTI_CNT] = {}; in verify_tracing_multi_invalid_user_buffer() local
540 /* Wrong info setup (ids != NULL and cnt == 0) -> EINVAL */ in verify_tracing_multi_invalid_user_buffer()
542 info.tracing_multi.ids = ptr_to_u64(ids); in verify_tracing_multi_invalid_user_buffer()
547 memset(ids, 0, sizeof(ids)); in verify_tracing_multi_invalid_user_buffer()
[all …]
/linux/drivers/dio/
H A Ddio-driver.c20 * @ids: array of DIO device id structures to search in
29 dio_match_device(const struct dio_device_id *ids, in dio_match_device() argument
32 while (ids->id) { in dio_match_device()
33 if (ids->id == DIO_WILDCARD) in dio_match_device()
34 return ids; in dio_match_device()
35 if (DIO_NEEDSSECID(ids->id & 0xff)) { in dio_match_device()
36 if (ids->id == d->id) in dio_match_device()
37 return ids; in dio_match_device()
39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device()
40 return ids; in dio_match_device()
[all …]
/linux/arch/arm/boot/dts/nxp/mxs/
H A Dimx28.dtsi218 fsl,pinmux-ids = <
229 fsl,pinmux-ids = <
240 fsl,pinmux-ids = <
253 fsl,pinmux-ids = <
277 fsl,pinmux-ids = <
287 fsl,pinmux-ids = <
300 fsl,pinmux-ids = <
311 fsl,pinmux-ids = <
324 fsl,pinmux-ids = <
335 fsl,pinmux-ids = <
[all …]
/linux/net/openvswitch/
H A Dvport.c318 * @ids: new configuration, an array of port ids.
320 * Sets the vport's upcall_portids to @ids.
322 * Returns 0 if successful, -EINVAL if @ids is zero length or cannot be parsed
327 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument
331 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids()
334 if (nla_len(ids) / sizeof(u32) > nr_cpu_ids) in ovs_vport_set_upcall_portids()
339 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids()
344 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids()
346 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids()
372 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local
[all …]
/linux/Documentation/filesystems/
H A Didmappings.rst14 An idmapping is essentially a translation of a range of ids into another or the
15 same range of ids. The notational convention for idmappings that is widely used
22 indicates the range of the idmapping, i.e. how many ids are mapped. From now
23 on, we will always prefix ids with ``u`` or ``k`` to make it clear whether
39 the set of all possible ids usable on a given system.
80 third idmapping. The kernel will report unmapped ids as the overflowuid
126 of userspace ids into a range of kernel ids::
136 The kernel is mostly concerned with kernel ids. They are used when performing
145 For the rest of this document we will prefix all userspace ids with ``u`` and
146 all kernel ids with ``k``. Ranges of idmappings will be prefixed with ``r``. So
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_id_mgr.c66 * @limit: number of IDs to manage
69 * context IDs supported by the GuC firmware are available for use.
71 * Only VF drivers will have to provide explicit number of context IDs
134 * For IDs reservations (used on PF for VFs) we want to make in idm_reserve_chunk_locked()
140 * ... and we want to reserve highest IDs close to the end. in idm_reserve_chunk_locked()
145 * For regular IDs reservations (used by submission code) in idm_reserve_chunk_locked()
146 * we start searching from the lower range of IDs. in idm_reserve_chunk_locked()
179 * xe_guc_id_mgr_reserve_locked() - Reserve one or more GuC context IDs.
181 * @count: number of IDs to allocate (can't be 0)
194 * xe_guc_id_mgr_release_locked() - Release one or more GuC context IDs.
[all …]
/linux/drivers/regulator/
H A Dstpmic1_regulator.c198 #define REG_LDO(ids, base) { \ argument
199 .name = #ids, \
200 .id = STPMIC1_##ids, \
207 .vsel_reg = ids##_ACTIVE_CR, \
209 .enable_reg = ids##_ACTIVE_CR, \
218 #define REG_LDO3(ids, base) { \ argument
219 .name = #ids, \
220 .id = STPMIC1_##ids, \
242 #define REG_LDO4(ids, base) { \ argument
243 .name = #ids, \
[all …]
H A Dmax8907-regulator.c46 #define REG_LDO(ids, supply, base, min, max, step) \ argument
47 [MAX8907_##ids] = { \
48 .name = #ids, \
50 .id = MAX8907_##ids, \
63 #define REG_FIXED(ids, supply, voltage) \ argument
64 [MAX8907_##ids] = { \
65 .name = #ids, \
67 .id = MAX8907_##ids, \
75 #define REG_OUT5V(ids, supply, base, voltage) \ argument
76 [MAX8907_##ids] = { \
[all …]
/linux/drivers/pci/
H A Dpci-stub.c22 static char ids[1024] __initdata; variable
24 module_param_string(ids, ids, sizeof(ids), 0);
25 MODULE_PARM_DESC(ids, "Initial PCI IDs to add to the stub driver, format is "
51 /* no ids passed actually */ in pci_stub_init()
52 if (ids[0] == '\0') in pci_stub_init()
55 /* add ids specified in the module parameter */ in pci_stub_init()
56 p = ids; in pci_stub_init()
/linux/drivers/zorro/
H A Dzorro-driver.c23 * @ids: array of Zorro device id structures to search in
32 zorro_match_device(const struct zorro_device_id *ids, in zorro_match_device() argument
35 while (ids->id) { in zorro_match_device()
36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device()
37 return ids; in zorro_match_device()
38 ids++; in zorro_match_device()
113 * @ids: array of Zorro device id structures to search in
125 const struct zorro_device_id *ids = zorro_drv->id_table; in zorro_bus_match() local
127 if (!ids) in zorro_bus_match()
130 return !!zorro_match_device(ids, z); in zorro_bus_match()
/linux/rust/kernel/
H A Ddevice_id.rs3 //! Generic implementation of device IDs.
94 ids: [MaybeUninit<T::RawType>; N],
111 pub const fn new(ids: [(T, &'static U); N]) -> Self {
118 raw_ids[i] = unsafe { core::mem::transmute_copy(&ids[i].0) };
120 // `raw_ids[i].driver_data = ids[i].1;`.
126 .write(ids[i].1);
132 core::mem::forget(ids);
135 ids: raw_ids, in new_without_index()
147 pub const fn new_without_index(ids: [T; N]) -> Self {
149 let raw_ids: [MaybeUninit<T::RawType>; N] = unsafe { core::mem::transmute_copy(&ids) };
58 ids: [T::RawType; N], global() field
[all...]
/linux/Documentation/driver-api/usb/
H A Dbulk-streams.rst38 allocate memory so the driver can use up to num_streams stream IDs. They must
40 IDs. This is to ensure that a UASP driver will be able to use the same stream
46 declares how many stream IDs it can support, and each bulk endpoint on a
47 SuperSpeed device will say how many stream IDs it can handle. Therefore,
48 drivers should be able to deal with being allocated less stream IDs than they
60 Picking new Stream IDs to use
69 driver supports secondary stream IDs.
82 All stream IDs will be deallocated when the driver releases the interface, to
/linux/security/
H A Dlsm_syscalls.c94 * @ids: the LSM module ids
95 * @size: pointer to size of @ids, updated on return
98 * Returns a list of the active LSM ids. On success this function
99 * returns the number of @ids array elements. This value may be zero
105 SYSCALL_DEFINE3(lsm_list_modules, u64 __user *, ids, u32 __user *, size, in SYSCALL_DEFINE3() argument
108 u32 total_size = lsm_active_cnt * sizeof(*ids); in SYSCALL_DEFINE3()
125 if (put_user(lsm_idlist[i]->id, ids++)) in SYSCALL_DEFINE3()
/linux/Documentation/core-api/
H A Didr.rst12 A common problem to solve is allocating identifiers (IDs); generally
14 process IDs, packet identifiers in networking protocols, SCSI tags
40 Some users need to allocate IDs larger than ``INT_MAX``. So far all of
42 idr_alloc_u32(). If you need IDs that will not fit in a u32,
45 If you need to allocate IDs sequentially, you can use
47 with larger IDs, so using this function comes at a slight cost.
61 IDs currently allocated.
/linux/include/dt-bindings/clock/
H A Dbcm281xx.h27 /* root CCU clock ids */
32 /* aon CCU clock ids */
39 /* hub CCU clock ids */
44 /* master CCU clock ids */
55 /* slave CCU clock ids */
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Den_tc_tracepoint.c7 void put_ids_to_array(int *ids, in put_ids_to_array() argument
14 ids[i] = entries[i].id; in put_ids_to_array()
43 int *ids, in parse_action() argument
50 if (ids[i] < NUM_FLOW_ACTIONS) in parse_action()
51 trace_seq_printf(p, "%s ", FLOWACT2STR[ids[i]]); in parse_action()
/linux/arch/mips/include/asm/sgi/
H A Dgio.h34 * GIO bus IDs
37 * read with an "ID" value. IDs are either 8 or 32 bits long. IDs less
41 * 32-bit IDs are divided into
52 * IDs above 0x50/0xd0 are of 3rd party boards.
54 * 8-bit IDs

12345678910>>...72