Lines Matching refs:swreg
322 typedef __u32 __bitwise swreg; typedef
324 static inline swreg __enc_swreg(u16 id, u8 type) in __enc_swreg()
326 return (__force swreg)(id | FIELD_PREP(NN_REG_TYPE, type)); in __enc_swreg()
329 static inline swreg __enc_swreg_lm(u8 id, enum nfp_bpf_lm_mode mode, u8 off) in __enc_swreg_lm()
333 return (__force swreg)(FIELD_PREP(NN_REG_TYPE, NN_REG_LMEM) | in __enc_swreg_lm()
339 static inline u32 swreg_raw(swreg reg) in swreg_raw()
344 static inline enum nfp_bpf_reg_type swreg_type(swreg reg) in swreg_type()
349 static inline u16 swreg_value(swreg reg) in swreg_value()
354 static inline bool swreg_lm_idx(swreg reg) in swreg_lm_idx()
359 static inline bool swreg_lmextn(swreg reg) in swreg_lmextn()
364 static inline enum nfp_bpf_lm_mode swreg_lm_mode(swreg reg) in swreg_lm_mode()
390 int swreg_to_unrestricted(swreg dst, swreg lreg, swreg rreg,
392 int swreg_to_restricted(swreg dst, swreg lreg, swreg rreg,