| /linux-6.15/drivers/hwtracing/coresight/ |
| H A D | coresight-trace-id.c | 113 set_bit(id, id_map->used_ids); in coresight_trace_id_alloc_new_id() 123 clear_bit(id, id_map->used_ids); in coresight_trace_id_free() 134 raw_spin_lock_irqsave(&id_map->lock, flags); in coresight_trace_id_release_all() 139 DUMP_ID_MAP(id_map); in coresight_trace_id_release_all() 177 DUMP_ID_MAP(id_map); in _coresight_trace_id_get_cpu_id() 193 coresight_trace_id_free(id, id_map); in _coresight_trace_id_put_cpu_id() 198 DUMP_ID_MAP(id_map); in _coresight_trace_id_put_cpu_id() 212 DUMP_ID_MAP(id_map); in coresight_trace_id_map_get_system_id() 221 coresight_trace_id_free(id, id_map); in coresight_trace_id_map_put_system_id() 225 DUMP_ID_MAP(id_map); in coresight_trace_id_map_put_system_id() [all …]
|
| H A D | coresight-trace-id.h | 65 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-6.15/tools/lib/bpf/ |
| H A D | btf_relocate.c | 47 __u32 *id_map; member 78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id() 342 if (r->id_map[dist_info->id] && in btf_relocate_map_distilled_base() 359 r->id_map[dist_info->id] = id; in btf_relocate_map_distilled_base() 367 if (r->id_map[id] && r->id_map[id] != BTF_IS_EMBEDDED) in btf_relocate_map_distilled_base() 463 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate() 469 if (!r.id_map || !r.str_map) { in btf_relocate() 511 if (id_map) { in btf_relocate() 512 *id_map = r.id_map; in btf_relocate() 513 r.id_map = NULL; in btf_relocate() [all …]
|
| H A D | btf.c | 5395 int *id_map; member 5420 if (dist->id_map[*id] > 0) in btf_add_distilled_type_ids() 5443 dist->id_map[*id] = *id; in btf_add_distilled_type_ids() 5481 if (!dist->id_map[i]) in btf_add_distilled_types() 5551 dist->id_map[i] = id++; in btf_add_distilled_types() 5572 if (dist->id_map[*id]) in btf_update_distilled_type_ids() 5573 *id = dist->id_map[*id]; in btf_update_distilled_type_ids() 5617 dist.id_map = calloc(n, sizeof(*dist.id_map)); in btf__distill_base() 5618 if (!dist.id_map) { in btf__distill_base() 5684 free(dist.id_map); in btf__distill_base()
|
| H A D | libbpf_internal.h | 240 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map);
|
| /linux-6.15/drivers/greybus/ |
| H A D | hd.c | 50 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 D | es2.c | 492 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-6.15/tools/testing/selftests/filesystems/binderfs/ |
| H A D | binderfs_test.c | 328 char id_map[4096]; in change_idmaps() local 337 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid()); in change_idmaps() 338 ret = write_id_mapping(UID_MAP, pid, id_map, strlen(id_map)); in change_idmaps() 343 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid()); in change_idmaps() 344 ret = write_id_mapping(GID_MAP, pid, id_map, strlen(id_map)); in change_idmaps()
|
| /linux-6.15/drivers/staging/greybus/ |
| H A D | fw-download.c | 40 struct ida id_map; member 66 ida_free(&fw_req->fw_download->id_map, fw_req->firmware_id); in fw_req_release() 173 ret = ida_alloc_range(&fw_download->id_map, 1, 255, GFP_KERNEL); in find_firmware() 214 ida_free(&fw_download->id_map, fw_req->firmware_id); in find_firmware() 418 ida_init(&fw_download->id_map); in gb_fw_download_connection_init() 430 ida_destroy(&fw_download->id_map); in gb_fw_download_connection_init() 463 ida_destroy(&fw_download->id_map); in gb_fw_download_connection_exit()
|
| H A D | fw-management.c | 30 struct ida id_map; member 71 ida_destroy(&fw_mgmt->id_map); in fw_mgmt_kref_release() 167 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); in fw_mgmt_load_and_validate_operation() 182 ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); in fw_mgmt_load_and_validate_operation() 221 ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); in fw_mgmt_interface_fw_loaded_operation() 316 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); in fw_mgmt_backend_fw_update_operation() 330 ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); in fw_mgmt_backend_fw_update_operation() 368 ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); in fw_mgmt_backend_fw_updated_operation() 604 ida_init(&fw_mgmt->id_map); in gb_fw_mgmt_connection_init()
|
| /linux-6.15/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 59 struct id_map { struct 76 struct list id_map; argument 248 struct id_map *map = iterator->elem; in map_ids_from_idmap() 307 struct id_map uid_map = { in get_userns_fd() 313 struct id_map gid_map = { in get_userns_fd() 401 ret = map_ids_from_idmap(&h->id_map, pid); in create_userns_hierarchy() 408 if (!list_empty(&h->id_map)) in create_userns_hierarchy()
|
| /linux-6.15/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_dev_mgr.c | 12 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()
|