Home
last modified time | relevance | path

Searched refs:ohdr (Results 1 – 21 of 21) sorted by relevance

/linux/include/rdma/
H A Dib_hdrs.h209 static inline u32 ib_get_qkey(struct ib_other_headers *ohdr) in ib_get_qkey() argument
211 return be32_to_cpu(ohdr->u.ud.deth[0]); in ib_get_qkey()
214 static inline u32 ib_get_sqpn(struct ib_other_headers *ohdr) in ib_get_sqpn() argument
216 return ((be32_to_cpu(ohdr->u.ud.deth[1])) & IB_QPN_MASK); in ib_get_sqpn()
237 static inline u8 ib_bth_get_pad(struct ib_other_headers *ohdr) in ib_bth_get_pad() argument
239 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad()
243 static inline u16 ib_bth_get_pkey(struct ib_other_headers *ohdr) in ib_bth_get_pkey() argument
245 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey()
248 static inline u8 ib_bth_get_opcode(struct ib_other_headers *ohdr) in ib_bth_get_opcode() argument
250 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) & in ib_bth_get_opcode()
[all …]
/linux/drivers/infiniband/hw/qib/
H A Dqib_uc.c52 struct ib_other_headers *ohdr; in qib_make_uc_req() local
76 ohdr = &priv->s_hdr->u.oth; in qib_make_uc_req()
78 ohdr = &priv->s_hdr->u.l.oth; in qib_make_uc_req()
119 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
131 ohdr->u.rc.reth.vaddr = in qib_make_uc_req()
133 ohdr->u.rc.reth.rkey = in qib_make_uc_req()
135 ohdr->u.rc.reth.length = cpu_to_be32(len); in qib_make_uc_req()
148 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
177 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
202 ohdr->u.imm_data = wqe->wr.ex.imm_data; in qib_make_uc_req()
[all …]
H A Dqib_rc.c63 struct ib_other_headers *ohdr, u32 pmtu) in qib_make_rc_ack() argument
132 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack()
141 ohdr->u.at.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack()
142 ib_u64_put(e->atomic_data, &ohdr->u.at.atomic_ack_eth); in qib_make_rc_ack()
143 hwords += sizeof(ohdr->u.at) / sizeof(u32); in qib_make_rc_ack()
162 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack()
184 ohdr->u.aeth = in qib_make_rc_ack()
189 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack()
198 qib_make_ruc_header(qp, ohdr, bth0, bth2); in qib_make_rc_ack()
220 struct ib_other_headers *ohdr; in qib_make_rc_req() local
[all …]
H A Dqib_ud.c234 struct ib_other_headers *ohdr; in qib_make_ud_req() local
329 ohdr = &priv->s_hdr->u.l.oth; in qib_make_ud_req()
337 ohdr = &priv->s_hdr->u.oth; in qib_make_ud_req()
341 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in qib_make_ud_req()
368 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req()
372 ohdr->bth[1] = rdma_ah_get_dlid(ah_attr) >= in qib_make_ud_req()
377 ohdr->bth[2] = cpu_to_be32(wqe->psn & QIB_PSN_MASK); in qib_make_ud_req()
382 ohdr->u.ud.deth[0] = in qib_make_ud_req()
385 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in qib_make_ud_req()
430 struct ib_other_headers *ohdr; in qib_ud_rcv() local
[all …]
H A Dqib_ruc.c206 void qib_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr, in qib_make_ruc_header() argument
240 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ruc_header()
241 ohdr->bth[1] = cpu_to_be32(qp->remote_qpn); in qib_make_ruc_header()
242 ohdr->bth[2] = cpu_to_be32(bth2); in qib_make_ruc_header()
H A Dqib_verbs.c278 struct ib_other_headers *ohdr; in qib_ib_rcv() local
300 ohdr = &hdr->u.oth; in qib_ib_rcv()
304 ohdr = &hdr->u.l.oth; in qib_ib_rcv()
313 opcode = (be32_to_cpu(ohdr->bth[0]) >> 24) & 0x7f; in qib_ib_rcv()
320 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_ib_rcv()
H A Dqib_verbs.h321 void qib_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr,
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace.c12 struct ib_other_headers *ohdr; in __get_ib_hdr_len() local
16 ohdr = &hdr->u.oth; in __get_ib_hdr_len()
18 ohdr = &hdr->u.l.oth; in __get_ib_hdr_len()
19 opcode = ib_bth_get_opcode(ohdr); in __get_ib_hdr_len()
26 struct ib_other_headers *ohdr = NULL; in __get_16b_hdr_len() local
36 ohdr = &hdr->u.oth; in __get_16b_hdr_len()
38 ohdr = &hdr->u.l.oth; in __get_16b_hdr_len()
40 opcode = ib_bth_get_opcode(ohdr); in __get_16b_hdr_len()
117 void hfi1_trace_parse_9b_bth(struct ib_other_headers *ohdr, in hfi1_trace_parse_9b_bth() argument
122 *ack = ib_bth_get_ackreq(ohdr); in hfi1_trace_parse_9b_bth()
[all …]
H A Duc.c25 struct ib_other_headers *ohdr; in hfi1_make_uc_req() local
58 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_uc_req()
60 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_uc_req()
66 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_uc_req()
68 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_uc_req()
132 ohdr->u.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
144 ohdr->u.rc.reth.vaddr = in hfi1_make_uc_req()
146 ohdr->u.rc.reth.rkey = in hfi1_make_uc_req()
148 ohdr->u.rc.reth.length = cpu_to_be32(len); in hfi1_make_uc_req()
161 ohdr->u.rc.imm_data = wqe->wr.ex.imm_data; in hfi1_make_uc_req()
[all …]
H A Drc.c68 struct ib_other_headers *ohdr, in make_rc_ack() argument
168 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack()
216 ohdr->u.at.aeth = rvt_compute_aeth(qp); in make_rc_ack()
217 ib_u64_put(e->atomic_data, &ohdr->u.at.atomic_ack_eth); in make_rc_ack()
218 hwords += sizeof(ohdr->u.at) / sizeof(u32); in make_rc_ack()
239 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack()
286 hdrlen = hfi1_build_tid_rdma_write_resp(qp, e, ohdr, &bth1, in make_rc_ack()
309 delta = hfi1_build_tid_rdma_read_resp(qp, e, ohdr, &bth0, in make_rc_ack()
338 ohdr->u.aeth = in make_rc_ack()
343 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack()
[all …]
H A Dud.c225 struct ib_other_headers *ohdr, in hfi1_make_bth_deth() argument
233 ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; in hfi1_make_bth_deth()
248 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_bth_deth()
249 ohdr->bth[1] = cpu_to_be32(rvt_get_swqe_remote_qpn(wqe)); in hfi1_make_bth_deth()
250 ohdr->bth[2] = cpu_to_be32(mask_psn(wqe->psn)); in hfi1_make_bth_deth()
255 ohdr->u.ud.deth[0] = in hfi1_make_bth_deth()
258 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in hfi1_make_bth_deth()
269 struct ib_other_headers *ohdr; in hfi1_make_ud_req_9B() local
293 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_ud_req_9B()
296 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_ud_req_9B()
[all …]
H A Ddriver.c232 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr()
234 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr()
264 qp_num = ib_bth_get_qpn(packet->ohdr); in rcv_hdrerr()
315 opcode = ib_bth_get_opcode(packet->ohdr); in rcv_hdrerr()
329 lqpn = ib_bth_get_qpn(packet->ohdr); in rcv_hdrerr()
406 struct ib_other_headers *ohdr = pkt->ohdr; in hfi1_process_ecn_slowpath() local
422 opcode = ib_bth_get_opcode(ohdr); in hfi1_process_ecn_slowpath()
427 pkey = ib_bth_get_pkey(ohdr); in hfi1_process_ecn_slowpath()
434 opcode = ib_bth_get_opcode(ohdr); in hfi1_process_ecn_slowpath()
436 fecn = ib_bth_get_fecn(ohdr); in hfi1_process_ecn_slowpath()
[all …]
H A Dtid_rdma.c124 struct ib_other_headers *ohdr,
129 struct ib_other_headers *ohdr,
1704 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_read_packet() argument
1712 struct tid_rdma_read_req *rreq = &ohdr->u.tid_rdma.r_req; in hfi1_build_tid_rdma_read_packet()
1726 memset(&ohdr->u.tid_rdma.r_req, 0, sizeof(ohdr->u.tid_rdma.r_req)); in hfi1_build_tid_rdma_read_packet()
1780 return sizeof(ohdr->u.tid_rdma.r_req) / sizeof(u32); in hfi1_build_tid_rdma_read_packet()
1788 struct ib_other_headers *ohdr, u32 *bth1, in hfi1_build_tid_rdma_read_req() argument
1879 hdwords = hfi1_build_tid_rdma_read_packet(wqe, ohdr, bth1, bth2, len); in hfi1_build_tid_rdma_read_req()
1892 struct ib_other_headers *ohdr, in tid_rdma_rcv_read_request() argument
1941 flow->tid_qpn = be32_to_cpu(ohdr->u.tid_rdma.r_req.tid_flow_qp); in tid_rdma_rcv_read_request()
[all …]
H A Dtrace_ibhdrs.h74 void hfi1_trace_parse_9b_bth(struct ib_other_headers *ohdr,
81 void hfi1_trace_parse_16b_bth(struct ib_other_headers *ohdr,
177 hfi1_trace_parse_16b_bth(packet->ohdr,
198 hfi1_trace_parse_9b_bth(packet->ohdr,
214 &packet->ohdr->u,
311 struct ib_other_headers *ohdr;
333 ohdr = NULL;
339 ohdr = &opah->opah.u.oth;
341 ohdr = &opah->opah.u.l.oth;
342 hfi1_trace_parse_16b_bth(ohdr,
[all …]
H A Dtid_rdma.h245 struct ib_other_headers *ohdr,
248 struct ib_other_headers *ohdr, u32 *bth1,
252 struct ib_other_headers *ohdr, u32 *bth0,
275 struct ib_other_headers *ohdr,
281 struct ib_other_headers *ohdr, u32 *bth1,
290 struct ib_other_headers *ohdr,
296 struct ib_other_headers *ohdr, u16 iflow,
305 struct ib_other_headers *ohdr, u32 *bth1,
H A Druc.c208 struct ib_other_headers *ohdr, in hfi1_make_ruc_bth() argument
211 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_make_ruc_bth()
212 ohdr->bth[1] = cpu_to_be32(bth1); in hfi1_make_ruc_bth()
213 ohdr->bth[2] = cpu_to_be32(bth2); in hfi1_make_ruc_bth()
232 struct ib_other_headers *ohdr, in hfi1_make_ruc_header_16B() argument
288 hfi1_make_ruc_bth(qp, ohdr, bth0, bth1, bth2); in hfi1_make_ruc_header_16B()
321 struct ib_other_headers *ohdr, in hfi1_make_ruc_header_9B() argument
366 hfi1_make_ruc_bth(qp, ohdr, bth0, bth1, bth2); in hfi1_make_ruc_header_9B()
376 struct ib_other_headers *ohdr,
386 void hfi1_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr, in hfi1_make_ruc_header() argument
[all …]
H A Dipoib_tx.c264 struct ib_other_headers *ohdr; in hfi1_ipoib_build_ib_tx_headers() local
294 ohdr = &sdma_hdr->hdr.ibh.u.l.oth; in hfi1_ipoib_build_ib_tx_headers()
297 ohdr = &sdma_hdr->hdr.ibh.u.oth; in hfi1_ipoib_build_ib_tx_headers()
328 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_ipoib_build_ib_tx_headers()
329 ohdr->bth[1] = cpu_to_be32(txp->dqpn); in hfi1_ipoib_build_ib_tx_headers()
330 ohdr->bth[2] = cpu_to_be32(mask_psn((u32)txp->txq->tx_ring.sent_txreqs)); in hfi1_ipoib_build_ib_tx_headers()
333 ohdr->u.ud.deth[0] = cpu_to_be32(priv->qkey); in hfi1_ipoib_build_ib_tx_headers()
334 ohdr->u.ud.deth[1] = cpu_to_be32((txp->entropy << in hfi1_ipoib_build_ib_tx_headers()
H A Dverbs.c349 packet->ohdr = &hdr->u.oth; in hfi1_kdeth_eager_rcv()
352 opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24); in hfi1_kdeth_eager_rcv()
356 qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_req.verbs_qp) & in hfi1_kdeth_eager_rcv()
403 packet->ohdr = &hdr->u.oth; in hfi1_kdeth_expected_rcv()
406 opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24); in hfi1_kdeth_expected_rcv()
410 qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_rsp.verbs_qp) & in hfi1_kdeth_expected_rcv()
503 qp_num = ib_bth_get_qpn(packet->ohdr); in hfi1_handle_packet()
1217 struct ib_other_headers *ohdr = NULL; in hfi1_verbs_send() local
1230 ohdr = &hdr->u.oth; in hfi1_verbs_send()
1232 ohdr = &hdr->u.l.oth; in hfi1_verbs_send()
[all …]
H A Dverbs.h399 void hfi1_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr,
440 static inline bool opa_bth_is_migration(struct ib_other_headers *ohdr) in opa_bth_is_migration() argument
442 return ohdr->bth[1] & cpu_to_be32(OPA_BTH_MIG_REQ); in opa_bth_is_migration()
/linux/fs/ntfs3/
H A Dlznt.c150 u8 ohdr = 0; in compress_chunk() local
183 ohdr |= 1 << cnt; in compress_chunk()
189 *cp2 = ohdr; in compress_chunk()
190 ohdr = 0; in compress_chunk()
197 *cp2 = ohdr; in compress_chunk()
/linux/net/ipv6/
H A Dexthdrs.c484 struct ipv6_rpl_sr_hdr *hdr, *ohdr, *chdr; in ipv6_rpl_srh_rcv() local
565 ohdr = (struct ipv6_rpl_sr_hdr *)buf; in ipv6_rpl_srh_rcv()
566 ipv6_rpl_srh_decompress(ohdr, hdr, &ipv6_hdr(skb)->daddr, n); in ipv6_rpl_srh_rcv()
567 chdr = (struct ipv6_rpl_sr_hdr *)(buf + ((ohdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv()
569 if (ipv6_addr_is_multicast(&ohdr->rpl_segaddr[i])) { in ipv6_rpl_srh_rcv()
575 err = ipv6_chk_rpl_srh_loop(net, ohdr->rpl_segaddr, n + 1); in ipv6_rpl_srh_rcv()
583 swap(ipv6_hdr(skb)->daddr, ohdr->rpl_segaddr[i]); in ipv6_rpl_srh_rcv()
585 ipv6_rpl_srh_compress(chdr, ohdr, &ipv6_hdr(skb)->daddr, n); in ipv6_rpl_srh_rcv()