Lines Matching defs:ohdr
79 * @ohdr: a pointer to the IB header being constructed
87 struct ipath_other_headers *ohdr, u32 pmtu)
137 ohdr->u.aeth = ipath_compute_aeth(qp);
146 ohdr->u.at.aeth = ipath_compute_aeth(qp);
147 ohdr->u.at.atomic_ack_eth[0] =
149 ohdr->u.at.atomic_ack_eth[1] =
151 hwords += sizeof(ohdr->u.at) / sizeof(u32);
166 ohdr->u.aeth = ipath_compute_aeth(qp);
187 ohdr->u.aeth =
192 ohdr->u.aeth = ipath_compute_aeth(qp);
200 ipath_make_ruc_header(dev, qp, ohdr, bth0, bth2);
216 struct ipath_other_headers *ohdr;
228 ohdr = &qp->s_hdr.u.oth;
230 ohdr = &qp->s_hdr.u.l.oth;
242 ipath_make_rc_ack(dev, qp, ohdr, pmtu))
331 ohdr->u.imm_data = wqe->wr.ex.imm_data;
352 ohdr->u.rc.reth.vaddr =
354 ohdr->u.rc.reth.rkey =
356 ohdr->u.rc.reth.length = cpu_to_be32(len);
371 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data;
403 ohdr->u.rc.reth.vaddr =
405 ohdr->u.rc.reth.rkey =
407 ohdr->u.rc.reth.length = cpu_to_be32(len);
409 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
435 ohdr->u.atomic_eth.swap_data = cpu_to_be64(
437 ohdr->u.atomic_eth.compare_data = cpu_to_be64(
441 ohdr->u.atomic_eth.swap_data = cpu_to_be64(
443 ohdr->u.atomic_eth.compare_data = 0;
445 ohdr->u.atomic_eth.vaddr[0] = cpu_to_be32(
447 ohdr->u.atomic_eth.vaddr[1] = cpu_to_be32(
449 ohdr->u.atomic_eth.rkey = cpu_to_be32(
515 ohdr->u.imm_data = wqe->wr.ex.imm_data;
551 ohdr->u.imm_data = wqe->wr.ex.imm_data;
569 ohdr->u.rc.reth.vaddr =
571 ohdr->u.rc.reth.rkey =
573 ohdr->u.rc.reth.length = cpu_to_be32(qp->s_len);
575 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32);
591 ipath_make_ruc_header(dev, qp, ohdr, bth0 | (qp->s_state << 24), bth2);
621 struct ipath_other_headers *ohdr;
653 ohdr = &hdr.u.oth;
661 ohdr = &hdr.u.l.oth;
668 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IPATH_MSN_MASK) |
672 ohdr->u.aeth = ipath_compute_aeth(qp);
679 ohdr->bth[0] = cpu_to_be32(bth0);
680 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn);
681 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & IPATH_PSN_MASK);
1103 * @ohdr: the other headers for this packet
1118 struct ipath_other_headers *ohdr,
1149 aeth = be32_to_cpu(ohdr->u.aeth);
1170 aeth = be32_to_cpu(ohdr->u.aeth);
1177 __be32 *p = ohdr->u.at.atomic_ack_eth;
1242 aeth = be32_to_cpu(ohdr->u.aeth);
1248 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1279 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1292 aeth = be32_to_cpu(ohdr->u.aeth);
1321 * @ohdr: the other headers for this packet
1336 struct ipath_other_headers *ohdr,
1424 reth = &ohdr->u.rc.reth;
1568 struct ipath_other_headers *ohdr;
1586 ohdr = &hdr->u.oth;
1588 psn = be32_to_cpu(ohdr->bth[2]);
1591 ohdr = &hdr->u.l.oth;
1603 psn = be32_to_cpu(ohdr->bth[2]);
1612 opcode = be32_to_cpu(ohdr->bth[0]) >> 24;
1615 ipath_rc_rcv_resp(dev, ohdr, data, tlen, qp, opcode, psn,
1623 if (ipath_rc_rcv_error(dev, ohdr, data, qp, opcode,
1705 wc.ex.imm_data = ohdr->u.imm_data;
1714 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3;
1740 (ohdr->bth[0] &
1753 reth = &ohdr->u.rc.reth;
1810 reth = &ohdr->u.rc.reth;
1886 ateth = &ohdr->u.atomic_eth;