Lines Matching refs:cb_size
46 static struct hl_cb *hl_cb_alloc(struct hl_device *hdev, u32 cb_size, in hl_cb_alloc() argument
69 p = hdev->asic_funcs->asic_dma_alloc_coherent(hdev, cb_size, in hl_cb_alloc()
72 p = hdev->asic_funcs->asic_dma_alloc_coherent(hdev, cb_size, in hl_cb_alloc()
78 cb_size); in hl_cb_alloc()
84 cb->size = cb_size; in hl_cb_alloc()
90 u32 cb_size, u64 *handle, int ctx_id) in hl_cb_create() argument
108 if (cb_size > HL_MAX_CB_SIZE) { in hl_cb_create()
111 cb_size, HL_MAX_CB_SIZE); in hl_cb_create()
117 if (cb_size < PAGE_SIZE) in hl_cb_create()
118 cb_size = PAGE_SIZE; in hl_cb_create()
121 cb_size <= hdev->asic_prop.cb_pool_cb_size) { in hl_cb_create()
137 cb = hl_cb_alloc(hdev, cb_size, ctx_id); in hl_cb_create()
226 rc = hl_cb_create(hdev, &hpriv->cb_mgr, args->in.cb_size, in hl_cb_ioctl()
391 struct hl_cb *hl_cb_kernel_create(struct hl_device *hdev, u32 cb_size) in hl_cb_kernel_create() argument
397 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, cb_size, &cb_handle, in hl_cb_kernel_create()