Lines Matching defs:percent
2137 * @percent: Broadcast storm threshold in percent of transmit rate.
2141 static void sw_cfg_broad_storm(struct ksz_hw *hw, u8 percent)
2144 u32 value = ((u32) BROADCAST_STORM_VALUE * (u32) percent / 100);
2158 * @percent: Buffer to store the broadcast storm threshold percentage.
2162 static void sw_get_broad_storm(struct ksz_hw *hw, u8 *percent)
2172 *percent = (u8) num;
2220 * @percent: Broadcast storm threshold in percent of transmit rate.
2225 static void hw_cfg_broad_storm(struct ksz_hw *hw, u8 percent)
2227 if (percent > 100)
2228 percent = 100;
2230 sw_cfg_broad_storm(hw, percent);
2231 sw_get_broad_storm(hw, &percent);
2232 hw->ksz_switch->broad_per = percent;
4278 /* Enable switch broadcast storm protection at 10% percent rate. */