Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 25 of 487) sorted by relevance

12345678910>>...20

/linux-6.1.9/tools/perf/util/
Dexpr.y23 struct ids {
28 struct hashmap *ids;
37 } ids;
52 %type <ids> expr if_expr
53 %destructor { ids__free($$.ids); } <ids>
77 static struct ids union_expr(struct ids ids1, struct ids ids2)
79 struct ids result = {
81 .ids = ids__union(ids1.ids, ids2.ids),
86 static struct ids handle_id(struct expr_parse_ctx *ctx, char *id,
89 struct ids result;
[all …]
Dexpr.c78 void ids__free(struct hashmap *ids) in ids__free() argument
83 if (ids == NULL) in ids__free()
86 hashmap__for_each_entry(ids, cur, bkt) { in ids__free()
91 hashmap__free(ids); in ids__free()
94 int ids__insert(struct hashmap *ids, const char *id) in ids__insert() argument
100 ret = hashmap__set(ids, id, data_ptr, in ids__insert()
148 return ids__insert(ctx->ids, id); in expr__add_id()
172 ret = hashmap__set(ctx->ids, id, data_ptr, in expr__add_id_val_source_count()
208 ret = hashmap__set(ctx->ids, name, data_ptr, in expr__add_ref()
224 return hashmap__find(ctx->ids, id, (void **)data) ? 0 : -1; in expr__get_id()
[all …]
Dexpr.h20 struct hashmap *ids; member
27 void ids__free(struct hashmap *ids);
28 int ids__insert(struct hashmap *ids, const char *id);
56 struct expr_parse_ctx *ids);
/linux-6.1.9/ipc/
Dutil.c76 int ids; member
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()
122 ids->max_idx = -1; in ipc_init_ids()
123 ids->last_idx = -1; in ipc_init_ids()
125 ids->next_id = -1; in ipc_init_ids()
[all …]
Dipc_sysctl.c154 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id,
155 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id),
163 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id,
164 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id),
172 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id,
173 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id),
200 if (((table->data == &ns->ids[IPC_SEM_IDS].next_id) || in ipc_permissions()
201 (table->data == &ns->ids[IPC_MSG_IDS].next_id) || in ipc_permissions()
202 (table->data == &ns->ids[IPC_SHM_IDS].next_id)) && in ipc_permissions()
249 else if (tbl[i].data == &init_ipc_ns.ids[IPC_SEM_IDS].next_id) in setup_ipc_sysctls()
[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
153 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument
155 if (ids->in_use == 0) in ipc_get_maxidx()
158 if (ids->in_use == ipc_mni) in ipc_get_maxidx()
161 return ids->max_idx; in ipc_get_maxidx()
177 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);
183 struct ipc_ids *ids, int id, int cmd,
243 struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id);
[all …]
/linux-6.1.9/drivers/dio/
Ddio-driver.c29 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()
42 ids++; in dio_match_device()
[all …]
/linux-6.1.9/net/openvswitch/
Dvport.c338 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument
342 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids()
347 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids()
352 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids()
354 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids()
380 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local
382 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids()
386 ids->n_ids * sizeof(u32), (void *)ids->ids); in ovs_vport_get_upcall_portids()
388 return nla_put_u32(skb, OVS_VPORT_ATTR_UPCALL_PID, ids->ids[0]); in ovs_vport_get_upcall_portids()
405 struct vport_portids *ids; in ovs_vport_find_upcall_portid() local
[all …]
/linux-6.1.9/tools/perf/tests/
Dexpr.c132 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3); in test__expr()
133 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", in test__expr()
135 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", in test__expr()
137 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", in test__expr()
145 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr()
146 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", in test__expr()
148 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", in test__expr()
155 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr()
156 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event1", in test__expr()
158 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event2", in test__expr()
[all …]
/linux-6.1.9/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 …]
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-6.1.9/drivers/zorro/
Dzorro-driver.c32 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()
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-6.1.9/arch/arm/boot/dts/
Dimx28.dtsi222 fsl,pinmux-ids = <
233 fsl,pinmux-ids = <
244 fsl,pinmux-ids = <
257 fsl,pinmux-ids = <
281 fsl,pinmux-ids = <
291 fsl,pinmux-ids = <
304 fsl,pinmux-ids = <
315 fsl,pinmux-ids = <
328 fsl,pinmux-ids = <
339 fsl,pinmux-ids = <
[all …]
Dimx23.dtsi146 fsl,pinmux-ids = <
157 fsl,pinmux-ids = <
170 fsl,pinmux-ids = <
181 fsl,pinmux-ids = <
192 fsl,pinmux-ids = <
218 fsl,pinmux-ids = <
228 fsl,pinmux-ids = <
243 fsl,pinmux-ids = <
263 fsl,pinmux-ids = <
272 fsl,pinmux-ids = <
[all …]
Dimx28-cfa10049.dts86 fsl,pinmux-ids = <
96 fsl,pinmux-ids = <
107 fsl,pinmux-ids = <
117 fsl,pinmux-ids = <
127 fsl,pinmux-ids = <
138 fsl,pinmux-ids = <
148 fsl,pinmux-ids = <
161 fsl,pinmux-ids = <
175 fsl,pinmux-ids = <
202 fsl,pinmux-ids = <
[all …]
Dimx28-xea.dts32 fsl,pinmux-ids = <
62 fsl,pinmux-ids = <
72 fsl,pinmux-ids = <
93 fsl,pinmux-ids = <
/linux-6.1.9/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 "
52 if (ids[0] == '\0') in pci_stub_init()
56 p = ids; in pci_stub_init()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/diag/
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()
Den_tc_tracepoint.h15 #define __parse_action(ids, num) parse_action(p, ids, num) argument
17 void put_ids_to_array(int *ids,
22 int *ids,
30 __dynamic_array(int, ids, f->rule ?
37 put_ids_to_array(__get_dynamic_array(ids),
43 __parse_action(__get_dynamic_array(ids),
/linux-6.1.9/drivers/sh/superhyway/
Dsuperhyway.c124 superhyway_match_id(const struct superhyway_device_id *ids, in superhyway_match_id() argument
127 while (ids->id) { in superhyway_match_id()
128 if (ids->id == dev->id.id) in superhyway_match_id()
129 return ids; in superhyway_match_id()
131 ids++; in superhyway_match_id()
194 const struct superhyway_device_id *ids = shyway_drv->id_table; in superhyway_bus_match() local
196 if (!ids) in superhyway_bus_match()
198 if (superhyway_match_id(ids, shyway_dev)) in superhyway_bus_match()
/linux-6.1.9/drivers/media/pci/ddbridge/
Dddbridge-main.c188 dev->link[0].ids.vendor = id->vendor; in ddb_probe()
189 dev->link[0].ids.device = id->device; in ddb_probe()
190 dev->link[0].ids.subvendor = id->subvendor; in ddb_probe()
191 dev->link[0].ids.subdevice = pdev->subsystem_device; in ddb_probe()
192 dev->link[0].ids.devid = (id->device << 16) | id->vendor; in ddb_probe()
215 dev->link[0].ids.hwid = ddbreadl(dev, 0); in ddb_probe()
216 dev->link[0].ids.regmapid = ddbreadl(dev, 4); in ddb_probe()
219 dev->link[0].ids.hwid, dev->link[0].ids.regmapid); in ddb_probe()
/linux-6.1.9/drivers/vfio/pci/
Dvfio_pci.c33 static char ids[1024] __initdata; variable
34 module_param_string(ids, ids, sizeof(ids), 0);
35 MODULE_PARM_DESC(ids, "Initial PCI IDs to add to the vfio driver, format is \"vendor:device[:subven…
208 if (ids[0] == '\0') in vfio_pci_fill_ids()
212 p = ids; in vfio_pci_fill_ids()
/linux-6.1.9/sound/soc/intel/atom/
Dsst-atom-controls.c298 const char *pipe, struct sst_ids *ids) in sst_find_and_send_pipe_algo() argument
306 list_for_each_entry(algo, &ids->algo_list, node) { in sst_find_and_send_pipe_algo()
514 static int sst_set_pipe_gain(struct sst_ids *ids,
522 struct sst_ids *ids = w->priv; in sst_send_pipe_module_params() local
525 sst_find_and_send_pipe_algo(drv, w->name, ids); in sst_send_pipe_module_params()
526 sst_set_pipe_gain(ids, drv, 0); in sst_send_pipe_module_params()
599 static int sst_set_pipe_gain(struct sst_ids *ids, in sst_set_pipe_gain() argument
607 list_for_each_entry(gain, &ids->gain_list, node) { in sst_set_pipe_gain()
628 struct sst_ids *ids = w->priv; in sst_swm_mixer_event() local
674 ids->location_id, SST_DEFAULT_MODULE_ID); in sst_swm_mixer_event()
[all …]
/linux-6.1.9/drivers/scsi/libfc/
Dfc_disc.c387 struct fc_rport_identifiers ids; in fc_disc_gpn_ft_parse() local
431 ids.port_id = ntoh24(np->fp_fid); in fc_disc_gpn_ft_parse()
432 ids.port_name = ntohll(np->fp_wwpn); in fc_disc_gpn_ft_parse()
434 if (ids.port_id != lport->port_id && in fc_disc_gpn_ft_parse()
435 ids.port_name != lport->wwpn) { in fc_disc_gpn_ft_parse()
436 rdata = fc_rport_create(lport, ids.port_id); in fc_disc_gpn_ft_parse()
438 rdata->ids.port_name = ids.port_name; in fc_disc_gpn_ft_parse()
443 "(%6.6x)\n", ids.port_id); in fc_disc_gpn_ft_parse()
601 if (rdata->ids.port_name == -1) in fc_disc_gpn_id_resp()
602 rdata->ids.port_name = port_name; in fc_disc_gpn_id_resp()
[all …]
/linux-6.1.9/drivers/mmc/core/
Dsdio_bus.c96 const struct sdio_device_id *ids; in sdio_match_device() local
98 ids = sdrv->id_table; in sdio_match_device()
100 if (ids) { in sdio_match_device()
101 while (ids->class || ids->vendor || ids->device) { in sdio_match_device()
102 if (sdio_match_one(func, ids)) in sdio_match_device()
103 return ids; in sdio_match_device()
104 ids++; in sdio_match_device()

12345678910>>...20