Lines Matching defs:ocelot
7 #include <soc/mscc/ocelot.h>
23 int qos_policer_conf_set(struct ocelot *ocelot, int port, u32 pol_ix,
105 dev_err(ocelot->dev, "Invalid pir for port %d: %u (max %lu)\n",
111 dev_err(ocelot->dev, "Invalid cir for port %d: %u (max %lu)\n",
117 dev_err(ocelot->dev, "Invalid pbs for port %d: %u (max %u)\n",
123 dev_err(ocelot->dev, "Invalid cbs for port %d: %u (max %u)\n",
134 ocelot_write_gix(ocelot, value, ANA_POL_MODE_CFG, pol_ix);
136 ocelot_write_gix(ocelot,
141 ocelot_write_gix(ocelot,
145 ocelot_write_gix(ocelot,
150 ocelot_write_gix(ocelot,
157 int ocelot_port_policer_add(struct ocelot *ocelot, int port,
170 dev_dbg(ocelot->dev, "%s: port %u pir %u kbps, pbs %u bytes\n",
173 err = qos_policer_conf_set(ocelot, port, POL_IX_PORT + port, &pp);
177 ocelot_rmw_gix(ocelot,
188 int ocelot_port_policer_del(struct ocelot *ocelot, int port)
193 dev_dbg(ocelot->dev, "%s: port %u\n", __func__, port);
197 err = qos_policer_conf_set(ocelot, port, POL_IX_PORT + port, &pp);
201 ocelot_rmw_gix(ocelot,