Lines Matching refs:num_udf
131 static inline u32 udf_upper_bits(int num_udf) in udf_upper_bits() argument
133 return GENMASK(num_udf - 1, 0) >> (UDFS_PER_SLICE - 1); in udf_upper_bits()
136 static inline u32 udf_lower_bits(int num_udf) in udf_lower_bits() argument
138 return (u8)GENMASK(num_udf - 1, 0); in udf_lower_bits()
267 unsigned int slice_num, u8 num_udf, in bcm_sf2_cfp_slice_ipv4() argument
276 reg = udf_lower_bits(num_udf) << 24 | be16_to_cpu(vlan_tci) >> 8; in bcm_sf2_cfp_slice_ipv4()
360 u8 num_udf; in bcm_sf2_cfp_ipv4_rule_set() local
410 num_udf = bcm_sf2_get_num_udf_slices(layout->udfs[slice_num].slices); in bcm_sf2_cfp_ipv4_rule_set()
437 udf_upper_bits(num_udf), in bcm_sf2_cfp_ipv4_rule_set()
442 udf_upper_bits(num_udf), CORE_CFP_MASK_PORT(6)); in bcm_sf2_cfp_ipv4_rule_set()
446 slice_num, num_udf, false); in bcm_sf2_cfp_ipv4_rule_set()
448 SLICE_NUM_MASK, num_udf, true); in bcm_sf2_cfp_ipv4_rule_set()
641 u8 num_udf; in bcm_sf2_cfp_ipv6_rule_set() local
668 num_udf = bcm_sf2_get_num_udf_slices(layout->udfs[slice_num].slices); in bcm_sf2_cfp_ipv6_rule_set()
735 ip_frag << IP_FRAG_SHIFT | udf_upper_bits(num_udf); in bcm_sf2_cfp_ipv6_rule_set()
741 reg = layout->udfs[slice_num].mask_value | udf_upper_bits(num_udf); in bcm_sf2_cfp_ipv6_rule_set()
747 udf_lower_bits(num_udf), false); in bcm_sf2_cfp_ipv6_rule_set()
750 udf_lower_bits(num_udf), true); in bcm_sf2_cfp_ipv6_rule_set()
774 num_udf = bcm_sf2_get_num_udf_slices(layout->udfs[slice_num].slices); in bcm_sf2_cfp_ipv6_rule_set()
792 reg = rule_index[0] << 24 | udf_upper_bits(num_udf) << 16 | in bcm_sf2_cfp_ipv6_rule_set()
793 udf_lower_bits(num_udf) << 8; in bcm_sf2_cfp_ipv6_rule_set()
797 reg = XCESS_ADDR_MASK << 24 | udf_upper_bits(num_udf) << 16 | in bcm_sf2_cfp_ipv6_rule_set()
798 udf_lower_bits(num_udf) << 8; in bcm_sf2_cfp_ipv6_rule_set()