Home
last modified time | relevance | path

Searched refs:arswitch_softc (Results 1 – 14 of 14) sorted by relevance

/freebsd/sys/dev/etherswitch/arswitch/
H A Darswitchvar.h52 struct arswitch_softc *sc;
58 struct arswitch_softc { struct
94 int (* arswitch_hw_setup) (struct arswitch_softc *); argument
95 int (* arswitch_hw_global_setup) (struct arswitch_softc *);
97 int (* arswitch_hw_get_switch_macaddr) (struct arswitch_softc *,
99 int (* arswitch_hw_set_switch_macaddr) (struct arswitch_softc *,
103 void (* arswitch_port_init) (struct arswitch_softc *, int);
106 int (* arswitch_atu_flush) (struct arswitch_softc *);
107 int (* arswitch_atu_flush_port) (struct arswitch_softc *, int);
108 int (* arswitch_atu_learn_default) (struct arswitch_softc *);
[all …]
H A Darswitch_vlans.h32 void ar8xxx_reset_vlans(struct arswitch_softc *);
33 int ar8xxx_getvgroup(struct arswitch_softc *, etherswitch_vlangroup_t *);
34 int ar8xxx_setvgroup(struct arswitch_softc *, etherswitch_vlangroup_t *);
35 int ar8xxx_get_pvid(struct arswitch_softc *, int, int *);
36 int ar8xxx_set_pvid(struct arswitch_softc *, int, int);
38 int ar8xxx_flush_dot1q_vlan(struct arswitch_softc *sc);
39 int ar8xxx_purge_dot1q_vlan(struct arswitch_softc *sc, int vid);
40 int ar8xxx_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports,
42 int ar8xxx_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports,
44 int ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid);
[all …]
H A Darswitch.c86 static int ar8xxx_port_vlan_setup(struct arswitch_softc *sc,
88 static int ar8xxx_port_vlan_get(struct arswitch_softc *sc,
90 static int arswitch_setled(struct arswitch_softc *sc, int phy, int led,
96 struct arswitch_softc *sc; in arswitch_probe()
144 arswitch_attach_phys(struct arswitch_softc *sc) in arswitch_attach_phys()
207 arswitch_set_vlan_mode(struct arswitch_softc *sc, uint32_t mode) in arswitch_set_vlan_mode()
232 ar8xxx_port_init(struct arswitch_softc *sc, int port) in ar8xxx_port_init()
259 ar8xxx_atu_wait_ready(struct arswitch_softc *sc) in ar8xxx_atu_wait_ready()
278 ar8xxx_atu_flush(struct arswitch_softc *sc) in ar8xxx_atu_flush()
302 ar8xxx_atu_flush_port(struct arswitch_softc *sc, int port) in ar8xxx_atu_flush_port()
[all …]
H A Darswitch_8327.c109 ar8327_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, in ar8327_vlan_op()
153 ar8327_phy_fixup(struct arswitch_softc *sc, int phy) in ar8327_phy_fixup()
319 ar8327_fetch_pdata_port(struct arswitch_softc *sc, in ar8327_fetch_pdata_port()
412 ar8327_fetch_pdata_pad(struct arswitch_softc *sc, in ar8327_fetch_pdata_pad()
503 ar8327_fetch_pdata_sgmii(struct arswitch_softc *sc, in ar8327_fetch_pdata_sgmii()
531 ar8327_fetch_pdata_led(struct arswitch_softc *sc, in ar8327_fetch_pdata_led()
579 ar8327_init_pdata(struct arswitch_softc *sc) in ar8327_init_pdata()
676 ar8327_hw_setup(struct arswitch_softc *sc) in ar8327_hw_setup()
704 ar8327_atu_learn_default(struct arswitch_softc *sc) in ar8327_atu_learn_default()
715 ar8327_hw_global_setup(struct arswitch_softc *sc) in ar8327_hw_global_setup()
[all …]
H A Darswitch_vlans.c58 ar8xxx_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, in ar8xxx_vlan_op()
89 ar8xxx_flush_dot1q_vlan(struct arswitch_softc *sc) in ar8xxx_flush_dot1q_vlan()
97 ar8xxx_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) in ar8xxx_purge_dot1q_vlan()
105 ar8xxx_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports, in ar8xxx_get_dot1q_vlan()
128 ar8xxx_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports, in ar8xxx_set_dot1q_vlan()
141 ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid) in ar8xxx_get_port_vlan()
156 ar8xxx_set_port_vlan(struct arswitch_softc *sc, uint32_t ports, int vid) in ar8xxx_set_port_vlan()
175 ar8xxx_reset_vlans(struct arswitch_softc *sc) in ar8xxx_reset_vlans()
264 ar8xxx_getvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) in ar8xxx_getvgroup()
311 ar8xxx_setvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) in ar8xxx_setvgroup()
[all …]
H A Darswitch_8216.c70 ar8216_hw_setup(struct arswitch_softc *sc) in ar8216_hw_setup()
80 ar8216_hw_global_setup(struct arswitch_softc *sc) in ar8216_hw_global_setup()
87 ar8216_attach(struct arswitch_softc *sc) in ar8216_attach()
H A Darswitch_8226.c70 ar8226_hw_setup(struct arswitch_softc *sc) in ar8226_hw_setup()
80 ar8226_hw_global_setup(struct arswitch_softc *sc) in ar8226_hw_global_setup()
87 ar8226_attach(struct arswitch_softc *sc) in ar8226_attach()
H A Darswitch_phy.c74 struct arswitch_softc *sc; in arswitch_readphy_external()
91 struct arswitch_softc *sc; in arswitch_writephy_external()
113 struct arswitch_softc *sc; in arswitch_readphy_internal()
174 struct arswitch_softc *sc; in arswitch_writephy_internal()
H A Darswitch_8316.c70 ar8316_hw_setup(struct arswitch_softc *sc) in ar8316_hw_setup()
127 ar8316_hw_global_setup(struct arswitch_softc *sc) in ar8316_hw_global_setup()
161 ar8316_attach(struct arswitch_softc *sc) in ar8316_attach()
H A Darswitch_reg.c68 struct arswitch_softc *sc = device_get_softc(dev); in arswitch_split_setpage()
141 struct arswitch_softc *sc; in arswitch_reg_write32()
223 ARSWITCH_LOCK_ASSERT((struct arswitch_softc *)device_get_softc(dev), in arswitch_modifyreg()
237 struct arswitch_softc *sc = device_get_softc(dev); in arswitch_waitreg()
H A Darswitch_8216.h31 extern void ar8216_attach(struct arswitch_softc *sc);
H A Darswitch_8226.h31 extern void ar8226_attach(struct arswitch_softc *sc);
H A Darswitch_8316.h31 extern void ar8316_attach(struct arswitch_softc *sc);
H A Darswitch_8327.h93 extern void ar8327_attach(struct arswitch_softc *sc);