Lines Matching refs:ohdr

87 			     struct ipath_other_headers *ohdr, u32 pmtu)  in ipath_make_rc_ack()  argument
137 ohdr->u.aeth = ipath_compute_aeth(qp); in ipath_make_rc_ack()
146 ohdr->u.at.aeth = ipath_compute_aeth(qp); in ipath_make_rc_ack()
147 ohdr->u.at.atomic_ack_eth[0] = in ipath_make_rc_ack()
149 ohdr->u.at.atomic_ack_eth[1] = in ipath_make_rc_ack()
151 hwords += sizeof(ohdr->u.at) / sizeof(u32); in ipath_make_rc_ack()
166 ohdr->u.aeth = ipath_compute_aeth(qp); in ipath_make_rc_ack()
187 ohdr->u.aeth = in ipath_make_rc_ack()
192 ohdr->u.aeth = ipath_compute_aeth(qp); in ipath_make_rc_ack()
200 ipath_make_ruc_header(dev, qp, ohdr, bth0, bth2); in ipath_make_rc_ack()
216 struct ipath_other_headers *ohdr; in ipath_make_rc_req() local
228 ohdr = &qp->s_hdr.u.oth; in ipath_make_rc_req()
230 ohdr = &qp->s_hdr.u.l.oth; in ipath_make_rc_req()
242 ipath_make_rc_ack(dev, qp, ohdr, pmtu)) in ipath_make_rc_req()
331 ohdr->u.imm_data = wqe->wr.ex.imm_data; in ipath_make_rc_req()
352 ohdr->u.rc.reth.vaddr = in ipath_make_rc_req()
354 ohdr->u.rc.reth.rkey = in ipath_make_rc_req()
356 ohdr->u.rc.reth.length = cpu_to_be32(len); in ipath_make_rc_req()
371 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in ipath_make_rc_req()
403 ohdr->u.rc.reth.vaddr = in ipath_make_rc_req()
405 ohdr->u.rc.reth.rkey = in ipath_make_rc_req()
407 ohdr->u.rc.reth.length = cpu_to_be32(len); in ipath_make_rc_req()
409 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32); in ipath_make_rc_req()
435 ohdr->u.atomic_eth.swap_data = cpu_to_be64( in ipath_make_rc_req()
437 ohdr->u.atomic_eth.compare_data = cpu_to_be64( in ipath_make_rc_req()
441 ohdr->u.atomic_eth.swap_data = cpu_to_be64( in ipath_make_rc_req()
443 ohdr->u.atomic_eth.compare_data = 0; in ipath_make_rc_req()
445 ohdr->u.atomic_eth.vaddr[0] = cpu_to_be32( in ipath_make_rc_req()
447 ohdr->u.atomic_eth.vaddr[1] = cpu_to_be32( in ipath_make_rc_req()
449 ohdr->u.atomic_eth.rkey = cpu_to_be32( in ipath_make_rc_req()
515 ohdr->u.imm_data = wqe->wr.ex.imm_data; in ipath_make_rc_req()
551 ohdr->u.imm_data = wqe->wr.ex.imm_data; in ipath_make_rc_req()
569 ohdr->u.rc.reth.vaddr = in ipath_make_rc_req()
571 ohdr->u.rc.reth.rkey = in ipath_make_rc_req()
573 ohdr->u.rc.reth.length = cpu_to_be32(qp->s_len); in ipath_make_rc_req()
575 hwords += sizeof(ohdr->u.rc.reth) / sizeof(u32); in ipath_make_rc_req()
591 ipath_make_ruc_header(dev, qp, ohdr, bth0 | (qp->s_state << 24), bth2); in ipath_make_rc_req()
621 struct ipath_other_headers *ohdr; in send_rc_ack() local
653 ohdr = &hdr.u.oth; in send_rc_ack()
661 ohdr = &hdr.u.l.oth; in send_rc_ack()
668 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IPATH_MSN_MASK) | in send_rc_ack()
672 ohdr->u.aeth = ipath_compute_aeth(qp); in send_rc_ack()
679 ohdr->bth[0] = cpu_to_be32(bth0); in send_rc_ack()
680 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in send_rc_ack()
681 ohdr->bth[2] = cpu_to_be32(qp->r_ack_psn & IPATH_PSN_MASK); in send_rc_ack()
1118 struct ipath_other_headers *ohdr, in ipath_rc_rcv_resp() argument
1149 aeth = be32_to_cpu(ohdr->u.aeth); in ipath_rc_rcv_resp()
1170 aeth = be32_to_cpu(ohdr->u.aeth); in ipath_rc_rcv_resp()
1177 __be32 *p = ohdr->u.at.atomic_ack_eth; in ipath_rc_rcv_resp()
1242 aeth = be32_to_cpu(ohdr->u.aeth); in ipath_rc_rcv_resp()
1248 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_rc_rcv_resp()
1279 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_rc_rcv_resp()
1292 aeth = be32_to_cpu(ohdr->u.aeth); in ipath_rc_rcv_resp()
1336 struct ipath_other_headers *ohdr, in ipath_rc_rcv_error() argument
1424 reth = &ohdr->u.rc.reth; in ipath_rc_rcv_error()
1573 struct ipath_other_headers *ohdr; in ipath_rc_rcv() local
1591 ohdr = &hdr->u.oth; in ipath_rc_rcv()
1593 psn = be32_to_cpu(ohdr->bth[2]); in ipath_rc_rcv()
1596 ohdr = &hdr->u.l.oth; in ipath_rc_rcv()
1608 psn = be32_to_cpu(ohdr->bth[2]); in ipath_rc_rcv()
1617 opcode = be32_to_cpu(ohdr->bth[0]) >> 24; in ipath_rc_rcv()
1620 ipath_rc_rcv_resp(dev, ohdr, data, tlen, qp, opcode, psn, in ipath_rc_rcv()
1628 if (ipath_rc_rcv_error(dev, ohdr, data, qp, opcode, in ipath_rc_rcv()
1710 wc.ex.imm_data = ohdr->u.imm_data; in ipath_rc_rcv()
1719 pad = (be32_to_cpu(ohdr->bth[0]) >> 20) & 3; in ipath_rc_rcv()
1746 (ohdr->bth[0] & in ipath_rc_rcv()
1759 reth = &ohdr->u.rc.reth; in ipath_rc_rcv()
1816 reth = &ohdr->u.rc.reth; in ipath_rc_rcv()
1892 ateth = &ohdr->u.atomic_eth; in ipath_rc_rcv()