Lines Matching refs:pir
27 u32 cir = 0, cbs = 0, pir = 0, pbs = 0; in qos_policer_conf_set() local
33 pir = conf->pir; in qos_policer_conf_set()
60 pir += conf->cir; in qos_policer_conf_set()
63 if (pir == 0 && pbs == 0) { in qos_policer_conf_set()
67 pir = DIV_ROUND_UP(pir, 100); in qos_policer_conf_set()
68 pir *= 3; /* 33 1/3 kbps */ in qos_policer_conf_set()
75 if (pir >= 100) { in qos_policer_conf_set()
77 pir = DIV_ROUND_UP(pir, 100); in qos_policer_conf_set()
78 pir *= 3; /* 33 1/3 fps */ in qos_policer_conf_set()
84 if (pir == 0 && pbs == 0) { in qos_policer_conf_set()
89 pir *= 3; /* 1/3 fps */ in qos_policer_conf_set()
98 pir = GENMASK(15, 0); in qos_policer_conf_set()
104 if (pir > GENMASK(15, 0)) { in qos_policer_conf_set()
106 port, pir, GENMASK(15, 0)); in qos_policer_conf_set()
137 ANA_POL_PIR_CFG_PIR_RATE(pir) | in qos_policer_conf_set()
167 pp.pir = pol->rate; in ocelot_port_policer_add()
171 __func__, port, pp.pir, pp.pbs); in ocelot_port_policer_add()