Lines Matching refs:rhf
199 static inline void *get_egrbuf(const struct hfi1_ctxtdata *rcd, u64 rhf, in get_egrbuf() argument
202 u32 idx = rhf_egr_index(rhf), offset = rhf_egr_buf_offset(rhf); in get_egrbuf()
254 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
261 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
265 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr()
284 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
286 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr()
352 if (rhf_use_egr_bfr(packet->rhf)) in rcv_hdrerr()
369 sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf); in rcv_hdrerr()
400 packet->rhf &= ~RHF_RCV_TYPE_ERR_SMASK; in rcv_hdrerr()
420 packet->rhf = rhf_to_cpu(packet->rhf_addr); in init_packet()
471 sc = hfi1_9B_get_sc5(pkt->hdr, pkt->rhf); in hfi1_process_ecn_slowpath()
566 static inline int ps_done(struct ps_mdata *mdata, u64 rhf, in ps_done() argument
571 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_done()
574 static inline int ps_skip(struct ps_mdata *mdata, u64 rhf, in ps_skip() argument
582 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_skip()
629 u64 rhf = rhf_to_cpu(rhf_addr); in __prescan_rxq() local
630 u32 etype = rhf_rcv_type(rhf), qpn, bth1; in __prescan_rxq()
633 if (ps_done(&mdata, rhf, rcd)) in __prescan_rxq()
636 if (ps_skip(&mdata, rhf, rcd)) in __prescan_rxq()
747 packet->rhf = rhf_to_cpu(packet->rhf_addr); in skip_rcv_packet()
756 packet->etype = rhf_rcv_type(packet->rhf); in process_rcv_packet()
759 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet()
762 if (rhf_use_egr_bfr(packet->rhf)) { in process_rcv_packet()
763 packet->etail = rhf_egr_index(packet->rhf); in process_rcv_packet()
764 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet()
773 (rhf_hdrq_offset(packet->rhf) in process_rcv_packet()
797 packet->rhf = rhf_to_cpu(packet->rhf_addr); in process_rcv_packet()
840 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt_nodma_rtail()
850 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt_nodma_rtail()
973 u8 etype = rhf_rcv_type(packet->rhf); in set_armed_to_active()
979 sc = hfi1_9B_get_sc5(hdr, packet->rhf); in set_armed_to_active()
1023 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1043 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1063 packet.rhf = rhf_to_cpu(packet.rhf_addr); in handle_receive_interrupt()
1078 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1097 u32 seq = rhf_rcv_seq(packet.rhf); in handle_receive_interrupt()
1483 packet->sc = hfi1_9B_get_sc5(hdr, packet->rhf); in hfi1_setup_9B_packet()
1581 u32 rte = rhf_rcv_type_err(packet->rhf); in show_eflags_errs()
1585 rcd->ctxt, packet->rhf, in show_eflags_errs()
1586 packet->rhf & RHF_K_HDR_LEN_ERR ? "k_hdr_len " : "", in show_eflags_errs()
1587 packet->rhf & RHF_DC_UNC_ERR ? "dc_unc " : "", in show_eflags_errs()
1588 packet->rhf & RHF_DC_ERR ? "dc " : "", in show_eflags_errs()
1589 packet->rhf & RHF_TID_ERR ? "tid " : "", in show_eflags_errs()
1590 packet->rhf & RHF_LEN_ERR ? "len " : "", in show_eflags_errs()
1591 packet->rhf & RHF_ECC_ERR ? "ecc " : "", in show_eflags_errs()
1592 packet->rhf & RHF_ICRC_ERR ? "icrc " : "", in show_eflags_errs()
1601 if (rhf_err_flags(packet->rhf)) in handle_eflags()
1619 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_ib()
1655 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_bypass()
1670 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass()
1688 (rhf_rcv_type_err(packet->rhf) == RHF_RCV_TYPE_ERROR || in process_receive_error()
1689 packet->rhf & RHF_DC_ERR))) in process_receive_error()
1695 if (unlikely(rhf_err_flags(packet->rhf))) in process_receive_error()
1708 if (unlikely(rhf_err_flags(packet->rhf))) { in kdeth_process_expected()
1726 if (unlikely(rhf_err_flags(packet->rhf))) { in kdeth_process_eager()
1741 rhf_rcv_type(packet->rhf)); in process_receive_invalid()
1765 u64 rhf = rhf_to_cpu(rhf_addr); in seqfile_dump_rcd() local
1766 u32 etype = rhf_rcv_type(rhf), qpn; in seqfile_dump_rcd()
1771 if (ps_done(&mdata, rhf, rcd)) in seqfile_dump_rcd()
1774 if (ps_skip(&mdata, rhf, rcd)) in seqfile_dump_rcd()