Lines Matching refs:ibp

27 int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet)  in hfi1_ruc_check_hdr()  argument
32 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&qp->remote_ah_attr)]; in hfi1_ruc_check_hdr()
52 guid = get_sguid(ibp, grh->sgid_index); in hfi1_ruc_check_hdr()
53 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
62 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr()
64 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
70 ppd_from_ibp(ibp)->port != in hfi1_ruc_check_hdr()
89 guid = get_sguid(ibp, grh->sgid_index); in hfi1_ruc_check_hdr()
90 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
99 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr()
101 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
107 ppd_from_ibp(ibp)->port != qp->port_num) in hfi1_ruc_check_hdr()
126 u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr, in hfi1_make_grh() argument
138 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_grh()
141 get_sguid(ibp, grh->sgid_index) : in hfi1_make_grh()
142 get_sguid(ibp, HFI1_PORT_GUID_INDEX); in hfi1_make_grh()
238 struct hfi1_ibport *ibp = ps->ibp; in hfi1_make_ruc_header_16B() local
239 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_make_ruc_header_16B()
241 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B()
264 hfi1_make_grh(ibp, grh, grd, in hfi1_make_ruc_header_16B()
327 struct hfi1_ibport *ibp = ps->ibp; in hfi1_make_ruc_header_9B() local
328 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B()
339 hfi1_make_grh(ibp, grh, in hfi1_make_ruc_header_9B()
371 ppd_from_ibp(ibp)->lid | in hfi1_make_ruc_header_9B()
500 ps.ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_do_send()
501 ps.ppd = ppd_from_ibp(ps.ibp); in hfi1_do_send()