/kernel/linux/linux-6.6/drivers/hwtracing/coresight/ |
H A D | coresight-trace-id.c | 24 /* lock to protect id_map and cpu data */ 30 static void coresight_trace_id_dump_table(struct coresight_trace_id_map *id_map, in coresight_trace_id_dump_table() argument 33 pr_debug("%s id_map::\n", func_name); in coresight_trace_id_dump_table() 34 pr_debug("Used = %*pb\n", CORESIGHT_TRACE_IDS_MAX, id_map->used_ids); in coresight_trace_id_dump_table() 35 pr_debug("Pend = %*pb\n", CORESIGHT_TRACE_IDS_MAX, id_map->pend_rel_ids); in coresight_trace_id_dump_table() 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 !test_bit(preferred_id, id_map->used_ids)) { in coresight_trace_id_alloc_new_id() 94 id = coresight_trace_id_find_odd_id(id_map); in coresight_trace_id_alloc_new_id() 113 coresight_trace_id_free(int id, struct coresight_trace_id_map *id_map) coresight_trace_id_free() argument 122 coresight_trace_id_set_pend_rel(int id, struct coresight_trace_id_map *id_map) coresight_trace_id_set_pend_rel() argument 137 struct coresight_trace_id_map *id_map = &id_map_default; coresight_trace_id_release_all_pending() local 154 coresight_trace_id_map_get_cpu_id(int cpu, struct coresight_trace_id_map *id_map) coresight_trace_id_map_get_cpu_id() argument 198 coresight_trace_id_map_put_cpu_id(int cpu, struct coresight_trace_id_map *id_map) coresight_trace_id_map_put_cpu_id() argument 225 coresight_trace_id_map_get_system_id(struct coresight_trace_id_map *id_map) coresight_trace_id_map_get_system_id() argument 240 coresight_trace_id_map_put_system_id(struct coresight_trace_id_map *id_map, int id) coresight_trace_id_map_put_system_id() argument [all...] |
/kernel/linux/linux-5.10/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_simple_get(id_map, cport_id, cport_id + 1, 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_simple_remove(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_simple_get(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_simple_get(id_map, ida_start, ida_end, GFP_KERNEL); in es2_cport_allocate()
|
/kernel/linux/linux-6.6/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_simple_get(id_map, cport_id, cport_id + 1, 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_simple_remove(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_simple_get(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_simple_get(id_map, ida_start, ida_end, GFP_KERNEL); in es2_cport_allocate()
|
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 310 char id_map[4096]; in change_idmaps() local 319 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid()); in change_idmaps() 320 ret = write_id_mapping(UID_MAP, pid, id_map, strlen(id_map)); in change_idmaps() 325 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid()); in change_idmaps() 326 ret = write_id_mapping(GID_MAP, pid, id_map, strlen(id_map)); in change_idmaps()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | fw-management.c | 30 struct ida id_map; member 68 ida_destroy(&fw_mgmt->id_map); in fw_mgmt_kref_release() 165 ret = ida_simple_get(&fw_mgmt->id_map, 1, 256, GFP_KERNEL); in fw_mgmt_load_and_validate_operation() 180 ida_simple_remove(&fw_mgmt->id_map, in fw_mgmt_load_and_validate_operation() 220 ida_simple_remove(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); in fw_mgmt_interface_fw_loaded_operation() 316 ret = ida_simple_get(&fw_mgmt->id_map, 1, 256, GFP_KERNEL); in fw_mgmt_backend_fw_update_operation() 330 ida_simple_remove(&fw_mgmt->id_map, in fw_mgmt_backend_fw_update_operation() 369 ida_simple_remove(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); in fw_mgmt_backend_fw_updated_operation() 605 ida_init(&fw_mgmt->id_map); in gb_fw_mgmt_connection_init()
|
H A D | fw-download.c | 40 struct ida id_map; member 66 ida_simple_remove(&fw_req->fw_download->id_map, in fw_req_release() 174 ret = ida_simple_get(&fw_download->id_map, 1, 256, GFP_KERNEL); in find_firmware() 215 ida_simple_remove(&fw_download->id_map, fw_req->firmware_id); in find_firmware() 419 ida_init(&fw_download->id_map); in gb_fw_download_connection_init() 431 ida_destroy(&fw_download->id_map); in gb_fw_download_connection_init() 464 ida_destroy(&fw_download->id_map); in gb_fw_download_connection_exit()
|
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | fw-management.c | 30 struct ida id_map; member 68 ida_destroy(&fw_mgmt->id_map); in fw_mgmt_kref_release() 165 ret = ida_simple_get(&fw_mgmt->id_map, 1, 256, GFP_KERNEL); in fw_mgmt_load_and_validate_operation() 180 ida_simple_remove(&fw_mgmt->id_map, in fw_mgmt_load_and_validate_operation() 220 ida_simple_remove(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); in fw_mgmt_interface_fw_loaded_operation() 316 ret = ida_simple_get(&fw_mgmt->id_map, 1, 256, GFP_KERNEL); in fw_mgmt_backend_fw_update_operation() 330 ida_simple_remove(&fw_mgmt->id_map, in fw_mgmt_backend_fw_update_operation() 369 ida_simple_remove(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); in fw_mgmt_backend_fw_updated_operation() 605 ida_init(&fw_mgmt->id_map); in gb_fw_mgmt_connection_init()
|
H A D | fw-download.c | 40 struct ida id_map; member 66 ida_simple_remove(&fw_req->fw_download->id_map, in fw_req_release() 174 ret = ida_simple_get(&fw_download->id_map, 1, 256, GFP_KERNEL); in find_firmware() 215 ida_simple_remove(&fw_download->id_map, fw_req->firmware_id); in find_firmware() 419 ida_init(&fw_download->id_map); in gb_fw_download_connection_init() 431 ida_destroy(&fw_download->id_map); in gb_fw_download_connection_init() 464 ida_destroy(&fw_download->id_map); in gb_fw_download_connection_exit()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/crypto/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() 252 id_map[accel_dev->accel_id] = 0; in adf_devmgr_rm_dev()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/kernel/sched/rtg/ |
H A D | frame_rtg.c | 17 .id_map = {0}, 135 id_offset = find_next_zero_bit(g_id_manager.id_map, MULTI_FRAME_NUM, in alloc_rtg_id() 138 id_offset = find_first_zero_bit(g_id_manager.id_map, in alloc_rtg_id() 146 set_bit(id_offset, g_id_manager.id_map); in alloc_rtg_id() 167 clear_bit(id_offset, g_id_manager.id_map); in free_rtg_id() 229 if (!test_bit(id - MULTI_FRAME_ID, g_id_manager.id_map)) { in release_multi_frame_info() 242 bitmap_zero(g_id_manager.id_map, MULTI_FRAME_NUM); in clear_multi_frame_info() 255 if (test_bit(id - MULTI_FRAME_ID, g_id_manager.id_map)) in rtg_active_multi_frame_info() 324 if (test_bit(i - MULTI_FRAME_ID, g_id_manager.id_map)) { in list_rtg_group() 345 if (test_bit(i - MULTI_FRAME_ID, g_id_manager.id_map)) { in search_rtg() [all...] |
H A D | frame_rtg.h | 71 DECLARE_BITMAP(id_map, MULTI_FRAME_NUM);
|
/kernel/linux/linux-6.6/kernel/sched/rtg/ |
H A D | frame_rtg.c | 17 .id_map = {0}, 135 id_offset = find_next_zero_bit(g_id_manager.id_map, MULTI_FRAME_NUM, in alloc_rtg_id() 138 id_offset = find_first_zero_bit(g_id_manager.id_map, in alloc_rtg_id() 146 set_bit(id_offset, g_id_manager.id_map); in alloc_rtg_id() 167 clear_bit(id_offset, g_id_manager.id_map); in free_rtg_id() 229 if (!test_bit(id - MULTI_FRAME_ID, g_id_manager.id_map)) { in release_multi_frame_info() 242 bitmap_zero(g_id_manager.id_map, MULTI_FRAME_NUM); in clear_multi_frame_info() 255 if (test_bit(id - MULTI_FRAME_ID, g_id_manager.id_map)) in rtg_active_multi_frame_info() 324 if (test_bit(i - MULTI_FRAME_ID, g_id_manager.id_map)) { in list_rtg_group() 345 if (test_bit(i - MULTI_FRAME_ID, g_id_manager.id_map)) { in search_rtg() [all...] |
H A D | frame_rtg.h | 72 DECLARE_BITMAP(id_map, MULTI_FRAME_NUM);
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | linker.c | 2220 int *id_map = ctx; in remap_type_id() local 2221 int new_id = id_map[*type_id]; in remap_type_id() 2229 *type_id = id_map[*type_id]; in remap_type_id()
|