Home
last modified time | relevance | path

Searched refs:lrh0 (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_ruc.c211 u16 lrh0; in qib_make_ruc_header() local
218 lrh0 = QIB_LRH_BTH; in qib_make_ruc_header()
224 lrh0 = QIB_LRH_GRH; in qib_make_ruc_header()
226 lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(&qp->remote_ah_attr)] << 12 | in qib_make_ruc_header()
228 priv->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ruc_header()
Dqib_ud.c241 u16 lrh0; in qib_make_ud_req() local
327 lrh0 = QIB_LRH_GRH; in qib_make_ud_req()
335 lrh0 = QIB_LRH_BTH; in qib_make_ud_req()
344 lrh0 |= rdma_ah_get_sl(ah_attr) << 4; in qib_make_ud_req()
346 lrh0 |= 0xF000; /* Set VL (see ch. 13.5.3.1) */ in qib_make_ud_req()
348 lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(ah_attr)] << 12; in qib_make_ud_req()
349 priv->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ud_req()
Dqib_rc.c603 u16 lrh0; in qib_send_rc_ack() local
624 lrh0 = QIB_LRH_BTH; in qib_send_rc_ack()
633 lrh0 = QIB_LRH_GRH; in qib_send_rc_ack()
645 lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(&qp->remote_ah_attr)] << 12 | in qib_send_rc_ack()
647 hdr.lrh[0] = cpu_to_be16(lrh0); in qib_send_rc_ack()
663 qp->s_srate, lrh0 >> 12); in qib_send_rc_ack()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dud.c308 u16 lrh0 = 0; in hfi1_make_ud_req_9B() local
334 lrh0 = HFI1_LRH_GRH; in hfi1_make_ud_req_9B()
337 lrh0 = HFI1_LRH_BTH; in hfi1_make_ud_req_9B()
342 lrh0 |= (rdma_ah_get_sl(ah_attr) & 0xf) << 4; in hfi1_make_ud_req_9B()
344 lrh0 |= 0xF000; /* Set VL (see ch. 13.5.3.1) */ in hfi1_make_ud_req_9B()
347 lrh0 |= (sc5 & 0xf) << 12; in hfi1_make_ud_req_9B()
371 lrh0, len, dlid, slid); in hfi1_make_ud_req_9B()
700 u16 lrh0; in return_cnp() local
719 lrh0 = HFI1_LRH_GRH; in return_cnp()
723 lrh0 = HFI1_LRH_BTH; in return_cnp()
[all …]
Druc.c369 u16 lrh0 = HFI1_LRH_BTH; in hfi1_make_ruc_header_9B() local
377 lrh0 = HFI1_LRH_GRH; in hfi1_make_ruc_header_9B()
385 lrh0 |= (priv->s_sc & 0xf) << 12 | in hfi1_make_ruc_header_9B()
408 lrh0, in hfi1_make_ruc_header_9B()
Dhfi.h2484 u16 lrh0, u16 len, in hfi1_make_ib_hdr() argument
2487 hdr->lrh[0] = cpu_to_be16(lrh0); in hfi1_make_ib_hdr()
2499 u32 lrh0 = 0; in hfi1_make_16b_hdr() local
2504 lrh0 = (lrh0 & ~OPA_16B_BECN_MASK) | (becn << OPA_16B_BECN_SHIFT); in hfi1_make_16b_hdr()
2505 lrh0 = (lrh0 & ~OPA_16B_LEN_MASK) | (len << OPA_16B_LEN_SHIFT); in hfi1_make_16b_hdr()
2506 lrh0 = (lrh0 & ~OPA_16B_LID_MASK) | (slid & OPA_16B_LID_MASK); in hfi1_make_16b_hdr()
2517 hdr->lrh[0] = lrh0; in hfi1_make_16b_hdr()
Dtrace_tx.h516 __field(u32, lrh0)
544 __entry->lrh0 = be32_to_cpu(lrh[0]);
567 __entry->lrh0,
Drc.c1272 u16 lrh0 = HFI1_LRH_BTH; in hfi1_make_rc_ack_9B() local
1286 lrh0 = HFI1_LRH_GRH; in hfi1_make_rc_ack_9B()
1294 lrh0 |= (sc5 & IB_SC_MASK) << IB_SC_SHIFT | in hfi1_make_rc_ack_9B()
1298 hfi1_make_ib_hdr(hdr, lrh0, *hwords + SIZE_OF_CRC, in hfi1_make_rc_ack_9B()