Lines Matching refs:valid
93 bool *valid, u16 *vid) in mv88e6xxx_g1_vtu_vid_read() argument
109 if (valid) in mv88e6xxx_g1_vtu_vid_read()
110 *valid = !!(val & MV88E6XXX_G1_VTU_VID_VALID); in mv88e6xxx_g1_vtu_vid_read()
116 bool valid, u16 vid) in mv88e6xxx_g1_vtu_vid_write() argument
123 if (valid) in mv88e6xxx_g1_vtu_vid_write()
276 if (!entry->valid) { in mv88e6xxx_g1_vtu_getnext()
286 return mv88e6xxx_g1_vtu_vid_read(chip, &entry->valid, &entry->vid); in mv88e6xxx_g1_vtu_getnext()
299 if (entry->valid) { in mv88e6185_g1_vtu_getnext()
329 if (entry->valid) { in mv88e6352_g1_vtu_getnext()
356 if (entry->valid) { in mv88e6390_g1_vtu_getnext()
383 err = mv88e6xxx_g1_vtu_vid_write(chip, entry->valid, entry->vid); in mv88e6185_g1_vtu_loadpurge()
387 if (entry->valid) { in mv88e6185_g1_vtu_loadpurge()
415 err = mv88e6xxx_g1_vtu_vid_write(chip, entry->valid, entry->vid); in mv88e6352_g1_vtu_loadpurge()
419 if (entry->valid) { in mv88e6352_g1_vtu_loadpurge()
447 err = mv88e6xxx_g1_vtu_vid_write(chip, entry->valid, entry->vid); in mv88e6390_g1_vtu_loadpurge()
451 if (entry->valid) { in mv88e6390_g1_vtu_loadpurge()
499 if (!entry->valid) { in mv88e6xxx_g1_stu_getnext()
509 err = mv88e6xxx_g1_vtu_vid_read(chip, &entry->valid, NULL); in mv88e6xxx_g1_stu_getnext()
513 if (entry->valid) { in mv88e6xxx_g1_stu_getnext()
531 if (!entry->valid) in mv88e6352_g1_stu_getnext()
546 if (!entry->valid) in mv88e6390_g1_stu_getnext()
561 err = mv88e6xxx_g1_vtu_vid_write(chip, entry->valid, 0); in mv88e6352_g1_stu_loadpurge()
569 if (entry->valid) { in mv88e6352_g1_stu_loadpurge()
588 err = mv88e6xxx_g1_vtu_vid_write(chip, entry->valid, 0); in mv88e6390_g1_stu_loadpurge()
596 if (entry->valid) { in mv88e6390_g1_stu_loadpurge()