Lines Matching refs:args
182 static int hl_cb_mmap_mem_alloc(struct hl_mmap_mem_buf *buf, gfp_t gfp, void *args)
184 struct hl_cb_mmap_mem_alloc_args *cb_args = args;
250 struct vm_area_struct *vma, void *args)
270 struct hl_cb_mmap_mem_alloc_args args = {
294 ctx_id == HL_KERNEL_ASID_ID ? GFP_ATOMIC : GFP_KERNEL, &args);
366 union hl_cb_args *args = data;
380 switch (args->in.op) {
382 if (args->in.cb_size > HL_MAX_CB_SIZE) {
385 args->in.cb_size, HL_MAX_CB_SIZE);
389 args->in.cb_size, false,
390 !!(args->in.flags & HL_CB_FLAGS_MAP),
394 memset(args, 0, sizeof(*args));
395 args->out.cb_handle = handle;
400 args->in.cb_handle);
404 rc = hl_cb_info(&hpriv->mem_mgr, args->in.cb_handle,
405 args->in.flags,
411 memset(&args->out, 0, sizeof(args->out));
413 if (args->in.flags & HL_CB_FLAGS_GET_DEVICE_VA)
414 args->out.device_va = device_va;
416 args->out.usage_cnt = usage_cnt;