Searched refs:num_udf (Results 1 – 1 of 1) sorted by relevance
129 static inline u32 udf_upper_bits(unsigned int num_udf) in udf_upper_bits() argument131 return GENMASK(num_udf - 1, 0) >> (UDFS_PER_SLICE - 1); in udf_upper_bits()134 static inline u32 udf_lower_bits(unsigned int num_udf) in udf_lower_bits() argument136 return (u8)GENMASK(num_udf - 1, 0); in udf_lower_bits()346 u8 num_udf; in bcm_sf2_cfp_ipv4_rule_set() local390 num_udf = bcm_sf2_get_num_udf_slices(layout->udfs[slice_num].slices); in bcm_sf2_cfp_ipv4_rule_set()417 udf_upper_bits(num_udf), in bcm_sf2_cfp_ipv4_rule_set()422 udf_upper_bits(num_udf), CORE_CFP_MASK_PORT(6)); in bcm_sf2_cfp_ipv4_rule_set()428 core_writel(priv, udf_lower_bits(num_udf) << 24, CORE_CFP_DATA_PORT(5)); in bcm_sf2_cfp_ipv4_rule_set()431 core_writel(priv, udf_lower_bits(num_udf) << 24, CORE_CFP_MASK_PORT(5)); in bcm_sf2_cfp_ipv4_rule_set()[all …]