/linux-master/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, argument 33 pr_debug("%s id_map::\n", func_name); 34 pr_debug("Used = %*pb\n", CORESIGHT_TRACE_IDS_MAX, id_map->used_ids); 35 pr_debug("Pend = %*pb\n", CORESIGHT_TRACE_IDS_MAX, id_map->pend_rel_ids); 55 static int coresight_trace_id_find_odd_id(struct coresight_trace_id_map *id_map) argument 64 next_id = find_next_zero_bit(id_map->used_ids, 82 static int coresight_trace_id_alloc_new_id(struct coresight_trace_id_map *id_map, argument 89 !test_bit(preferred_id, id_map->used_ids)) { 94 id = coresight_trace_id_find_odd_id(id_map); 113 coresight_trace_id_free(int id, struct coresight_trace_id_map *id_map) argument 122 coresight_trace_id_set_pend_rel(int id, struct coresight_trace_id_map *id_map) argument 137 struct coresight_trace_id_map *id_map = &id_map_default; local 154 coresight_trace_id_map_get_cpu_id(int cpu, struct coresight_trace_id_map *id_map) argument 198 coresight_trace_id_map_put_cpu_id(int cpu, struct coresight_trace_id_map *id_map) argument 225 coresight_trace_id_map_get_system_id(struct coresight_trace_id_map *id_map) argument 240 coresight_trace_id_map_put_system_id(struct coresight_trace_id_map *id_map, int id) argument [all...] |
/linux-master/drivers/greybus/ |
H A D | hd.c | 50 struct ida *id_map = &hd->cport_id_map; local 53 ret = ida_alloc_range(id_map, cport_id, cport_id, GFP_KERNEL); 65 struct ida *id_map = &hd->cport_id_map; local 67 ida_free(id_map, cport_id); 75 struct ida *id_map = &hd->cport_id_map; local 92 return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL);
|
H A D | es2.c | 492 struct ida *id_map = &hd->cport_id_map; local 525 return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL);
|
/linux-master/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 328 char id_map[4096]; local 337 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid()); 338 ret = write_id_mapping(UID_MAP, pid, id_map, strlen(id_map)); 343 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid()); 344 ret = write_id_mapping(GID_MAP, pid, id_map, strlen(id_map));
|
/linux-master/drivers/staging/greybus/ |
H A D | fw-download.c | 40 struct ida id_map; member in struct:fw_download 66 ida_free(&fw_req->fw_download->id_map, fw_req->firmware_id); 173 ret = ida_alloc_range(&fw_download->id_map, 1, 255, GFP_KERNEL); 214 ida_free(&fw_download->id_map, fw_req->firmware_id); 418 ida_init(&fw_download->id_map); 430 ida_destroy(&fw_download->id_map); 463 ida_destroy(&fw_download->id_map);
|
H A D | fw-management.c | 30 struct ida id_map; member in struct:fw_mgmt 71 ida_destroy(&fw_mgmt->id_map); 168 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); 183 ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); 222 ida_free(&fw_mgmt->id_map, fw_mgmt->intf_fw_request_id); 318 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); 332 ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); 370 ida_free(&fw_mgmt->id_map, fw_mgmt->backend_fw_request_id); 606 ida_init(&fw_mgmt->id_map);
|
/linux-master/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; 121 if (!id_map[i]) { 122 id_map[i] = 1; 254 id_map[accel_dev->accel_id] = 0;
|
/linux-master/tools/lib/bpf/ |
H A D | linker.c | 2239 int *id_map = ctx; local 2240 int new_id = id_map[*type_id]; 2248 *type_id = id_map[*type_id];
|