Lines Matching refs:mmg
266 int hl_cb_create(struct hl_device *hdev, struct hl_mem_mgr *mmg, in hl_cb_create() argument
293 mmg, &cb_behavior, in hl_cb_create()
303 int hl_cb_destroy(struct hl_mem_mgr *mmg, u64 cb_handle) in hl_cb_destroy() argument
308 cb = hl_cb_get(mmg, cb_handle); in hl_cb_destroy()
310 dev_dbg(mmg->dev, "CB destroy failed, no CB was found for handle %#llx\n", in hl_cb_destroy()
319 dev_dbg(mmg->dev, "CB destroy failed, handle %#llx was already destroyed\n", in hl_cb_destroy()
324 rc = hl_mmap_mem_buf_put_handle(mmg, cb_handle); in hl_cb_destroy()
329 dev_dbg(mmg->dev, "CB 0x%llx is destroyed while still in use\n", cb_handle); in hl_cb_destroy()
334 static int hl_cb_info(struct hl_mem_mgr *mmg, in hl_cb_info() argument
340 cb = hl_cb_get(mmg, handle); in hl_cb_info()
342 dev_err(mmg->dev, in hl_cb_info()
351 dev_err(mmg->dev, "CB is not mapped to the device's MMU\n"); in hl_cb_info()
428 struct hl_cb *hl_cb_get(struct hl_mem_mgr *mmg, u64 handle) in hl_cb_get() argument
432 buf = hl_mmap_mem_buf_get(mmg, handle); in hl_cb_get()