Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/misc/habanalabs/common/
Dhabanalabs_drv.c262 int rc, main_id, ctrl_id = 0; in create_hdev() local
306 main_id = idr_alloc(&hl_devs_idr, hdev, 0, HL_MAX_MINORS, in create_hdev()
309 if (main_id >= 0) in create_hdev()
310 ctrl_id = idr_alloc(&hl_devs_idr, hdev, main_id + 1, in create_hdev()
311 main_id + 2, GFP_KERNEL); in create_hdev()
315 if ((main_id < 0) || (ctrl_id < 0)) { in create_hdev()
316 if ((main_id == -ENOSPC) || (ctrl_id == -ENOSPC)) in create_hdev()
319 if (main_id >= 0) { in create_hdev()
321 idr_remove(&hl_devs_idr, main_id); in create_hdev()
329 hdev->id = main_id; in create_hdev()