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