Lines Matching refs:fid
18 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write() argument
20 return mv88e6xxx_g1_write(chip, MV88E6352_G1_ATU_FID, fid & 0xfff); in mv88e6xxx_g1_atu_fid_write()
117 static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) in mv88e6xxx_g1_atu_op() argument
124 err = mv88e6xxx_g1_atu_fid_write(chip, fid); in mv88e6xxx_g1_atu_op()
135 val = (val & 0x0fff) | ((fid << 8) & 0xf000); in mv88e6xxx_g1_atu_op()
142 op |= (fid & 0x30) << 4; in mv88e6xxx_g1_atu_op()
146 op |= fid & 0xf; in mv88e6xxx_g1_atu_op()
157 int mv88e6xxx_g1_atu_get_next(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_get_next() argument
159 return mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_GET_NEXT_DB); in mv88e6xxx_g1_atu_get_next()
239 int mv88e6xxx_g1_atu_getnext(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_getnext() argument
255 err = mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_GET_NEXT_DB); in mv88e6xxx_g1_atu_getnext()
266 int mv88e6xxx_g1_atu_loadpurge(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_loadpurge() argument
283 return mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_LOAD_DB); in mv88e6xxx_g1_atu_loadpurge()
286 static int mv88e6xxx_g1_atu_flushmove(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_flushmove() argument
302 if (all && fid) in mv88e6xxx_g1_atu_flushmove()
304 else if (fid) in mv88e6xxx_g1_atu_flushmove()
311 return mv88e6xxx_g1_atu_op(chip, fid, op); in mv88e6xxx_g1_atu_flushmove()
314 int mv88e6xxx_g1_atu_flush(struct mv88e6xxx_chip *chip, u16 fid, bool all) in mv88e6xxx_g1_atu_flush() argument
320 return mv88e6xxx_g1_atu_flushmove(chip, fid, &entry, all); in mv88e6xxx_g1_atu_flush()
323 static int mv88e6xxx_g1_atu_move(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_move() argument
340 return mv88e6xxx_g1_atu_flushmove(chip, fid, &entry, all); in mv88e6xxx_g1_atu_move()
343 int mv88e6xxx_g1_atu_remove(struct mv88e6xxx_chip *chip, u16 fid, int port, in mv88e6xxx_g1_atu_remove() argument
349 return mv88e6xxx_g1_atu_move(chip, fid, from_port, to_port, all); in mv88e6xxx_g1_atu_remove()