Lines Matching refs:ibp
33 struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in ud_loopback() local
47 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, in ud_loopback()
50 ibp->rvp.n_pkt_drops++; in ud_loopback()
62 ibp->rvp.n_pkt_drops++; in ud_loopback()
67 ppd = ppd_from_ibp(ibp); in ud_loopback()
72 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in ud_loopback()
74 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback()
80 hfi1_bad_pkey(ibp, pkey, in ud_loopback()
132 ibp->rvp.n_vl15_dropped++; in ud_loopback()
139 ibp->rvp.n_pkt_drops++; in ud_loopback()
171 hfi1_make_grh(ibp, &grh, &grd, 0, 0); in ud_loopback()
217 ibp->rvp.n_loop_pkts++; in ud_loopback()
229 struct hfi1_ibport *ibp; in hfi1_make_bth_deth() local
231 ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_make_bth_deth()
243 *pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_bth_deth()
245 *pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_bth_deth()
272 struct hfi1_ibport *ibp; in hfi1_make_ud_req_9B() local
275 ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_make_ud_req_9B()
276 ppd = ppd_from_ibp(ibp); in hfi1_make_ud_req_9B()
289 hfi1_make_grh(ibp, grh, rdma_ah_read_grh(ah_attr), in hfi1_make_ud_req_9B()
299 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_9B()
339 struct hfi1_ibport *ibp; in hfi1_make_ud_req_16B() local
347 ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_make_ud_req_16B()
348 ppd = ppd_from_ibp(ibp); in hfi1_make_ud_req_16B()
386 ibp, grh, grd, in hfi1_make_ud_req_16B()
396 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_16B()
411 pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_ud_req_16B()
440 struct hfi1_ibport *ibp; in hfi1_make_ud_req() local
475 ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_make_ud_req()
476 ppd = ppd_from_ibp(ibp); in hfi1_make_ud_req()
555 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx() argument
557 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_lookup_pkey_idx()
591 void return_cnp_16B(struct hfi1_ibport *ibp, struct rvt_qp *qp, in return_cnp_16B() argument
603 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in return_cnp_16B()
653 void return_cnp(struct hfi1_ibport *ibp, struct rvt_qp *qp, u32 remote_qpn, in return_cnp() argument
660 u8 sl = ibp->sc_to_sl[sc5]; in return_cnp()
665 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in return_cnp()
726 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check() argument
729 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in opa_smp_check()
786 if (ibp->rvp.port_cap_flags & IB_PORT_SM) in opa_smp_check()
815 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); in hfi1_ud_rcv() local
816 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_ud_rcv()
847 sl_from_sc = ibp->sc_to_sl[sc5]; in hfi1_ud_rcv()
881 hfi1_bad_pkey(ibp, in hfi1_ud_rcv()
889 mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); in hfi1_ud_rcv()
905 if (opa_smp_check(ibp, pkey, sc5, qp, slid, smp)) in hfi1_ud_rcv()
915 mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); in hfi1_ud_rcv()
952 ibp->rvp.n_vl15_dropped++; in hfi1_ud_rcv()
1015 dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); in hfi1_ud_rcv()
1022 ibp->rvp.n_pkt_drops++; in hfi1_ud_rcv()