Lines Matching defs:arg

41 static int assign_ctxt(struct hfi1_filedata *fd, unsigned long arg, u32 len);
47 static int get_ctxt_info(struct hfi1_filedata *fd, unsigned long arg, u32 len);
48 static int get_base_info(struct hfi1_filedata *fd, unsigned long arg, u32 len);
49 static int user_exp_rcv_setup(struct hfi1_filedata *fd, unsigned long arg,
51 static int user_exp_rcv_clear(struct hfi1_filedata *fd, unsigned long arg,
53 static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg,
68 unsigned long arg);
69 static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg);
72 unsigned long arg);
75 unsigned long arg);
181 unsigned long arg)
196 ret = assign_ctxt(fd, arg, _IOC_SIZE(cmd));
200 ret = get_ctxt_info(fd, arg, _IOC_SIZE(cmd));
204 ret = get_base_info(fd, arg, _IOC_SIZE(cmd));
213 ret = user_exp_rcv_setup(fd, arg, _IOC_SIZE(cmd));
217 ret = user_exp_rcv_clear(fd, arg, _IOC_SIZE(cmd));
221 ret = user_exp_rcv_invalid(fd, arg, _IOC_SIZE(cmd));
225 ret = manage_rcvq(uctxt, fd->subctxt, arg);
229 if (get_user(uval, (int __user *)arg))
235 ret = user_event_ack(uctxt, fd->subctxt, arg);
239 ret = set_ctxt_pkey(uctxt, arg);
248 if (put_user(uval, (int __user *)arg))
775 static int assign_ctxt(struct hfi1_filedata *fd, unsigned long arg, u32 len)
788 if (copy_from_user(&uinfo, (void __user *)arg, sizeof(uinfo)))
1127 static int get_ctxt_info(struct hfi1_filedata *fd, unsigned long arg, u32 len)
1163 if (copy_to_user((void __user *)arg, &cinfo, len))
1244 static int get_base_info(struct hfi1_filedata *fd, unsigned long arg, u32 len)
1315 if (copy_to_user((void __user *)arg, &binfo, len))
1324 * @arg: ioctl argumnent for user space information
1330 static int user_exp_rcv_setup(struct hfi1_filedata *fd, unsigned long arg,
1340 if (copy_from_user(&tinfo, (void __user *)arg, (sizeof(tinfo))))
1349 addr = arg + offsetof(struct hfi1_tid_info, tidcnt);
1354 addr = arg + offsetof(struct hfi1_tid_info, length);
1369 * @arg: ioctl argumnent for user space information
1376 static int user_exp_rcv_clear(struct hfi1_filedata *fd, unsigned long arg,
1386 if (copy_from_user(&tinfo, (void __user *)arg, (sizeof(tinfo))))
1391 addr = arg + offsetof(struct hfi1_tid_info, tidcnt);
1403 * @arg: ioctl argumnent for user space information
1409 static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg,
1422 if (copy_from_user(&tinfo, (void __user *)arg, (sizeof(tinfo))))
1429 addr = arg + offsetof(struct hfi1_tid_info, tidcnt);
1522 * @arg: start/stop action to carry out
1529 unsigned long arg)
1538 if (get_user(start_stop, (int __user *)arg))
1569 unsigned long arg)
1579 if (get_user(events, (unsigned long __user *)arg))
1592 static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg)
1602 if (get_user(pkey, (u16 __user *)arg))