Lines Matching refs:rhf

162 static inline void *get_egrbuf(const struct hfi1_ctxtdata *rcd, u64 rhf,  in get_egrbuf()  argument
165 u32 idx = rhf_egr_index(rhf), offset = rhf_egr_buf_offset(rhf); in get_egrbuf()
217 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
224 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
228 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr()
247 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
249 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr()
315 if (rhf_use_egr_bfr(packet->rhf)) in rcv_hdrerr()
332 sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf); in rcv_hdrerr()
363 packet->rhf &= ~RHF_RCV_TYPE_ERR_SMASK; in rcv_hdrerr()
383 packet->rhf = rhf_to_cpu(packet->rhf_addr); in init_packet()
434 sc = hfi1_9B_get_sc5(pkt->hdr, pkt->rhf); in hfi1_process_ecn_slowpath()
529 static inline int ps_done(struct ps_mdata *mdata, u64 rhf, in ps_done() argument
534 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_done()
537 static inline int ps_skip(struct ps_mdata *mdata, u64 rhf, in ps_skip() argument
545 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_skip()
590 u64 rhf = rhf_to_cpu(rhf_addr); in __prescan_rxq() local
591 u32 etype = rhf_rcv_type(rhf), qpn, bth1; in __prescan_rxq()
594 if (ps_done(&mdata, rhf, rcd)) in __prescan_rxq()
597 if (ps_skip(&mdata, rhf, rcd)) in __prescan_rxq()
709 packet->rhf = rhf_to_cpu(packet->rhf_addr); in skip_rcv_packet()
716 packet->etype = rhf_rcv_type(packet->rhf); in process_rcv_packet_napi()
719 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet_napi()
721 packet->etail = rhf_egr_index(packet->rhf); in process_rcv_packet_napi()
722 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet_napi()
731 (rhf_hdrq_offset(packet->rhf) in process_rcv_packet_napi()
744 packet->rhf = rhf_to_cpu(packet->rhf_addr); in process_rcv_packet_napi()
751 packet->etype = rhf_rcv_type(packet->rhf); in process_rcv_packet()
754 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet()
757 if (rhf_use_egr_bfr(packet->rhf)) { in process_rcv_packet()
758 packet->etail = rhf_egr_index(packet->rhf); in process_rcv_packet()
759 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet()
768 (rhf_hdrq_offset(packet->rhf) in process_rcv_packet()
792 packet->rhf = rhf_to_cpu(packet->rhf_addr); in process_rcv_packet()
839 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_fp()
844 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_fp()
864 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) { in handle_receive_interrupt_nodma_rtail()
873 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_nodma_rtail()
956 u8 etype = rhf_rcv_type(packet->rhf); in __set_armed_to_active()
962 sc = hfi1_9B_get_sc5(hdr, packet->rhf); in __set_armed_to_active()
1023 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) { in handle_receive_interrupt()
1041 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt()
1054 packet.rhf = rhf_to_cpu(packet.rhf_addr); in handle_receive_interrupt()
1066 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt()
1079 rhf_rcv_seq(packet.rhf)); in handle_receive_interrupt()
1121 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_sp()
1131 packet.rhf = rhf_to_cpu(packet.rhf_addr); in handle_receive_interrupt_napi_sp()
1139 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_sp()
1516 packet->sc = hfi1_9B_get_sc5(hdr, packet->rhf); in hfi1_setup_9B_packet()
1614 u32 rte = rhf_rcv_type_err(packet->rhf); in show_eflags_errs()
1618 rcd->ctxt, packet->rhf, in show_eflags_errs()
1619 packet->rhf & RHF_K_HDR_LEN_ERR ? "k_hdr_len " : "", in show_eflags_errs()
1620 packet->rhf & RHF_DC_UNC_ERR ? "dc_unc " : "", in show_eflags_errs()
1621 packet->rhf & RHF_DC_ERR ? "dc " : "", in show_eflags_errs()
1622 packet->rhf & RHF_TID_ERR ? "tid " : "", in show_eflags_errs()
1623 packet->rhf & RHF_LEN_ERR ? "len " : "", in show_eflags_errs()
1624 packet->rhf & RHF_ECC_ERR ? "ecc " : "", in show_eflags_errs()
1625 packet->rhf & RHF_ICRC_ERR ? "icrc " : "", in show_eflags_errs()
1634 if (rhf_err_flags(packet->rhf)) in handle_eflags()
1658 if (unlikely(rhf_err_flags(packet->rhf))) { in hfi1_ipoib_ib_rcv()
1668 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_ipoib_ib_rcv()
1726 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_ib()
1743 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_bypass()
1758 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass()
1775 (rhf_rcv_type_err(packet->rhf) == RHF_RCV_TYPE_ERROR || in process_receive_error()
1776 packet->rhf & RHF_DC_ERR))) in process_receive_error()
1782 if (unlikely(rhf_err_flags(packet->rhf))) in process_receive_error()
1793 if (unlikely(rhf_err_flags(packet->rhf))) { in kdeth_process_expected()
1810 if (unlikely(rhf_err_flags(packet->rhf))) { in kdeth_process_eager()
1824 rhf_rcv_type(packet->rhf)); in process_receive_invalid()
1853 u64 rhf = rhf_to_cpu(rhf_addr); in seqfile_dump_rcd() local
1854 u32 etype = rhf_rcv_type(rhf), qpn; in seqfile_dump_rcd()
1859 if (ps_done(&mdata, rhf, rcd)) in seqfile_dump_rcd()
1862 if (ps_skip(&mdata, rhf, rcd)) in seqfile_dump_rcd()