Home
last modified time | relevance | path

Searched refs:field_max (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/drivers/net/ipa/
Dipa_cmd.c155 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()
Dipa_endpoint.c721 u32 field_max = reg_field_max(reg, HDR_LEN); in ipa_header_size_encode() local
725 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() local
749 WARN_ON(offset > field_max); in ipa_metadata_offset_encode()
754 offset >>= hweight32(field_max); in ipa_metadata_offset_encode()
/linux-6.6.21/tools/include/linux/
Dbitfield.h143 #define field_max(field) ((typeof(field))field_mask(field)) macro
/linux-6.6.21/include/linux/
Dbitfield.h172 #define field_max(field) ((typeof(field))field_mask(field)) macro
/linux-6.6.21/drivers/pwm/
Dpwm-sl28cpld.c146 if (prescaler > field_max(SL28CPLD_PWM_CTRL_PRESCALER_MASK)) in sl28cpld_pwm_apply()