Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/accel/habanalabs/common/
Dhabanalabs_drv.c398 int main_id, ctrl_id = 0, rc = 0; in create_hdev() local
442 main_id = idr_alloc(&hl_devs_idr, hdev, 0, HL_MAX_MINORS, GFP_KERNEL); in create_hdev()
444 if (main_id >= 0) in create_hdev()
445 ctrl_id = idr_alloc(&hl_devs_idr, hdev, main_id + 1, in create_hdev()
446 main_id + 2, GFP_KERNEL); in create_hdev()
450 if ((main_id < 0) || (ctrl_id < 0)) { in create_hdev()
451 if ((main_id == -ENOSPC) || (ctrl_id == -ENOSPC)) in create_hdev()
454 if (main_id >= 0) { in create_hdev()
456 idr_remove(&hl_devs_idr, main_id); in create_hdev()
464 hdev->id = main_id; in create_hdev()