Searched refs:cb_args (Results 1 – 1 of 1) sorted by relevance
180 struct hl_cb_mmap_mem_alloc_args *cb_args = args; in hl_cb_mmap_mem_alloc() local182 int rc, ctx_id = cb_args->ctx->asid; in hl_cb_mmap_mem_alloc()185 if (!cb_args->internal_cb) { in hl_cb_mmap_mem_alloc()187 if (cb_args->cb_size < PAGE_SIZE) in hl_cb_mmap_mem_alloc()188 cb_args->cb_size = PAGE_SIZE; in hl_cb_mmap_mem_alloc()191 cb_args->cb_size <= cb_args->hdev->asic_prop.cb_pool_cb_size) { in hl_cb_mmap_mem_alloc()193 spin_lock(&cb_args->hdev->cb_pool_lock); in hl_cb_mmap_mem_alloc()194 if (!list_empty(&cb_args->hdev->cb_pool)) { in hl_cb_mmap_mem_alloc()195 cb = list_first_entry(&cb_args->hdev->cb_pool, in hl_cb_mmap_mem_alloc()198 spin_unlock(&cb_args->hdev->cb_pool_lock); in hl_cb_mmap_mem_alloc()[all …]