Lines Matching defs:arg

82 static int assign_ctxt(struct hfi1_filedata *fd, unsigned long arg, u32 len);
88 static int get_ctxt_info(struct hfi1_filedata *fd, unsigned long arg, u32 len);
89 static int get_base_info(struct hfi1_filedata *fd, unsigned long arg, u32 len);
90 static int user_exp_rcv_setup(struct hfi1_filedata *fd, unsigned long arg,
92 static int user_exp_rcv_clear(struct hfi1_filedata *fd, unsigned long arg,
94 static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg,
109 unsigned long arg);
110 static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg);
113 unsigned long arg);
116 unsigned long arg);
222 unsigned long arg)
237 ret = assign_ctxt(fd, arg, _IOC_SIZE(cmd));
241 ret = get_ctxt_info(fd, arg, _IOC_SIZE(cmd));
245 ret = get_base_info(fd, arg, _IOC_SIZE(cmd));
254 ret = user_exp_rcv_setup(fd, arg, _IOC_SIZE(cmd));
258 ret = user_exp_rcv_clear(fd, arg, _IOC_SIZE(cmd));
262 ret = user_exp_rcv_invalid(fd, arg, _IOC_SIZE(cmd));
266 ret = manage_rcvq(uctxt, fd->subctxt, arg);
270 if (get_user(uval, (int __user *)arg))
276 ret = user_event_ack(uctxt, fd->subctxt, arg);
280 ret = set_ctxt_pkey(uctxt, arg);
289 if (put_user(uval, (int __user *)arg))
785 static int assign_ctxt(struct hfi1_filedata *fd, unsigned long arg, u32 len)
798 if (copy_from_user(&uinfo, (void __user *)arg, sizeof(uinfo)))
1137 static int get_ctxt_info(struct hfi1_filedata *fd, unsigned long arg, u32 len)
1173 if (copy_to_user((void __user *)arg, &cinfo, len))
1254 static int get_base_info(struct hfi1_filedata *fd, unsigned long arg, u32 len)
1325 if (copy_to_user((void __user *)arg, &binfo, len))
1334 * @arg: ioctl argumnent for user space information
1340 static int user_exp_rcv_setup(struct hfi1_filedata *fd, unsigned long arg,
1350 if (copy_from_user(&tinfo, (void __user *)arg, (sizeof(tinfo))))
1359 addr = arg + offsetof(struct hfi1_tid_info, tidcnt);
1364 addr = arg + offsetof(struct hfi1_tid_info, length);
1379 * @arg: ioctl argumnent for user space information
1386 static int user_exp_rcv_clear(struct hfi1_filedata *fd, unsigned long arg,
1396 if (copy_from_user(&tinfo, (void __user *)arg, (sizeof(tinfo))))
1401 addr = arg + offsetof(struct hfi1_tid_info, tidcnt);
1413 * @arg: ioctl argumnent for user space information
1419 static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg,
1432 if (copy_from_user(&tinfo, (void __user *)arg, (sizeof(tinfo))))
1439 addr = arg + offsetof(struct hfi1_tid_info, tidcnt);
1539 unsigned long arg)
1548 if (get_user(start_stop, (int __user *)arg))
1579 unsigned long arg)
1589 if (get_user(events, (unsigned long __user *)arg))
1602 static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg)
1612 if (get_user(pkey, (u16 __user *)arg))