Lines Matching full:pbs
27 u32 cir = 0, cbs = 0, pir = 0, pbs = 0; in qos_policer_conf_set() local
34 pbs = conf->pbs; in qos_policer_conf_set()
63 if (pir == 0 && pbs == 0) { in qos_policer_conf_set()
69 pbs = DIV_ROUND_UP(pbs, 4096); in qos_policer_conf_set()
70 pbs = (pbs ? pbs : 1); /* No zero burst size */ in qos_policer_conf_set()
79 pbs = (pbs * 10) / 328; /* 32.8 frames */ in qos_policer_conf_set()
80 pbs = (pbs ? pbs : 1); /* No zero burst size */ in qos_policer_conf_set()
84 if (pir == 0 && pbs == 0) { in qos_policer_conf_set()
90 pbs = (pbs * 10) / 3; /* 0.3 frames */ in qos_policer_conf_set()
91 pbs = (pbs ? pbs : 1); /* No zero burst size */ in qos_policer_conf_set()
99 pbs = 0; in qos_policer_conf_set()
118 if (pbs > pbs_max) { in qos_policer_conf_set()
120 "Invalid pbs for policer %u: %u (max %u)\n", in qos_policer_conf_set()
121 pol_ix, pbs, pbs_max); in qos_policer_conf_set()
142 ANA_POL_PIR_CFG_PIR_BURST(pbs), in qos_policer_conf_set()
213 pp.pbs = pol->burst; in ocelot_port_policer_add()
215 dev_dbg(ocelot->dev, "%s: port %u pir %u kbps, pbs %u bytes\n", in ocelot_port_policer_add()
216 __func__, port, pp.pir, pp.pbs); in ocelot_port_policer_add()