Lines Matching refs:rhf
345 static inline u64 rhf_err_flags(u64 rhf) in rhf_err_flags() argument
347 return rhf & RHF_ERROR_SMASK; in rhf_err_flags()
350 static inline u32 rhf_rcv_type(u64 rhf) in rhf_rcv_type() argument
352 return (rhf >> RHF_RCV_TYPE_SHIFT) & RHF_RCV_TYPE_MASK; in rhf_rcv_type()
355 static inline u32 rhf_rcv_type_err(u64 rhf) in rhf_rcv_type_err() argument
357 return (rhf >> RHF_RCV_TYPE_ERR_SHIFT) & RHF_RCV_TYPE_ERR_MASK; in rhf_rcv_type_err()
361 static inline u32 rhf_pkt_len(u64 rhf) in rhf_pkt_len() argument
363 return ((rhf & RHF_PKT_LEN_SMASK) >> RHF_PKT_LEN_SHIFT) << 2; in rhf_pkt_len()
366 static inline u32 rhf_egr_index(u64 rhf) in rhf_egr_index() argument
368 return (rhf >> RHF_EGR_INDEX_SHIFT) & RHF_EGR_INDEX_MASK; in rhf_egr_index()
371 static inline u32 rhf_rcv_seq(u64 rhf) in rhf_rcv_seq() argument
373 return (rhf >> RHF_RCV_SEQ_SHIFT) & RHF_RCV_SEQ_MASK; in rhf_rcv_seq()
377 static inline u32 rhf_hdrq_offset(u64 rhf) in rhf_hdrq_offset() argument
379 return (rhf >> RHF_HDRQ_OFFSET_SHIFT) & RHF_HDRQ_OFFSET_MASK; in rhf_hdrq_offset()
382 static inline u64 rhf_use_egr_bfr(u64 rhf) in rhf_use_egr_bfr() argument
384 return rhf & RHF_USE_EGR_BFR_SMASK; in rhf_use_egr_bfr()
387 static inline u64 rhf_dc_info(u64 rhf) in rhf_dc_info() argument
389 return rhf & RHF_DC_INFO_SMASK; in rhf_dc_info()
392 static inline u32 rhf_egr_buf_offset(u64 rhf) in rhf_egr_buf_offset() argument
394 return (rhf >> RHF_EGR_OFFSET_SHIFT) & RHF_EGR_OFFSET_MASK; in rhf_egr_buf_offset()