Lines Matching refs:rhf

156 static inline void *get_egrbuf(const struct hfi1_ctxtdata *rcd, u64 rhf,  in get_egrbuf()  argument
159 u32 idx = rhf_egr_index(rhf), offset = rhf_egr_buf_offset(rhf); in get_egrbuf()
211 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
218 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
222 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr()
241 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
243 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr()
309 if (rhf_use_egr_bfr(packet->rhf)) in rcv_hdrerr()
326 sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf); in rcv_hdrerr()
357 packet->rhf &= ~RHF_RCV_TYPE_ERR_SMASK; in rcv_hdrerr()
377 packet->rhf = rhf_to_cpu(packet->rhf_addr); in init_packet()
428 sc = hfi1_9B_get_sc5(pkt->hdr, pkt->rhf); in hfi1_process_ecn_slowpath()
523 static inline int ps_done(struct ps_mdata *mdata, u64 rhf, in ps_done() argument
528 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_done()
531 static inline int ps_skip(struct ps_mdata *mdata, u64 rhf, in ps_skip() argument
539 return mdata->ps_seq != rhf_rcv_seq(rhf); in ps_skip()
584 u64 rhf = rhf_to_cpu(rhf_addr); in __prescan_rxq() local
585 u32 etype = rhf_rcv_type(rhf), qpn, bth1; in __prescan_rxq()
588 if (ps_done(&mdata, rhf, rcd)) in __prescan_rxq()
591 if (ps_skip(&mdata, rhf, rcd)) in __prescan_rxq()
703 packet->rhf = rhf_to_cpu(packet->rhf_addr); in skip_rcv_packet()
710 packet->etype = rhf_rcv_type(packet->rhf); in process_rcv_packet_napi()
713 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet_napi()
715 packet->etail = rhf_egr_index(packet->rhf); in process_rcv_packet_napi()
716 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet_napi()
725 (rhf_hdrq_offset(packet->rhf) in process_rcv_packet_napi()
738 packet->rhf = rhf_to_cpu(packet->rhf_addr); in process_rcv_packet_napi()
745 packet->etype = rhf_rcv_type(packet->rhf); in process_rcv_packet()
748 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet()
751 if (rhf_use_egr_bfr(packet->rhf)) { in process_rcv_packet()
752 packet->etail = rhf_egr_index(packet->rhf); in process_rcv_packet()
753 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet()
762 (rhf_hdrq_offset(packet->rhf) in process_rcv_packet()
786 packet->rhf = rhf_to_cpu(packet->rhf_addr); in process_rcv_packet()
833 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_fp()
838 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_fp()
858 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) { in handle_receive_interrupt_nodma_rtail()
867 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_nodma_rtail()
950 u8 etype = rhf_rcv_type(packet->rhf); in __set_armed_to_active()
956 sc = hfi1_9B_get_sc5(hdr, packet->rhf); in __set_armed_to_active()
1017 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) { in handle_receive_interrupt()
1035 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt()
1048 packet.rhf = rhf_to_cpu(packet.rhf_addr); in handle_receive_interrupt()
1060 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt()
1073 rhf_rcv_seq(packet.rhf)); in handle_receive_interrupt()
1115 if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_sp()
1125 packet.rhf = rhf_to_cpu(packet.rhf_addr); in handle_receive_interrupt_napi_sp()
1133 if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf))) in handle_receive_interrupt_napi_sp()
1510 packet->sc = hfi1_9B_get_sc5(hdr, packet->rhf); in hfi1_setup_9B_packet()
1608 u32 rte = rhf_rcv_type_err(packet->rhf); in show_eflags_errs()
1612 rcd->ctxt, packet->rhf, in show_eflags_errs()
1613 packet->rhf & RHF_K_HDR_LEN_ERR ? "k_hdr_len " : "", in show_eflags_errs()
1614 packet->rhf & RHF_DC_UNC_ERR ? "dc_unc " : "", in show_eflags_errs()
1615 packet->rhf & RHF_DC_ERR ? "dc " : "", in show_eflags_errs()
1616 packet->rhf & RHF_TID_ERR ? "tid " : "", in show_eflags_errs()
1617 packet->rhf & RHF_LEN_ERR ? "len " : "", in show_eflags_errs()
1618 packet->rhf & RHF_ECC_ERR ? "ecc " : "", in show_eflags_errs()
1619 packet->rhf & RHF_ICRC_ERR ? "icrc " : "", in show_eflags_errs()
1628 if (rhf_err_flags(packet->rhf)) in handle_eflags()
1652 if (unlikely(rhf_err_flags(packet->rhf))) { in hfi1_ipoib_ib_rcv()
1662 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_ipoib_ib_rcv()
1720 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_ib()
1737 if (unlikely(rhf_err_flags(packet->rhf))) { in process_receive_bypass()
1752 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass()
1769 (rhf_rcv_type_err(packet->rhf) == RHF_RCV_TYPE_ERROR || in process_receive_error()
1770 packet->rhf & RHF_DC_ERR))) in process_receive_error()
1776 if (unlikely(rhf_err_flags(packet->rhf))) in process_receive_error()
1787 if (unlikely(rhf_err_flags(packet->rhf))) { in kdeth_process_expected()
1804 if (unlikely(rhf_err_flags(packet->rhf))) { in kdeth_process_eager()
1818 rhf_rcv_type(packet->rhf)); in process_receive_invalid()
1847 u64 rhf = rhf_to_cpu(rhf_addr); in seqfile_dump_rcd() local
1848 u32 etype = rhf_rcv_type(rhf), qpn; in seqfile_dump_rcd()
1853 if (ps_done(&mdata, rhf, rcd)) in seqfile_dump_rcd()
1856 if (ps_skip(&mdata, rhf, rcd)) in seqfile_dump_rcd()