Lines Matching refs:rhf
253 static inline u64 rhf_err_flags(u64 rhf) in rhf_err_flags() argument
255 return rhf & RHF_ERROR_SMASK; in rhf_err_flags()
258 static inline u32 rhf_rcv_type(u64 rhf) in rhf_rcv_type() argument
260 return (rhf >> RHF_RCV_TYPE_SHIFT) & RHF_RCV_TYPE_MASK; in rhf_rcv_type()
263 static inline u32 rhf_rcv_type_err(u64 rhf) in rhf_rcv_type_err() argument
265 return (rhf >> RHF_RCV_TYPE_ERR_SHIFT) & RHF_RCV_TYPE_ERR_MASK; in rhf_rcv_type_err()
269 static inline u32 rhf_pkt_len(u64 rhf) in rhf_pkt_len() argument
271 return ((rhf & RHF_PKT_LEN_SMASK) >> RHF_PKT_LEN_SHIFT) << 2; in rhf_pkt_len()
274 static inline u32 rhf_egr_index(u64 rhf) in rhf_egr_index() argument
276 return (rhf >> RHF_EGR_INDEX_SHIFT) & RHF_EGR_INDEX_MASK; in rhf_egr_index()
279 static inline u32 rhf_rcv_seq(u64 rhf) in rhf_rcv_seq() argument
281 return (rhf >> RHF_RCV_SEQ_SHIFT) & RHF_RCV_SEQ_MASK; in rhf_rcv_seq()
285 static inline u32 rhf_hdrq_offset(u64 rhf) in rhf_hdrq_offset() argument
287 return (rhf >> RHF_HDRQ_OFFSET_SHIFT) & RHF_HDRQ_OFFSET_MASK; in rhf_hdrq_offset()
290 static inline u64 rhf_use_egr_bfr(u64 rhf) in rhf_use_egr_bfr() argument
292 return rhf & RHF_USE_EGR_BFR_SMASK; in rhf_use_egr_bfr()
295 static inline u64 rhf_dc_info(u64 rhf) in rhf_dc_info() argument
297 return rhf & RHF_DC_INFO_SMASK; in rhf_dc_info()
300 static inline u32 rhf_egr_buf_offset(u64 rhf) in rhf_egr_buf_offset() argument
302 return (rhf >> RHF_EGR_OFFSET_SHIFT) & RHF_EGR_OFFSET_MASK; in rhf_egr_buf_offset()