Lines Matching refs:ureq
619 struct ib_user_mad_reg_req ureq; in ib_umad_reg_agent() local
635 if (copy_from_user(&ureq, arg, sizeof ureq)) { in ib_umad_reg_agent()
640 if (ureq.qpn != 0 && ureq.qpn != 1) { in ib_umad_reg_agent()
643 ureq.qpn); in ib_umad_reg_agent()
659 if (ureq.mgmt_class) { in ib_umad_reg_agent()
661 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent()
662 req.mgmt_class_version = ureq.mgmt_class_version; in ib_umad_reg_agent()
663 memcpy(req.oui, ureq.oui, sizeof req.oui); in ib_umad_reg_agent()
666 u32 *umm = (u32 *) ureq.method_mask; in ib_umad_reg_agent()
673 memcpy(req.method_mask, ureq.method_mask, in ib_umad_reg_agent()
678 ureq.qpn ? IB_QPT_GSI : IB_QPT_SMI, in ib_umad_reg_agent()
679 ureq.mgmt_class ? &req : NULL, in ib_umad_reg_agent()
680 ureq.rmpp_version, in ib_umad_reg_agent()
721 struct ib_user_mad_reg_req2 ureq; in ib_umad_reg_agent2() local
737 if (copy_from_user(&ureq, arg, sizeof(ureq))) { in ib_umad_reg_agent2()
742 if (ureq.qpn != 0 && ureq.qpn != 1) { in ib_umad_reg_agent2()
745 ureq.qpn); in ib_umad_reg_agent2()
750 if (ureq.flags & ~IB_USER_MAD_REG_FLAGS_CAP) { in ib_umad_reg_agent2()
753 ureq.flags, IB_USER_MAD_REG_FLAGS_CAP); in ib_umad_reg_agent2()
775 if (ureq.mgmt_class) { in ib_umad_reg_agent2()
777 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent2()
778 req.mgmt_class_version = ureq.mgmt_class_version; in ib_umad_reg_agent2()
779 if (ureq.oui & 0xff000000) { in ib_umad_reg_agent2()
782 ureq.oui); in ib_umad_reg_agent2()
786 req.oui[2] = ureq.oui & 0x0000ff; in ib_umad_reg_agent2()
787 req.oui[1] = (ureq.oui & 0x00ff00) >> 8; in ib_umad_reg_agent2()
788 req.oui[0] = (ureq.oui & 0xff0000) >> 16; in ib_umad_reg_agent2()
789 memcpy(req.method_mask, ureq.method_mask, in ib_umad_reg_agent2()
794 ureq.qpn ? IB_QPT_GSI : IB_QPT_SMI, in ib_umad_reg_agent2()
795 ureq.mgmt_class ? &req : NULL, in ib_umad_reg_agent2()
796 ureq.rmpp_version, in ib_umad_reg_agent2()
798 ureq.flags); in ib_umad_reg_agent2()