Home
last modified time | relevance | path

Searched refs:ratelimit_pps (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/ti/
H A Dcpsw_ale.c1188 int cpsw_ale_rx_ratelimit_mc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps) in cpsw_ale_rx_ratelimit_mc() argument
1191 int val = ratelimit_pps / ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_mc()
1192 u32 remainder = ratelimit_pps % ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_mc()
1194 if (ratelimit_pps && !val) { in cpsw_ale_rx_ratelimit_mc()
1201 port, ratelimit_pps - remainder, ratelimit_pps); in cpsw_ale_rx_ratelimit_mc()
1210 int cpsw_ale_rx_ratelimit_bc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps) in cpsw_ale_rx_ratelimit_bc() argument
1213 int val = ratelimit_pps / ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_bc()
1214 u32 remainder = ratelimit_pps % ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_bc()
1216 if (ratelimit_pps && !val) { in cpsw_ale_rx_ratelimit_bc()
1223 port, ratelimit_pps - remainder, ratelimit_pps); in cpsw_ale_rx_ratelimit_bc()
H A Dcpsw_ale.h177 int cpsw_ale_rx_ratelimit_bc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps);
178 int cpsw_ale_rx_ratelimit_mc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps);