Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Dbtf_relocate.c47 __u32 *id_map; member
78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id()
168 r->id_map[next_id] = BTF_IS_EMBEDDED; in btf_mark_embedded_composite_type_ids()
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_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()
444 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map) in btf_relocate() argument
[all …]
H A Dlibbpf_internal.h252 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/binderfs/
H A Dbinderfs_test.c329 char id_map[4096]; in change_idmaps() local
338 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid()); in change_idmaps()
339 ret = write_id_mapping(UID_MAP, pid, id_map, strlen(id_map)); in change_idmaps()
344 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid()); in change_idmaps()
345 ret = write_id_mapping(GID_MAP, pid, id_map, strlen(id_map)); in change_idmaps()
/linux/drivers/staging/greybus/
H A Dfw-management.c30 struct ida id_map; member
71 ida_destroy(&fw_mgmt->id_map); in fw_mgmt_kref_release()
159 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); in fw_mgmt_load_and_validate_operation()
174 ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); in fw_mgmt_load_and_validate_operation()
213 ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); in fw_mgmt_interface_fw_loaded_operation()
302 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); in fw_mgmt_backend_fw_update_operation()
316 ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); in fw_mgmt_backend_fw_update_operation()
354 ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); in fw_mgmt_backend_fw_updated_operation()
590 ida_init(&fw_mgmt->id_map); in gb_fw_mgmt_connection_init()
H A Dfw-download.c40 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()
/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()