Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/accel/habanalabs/common/
Dcommand_buffer.c184 struct hl_cb_mmap_mem_alloc_args *cb_args = args; in hl_cb_mmap_mem_alloc() local
186 int rc, ctx_id = cb_args->ctx->asid; in hl_cb_mmap_mem_alloc()
189 if (!cb_args->internal_cb) { in hl_cb_mmap_mem_alloc()
191 if (cb_args->cb_size < PAGE_SIZE) in hl_cb_mmap_mem_alloc()
192 cb_args->cb_size = PAGE_SIZE; in hl_cb_mmap_mem_alloc()
195 cb_args->cb_size <= cb_args->hdev->asic_prop.cb_pool_cb_size) { in hl_cb_mmap_mem_alloc()
197 spin_lock(&cb_args->hdev->cb_pool_lock); in hl_cb_mmap_mem_alloc()
198 if (!list_empty(&cb_args->hdev->cb_pool)) { in hl_cb_mmap_mem_alloc()
199 cb = list_first_entry(&cb_args->hdev->cb_pool, in hl_cb_mmap_mem_alloc()
202 spin_unlock(&cb_args->hdev->cb_pool_lock); in hl_cb_mmap_mem_alloc()
[all …]