Lines Matching full:param

57 	struct fsl_hv_ioctl_restart param;  in ioctl_restart()  local
60 if (copy_from_user(&param, p, sizeof(struct fsl_hv_ioctl_restart))) in ioctl_restart()
63 param.ret = fh_partition_restart(param.partition); in ioctl_restart()
65 if (copy_to_user(&p->ret, &param.ret, sizeof(__u32))) in ioctl_restart()
78 struct fsl_hv_ioctl_status param; in ioctl_status() local
82 if (copy_from_user(&param, p, sizeof(struct fsl_hv_ioctl_status))) in ioctl_status()
85 param.ret = fh_partition_get_status(param.partition, &status); in ioctl_status()
86 if (!param.ret) in ioctl_status()
87 param.status = status; in ioctl_status()
89 if (copy_to_user(p, &param, sizeof(struct fsl_hv_ioctl_status))) in ioctl_status()
102 struct fsl_hv_ioctl_start param; in ioctl_start() local
105 if (copy_from_user(&param, p, sizeof(struct fsl_hv_ioctl_start))) in ioctl_start()
108 param.ret = fh_partition_start(param.partition, param.entry_point, in ioctl_start()
109 param.load); in ioctl_start()
111 if (copy_to_user(&p->ret, &param.ret, sizeof(__u32))) in ioctl_start()
124 struct fsl_hv_ioctl_stop param; in ioctl_stop() local
127 if (copy_from_user(&param, p, sizeof(struct fsl_hv_ioctl_stop))) in ioctl_stop()
130 param.ret = fh_partition_stop(param.partition); in ioctl_stop()
132 if (copy_to_user(&p->ret, &param.ret, sizeof(__u32))) in ioctl_stop()
149 struct fsl_hv_ioctl_memcpy param; in ioctl_memcpy() local
165 if (copy_from_user(&param, p, sizeof(struct fsl_hv_ioctl_memcpy))) in ioctl_memcpy()
173 if ((param.source == -1) == (param.target == -1)) in ioctl_memcpy()
217 lb_offset = param.local_vaddr & (PAGE_SIZE - 1); in ioctl_memcpy()
218 if (param.count == 0 || in ioctl_memcpy()
219 param.count > U64_MAX - lb_offset - PAGE_SIZE + 1) in ioctl_memcpy()
221 num_pages = (param.count + lb_offset + PAGE_SIZE - 1) >> PAGE_SHIFT; in ioctl_memcpy()
249 num_pinned = get_user_pages_fast(param.local_vaddr - lb_offset, in ioctl_memcpy()
250 num_pages, param.source != -1 ? FOLL_WRITE : 0, pages); in ioctl_memcpy()
262 if (param.source == -1) { in ioctl_memcpy()
264 sg_list[0].target = param.remote_paddr; in ioctl_memcpy()
266 sg_list[0].source = param.remote_paddr; in ioctl_memcpy()
269 sg_list[0].size = min_t(uint64_t, param.count, PAGE_SIZE - lb_offset); in ioctl_memcpy()
271 remote_paddr = param.remote_paddr + sg_list[0].size; in ioctl_memcpy()
272 count = param.count - sg_list[0].size; in ioctl_memcpy()
275 if (param.source == -1) { in ioctl_memcpy()
290 param.ret = fh_partition_memcpy(param.source, param.target, in ioctl_memcpy()
304 if (copy_to_user(&p->ret, &param.ret, sizeof(__u32))) in ioctl_memcpy()
317 struct fsl_hv_ioctl_doorbell param; in ioctl_doorbell() local
320 if (copy_from_user(&param, p, sizeof(struct fsl_hv_ioctl_doorbell))) in ioctl_doorbell()
323 param.ret = ev_doorbell_send(param.doorbell); in ioctl_doorbell()
325 if (copy_to_user(&p->ret, &param.ret, sizeof(__u32))) in ioctl_doorbell()
333 struct fsl_hv_ioctl_prop param; in ioctl_dtprop() local
341 if (copy_from_user(&param, p, sizeof(struct fsl_hv_ioctl_prop))) in ioctl_dtprop()
344 upath = (char __user *)(uintptr_t)param.path; in ioctl_dtprop()
345 upropname = (char __user *)(uintptr_t)param.propname; in ioctl_dtprop()
346 upropval = (void __user *)(uintptr_t)param.propval; in ioctl_dtprop()
358 if (param.proplen > FH_DTPROP_MAX_PROPLEN) { in ioctl_dtprop()
363 propval = kmalloc(param.proplen, GFP_KERNEL); in ioctl_dtprop()
370 if (copy_from_user(propval, upropval, param.proplen)) { in ioctl_dtprop()
375 param.ret = fh_partition_set_dtprop(param.handle, in ioctl_dtprop()
379 param.proplen); in ioctl_dtprop()
381 param.ret = fh_partition_get_dtprop(param.handle, in ioctl_dtprop()
385 &param.proplen); in ioctl_dtprop()
387 if (param.ret == 0) { in ioctl_dtprop()
388 if (copy_to_user(upropval, propval, param.proplen) || in ioctl_dtprop()
389 put_user(param.proplen, &p->proplen)) { in ioctl_dtprop()
396 if (put_user(param.ret, &p->ret)) in ioctl_dtprop()