Lines Matching refs:rhf

201 static inline void *get_egrbuf(const struct hfi1_ctxtdata *rcd, u64 rhf,  in get_egrbuf()  argument
204 u32 idx = rhf_egr_index(rhf), offset = rhf_egr_buf_offset(rhf); in get_egrbuf()
256 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
263 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
267 if (packet->rhf & (RHF_VCRC_ERR | RHF_ICRC_ERR)) in rcv_hdrerr()
286 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
288 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr()
354 if (rhf_use_egr_bfr(packet->rhf)) in rcv_hdrerr()
371 sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf); in rcv_hdrerr()
402 packet->rhf &= ~RHF_RCV_TYPE_ERR_SMASK; in rcv_hdrerr()
422 packet->rhf = rhf_to_cpu(packet->rhf_addr); in init_packet()
458 sc = hfi1_9B_get_sc5(pkt->hdr, pkt->rhf); in hfi1_process_ecn_slowpath()
537 static inline int ps_done(struct ps_mdata *mdata, u64 rhf, in ps_done() argument
542 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_done()
545 static inline int ps_skip(struct ps_mdata *mdata, u64 rhf, in ps_skip() argument
553 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_skip()
600 u64 rhf = rhf_to_cpu(rhf_addr); in __prescan_rxq() local
601 u32 etype = rhf_rcv_type(rhf), qpn, bth1; in __prescan_rxq()
605 if (ps_done(&mdata, rhf, rcd)) in __prescan_rxq()
608 if (ps_skip(&mdata, rhf, rcd)) in __prescan_rxq()
721 packet->rhf = rhf_to_cpu(packet->rhf_addr); in skip_rcv_packet()
730 packet->etype = rhf_rcv_type(packet->rhf); in process_rcv_packet()
733 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet()
736 if (rhf_use_egr_bfr(packet->rhf)) { in process_rcv_packet()
737 packet->etail = rhf_egr_index(packet->rhf); in process_rcv_packet()
738 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet()
747 (rhf_hdrq_offset(packet->rhf) in process_rcv_packet()
771 packet->rhf = rhf_to_cpu(packet->rhf_addr); in process_rcv_packet()
814 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt_nodma_rtail()
824 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt_nodma_rtail()
947 u8 etype = rhf_rcv_type(packet->rhf); in set_armed_to_active()
953 sc = hfi1_9B_get_sc5(hdr, packet->rhf); in set_armed_to_active()
997 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1017 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1037 packet.rhf = rhf_to_cpu(packet.rhf_addr); in handle_receive_interrupt()
1052 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1071 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1457 packet->sc = hfi1_9B_get_sc5(hdr, packet->rhf); in hfi1_setup_9B_packet()
1555 u32 rte = rhf_rcv_type_err(packet->rhf); in handle_eflags()
1558 if (rhf_err_flags(packet->rhf)) in handle_eflags()
1561 rcd->ctxt, packet->rhf, in handle_eflags()
1562 packet->rhf & RHF_K_HDR_LEN_ERR ? "k_hdr_len " : "", in handle_eflags()
1563 packet->rhf & RHF_DC_UNC_ERR ? "dc_unc " : "", in handle_eflags()
1564 packet->rhf & RHF_DC_ERR ? "dc " : "", in handle_eflags()
1565 packet->rhf & RHF_TID_ERR ? "tid " : "", in handle_eflags()
1566 packet->rhf & RHF_LEN_ERR ? "len " : "", in handle_eflags()
1567 packet->rhf & RHF_ECC_ERR ? "ecc " : "", in handle_eflags()
1568 packet->rhf & RHF_VCRC_ERR ? "vcrc " : "", in handle_eflags()
1569 packet->rhf & RHF_ICRC_ERR ? "icrc " : "", in handle_eflags()
1587 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_ib()
1623 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_bypass()
1638 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass()
1656 (rhf_rcv_type_err(packet->rhf) == RHF_RCV_TYPE_ERROR || in process_receive_error()
1657 packet->rhf & RHF_DC_ERR))) in process_receive_error()
1663 if (unlikely(rhf_err_flags(packet->rhf))) in process_receive_error()
1676 if (unlikely(rhf_err_flags(packet->rhf))) in kdeth_process_expected()
1689 if (unlikely(rhf_err_flags(packet->rhf))) in kdeth_process_eager()
1700 rhf_rcv_type(packet->rhf)); in process_receive_invalid()
1724 u64 rhf = rhf_to_cpu(rhf_addr); in seqfile_dump_rcd() local
1725 u32 etype = rhf_rcv_type(rhf), qpn; in seqfile_dump_rcd()
1730 if (ps_done(&mdata, rhf, rcd)) in seqfile_dump_rcd()
1733 if (ps_skip(&mdata, rhf, rcd)) in seqfile_dump_rcd()