Lines Matching defs:sc

57 mtkswitch_phy_read_locked(struct mtkswitch_softc *sc, int phy, int reg)  in mtkswitch_phy_read_locked()
72 struct mtkswitch_softc *sc = device_get_softc(dev); in mtkswitch_phy_read() local
87 mtkswitch_phy_write_locked(struct mtkswitch_softc *sc, int phy, int reg, in mtkswitch_phy_write_locked()
102 struct mtkswitch_softc *sc = device_get_softc(dev); in mtkswitch_phy_write() local
117 mtkswitch_reg_read32(struct mtkswitch_softc *sc, int reg) in mtkswitch_reg_read32()
124 mtkswitch_reg_write32(struct mtkswitch_softc *sc, int reg, uint32_t val) in mtkswitch_reg_write32()
132 mtkswitch_reg_read32_mt7621(struct mtkswitch_softc *sc, int reg) in mtkswitch_reg_read32_mt7621()
146 mtkswitch_reg_write32_mt7621(struct mtkswitch_softc *sc, int reg, uint32_t val) in mtkswitch_reg_write32_mt7621()
161 struct mtkswitch_softc *sc = device_get_softc(dev); in mtkswitch_reg_read() local
173 struct mtkswitch_softc *sc = device_get_softc(dev); in mtkswitch_reg_write() local
190 mtkswitch_reset(struct mtkswitch_softc *sc) in mtkswitch_reset()
198 mtkswitch_hw_setup(struct mtkswitch_softc *sc) in mtkswitch_hw_setup()
211 mtkswitch_hw_global_setup(struct mtkswitch_softc *sc) in mtkswitch_hw_global_setup()
220 mtkswitch_port_init(struct mtkswitch_softc *sc, int port) in mtkswitch_port_init()
245 mtkswitch_get_port_status(struct mtkswitch_softc *sc, int port) in mtkswitch_get_port_status()
273 mtkswitch_atu_flush(struct mtkswitch_softc *sc) in mtkswitch_atu_flush()
288 mtkswitch_port_vlan_setup(struct mtkswitch_softc *sc, etherswitch_port_t *p) in mtkswitch_port_vlan_setup()
319 mtkswitch_port_vlan_get(struct mtkswitch_softc *sc, etherswitch_port_t *p) in mtkswitch_port_vlan_get()
340 mtkswitch_invalidate_vlan(struct mtkswitch_softc *sc, uint32_t vid) in mtkswitch_invalidate_vlan()
350 mtkswitch_vlan_init_hw(struct mtkswitch_softc *sc) in mtkswitch_vlan_init_hw()
392 mtkswitch_vlan_getvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v) in mtkswitch_vlan_getvgroup()
447 mtkswitch_vlan_setvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v) in mtkswitch_vlan_setvgroup()
500 mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid) in mtkswitch_vlan_get_pvid()
512 mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid) in mtkswitch_vlan_set_pvid()
525 mtk_attach_switch_mt7620(struct mtkswitch_softc *sc) in mtk_attach_switch_mt7620()