Lines Matching refs:fid

20 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid)  in mv88e6xxx_g1_atu_fid_write()  argument
22 return mv88e6xxx_g1_write(chip, MV88E6352_G1_ATU_FID, fid & 0xfff); in mv88e6xxx_g1_atu_fid_write()
132 static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) in mv88e6xxx_g1_atu_op() argument
139 err = mv88e6xxx_g1_atu_fid_write(chip, fid); in mv88e6xxx_g1_atu_op()
150 val = (val & 0x0fff) | ((fid << 8) & 0xf000); in mv88e6xxx_g1_atu_op()
157 op |= (fid & 0x30) << 4; in mv88e6xxx_g1_atu_op()
161 op |= fid & 0xf; in mv88e6xxx_g1_atu_op()
172 int mv88e6xxx_g1_atu_get_next(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_get_next() argument
174 return mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_GET_NEXT_DB); in mv88e6xxx_g1_atu_get_next()
177 static int mv88e6xxx_g1_atu_fid_read(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_g1_atu_fid_read() argument
207 *fid = val; in mv88e6xxx_g1_atu_fid_read()
289 int mv88e6xxx_g1_atu_getnext(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_getnext() argument
305 err = mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_GET_NEXT_DB); in mv88e6xxx_g1_atu_getnext()
316 int mv88e6xxx_g1_atu_loadpurge(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_loadpurge() argument
333 return mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_LOAD_DB); in mv88e6xxx_g1_atu_loadpurge()
336 static int mv88e6xxx_g1_atu_flushmove(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_flushmove() argument
352 if (all && fid) in mv88e6xxx_g1_atu_flushmove()
354 else if (fid) in mv88e6xxx_g1_atu_flushmove()
361 return mv88e6xxx_g1_atu_op(chip, fid, op); in mv88e6xxx_g1_atu_flushmove()
364 int mv88e6xxx_g1_atu_flush(struct mv88e6xxx_chip *chip, u16 fid, bool all) in mv88e6xxx_g1_atu_flush() argument
370 return mv88e6xxx_g1_atu_flushmove(chip, fid, &entry, all); in mv88e6xxx_g1_atu_flush()
373 static int mv88e6xxx_g1_atu_move(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_move() argument
390 return mv88e6xxx_g1_atu_flushmove(chip, fid, &entry, all); in mv88e6xxx_g1_atu_move()
393 int mv88e6xxx_g1_atu_remove(struct mv88e6xxx_chip *chip, u16 fid, int port, in mv88e6xxx_g1_atu_remove() argument
399 return mv88e6xxx_g1_atu_move(chip, fid, from_port, to_port, all); in mv88e6xxx_g1_atu_remove()
407 u16 val, fid; in mv88e6xxx_g1_atu_prob_irq_thread_fn() local
419 err = mv88e6xxx_g1_atu_fid_read(chip, &fid); in mv88e6xxx_g1_atu_prob_irq_thread_fn()
438 fid); in mv88e6xxx_g1_atu_prob_irq_thread_fn()
445 fid); in mv88e6xxx_g1_atu_prob_irq_thread_fn()
448 if (fid != MV88E6XXX_FID_STANDALONE && chip->ports[spid].mab) { in mv88e6xxx_g1_atu_prob_irq_thread_fn()
450 &entry, fid); in mv88e6xxx_g1_atu_prob_irq_thread_fn()
459 fid); in mv88e6xxx_g1_atu_prob_irq_thread_fn()