Home
last modified time | relevance | path

Searched refs:bth0 (Results 1 – 16 of 16) sorted by relevance

/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_ruc.c269 int has_grh, struct qib_qp *qp, u32 bth0) in qib_ruc_check_hdr() argument
274 if (qp->s_mig_state == IB_MIG_ARMED && (bth0 & IB_BTH_MIG_REQ)) { in qib_ruc_check_hdr()
289 if (!qib_pkey_ok((u16)bth0, in qib_ruc_check_hdr()
292 (u16)bth0, in qib_ruc_check_hdr()
321 if (!qib_pkey_ok((u16)bth0, in qib_ruc_check_hdr()
324 (u16)bth0, in qib_ruc_check_hdr()
335 !(bth0 & IB_BTH_MIG_REQ)) in qib_ruc_check_hdr()
676 u32 bth0, u32 bth2) in qib_make_ruc_header() argument
700 bth0 |= qib_get_pkey(ibp, qp->s_pkey_index); in qib_make_ruc_header()
701 bth0 |= extra_bytes << 20; in qib_make_ruc_header()
[all …]
Dqib_uc.c52 u32 bth0; in qib_make_uc_req() local
81 bth0 = 0; in qib_make_uc_req()
123 bth0 |= IB_BTH_SOLICITED; in qib_make_uc_req()
151 bth0 |= IB_BTH_SOLICITED; in qib_make_uc_req()
181 bth0 |= IB_BTH_SOLICITED; in qib_make_uc_req()
205 bth0 |= IB_BTH_SOLICITED; in qib_make_uc_req()
216 qib_make_ruc_header(qp, ohdr, bth0 | (qp->s_state << 24), in qib_make_uc_req()
Dqib_ud.c245 u32 bth0; in qib_make_ud_req() local
344 bth0 = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE << 24; in qib_make_ud_req()
346 bth0 = IB_OPCODE_UD_SEND_ONLY << 24; in qib_make_ud_req()
362 bth0 |= IB_BTH_SOLICITED; in qib_make_ud_req()
363 bth0 |= extra_bytes << 20; in qib_make_ud_req()
364 bth0 |= qp->ibqp.qp_type == IB_QPT_SMI ? QIB_DEFAULT_P_KEY : in qib_make_ud_req()
367 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req()
Dqib_rc.c83 u32 bth0; in qib_make_rc_ack() local
165 bth0 = qp->s_ack_state << 24; in qib_make_rc_ack()
186 bth0 = qp->s_ack_state << 24; in qib_make_rc_ack()
210 bth0 = OP(ACKNOWLEDGE) << 24; in qib_make_rc_ack()
216 qib_make_ruc_header(qp, ohdr, bth0, bth2); in qib_make_rc_ack()
239 u32 bth0; in qib_make_rc_req() local
294 bth0 = 0; in qib_make_rc_req()
359 bth0 |= IB_BTH_SOLICITED; in qib_make_rc_req()
399 bth0 |= IB_BTH_SOLICITED; in qib_make_rc_req()
542 bth0 |= IB_BTH_SOLICITED; in qib_make_rc_req()
[all …]
Dqib_verbs.h1104 int has_grh, struct qib_qp *qp, u32 bth0);
1110 u32 bth0, u32 bth2);
/linux-4.4.14/drivers/staging/rdma/hfi1/
Druc.c288 int has_grh, struct hfi1_qp *qp, u32 bth0) in hfi1_ruc_check_hdr() argument
294 if (qp->s_mig_state == IB_MIG_ARMED && (bth0 & IB_BTH_MIG_REQ)) { in hfi1_ruc_check_hdr()
309 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), (u16)bth0, in hfi1_ruc_check_hdr()
312 (u16)bth0, in hfi1_ruc_check_hdr()
341 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), (u16)bth0, in hfi1_ruc_check_hdr()
344 (u16)bth0, in hfi1_ruc_check_hdr()
355 !(bth0 & IB_BTH_MIG_REQ)) in hfi1_ruc_check_hdr()
758 u32 bth0, u32 bth2, int middle) in hfi1_make_ruc_header() argument
797 bth0 |= IB_BTH_MIG_REQ; in hfi1_make_ruc_header()
810 bth0 |= hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header()
[all …]
Dud.c276 u32 bth0; in hfi1_make_ud_req() local
374 bth0 = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE << 24; in hfi1_make_ud_req()
376 bth0 = IB_OPCODE_UD_SEND_ONLY << 24; in hfi1_make_ud_req()
401 bth0 |= IB_BTH_SOLICITED; in hfi1_make_ud_req()
402 bth0 |= extra_bytes << 20; in hfi1_make_ud_req()
404 bth0 |= hfi1_get_pkey(ibp, wqe->ud_wr.pkey_index); in hfi1_make_ud_req()
406 bth0 |= hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ud_req()
407 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ud_req()
484 u32 bth0, plen, vl, hwords = 5; in return_cnp() local
511 bth0 = pkey | (IB_OPCODE_CNP << 24); in return_cnp()
[all …]
Drc.c103 u32 bth0; in make_rc_ack() local
186 bth0 = qp->s_ack_state << 24; in make_rc_ack()
208 bth0 = qp->s_ack_state << 24; in make_rc_ack()
232 bth0 = OP(ACKNOWLEDGE) << 24; in make_rc_ack()
238 hfi1_make_ruc_header(qp, ohdr, bth0, bth2, middle); in make_rc_ack()
269 u32 bth0 = 0; in hfi1_make_rc_req() local
389 bth0 |= IB_BTH_SOLICITED; in hfi1_make_rc_req()
428 bth0 |= IB_BTH_SOLICITED; in hfi1_make_rc_req()
571 bth0 |= IB_BTH_SOLICITED; in hfi1_make_rc_req()
612 bth0 |= IB_BTH_SOLICITED; in hfi1_make_rc_req()
[all …]
Duc.c70 u32 bth0 = 0; in hfi1_make_uc_req() local
141 bth0 |= IB_BTH_SOLICITED; in hfi1_make_uc_req()
169 bth0 |= IB_BTH_SOLICITED; in hfi1_make_uc_req()
200 bth0 |= IB_BTH_SOLICITED; in hfi1_make_uc_req()
225 bth0 |= IB_BTH_SOLICITED; in hfi1_make_uc_req()
236 hfi1_make_ruc_header(qp, ohdr, bth0 | (qp->s_state << 24), in hfi1_make_uc_req()
Dverbs.h1075 int has_grh, struct hfi1_qp *qp, u32 bth0);
1081 u32 bth0, u32 bth2, int middle);
Dtrace.h1048 __field(__be32, bth0)
1076 __entry->bth0 = be32_to_cpu(bth[0]);
1099 __entry->bth0,
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_uc.c52 u32 bth0; in ipath_make_uc_req() local
81 bth0 = 1 << 22; /* Set M bit */ in ipath_make_uc_req()
120 bth0 |= 1 << 23; in ipath_make_uc_req()
148 bth0 |= 1 << 23; in ipath_make_uc_req()
178 bth0 |= 1 << 23; in ipath_make_uc_req()
202 bth0 |= 1 << 23; in ipath_make_uc_req()
214 qp, ohdr, bth0 | (qp->s_state << 24), in ipath_make_uc_req()
Dipath_ud.c249 u32 bth0; in ipath_make_ud_req() local
345 bth0 = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE << 24; in ipath_make_ud_req()
347 bth0 = IB_OPCODE_UD_SEND_ONLY << 24; in ipath_make_ud_req()
363 bth0 |= 1 << 23; in ipath_make_ud_req()
364 bth0 |= extra_bytes << 20; in ipath_make_ud_req()
365 bth0 |= qp->ibqp.qp_type == IB_QPT_SMI ? IPATH_DEFAULT_P_KEY : in ipath_make_ud_req()
367 ohdr->bth[0] = cpu_to_be32(bth0); in ipath_make_ud_req()
Dipath_rc.c92 u32 bth0; in ipath_make_rc_ack() local
155 bth0 = qp->s_ack_state << 24; in ipath_make_rc_ack()
171 bth0 = qp->s_ack_state << 24; in ipath_make_rc_ack()
195 bth0 = OP(ACKNOWLEDGE) << 24; in ipath_make_rc_ack()
200 ipath_make_ruc_header(dev, qp, ohdr, bth0, bth2); in ipath_make_rc_ack()
221 u32 bth0; in ipath_make_rc_req() local
269 bth0 = 1 << 22; /* Set M bit */ in ipath_make_rc_req()
335 bth0 |= 1 << 23; in ipath_make_rc_req()
374 bth0 |= 1 << 23; in ipath_make_rc_req()
519 bth0 |= 1 << 23; in ipath_make_rc_req()
[all …]
Dipath_ruc.c601 u32 bth0, u32 bth2) in ipath_make_ruc_header() argument
623 bth0 |= ipath_get_pkey(dev->dd, qp->s_pkey_index); in ipath_make_ruc_header()
624 bth0 |= extra_bytes << 20; in ipath_make_ruc_header()
625 ohdr->bth[0] = cpu_to_be32(bth0 | (1 << 22)); in ipath_make_ruc_header()
Dipath_verbs.h876 u32 bth0, u32 bth2);