/linux-6.3-rc2/include/rdma/ |
A D | ib_hdrs.h | 209 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() 216 return ((be32_to_cpu(ohdr->u.ud.deth[1])) & IB_QPN_MASK); in ib_get_sqpn() 239 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad() 245 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey() 274 return (u32)(be32_to_cpu(ohdr->bth[2])); in ib_bth_get_psn() 279 return (u32)((be32_to_cpu(ohdr->bth[1])) & IB_QPN_MASK); in ib_bth_get_qpn() 284 return (ohdr->bth[1]) & cpu_to_be32(IB_BECN_SMASK); in ib_bth_get_becn() 289 return (ohdr->bth[1]) & cpu_to_be32(IB_FECN_SMASK); in ib_bth_get_fecn() 300 return ohdr->bth[0] & cpu_to_be32(IB_BTH_SOLICITED); in ib_bth_is_solicited() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/qib/ |
A D | qib_uc.c | 52 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() 131 ohdr->u.rc.reth.vaddr = in qib_make_uc_req() 133 ohdr->u.rc.reth.rkey = in qib_make_uc_req() 241 struct ib_other_headers *ohdr; in qib_uc_rcv() local 253 ohdr = &hdr->u.oth; in qib_uc_rcv() 256 ohdr = &hdr->u.l.oth; in qib_uc_rcv() 260 opcode = be32_to_cpu(ohdr->bth[0]); in qib_uc_rcv() 264 psn = be32_to_cpu(ohdr->bth[2]); in qib_uc_rcv() [all …]
|
A D | qib_rc.c | 184 ohdr->u.aeth = in qib_make_rc_ack() 350 ohdr->u.rc.reth.rkey = in qib_make_rc_req() 364 ohdr->u.rc.imm_data = in qib_make_rc_req() 393 ohdr->u.rc.reth.rkey = in qib_make_rc_req() 555 ohdr->u.rc.reth.rkey = in qib_make_rc_req() 624 ohdr = &hdr.u.oth; in qib_send_rc_ack() 633 ohdr = &hdr.u.l.oth; in qib_send_rc_ack() 894 ohdr = &hdr->u.oth; in qib_rc_send_complete() 896 ohdr = &hdr->u.l.oth; in qib_rc_send_complete() 1732 ohdr = &hdr->u.oth; in qib_rc_rcv() [all …]
|
A D | qib_ud.c | 234 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() 368 ohdr->bth[0] = cpu_to_be32(bth0); in qib_make_ud_req() 382 ohdr->u.ud.deth[0] = in qib_make_ud_req() 430 struct ib_other_headers *ohdr; in qib_ud_rcv() local 441 ohdr = &hdr->u.oth; in qib_ud_rcv() 444 ohdr = &hdr->u.l.oth; in qib_ud_rcv() 447 qkey = be32_to_cpu(ohdr->u.ud.deth[0]); in qib_ud_rcv() 471 pkey1 = be32_to_cpu(ohdr->bth[0]); in qib_ud_rcv() [all …]
|
A D | qib_driver.c | 303 struct ib_other_headers *ohdr = NULL; in qib_rcv_hdrerr() local 328 ohdr = &hdr->u.oth; in qib_rcv_hdrerr() 332 ohdr = &hdr->u.l.oth; in qib_rcv_hdrerr() 342 opcode = be32_to_cpu(ohdr->bth[0]); in qib_rcv_hdrerr() 344 psn = be32_to_cpu(ohdr->bth[2]); in qib_rcv_hdrerr() 347 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_rcv_hdrerr() 378 be32_to_cpu(ohdr->bth[0])); in qib_rcv_hdrerr()
|
A D | qib_ruc.c | 206 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()
|
A D | qib_verbs.c | 278 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()
|
A D | qib_verbs.h | 325 void qib_make_ruc_header(struct rvt_qp *qp, struct ib_other_headers *ohdr,
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | trace.c | 12 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() 36 ohdr = &hdr->u.oth; in __get_16b_hdr_len() 38 ohdr = &hdr->u.l.oth; in __get_16b_hdr_len() 126 *se = ib_bth_get_se(ohdr); in hfi1_trace_parse_9b_bth() 127 *pad = ib_bth_get_pad(ohdr); in hfi1_trace_parse_9b_bth() 132 *qpn = ib_bth_get_qpn(ohdr); in hfi1_trace_parse_9b_bth() 143 *pad = ib_bth_get_pad(ohdr); in hfi1_trace_parse_16b_bth() [all …]
|
A D | uc.c | 25 struct ib_other_headers *ohdr; in hfi1_make_uc_req() local 60 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_uc_req() 68 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; 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() 265 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_uc_rcv() local 281 psn = ib_bth_get_psn(ohdr); in hfi1_uc_rcv() 389 wc.ex.imm_data = ohdr->u.imm_data; in hfi1_uc_rcv() 444 reth = &ohdr->u.rc.reth; in hfi1_uc_rcv() 469 wc.ex.imm_data = ohdr->u.rc.imm_data; in hfi1_uc_rcv() [all …]
|
A D | rc.c | 338 ohdr->u.aeth = in make_rc_ack() 596 &ohdr->u.rc.reth); in hfi1_make_rc_req() 744 &ohdr->u.rc.reth); in hfi1_make_rc_req() 994 &ohdr->u.rc.reth); in hfi1_make_rc_req() 1152 ohdr, in hfi1_make_rc_req() 1235 ohdr = &hdr->u.oth; in hfi1_make_rc_ack_9B() 1243 ohdr = &hdr->u.l.oth; in hfi1_make_rc_ack_9B() 1290 ohdr = &hdr->u.oth; in hfi1_make_rc_ack_16B() 1301 ohdr = &hdr->u.l.oth; in hfi1_make_rc_ack_16B() 2309 struct ib_other_headers *ohdr = packet->ohdr; in rc_rcv_resp() local [all …]
|
A D | ud.c | 255 ohdr->u.ud.deth[0] = in hfi1_make_bth_deth() 269 struct ib_other_headers *ohdr; in hfi1_make_ud_req_9B() local 336 struct ib_other_headers *ohdr; in hfi1_make_ud_req_16B() local 600 struct ib_other_headers *ohdr; in return_cnp_16B() local 619 ohdr = &hdr.opah.u.l.oth; in return_cnp_16B() 623 ohdr = &hdr.opah.u.oth; in return_cnp_16B() 633 ohdr->bth[2] = 0; /* PSN 0 */ in return_cnp_16B() 662 struct ib_other_headers *ohdr; in return_cnp() local 677 ohdr = &hdr.ibh.u.l.oth; in return_cnp() 681 ohdr = &hdr.ibh.u.oth; in return_cnp() [all …]
|
A D | driver.c | 232 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr() 234 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr() 406 struct ib_other_headers *ohdr = pkt->ohdr; in hfi1_process_ecn_slowpath() local 427 pkey = ib_bth_get_pkey(ohdr); in hfi1_process_ecn_slowpath() 436 fecn = ib_bth_get_fecn(ohdr); in hfi1_process_ecn_slowpath() 437 becn = ib_bth_get_becn(ohdr); in hfi1_process_ecn_slowpath() 602 packet->ohdr = &hdr->u.oth; in __prescan_rxq() 1484 packet->ohdr = &hdr->u.oth; in hfi1_setup_9B_packet() 1544 packet->ohdr = packet->ebuf; in hfi1_setup_bypass_packet() 1572 packet->ohdr = NULL; in hfi1_setup_bypass_packet() [all …]
|
A D | tid_rdma.c | 1726 memset(&ohdr->u.tid_rdma.r_req, 0, sizeof(ohdr->u.tid_rdma.r_req)); in hfi1_build_tid_rdma_read_packet() 2233 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_read_req() local 2451 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_read_resp() local 2874 packet->ohdr = &hdr->u.oth; in hfi1_handle_kdeth_eflags() 2875 ohdr = packet->ohdr; in hfi1_handle_kdeth_eflags() 3662 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_req() local 3893 memset(&ohdr->u.tid_rdma.w_rsp, 0, sizeof(ohdr->u.tid_rdma.w_rsp)); in hfi1_build_tid_rdma_write_resp() 4040 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_resp() local 4274 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_write_data() local 4499 struct ib_other_headers *ohdr = packet->ohdr; in hfi1_rc_rcv_tid_rdma_ack() local [all …]
|
A D | trace_ibhdrs.h | 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, 363 ohdr = &opah->ibh.u.oth; 365 ohdr = &opah->ibh.u.l.oth; [all …]
|
A D | tid_rdma.h | 245 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,
|
A D | ruc.c | 208 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 …]
|
A D | ipoib_tx.c | 263 struct ib_other_headers *ohdr; in hfi1_ipoib_build_ib_tx_headers() local 293 ohdr = &sdma_hdr->hdr.ibh.u.l.oth; in hfi1_ipoib_build_ib_tx_headers() 296 ohdr = &sdma_hdr->hdr.ibh.u.oth; in hfi1_ipoib_build_ib_tx_headers() 327 ohdr->bth[0] = cpu_to_be32(bth0); in hfi1_ipoib_build_ib_tx_headers() 328 ohdr->bth[1] = cpu_to_be32(txp->dqpn); in hfi1_ipoib_build_ib_tx_headers() 329 ohdr->bth[2] = cpu_to_be32(mask_psn((u32)txp->txq->tx_ring.sent_txreqs)); in hfi1_ipoib_build_ib_tx_headers() 332 ohdr->u.ud.deth[0] = cpu_to_be32(priv->qkey); in hfi1_ipoib_build_ib_tx_headers() 333 ohdr->u.ud.deth[1] = cpu_to_be32((txp->entropy << in hfi1_ipoib_build_ib_tx_headers()
|
A D | verbs.c | 349 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() 403 packet->ohdr = &hdr->u.oth; 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() 1241 ohdr = &hdr->u.l.oth; in hfi1_verbs_send() 1243 ohdr = &hdr->u.oth; in hfi1_verbs_send() 1245 pkey = ib_bth_get_pkey(ohdr); in hfi1_verbs_send() [all …]
|
A D | verbs.h | 399 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()
|
A D | hfi.h | 340 struct ib_other_headers *ohdr; member 483 static inline u8 hfi1_16B_bth_get_pad(struct ib_other_headers *ohdr) in hfi1_16B_bth_get_pad() argument 485 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in hfi1_16B_bth_get_pad() 517 struct ib_other_headers *ohdr; in hfi1_get_rc_ohdr() local 525 ohdr = &hdr->u.oth; in hfi1_get_rc_ohdr() 527 ohdr = &hdr->u.l.oth; in hfi1_get_rc_ohdr() 534 ohdr = &hdr_16b->u.oth; in hfi1_get_rc_ohdr() 536 ohdr = &hdr_16b->u.l.oth; in hfi1_get_rc_ohdr() 538 return ohdr; in hfi1_get_rc_ohdr() 1962 fecn = ib_bth_get_fecn(pkt->ohdr); in hfi1_may_ecn() [all …]
|
/linux-6.3-rc2/fs/ntfs3/ |
A D | lznt.c | 150 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-6.3-rc2/net/ipv6/ |
A D | exthdrs.c | 491 struct ipv6_rpl_sr_hdr *hdr, *ohdr, *chdr; in ipv6_rpl_srh_rcv() local 605 ohdr = (struct ipv6_rpl_sr_hdr *)buf; in ipv6_rpl_srh_rcv() 606 ipv6_rpl_srh_decompress(ohdr, hdr, &ipv6_hdr(skb)->daddr, n); in ipv6_rpl_srh_rcv() 607 chdr = (struct ipv6_rpl_sr_hdr *)(buf + ((ohdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv() 610 (ipv6_addr_type(&ohdr->rpl_segaddr[i]) & IPV6_ADDR_MULTICAST)) { in ipv6_rpl_srh_rcv() 616 err = ipv6_chk_rpl_srh_loop(net, ohdr->rpl_segaddr, n + 1); in ipv6_rpl_srh_rcv() 624 swap(ipv6_hdr(skb)->daddr, ohdr->rpl_segaddr[i]); in ipv6_rpl_srh_rcv() 626 ipv6_rpl_srh_compress(chdr, ohdr, &ipv6_hdr(skb)->daddr, n); in ipv6_rpl_srh_rcv()
|