Home
last modified time | relevance | path

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

/linux/drivers/net/ipa/
H A Dipa_cmd.c156 BUILD_BUG_ON(field_max(IP_FLTRT_FLAGS_HASH_SIZE_FMASK) != in ipa_cmd_validate_build()
157 field_max(IP_FLTRT_FLAGS_NHASH_SIZE_FMASK)); in ipa_cmd_validate_build()
158 BUILD_BUG_ON(field_max(IP_FLTRT_FLAGS_HASH_ADDR_FMASK) != in ipa_cmd_validate_build()
159 field_max(IP_FLTRT_FLAGS_NHASH_ADDR_FMASK)); in ipa_cmd_validate_build()
175 u32 offset_max = field_max(IP_FLTRT_FLAGS_NHASH_ADDR_FMASK); in ipa_cmd_table_init_valid()
176 u32 size_max = field_max(IP_FLTRT_FLAGS_NHASH_SIZE_FMASK); in ipa_cmd_table_init_valid()
220 offset_max = field_max(HDR_INIT_LOCAL_FLAGS_HDR_ADDR_FMASK); in ipa_cmd_header_init_local_valid()
221 size_max = field_max(HDR_INIT_LOCAL_FLAGS_TABLE_SIZE_FMASK); in ipa_cmd_header_init_local_valid()
H A Dipa_endpoint.c724 u32 field_max = reg_field_max(reg, HDR_LEN); in ipa_header_size_encode() local
728 val = reg_encode(reg, HDR_LEN, header_size & field_max); in ipa_header_size_encode()
730 WARN_ON(header_size > field_max); in ipa_header_size_encode()
735 header_size >>= hweight32(field_max); in ipa_header_size_encode()
746 u32 field_max = reg_field_max(reg, HDR_OFST_METADATA); in ipa_metadata_offset_encode() local
752 WARN_ON(offset > field_max); in ipa_metadata_offset_encode()
757 offset >>= hweight32(field_max); in ipa_metadata_offset_encode()
/linux/fs/bcachefs/
H A Dbkey.h562 u64 field_max[BKEY_NR_FIELDS]; member
570 s->field_max[field] = max(s->field_max[field], v); in __bkey_format_add()
H A Dbkey.c553 for (i = 0; i < ARRAY_SIZE(s->field_max); i++) in bch2_bkey_format_init()
554 s->field_max[i] = 0; in bch2_bkey_format_init()
596 s->field_min[i] = min(s->field_min[i], s->field_max[i]); in bch2_bkey_format_done()
599 fls64(s->field_max[i] - s->field_min[i]), in bch2_bkey_format_done()
/linux/tools/include/linux/
H A Dbitfield.h143 #define field_max(field) ((typeof(field))field_mask(field)) macro
/linux/drivers/pwm/
H A Dpwm-sl28cpld.c145 if (prescaler > field_max(SL28CPLD_PWM_CTRL_PRESCALER_MASK)) in sl28cpld_pwm_apply()
/linux/include/linux/
H A Dbitfield.h173 #define field_max(field) ((typeof(field))field_mask(field)) macro