Lines Matching refs:fmask
121 const u32 *fmask; /* BIT(nr) or GENMASK(h, l) */ member
146 .fmask = ipa_reg_ ## __name ## _fmask, \
670 return reg->fmask[field_id]; in ipa_reg_fmask()
676 u32 fmask = ipa_reg_fmask(reg, field_id); in ipa_reg_bit() local
678 WARN_ON(!is_power_of_2(fmask)); in ipa_reg_bit()
680 return fmask; in ipa_reg_bit()
687 u32 fmask = ipa_reg_fmask(reg, field_id); in ipa_reg_encode() local
689 if (!fmask) in ipa_reg_encode()
692 val <<= __ffs(fmask); in ipa_reg_encode()
693 if (WARN_ON(val & ~fmask)) in ipa_reg_encode()
703 u32 fmask = ipa_reg_fmask(reg, field_id); in ipa_reg_decode() local
705 return fmask ? (val & fmask) >> __ffs(fmask) : 0; in ipa_reg_decode()
711 u32 fmask = ipa_reg_fmask(reg, field_id); in ipa_reg_field_max() local
713 return fmask ? fmask >> __ffs(fmask) : 0; in ipa_reg_field_max()