Home
last modified time | relevance | path

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

/drivers/hwtracing/coresight/
Dcoresight-trace-id.c30 static void coresight_trace_id_dump_table(struct coresight_trace_id_map *id_map, in coresight_trace_id_dump_table() argument
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()
103 id = find_next_zero_bit(id_map->used_ids, CORESIGHT_TRACE_ID_RES_TOP, 1); in coresight_trace_id_alloc_new_id()
109 set_bit(id, id_map->used_ids); in coresight_trace_id_alloc_new_id()
[all …]
/drivers/greybus/
Dhd.c50 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()
Des2.c492 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()
/drivers/staging/greybus/
Dfw-management.c30 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()
Dfw-download.c40 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()
/drivers/crypto/intel/qat/qat_common/
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()