Home
last modified time | relevance | path

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

12345678910>>...153

/kernel/linux/linux-6.6/tools/perf/util/
Dexpr.y25 struct ids {
27 * When creating ids, holds the working set of event ids. NULL
30 struct hashmap *ids;
32 * The metric value. When not creating ids this is the value
34 * creating ids the value is either a constant or BOTTOM. NAN is
39 } ids;
54 %type <ids> expr if_expr
55 %destructor { ids__free($$.ids); } <ids>
68 * During compute ids, the special "bottom" value uses NAN to represent the set
73 /* During computing ids, does val represent a constant (non-BOTTOM) value? */
[all …]
Dexpr.c83 void ids__free(struct hashmap *ids) in ids__free() argument
88 if (ids == NULL) in ids__free()
91 hashmap__for_each_entry(ids, cur, bkt) { in ids__free()
96 hashmap__free(ids); in ids__free()
99 int ids__insert(struct hashmap *ids, const char *id) in ids__insert() argument
105 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data); in ids__insert()
151 return ids__insert(ctx->ids, id); in expr__add_id()
175 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data); in expr__add_id_val_source_count()
210 ret = hashmap__set(ctx->ids, name, data_ptr, &old_key, &old_data); in expr__add_ref()
225 return hashmap__find(ctx->ids, id, data) ? 0 : -1; in expr__get_id()
[all …]
/kernel/linux/linux-6.6/tools/perf/tests/
Dexpr.c135 TEST_ASSERT_VAL("find ids", in test__expr()
138 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3); in test__expr()
139 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", &val_ptr)); in test__expr()
140 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", &val_ptr)); in test__expr()
141 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", &val_ptr)); in test__expr()
145 TEST_ASSERT_VAL("find ids", in test__expr()
148 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr()
149 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", &val_ptr)); in test__expr()
150 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", &val_ptr)); in test__expr()
153 TEST_ASSERT_VAL("find ids", in test__expr()
[all …]
/kernel/linux/linux-6.6/ipc/
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 …]
Dutil.h113 void ipc_init_ids(struct ipc_ids *ids);
116 int ids, int (*show)(struct seq_file *, void *));
119 #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) argument
130 /* must be called with ids->rwsem acquired for writing */
144 * @ids: ipc identifier set
146 * The function returns the highest assigned index for @ids. The function
151 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument
153 if (ids->in_use == 0) in ipc_get_maxidx()
156 if (ids->in_use == ipc_mni) in ipc_get_maxidx()
159 return ids->max_idx; in ipc_get_maxidx()
[all …]
Dipc_sysctl.c155 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id,
156 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id),
164 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id,
165 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id),
173 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id,
174 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id),
215 if (((table->data == &ns->ids[IPC_SEM_IDS].next_id) || in ipc_permissions()
216 (table->data == &ns->ids[IPC_MSG_IDS].next_id) || in ipc_permissions()
217 (table->data == &ns->ids[IPC_SHM_IDS].next_id)) && in ipc_permissions()
281 else if (tbl[i].data == &init_ipc_ns.ids[IPC_SEM_IDS].next_id) in setup_ipc_sysctls()
[all …]
/kernel/linux/linux-5.10/ipc/
Dutil.c38 * The ids->rwsem must be taken when:
75 int ids; member
109 * @ids: ipc identifier set
112 * below ipc_mni) then initialise the keys hashtable and ids idr.
114 void ipc_init_ids(struct ipc_ids *ids) in ipc_init_ids() argument
116 ids->in_use = 0; in ipc_init_ids()
117 ids->seq = 0; in ipc_init_ids()
118 init_rwsem(&ids->rwsem); in ipc_init_ids()
119 rhashtable_init(&ids->key_ht, &ipc_kht_params); in ipc_init_ids()
120 idr_init(&ids->ipcs_idr); in ipc_init_ids()
[all …]
Dutil.h115 void ipc_init_ids(struct ipc_ids *ids);
118 int ids, int (*show)(struct seq_file *, void *));
121 #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) argument
132 /* must be called with ids->rwsem acquired for writing */
146 * @ids: ipc identifier set
150 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument
152 if (ids->in_use == 0) in ipc_get_maxidx()
155 if (ids->in_use == ipc_mni) in ipc_get_maxidx()
158 return ids->max_idx; in ipc_get_maxidx()
174 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);
[all …]
/kernel/linux/linux-5.10/drivers/dio/
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 …]
/kernel/linux/linux-6.6/drivers/dio/
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 …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dimx28.dtsi220 fsl,pinmux-ids = <
231 fsl,pinmux-ids = <
242 fsl,pinmux-ids = <
255 fsl,pinmux-ids = <
279 fsl,pinmux-ids = <
289 fsl,pinmux-ids = <
302 fsl,pinmux-ids = <
313 fsl,pinmux-ids = <
326 fsl,pinmux-ids = <
337 fsl,pinmux-ids = <
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/nxp/mxs/
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 …]
/kernel/linux/linux-5.10/net/openvswitch/
Dvport.c327 * @ids: new configuration, an array of port ids.
329 * Sets the vport's upcall_portids to @ids.
331 * Returns 0 if successful, -EINVAL if @ids is zero length or cannot be parsed
336 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument
340 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids()
345 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids()
350 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids()
352 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids()
378 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local
380 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids()
[all …]
/kernel/linux/linux-6.6/net/openvswitch/
Dvport.c393 * @ids: new configuration, an array of port ids.
395 * Sets the vport's upcall_portids to @ids.
397 * Returns 0 if successful, -EINVAL if @ids is zero length or cannot be parsed
402 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument
406 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids()
411 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids()
416 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids()
418 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids()
444 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local
446 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids()
[all …]
/kernel/linux/linux-6.6/Documentation/filesystems/
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 …]
/kernel/linux/linux-5.10/drivers/regulator/
Dstpmic1_regulator.c197 #define REG_LDO(ids, base) { \ argument
198 .name = #ids, \
199 .id = STPMIC1_##ids, \
206 .vsel_reg = ids##_ACTIVE_CR, \
208 .enable_reg = ids##_ACTIVE_CR, \
217 #define REG_LDO3(ids, base) { \ argument
218 .name = #ids, \
219 .id = STPMIC1_##ids, \
241 #define REG_LDO4(ids, base) { \ argument
242 .name = #ids, \
[all …]
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 …]
/kernel/linux/linux-6.6/drivers/regulator/
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 …]
/kernel/linux/linux-6.6/drivers/pci/
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()
/kernel/linux/linux-5.10/drivers/pci/
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 "
50 /* no ids passed actually */ in pci_stub_init()
51 if (ids[0] == '\0') in pci_stub_init()
54 /* add ids specified in the module parameter */ in pci_stub_init()
55 p = ids; in pci_stub_init()
/kernel/linux/linux-6.6/drivers/hwtracing/coresight/
Dcoresight-trace-id.h16 * The system will allocate Ids on a demand basis, and allow them to be
21 * be maintained, and released IDs not cleared until the perf session is
26 * reserved IDs from being allocated.
36 /* architecturally we have 128 IDs some of which are reserved */
52 * @used_ids: Bitmap to register available (bit = 0) and in use (bit = 1) IDs.
53 * Initialised so that the reserved IDs are permanently marked as
55 * @pend_rel_ids: CPU IDs that have been released by the trace source but not
64 /* Allocate and release IDs for a single default trace ID map */
102 * for the CPU as a packet in the data file. IDs cannot change during a perf
119 * Used to allocate IDs for system trace sources such as STM.
[all …]
/kernel/linux/linux-6.6/drivers/zorro/
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()
/kernel/linux/linux-5.10/drivers/zorro/
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()
119 * @ids: array of Zorro device id structures to search in
131 const struct zorro_device_id *ids = zorro_drv->id_table; in zorro_bus_match() local
133 if (!ids) in zorro_bus_match()
136 return !!zorro_match_device(ids, z); in zorro_bus_match()
/kernel/linux/linux-6.6/drivers/nvme/host/
Dsysfs.c52 struct nvme_ns_ids *ids = &head->ids; in wwid_show() local
57 if (!uuid_is_null(&ids->uuid)) in wwid_show()
58 return sysfs_emit(buf, "uuid.%pU\n", &ids->uuid); in wwid_show()
60 if (memchr_inv(ids->nguid, 0, sizeof(ids->nguid))) in wwid_show()
61 return sysfs_emit(buf, "eui.%16phN\n", ids->nguid); in wwid_show()
63 if (memchr_inv(ids->eui64, 0, sizeof(ids->eui64))) in wwid_show()
64 return sysfs_emit(buf, "eui.%8phN\n", ids->eui64); in wwid_show()
82 return sysfs_emit(buf, "%pU\n", dev_to_ns_head(dev)->ids.nguid); in nguid_show()
89 struct nvme_ns_ids *ids = &dev_to_ns_head(dev)->ids; in uuid_show() local
94 if (uuid_is_null(&ids->uuid)) { in uuid_show()
[all …]
/kernel/linux/linux-5.10/Documentation/RCU/
DarrayRCU.rst62 to map from semaphore, message-queue, and shared-memory IDs to the data
65 ids->sem semaphore.
69 the remainder of the new, updates the ids->entries pointer to point to
71 Note that rcu_assign_pointer() is used to update the ids->entries pointer,
75 static int grow_ary(struct ipc_ids* ids, int newsize)
80 int size = ids->entries->size;
92 memcpy(new->p, ids->entries->p,
98 old = ids->entries;
105 rcu_assign_pointer(ids->entries, new);
127 struct kern_ipc_perm* ipc_lock(struct ipc_ids* ids, int id)
[all …]

12345678910>>...153