Lines Matching refs:ocelot
23 int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix, in qos_policer_conf_set() argument
105 dev_err(ocelot->dev, in qos_policer_conf_set()
112 dev_err(ocelot->dev, in qos_policer_conf_set()
119 dev_err(ocelot->dev, in qos_policer_conf_set()
126 dev_err(ocelot->dev, in qos_policer_conf_set()
138 ocelot_write_gix(ocelot, value, ANA_POL_MODE_CFG, pol_ix); in qos_policer_conf_set()
140 ocelot_write_gix(ocelot, in qos_policer_conf_set()
145 ocelot_write_gix(ocelot, in qos_policer_conf_set()
149 ocelot_write_gix(ocelot, in qos_policer_conf_set()
154 ocelot_write_gix(ocelot, in qos_policer_conf_set()
202 int ocelot_port_policer_add(struct ocelot *ocelot, int port, in ocelot_port_policer_add() argument
215 dev_dbg(ocelot->dev, "%s: port %u pir %u kbps, pbs %u bytes\n", in ocelot_port_policer_add()
218 err = qos_policer_conf_set(ocelot, POL_IX_PORT + port, &pp); in ocelot_port_policer_add()
222 ocelot_rmw_gix(ocelot, in ocelot_port_policer_add()
233 int ocelot_port_policer_del(struct ocelot *ocelot, int port) in ocelot_port_policer_del() argument
238 dev_dbg(ocelot->dev, "%s: port %u\n", __func__, port); in ocelot_port_policer_del()
242 err = qos_policer_conf_set(ocelot, POL_IX_PORT + port, &pp); in ocelot_port_policer_del()
246 ocelot_rmw_gix(ocelot, in ocelot_port_policer_del()