Lines Matching refs:__user
268 static ssize_t copy_recv_mad(struct ib_umad_file *file, char __user *buf,
321 static ssize_t copy_send_mad(struct ib_umad_file *file, char __user *buf,
340 static ssize_t ib_umad_read(struct file *filp, char __user *buf,
388 static int copy_rmpp_mad(struct ib_mad_send_buf *msg, const char __user *buf)
453 static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
629 static int ib_umad_reg_agent(struct ib_umad_file *file, void __user *arg,
702 (u32 __user *) ((char *)arg + offsetof(struct ib_user_mad_reg_req, id)))) {
732 static int ib_umad_reg_agent2(struct ib_umad_file *file, void __user *arg)
771 (u32 __user *) ((char *)arg + offsetof(struct
820 (u32 __user *)((char *)arg +
846 static int ib_umad_unreg_agent(struct ib_umad_file *file, u32 __user *arg)
896 return ib_umad_reg_agent(filp->private_data, (void __user *) arg, 0);
898 return ib_umad_unreg_agent(filp->private_data, (__u32 __user *) arg);
902 return ib_umad_reg_agent2(filp->private_data, (void __user *) arg);