Symbol: id_map
drivers/crypto/intel/qat/qat_common/adf_dev_mgr.c
108
if (!id_map[i]) {
drivers/crypto/intel/qat/qat_common/adf_dev_mgr.c
109
id_map[i] = 1;
drivers/crypto/intel/qat/qat_common/adf_dev_mgr.c
12
static u8 id_map[ADF_MAX_DEVICES];
drivers/crypto/intel/qat/qat_common/adf_dev_mgr.c
241
id_map[accel_dev->accel_id] = 0;
drivers/crypto/intel/qat/qat_common/adf_dev_mgr.c
64
id_map[map->id] = 0;
drivers/greybus/es2.c
492
struct ida *id_map = &hd->cport_id_map;
drivers/greybus/es2.c
525
return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL);
drivers/greybus/hd.c
50
struct ida *id_map = &hd->cport_id_map;
drivers/greybus/hd.c
53
ret = ida_alloc_range(id_map, cport_id, cport_id, GFP_KERNEL);
drivers/greybus/hd.c
65
struct ida *id_map = &hd->cport_id_map;
drivers/greybus/hd.c
67
ida_free(id_map, cport_id);
drivers/greybus/hd.c
75
struct ida *id_map = &hd->cport_id_map;
drivers/greybus/hd.c
92
return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL);
drivers/hwtracing/coresight/coresight-trace-id.c
107
id = find_next_zero_bit(id_map->used_ids, CORESIGHT_TRACE_ID_RES_TOP, 1);
drivers/hwtracing/coresight/coresight-trace-id.c
113
set_bit(id, id_map->used_ids);
drivers/hwtracing/coresight/coresight-trace-id.c
117
static void coresight_trace_id_free(int id, struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
121
if (WARN(!test_bit(id, id_map->used_ids), "Freeing unused ID %d\n", id))
drivers/hwtracing/coresight/coresight-trace-id.c
123
clear_bit(id, id_map->used_ids);
drivers/hwtracing/coresight/coresight-trace-id.c
129
static void coresight_trace_id_release_all(struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
134
raw_spin_lock_irqsave(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
135
bitmap_zero(id_map->used_ids, CORESIGHT_TRACE_IDS_MAX);
drivers/hwtracing/coresight/coresight-trace-id.c
137
atomic_set(per_cpu_ptr(id_map->cpu_map, cpu), 0);
drivers/hwtracing/coresight/coresight-trace-id.c
138
raw_spin_unlock_irqrestore(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
139
DUMP_ID_MAP(id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
142
static int _coresight_trace_id_get_cpu_id(int cpu, struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
147
raw_spin_lock_irqsave(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
150
id = _coresight_trace_id_read_cpu_id(cpu, id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
164
id = coresight_trace_id_alloc_new_id(id_map,
drivers/hwtracing/coresight/coresight-trace-id.c
171
atomic_set(per_cpu_ptr(id_map->cpu_map, cpu), id);
drivers/hwtracing/coresight/coresight-trace-id.c
174
raw_spin_unlock_irqrestore(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
177
DUMP_ID_MAP(id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
181
static void _coresight_trace_id_put_cpu_id(int cpu, struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
187
id = _coresight_trace_id_read_cpu_id(cpu, id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
191
raw_spin_lock_irqsave(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
193
coresight_trace_id_free(id, id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
194
atomic_set(per_cpu_ptr(id_map->cpu_map, cpu), 0);
drivers/hwtracing/coresight/coresight-trace-id.c
196
raw_spin_unlock_irqrestore(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
198
DUMP_ID_MAP(id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
201
static int coresight_trace_id_map_get_system_id(struct coresight_trace_id_map *id_map,
drivers/hwtracing/coresight/coresight-trace-id.c
207
raw_spin_lock_irqsave(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
208
id = coresight_trace_id_alloc_new_id(id_map, preferred_id, traceid_flags);
drivers/hwtracing/coresight/coresight-trace-id.c
209
raw_spin_unlock_irqrestore(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
212
DUMP_ID_MAP(id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
216
static void coresight_trace_id_map_put_system_id(struct coresight_trace_id_map *id_map, int id)
drivers/hwtracing/coresight/coresight-trace-id.c
220
raw_spin_lock_irqsave(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
221
coresight_trace_id_free(id, id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
222
raw_spin_unlock_irqrestore(&id_map->lock, flags);
drivers/hwtracing/coresight/coresight-trace-id.c
225
DUMP_ID_MAP(id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
236
int coresight_trace_id_get_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
238
return _coresight_trace_id_get_cpu_id(cpu, id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
248
void coresight_trace_id_put_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
250
_coresight_trace_id_put_cpu_id(cpu, id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
260
int coresight_trace_id_read_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
262
return _coresight_trace_id_read_cpu_id(cpu, id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
287
void coresight_trace_id_perf_start(struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
289
atomic_inc(&id_map->perf_cs_etm_session_active);
drivers/hwtracing/coresight/coresight-trace-id.c
290
PERF_SESSION(atomic_read(&id_map->perf_cs_etm_session_active));
drivers/hwtracing/coresight/coresight-trace-id.c
294
void coresight_trace_id_perf_stop(struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
296
if (!atomic_dec_return(&id_map->perf_cs_etm_session_active))
drivers/hwtracing/coresight/coresight-trace-id.c
297
coresight_trace_id_release_all(id_map);
drivers/hwtracing/coresight/coresight-trace-id.c
298
PERF_SESSION(atomic_read(&id_map->perf_cs_etm_session_active));
drivers/hwtracing/coresight/coresight-trace-id.c
31
static void coresight_trace_id_dump_table(struct coresight_trace_id_map *id_map,
drivers/hwtracing/coresight/coresight-trace-id.c
35
pr_debug("Used = %*pb\n", CORESIGHT_TRACE_IDS_MAX, id_map->used_ids);
drivers/hwtracing/coresight/coresight-trace-id.c
49
static int _coresight_trace_id_read_cpu_id(int cpu, struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
51
return atomic_read(per_cpu_ptr(id_map->cpu_map, cpu));
drivers/hwtracing/coresight/coresight-trace-id.c
55
static int coresight_trace_id_find_odd_id(struct coresight_trace_id_map *id_map)
drivers/hwtracing/coresight/coresight-trace-id.c
64
next_id = find_next_zero_bit(id_map->used_ids,
drivers/hwtracing/coresight/coresight-trace-id.c
82
static int coresight_trace_id_alloc_new_id(struct coresight_trace_id_map *id_map,
drivers/hwtracing/coresight/coresight-trace-id.c
89
if (!test_bit(preferred_id, id_map->used_ids)) {
drivers/hwtracing/coresight/coresight-trace-id.c
96
id = coresight_trace_id_find_odd_id(id_map);
drivers/hwtracing/coresight/coresight-trace-id.h
106
int coresight_trace_id_read_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map);
drivers/hwtracing/coresight/coresight-trace-id.h
149
void coresight_trace_id_perf_start(struct coresight_trace_id_map *id_map);
drivers/hwtracing/coresight/coresight-trace-id.h
157
void coresight_trace_id_perf_stop(struct coresight_trace_id_map *id_map);
drivers/hwtracing/coresight/coresight-trace-id.h
65
int coresight_trace_id_get_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map);
drivers/hwtracing/coresight/coresight-trace-id.h
80
void coresight_trace_id_put_cpu_id_map(int cpu, struct coresight_trace_id_map *id_map);
drivers/staging/greybus/fw-download.c
173
ret = ida_alloc_range(&fw_download->id_map, 1, 255, GFP_KERNEL);
drivers/staging/greybus/fw-download.c
214
ida_free(&fw_download->id_map, fw_req->firmware_id);
drivers/staging/greybus/fw-download.c
40
struct ida id_map;
drivers/staging/greybus/fw-download.c
418
ida_init(&fw_download->id_map);
drivers/staging/greybus/fw-download.c
430
ida_destroy(&fw_download->id_map);
drivers/staging/greybus/fw-download.c
463
ida_destroy(&fw_download->id_map);
drivers/staging/greybus/fw-download.c
66
ida_free(&fw_req->fw_download->id_map, fw_req->firmware_id);
drivers/staging/greybus/fw-management.c
159
ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL);
drivers/staging/greybus/fw-management.c
174
ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id);
drivers/staging/greybus/fw-management.c
213
ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id);
drivers/staging/greybus/fw-management.c
30
struct ida id_map;
drivers/staging/greybus/fw-management.c
302
ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL);
drivers/staging/greybus/fw-management.c
316
ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id);
drivers/staging/greybus/fw-management.c
354
ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id);
drivers/staging/greybus/fw-management.c
590
ida_init(&fw_mgmt->id_map);
drivers/staging/greybus/fw-management.c
71
ida_destroy(&fw_mgmt->id_map);
tools/bpf/resolve_btfids/main.c
1266
__u32 *permute_ids = NULL, *id_map = NULL;
tools/bpf/resolve_btfids/main.c
1280
id_map = calloc(nr_types, sizeof(*id_map));
tools/bpf/resolve_btfids/main.c
1281
if (!id_map) {
tools/bpf/resolve_btfids/main.c
1294
id_map[id] = i + start_id;
tools/bpf/resolve_btfids/main.c
1297
err = btf__permute(btf, id_map, nr_types, NULL);
tools/bpf/resolve_btfids/main.c
1303
free(id_map);
tools/lib/bpf/btf.c
5923
int *id_map;
tools/lib/bpf/btf.c
5948
if (dist->id_map[*id] > 0)
tools/lib/bpf/btf.c
5971
dist->id_map[*id] = *id;
tools/lib/bpf/btf.c
6009
if (!dist->id_map[i])
tools/lib/bpf/btf.c
6079
dist->id_map[i] = id++;
tools/lib/bpf/btf.c
6100
if (dist->id_map[*id])
tools/lib/bpf/btf.c
6101
*id = dist->id_map[*id];
tools/lib/bpf/btf.c
6145
dist.id_map = calloc(n, sizeof(*dist.id_map));
tools/lib/bpf/btf.c
6146
if (!dist.id_map) {
tools/lib/bpf/btf.c
6212
free(dist.id_map);
tools/lib/bpf/btf.c
6248
__u32 *id_map;
tools/lib/bpf/btf.c
6265
*type_id = p->id_map[new_id - p->btf->start_id + p->start_offs];
tools/lib/bpf/btf.c
6269
int btf__permute(struct btf *btf, __u32 *id_map, __u32 id_map_cnt,
tools/lib/bpf/btf.c
6285
if (id_map[0] != 0)
tools/lib/bpf/btf.c
6295
order_map = calloc(id_map_cnt, sizeof(*id_map));
tools/lib/bpf/btf.c
6312
id = id_map[i];
tools/lib/bpf/btf.c
6327
p.id_map = id_map;
tools/lib/bpf/btf.h
343
LIBBPF_API int btf__permute(struct btf *btf, __u32 *id_map, __u32 id_map_cnt,
tools/lib/bpf/btf_relocate.c
168
r->id_map[next_id] = BTF_IS_EMBEDDED;
tools/lib/bpf/btf_relocate.c
335
if (r->id_map[dist_info->id] == BTF_IS_EMBEDDED &&
tools/lib/bpf/btf_relocate.c
342
if (r->id_map[dist_info->id] &&
tools/lib/bpf/btf_relocate.c
343
r->id_map[dist_info->id] != BTF_IS_EMBEDDED) {
tools/lib/bpf/btf_relocate.c
354
base_t->size, id, r->id_map[dist_info->id]);
tools/lib/bpf/btf_relocate.c
359
r->id_map[dist_info->id] = id;
tools/lib/bpf/btf_relocate.c
367
if (r->id_map[id] && r->id_map[id] != BTF_IS_EMBEDDED)
tools/lib/bpf/btf_relocate.c
444
int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map)
tools/lib/bpf/btf_relocate.c
463
r.id_map = calloc(nr_types, sizeof(*r.id_map));
tools/lib/bpf/btf_relocate.c
469
if (!r.id_map || !r.str_map) {
tools/lib/bpf/btf_relocate.c
47
__u32 *id_map;
tools/lib/bpf/btf_relocate.c
483
r.id_map[id] = id + r.nr_base_types - r.nr_dist_base_types;
tools/lib/bpf/btf_relocate.c
511
if (id_map) {
tools/lib/bpf/btf_relocate.c
512
*id_map = r.id_map;
tools/lib/bpf/btf_relocate.c
513
r.id_map = NULL;
tools/lib/bpf/btf_relocate.c
516
free(r.id_map);
tools/lib/bpf/btf_relocate.c
78
*id = r->id_map[*id];
tools/lib/bpf/libbpf_internal.h
252
int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
329
char id_map[4096];
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
338
snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid());
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
339
ret = write_id_mapping(UID_MAP, pid, id_map, strlen(id_map));
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
344
snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid());
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
345
ret = write_id_mapping(GID_MAP, pid, id_map, strlen(id_map));
tools/testing/selftests/filesystems/utils.c
251
struct id_map *map = iterator->elem;
tools/testing/selftests/filesystems/utils.c
310
struct id_map uid_map = {
tools/testing/selftests/filesystems/utils.c
316
struct id_map gid_map = {
tools/testing/selftests/filesystems/utils.c
404
ret = map_ids_from_idmap(&h->id_map, pid);
tools/testing/selftests/filesystems/utils.c
411
if (!list_empty(&h->id_map))
tools/testing/selftests/filesystems/utils.c
79
struct list id_map;