Lines Matching refs:ibp
69 int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet) in hfi1_ruc_check_hdr() argument
74 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&qp->remote_ah_attr)]; in hfi1_ruc_check_hdr()
94 guid = get_sguid(ibp, grh->sgid_index); in hfi1_ruc_check_hdr()
95 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
104 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr()
106 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
112 ppd_from_ibp(ibp)->port != in hfi1_ruc_check_hdr()
131 guid = get_sguid(ibp, grh->sgid_index); in hfi1_ruc_check_hdr()
132 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
141 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr()
143 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
149 ppd_from_ibp(ibp)->port != qp->port_num) in hfi1_ruc_check_hdr()
168 u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr, in hfi1_make_grh() argument
180 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_grh()
183 get_sguid(ibp, grh->sgid_index) : in hfi1_make_grh()
184 get_sguid(ibp, HFI1_PORT_GUID_INDEX); in hfi1_make_grh()
279 struct hfi1_ibport *ibp = ps->ibp; in hfi1_make_ruc_header_16B() local
280 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_make_ruc_header_16B()
282 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B()
305 hfi1_make_grh(ibp, grh, grd, in hfi1_make_ruc_header_16B()
367 struct hfi1_ibport *ibp = ps->ibp; in hfi1_make_ruc_header_9B() local
368 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B()
379 hfi1_make_grh(ibp, grh, in hfi1_make_ruc_header_9B()
411 ppd_from_ibp(ibp)->lid | in hfi1_make_ruc_header_9B()
541 ps.ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_do_send()
542 ps.ppd = ppd_from_ibp(ps.ibp); in hfi1_do_send()