Home
last modified time | relevance | path

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

/drivers/misc/habanalabs/
Dhabanalabs_drv.c249 int rc, main_id, ctrl_id = 0; in create_hdev() local
293 main_id = idr_alloc(&hl_devs_idr, hdev, 0, HL_MAX_MINORS, in create_hdev()
296 if (main_id >= 0) in create_hdev()
297 ctrl_id = idr_alloc(&hl_devs_idr, hdev, main_id + 1, in create_hdev()
298 main_id + 2, GFP_KERNEL); in create_hdev()
302 if ((main_id < 0) || (ctrl_id < 0)) { in create_hdev()
303 if ((main_id == -ENOSPC) || (ctrl_id == -ENOSPC)) in create_hdev()
306 if (main_id >= 0) { in create_hdev()
308 idr_remove(&hl_devs_idr, main_id); in create_hdev()
316 hdev->id = main_id; in create_hdev()