Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/ti/
Dcpsw_ale.c1176 int cpsw_ale_rx_ratelimit_mc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps) in cpsw_ale_rx_ratelimit_mc() argument
1179 int val = ratelimit_pps / ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_mc()
1180 u32 remainder = ratelimit_pps % ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_mc()
1182 if (ratelimit_pps && !val) { in cpsw_ale_rx_ratelimit_mc()
1189 port, ratelimit_pps - remainder, ratelimit_pps); in cpsw_ale_rx_ratelimit_mc()
1198 int cpsw_ale_rx_ratelimit_bc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps) in cpsw_ale_rx_ratelimit_bc() argument
1201 int val = ratelimit_pps / ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_bc()
1202 u32 remainder = ratelimit_pps % ALE_RATE_LIMIT_MIN_PPS; in cpsw_ale_rx_ratelimit_bc()
1204 if (ratelimit_pps && !val) { in cpsw_ale_rx_ratelimit_bc()
1211 port, ratelimit_pps - remainder, ratelimit_pps); in cpsw_ale_rx_ratelimit_bc()
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);