Lines Matching refs:portid
86 int mad_respond(void *umad, ib_portid_t * portid, uint32_t rstatus) in mad_respond() argument
88 return mad_respond_via(umad, portid, rstatus, ibmp); in mad_respond()
91 int mad_respond_via(void *umad, ib_portid_t * portid, uint32_t rstatus, in mad_respond_via() argument
100 if (!portid) { in mad_respond_via()
118 portid = &rport; in mad_respond_via()
121 DEBUG("dest %s", portid2str(portid)); in mad_respond_via()
147 portid->qp = 0; in mad_respond_via()
148 else if (!portid->qp) in mad_respond_via()
149 portid->qp = 1; in mad_respond_via()
151 if (!portid->qkey && portid->qp == 1) in mad_respond_via()
152 portid->qkey = IB_DEFAULT_QP1_QKEY; in mad_respond_via()
156 portid->qp, rpc.mgtclass, rpc.method, rpc.attr.id, rpc.attr.mod, in mad_respond_via()
157 rpc.datasz, rpc.dataoffs, portid->qkey); in mad_respond_via()
159 if (mad_build_pkt(umad, &rpc, portid, 0, 0) < 0) in mad_respond_via()