Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/accel/habanalabs/common/
Dhabanalabs_drv.c401 int main_id, ctrl_id = 0, rc = 0; in create_hdev() local
445 main_id = idr_alloc(&hl_devs_idr, hdev, 0, HL_MAX_MINORS, GFP_KERNEL); in create_hdev()
447 if (main_id >= 0) in create_hdev()
448 ctrl_id = idr_alloc(&hl_devs_idr, hdev, main_id + 1, in create_hdev()
449 main_id + 2, GFP_KERNEL); in create_hdev()
453 if ((main_id < 0) || (ctrl_id < 0)) { in create_hdev()
454 if ((main_id == -ENOSPC) || (ctrl_id == -ENOSPC)) in create_hdev()
457 if (main_id >= 0) { in create_hdev()
459 idr_remove(&hl_devs_idr, main_id); in create_hdev()
467 hdev->id = main_id; in create_hdev()