Lines Matching refs:mmg
262 int hl_cb_create(struct hl_device *hdev, struct hl_mem_mgr *mmg, in hl_cb_create() argument
289 mmg, &cb_behavior, in hl_cb_create()
299 int hl_cb_destroy(struct hl_mem_mgr *mmg, u64 cb_handle) in hl_cb_destroy() argument
303 rc = hl_mmap_mem_buf_put_handle(mmg, cb_handle); in hl_cb_destroy()
308 dev_dbg(mmg->dev, "CB 0x%llx is destroyed while still in use\n", cb_handle); in hl_cb_destroy()
313 static int hl_cb_info(struct hl_mem_mgr *mmg, in hl_cb_info() argument
319 cb = hl_cb_get(mmg, handle); in hl_cb_info()
321 dev_err(mmg->dev, in hl_cb_info()
330 dev_err(mmg->dev, "CB is not mapped to the device's MMU\n"); in hl_cb_info()
406 struct hl_cb *hl_cb_get(struct hl_mem_mgr *mmg, u64 handle) in hl_cb_get() argument
410 buf = hl_mmap_mem_buf_get(mmg, handle); in hl_cb_get()