Lines Matching defs:ohdr
71 * @ohdr: a pointer to the IB header being constructed
79 struct qib_other_headers *ohdr, u32 pmtu)
148 ohdr->u.aeth = qib_compute_aeth(qp);
157 ohdr->u.at.aeth = qib_compute_aeth(qp);
158 ohdr->u.at.atomic_ack_eth[0] =
160 ohdr->u.at.atomic_ack_eth[1] =
162 hwords += sizeof(ohdr->u.at) / sizeof(u32);
181 ohdr->u.aeth = qib_compute_aeth(qp);
203 ohdr->u.aeth =
208 ohdr->u.aeth = qib_compute_aeth(qp);
217 qib_make_ruc_header(qp, ohdr, bth0, bth2);
235 struct qib_other_headers *ohdr;
248 ohdr = &qp->s_hdr.u.oth;
250 ohdr = &qp->s_hdr.u.l.oth;
260 qib_make_rc_ack(dev, qp, ohdr, pmtu))
360 ohdr->u.imm_data = wqe->wr.ex.imm_data;
381 ohdr->u.rc.reth.vaddr =
383 ohdr->u.rc.reth.rkey =
385 ohdr->u.rc.reth.length = cpu_to_be32(len);
400 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data;
432 ohdr->u.rc.reth.vaddr =
434 ohdr->u.rc.reth.rkey =
436 ohdr->u.rc.reth.length = cpu_to_be32(len);
438 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
465 ohdr->u.atomic_eth.swap_data = cpu_to_be64(
467 ohdr->u.atomic_eth.compare_data = cpu_to_be64(
471 ohdr->u.atomic_eth.swap_data = cpu_to_be64(
473 ohdr->u.atomic_eth.compare_data = 0;
475 ohdr->u.atomic_eth.vaddr[0] = cpu_to_be32(
477 ohdr->u.atomic_eth.vaddr[1] = cpu_to_be32(
479 ohdr->u.atomic_eth.rkey = cpu_to_be32(
541 ohdr->u.imm_data = wqe->wr.ex.imm_data;
582 ohdr->u.imm_data = wqe->wr.ex.imm_data;
604 ohdr->u.rc.reth.vaddr =
606 ohdr->u.rc.reth.rkey =
608 ohdr->u.rc.reth.length = cpu_to_be32(wqe->length - len);
610 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
633 qib_make_ruc_header(qp, ohdr, bth0 | (qp->s_state << 24), bth2);
665 struct qib_other_headers *ohdr;
679 ohdr = &hdr.u.oth;
686 ohdr = &hdr.u.l.oth;
694 ohdr->u.aeth = cpu_to_be32((qp->r_msn & QIB_MSN_MASK) |
698 ohdr->u.aeth = qib_compute_aeth(qp);
705 ohdr->bth[0] = cpu_to_be32(bth0);
706 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn);
707 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & QIB_PSN_MASK);
976 struct qib_other_headers *ohdr;
988 ohdr = &hdr->u.oth;
990 ohdr = &hdr->u.l.oth;
992 opcode = be32_to_cpu(ohdr->bth[0]) >> 24;
1000 psn = be32_to_cpu(ohdr->bth[2]);
1388 * @ohdr: the other headers for this packet
1402 struct qib_other_headers *ohdr,
1428 aeth = be32_to_cpu(ohdr->u.aeth);
1454 aeth = be32_to_cpu(ohdr->u.aeth);
1456 __be32 *p = ohdr->u.at.atomic_ack_eth;
1517 aeth = be32_to_cpu(ohdr->u.aeth);
1521 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1546 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1558 aeth = be32_to_cpu(ohdr->u.aeth);
1589 * @ohdr: the other headers for this packet
1602 static int qib_rc_rcv_error(struct qib_other_headers *ohdr,
1699 reth = &ohdr->u.rc.reth;
1841 struct qib_other_headers *ohdr;
1855 ohdr = &hdr->u.oth;
1858 ohdr = &hdr->u.l.oth;
1862 opcode = be32_to_cpu(ohdr->bth[0]);
1868 psn = be32_to_cpu(ohdr->bth[2]);
1879 qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn,
1887 if (qib_rc_rcv_error(ohdr, data, qp, opcode, psn, diff, rcd))
1984 wc.ex.imm_data = ohdr->u.imm_data;
1992 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
2023 (ohdr->bth[0] &
2033 reth = &ohdr->u.rc.reth;
2089 reth = &ohdr->u.rc.reth;
2161 ateth = &ohdr->u.atomic_eth;