Searched refs:field_max (Results 1 – 5 of 5) sorted by relevance
155 BUILD_BUG_ON(field_max(IP_FLTRT_FLAGS_HASH_SIZE_FMASK) != in ipa_cmd_validate_build()156 field_max(IP_FLTRT_FLAGS_NHASH_SIZE_FMASK)); in ipa_cmd_validate_build()157 BUILD_BUG_ON(field_max(IP_FLTRT_FLAGS_HASH_ADDR_FMASK) != in ipa_cmd_validate_build()158 field_max(IP_FLTRT_FLAGS_NHASH_ADDR_FMASK)); in ipa_cmd_validate_build()174 u32 offset_max = field_max(IP_FLTRT_FLAGS_NHASH_ADDR_FMASK); in ipa_cmd_table_init_valid()175 u32 size_max = field_max(IP_FLTRT_FLAGS_NHASH_SIZE_FMASK); in ipa_cmd_table_init_valid()219 offset_max = field_max(HDR_INIT_LOCAL_FLAGS_HDR_ADDR_FMASK); in ipa_cmd_header_init_local_valid()220 size_max = field_max(HDR_INIT_LOCAL_FLAGS_TABLE_SIZE_FMASK); in ipa_cmd_header_init_local_valid()
721 u32 field_max = reg_field_max(reg, HDR_LEN); in ipa_header_size_encode() local725 val = reg_encode(reg, HDR_LEN, header_size & field_max); in ipa_header_size_encode()727 WARN_ON(header_size > field_max); in ipa_header_size_encode()732 header_size >>= hweight32(field_max); in ipa_header_size_encode()743 u32 field_max = reg_field_max(reg, HDR_OFST_METADATA); in ipa_metadata_offset_encode() local749 WARN_ON(offset > field_max); in ipa_metadata_offset_encode()754 offset >>= hweight32(field_max); in ipa_metadata_offset_encode()
143 #define field_max(field) ((typeof(field))field_mask(field)) macro
172 #define field_max(field) ((typeof(field))field_mask(field)) macro
146 if (prescaler > field_max(SL28CPLD_PWM_CTRL_PRESCALER_MASK)) in sl28cpld_pwm_apply()