Home
last modified time | relevance | path

Searched refs:id_map (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/hwtracing/coresight/
H A Dcoresight-trace-id.c31 static void coresight_trace_id_dump_table(struct coresight_trace_id_map *id_map, in coresight_trace_id_dump_table() argument
34 pr_debug("%s id_map::\n", func_name); in coresight_trace_id_dump_table()
35 pr_debug("Used = %*pb\n", CORESIGHT_TRACE_IDS_MAX, id_map->used_ids); in coresight_trace_id_dump_table()
49 static int _coresight_trace_id_read_cpu_id(int cpu, struct coresight_trace_id_map *id_map) in _coresight_trace_id_read_cpu_id() argument
51 return atomic_read(per_cpu_ptr(id_map->cpu_map, cpu)); in _coresight_trace_id_read_cpu_id()
55 static int coresight_trace_id_find_odd_id(struct coresight_trace_id_map *id_map) in coresight_trace_id_find_odd_id() argument
64 next_id = find_next_zero_bit(id_map->used_ids, in coresight_trace_id_find_odd_id()
82 static int coresight_trace_id_alloc_new_id(struct coresight_trace_id_map *id_map, in coresight_trace_id_alloc_new_id() argument
89 if (!test_bit(preferred_id, id_map->used_ids)) { in coresight_trace_id_alloc_new_id()
96 id = coresight_trace_id_find_odd_id(id_map); in coresight_trace_id_alloc_new_id()
117 coresight_trace_id_free(int id,struct coresight_trace_id_map * id_map) coresight_trace_id_free() argument
129 coresight_trace_id_release_all(struct coresight_trace_id_map * id_map) coresight_trace_id_release_all() argument
142 _coresight_trace_id_get_cpu_id(int cpu,struct coresight_trace_id_map * id_map) _coresight_trace_id_get_cpu_id() argument
181 _coresight_trace_id_put_cpu_id(int cpu,struct coresight_trace_id_map * id_map) _coresight_trace_id_put_cpu_id() argument
201 coresight_trace_id_map_get_system_id(struct coresight_trace_id_map * id_map,int preferred_id,unsigned int traceid_flags) coresight_trace_id_map_get_system_id() argument
216 coresight_trace_id_map_put_system_id(struct coresight_trace_id_map * id_map,int id) coresight_trace_id_map_put_system_id() argument
236 coresight_trace_id_get_cpu_id_map(int cpu,struct coresight_trace_id_map * id_map) coresight_trace_id_get_cpu_id_map() argument
248 coresight_trace_id_put_cpu_id_map(int cpu,struct coresight_trace_id_map * id_map) coresight_trace_id_put_cpu_id_map() argument
260 coresight_trace_id_read_cpu_id_map(int cpu,struct coresight_trace_id_map * id_map) coresight_trace_id_read_cpu_id_map() argument
287 coresight_trace_id_perf_start(struct coresight_trace_id_map * id_map) coresight_trace_id_perf_start() argument
294 coresight_trace_id_perf_stop(struct coresight_trace_id_map * id_map) coresight_trace_id_perf_stop() argument
[all...]
H A Dcoresight-trace-id.h65 int coresight_trace_id_get_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map);
80 void coresight_trace_id_put_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map);
106 int coresight_trace_id_read_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map);
149 void coresight_trace_id_perf_start(struct coresight_trace_id_map *id_map);
157 void coresight_trace_id_perf_stop(struct coresight_trace_id_map *id_map);
/linux/tools/lib/bpf/
H A Dbtf_relocate.c47 __u32 *id_map; member
51 /* Set temporarily in relocation id_map if distilled base struct/union is
78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id()
127 * struct/union, mark that struct/union id temporarily in the id_map
168 r->id_map[next_id] = BTF_IS_EMBEDDED; in btf_mark_embedded_composite_type_ids()
211 * in id_map with BTF_IS_EMBEDDED; this signals that these types in btf_relocate_map_distilled_base()
335 if (r->id_map[dist_info->id] == BTF_IS_EMBEDDED && in btf_relocate_map_distilled_base()
342 if (r->id_map[dist_info->id] && in btf_relocate_map_distilled_base()
343 r->id_map[dist_info->id] != BTF_IS_EMBEDDED) { in btf_relocate_map_distilled_base()
354 base_t->size, id, r->id_map[dist_inf in btf_relocate_map_distilled_base()
444 btf_relocate(struct btf * btf,const struct btf * base_btf,__u32 ** id_map) btf_relocate() argument
[all...]
H A Dbtf.c5511 int *id_map; member
5536 if (dist->id_map[*id] > 0) in btf_add_distilled_type_ids()
5559 dist->id_map[*id] = *id; in btf_add_distilled_type_ids()
5597 if (!dist->id_map[i]) in btf_add_distilled_types()
5667 dist->id_map[i] = id++; in btf_add_distilled_types()
5688 if (dist->id_map[*id]) in btf_update_distilled_type_ids()
5689 *id = dist->id_map[*id]; in btf_update_distilled_type_ids()
5733 dist.id_map = calloc(n, sizeof(*dist.id_map)); in btf__distill_base()
5734 if (!dist.id_map) { in btf__distill_base()
[all...]
H A Dlibbpf_internal.h240 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map);
/linux/drivers/greybus/
H A Dhd.c50 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_reserve() local
53 ret = ida_alloc_range(id_map, cport_id, cport_id, GFP_KERNEL); in gb_hd_cport_reserve()
65 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_release_reserved() local
67 ida_free(id_map, cport_id); in gb_hd_cport_release_reserved()
75 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_allocate() local
92 return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL); in gb_hd_cport_allocate()
H A Des2.c492 struct ida *id_map = &hd->cport_id_map; in es2_cport_allocate() local
525 return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL); in es2_cport_allocate()
/linux/tools/testing/selftests/filesystems/
H A Dutils.c62 struct id_map { struct
79 struct list id_map; member
251 struct id_map *map = iterator->elem; in map_ids_from_idmap()
261 * /proc/<pid>/{g,u}id_map in map_ids_from_idmap()
310 struct id_map uid_map = { in get_userns_fd()
316 struct id_map gid_map = { in get_userns_fd()
404 ret = map_ids_from_idmap(&h->id_map, pid); in create_userns_hierarchy()
411 if (!list_empty(&h->id_map)) in create_userns_hierarchy()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_dev_mgr.c12 static u8 id_map[ADF_MAX_DEVICES]; variable
77 id_map[map->id] = 0; in adf_clean_vf_map()
121 if (!id_map[i]) { in adf_find_free_id()
122 id_map[i] = 1; in adf_find_free_id()
254 id_map[accel_dev->accel_id] = 0; in adf_devmgr_rm_dev()