Home
last modified time | relevance | path

Searched refs:pvid (Results 1 – 25 of 65) sorted by relevance

123

/freebsd/sys/dev/etherswitch/ar40xx/
H A Dar40xx_hw_port.c201 ar40xx_hw_get_port_pvid(struct ar40xx_softc *sc, int port, int *pvid) in ar40xx_hw_get_port_pvid() argument
213 *pvid = reg; in ar40xx_hw_get_port_pvid()
224 ar40xx_hw_set_port_pvid(struct ar40xx_softc *sc, int port, int pvid) in ar40xx_hw_set_port_pvid() argument
230 pvid &= ETHERSWITCH_VID_MASK; in ar40xx_hw_set_port_pvid()
232 reg = pvid << AR40XX_PORT_VLAN0_DEF_SVID_S; in ar40xx_hw_set_port_pvid()
233 reg |= pvid << AR40XX_PORT_VLAN0_DEF_CVID_S; in ar40xx_hw_set_port_pvid()
258 uint32_t pvid = sc->sc_vlan.vlan_id[sc->sc_vlan.pvid[port]] in ar40xx_hw_port_setup() local
269 reg = pvid << AR40XX_PORT_VLAN0_DEF_SVID_S; in ar40xx_hw_port_setup()
270 reg |= pvid << AR40XX_PORT_VLAN0_DEF_CVID_S; in ar40xx_hw_port_setup()
H A Dar40xx_hw_port.h35 int *pvid);
37 int pvid);
H A Dar40xx_hw.c181 sc->sc_vlan.pvid[i] = AR40XX_LAN_VLAN; in ar40xx_hw_vlan_init()
183 sc->sc_vlan.pvid[i] = AR40XX_WAN_VLAN; in ar40xx_hw_vlan_init()
H A Dar40xx_var.h110 uint16_t pvid[AR40XX_NUM_PORTS]; member
/freebsd/sys/dev/etherswitch/arswitch/
H A Darswitch_vlans.c367 ar8xxx_get_pvid(struct arswitch_softc *sc, int port, int *pvid) in ar8xxx_get_pvid() argument
373 *pvid = reg & 0xfff; in ar8xxx_get_pvid()
378 ar8xxx_set_pvid(struct arswitch_softc *sc, int port, int pvid) in ar8xxx_set_pvid() argument
383 AR8X16_REG_PORT_VLAN(port), 0xfff, pvid)); in ar8xxx_set_pvid()
H A Darswitch_8327.c1012 ar8327_get_pvid(struct arswitch_softc *sc, int port, int *pvid) in ar8327_get_pvid() argument
1026 *pvid = reg; in ar8327_get_pvid()
1031 ar8327_set_pvid(struct arswitch_softc *sc, int port, int pvid) in ar8327_set_pvid() argument
1036 pvid &= 0x7f; in ar8327_set_pvid()
1038 t = pvid << AR8327_PORT_VLAN0_DEF_SVID_S; in ar8327_set_pvid()
1039 t |= pvid << AR8327_PORT_VLAN0_DEF_CVID_S; in ar8327_set_pvid()
/freebsd/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_mt7620.c500 mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid) in mtkswitch_vlan_get_pvid() argument
505 *pvid = sc->hal.mtkswitch_read(sc, MTKSWITCH_PPBV1(port)); in mtkswitch_vlan_get_pvid()
506 *pvid = PPBV_VID_FROM_REG(*pvid); in mtkswitch_vlan_get_pvid()
512 mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid) in mtkswitch_vlan_set_pvid() argument
517 val = PPBV_VID(pvid & PPBV_VID_MASK); in mtkswitch_vlan_set_pvid()
H A Dmtkswitch_rt3050.c470 mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid) in mtkswitch_vlan_get_pvid() argument
474 *pvid = (MTKSWITCH_READ(sc, MTKSWITCH_PVID(port)) >> PVID_OFF(port)) & in mtkswitch_vlan_get_pvid()
481 mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid) in mtkswitch_vlan_set_pvid() argument
488 val |= (pvid & PVID_MASK) << PVID_OFF(port); in mtkswitch_vlan_set_pvid()
/freebsd/sys/dev/etherswitch/ip17x/
H A Dip17x_vlans.c70 memset(sc->pvid, 0, sizeof(uint32_t) * sc->numports); in ip17x_reset_vlans()
98 sc->pvid[i] = 1; in ip17x_reset_vlans()
H A Dip175c.c165 if (ip17x_writephy(sc->sc_dev, 29, 30, sc->pvid[i])) in ip175c_dot1q_vlan_setup()
168 if (ip17x_writephy(sc->sc_dev, 29, 24 + i, sc->pvid[i])) in ip175c_dot1q_vlan_setup()
H A Dip17x.c237 sc->pvid = malloc(sizeof(uint32_t) * sc->numports, M_IP17X, in ip17x_attach()
298 free(sc->pvid, M_IP17X); in ip17x_detach()
410 p->es_pvid = sc->pvid[phy]; in ip17x_getport()
475 sc->pvid[phy] = p->es_pvid; in ip17x_setport()
H A Dip17x_var.h64 uint32_t *pvid; /* PVID */ member
H A Dip175d.c137 ip17x_writephy(sc->sc_dev, 22, 4 + i, sc->pvid[i]); in ip175d_hw_setup()
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Dam335x-netcan-plus-1xx.dts72 ti,dual-emac-pvid = <1>;
78 ti,dual-emac-pvid = <2>;
H A Ddra72-evm-revc.dts90 ti,dual-emac-pvid = <1>;
96 ti,dual-emac-pvid = <2>;
H A Dam335x-baltos-ir2110.dts69 ti,dual-emac-pvid = <1>;
75 ti,dual-emac-pvid = <2>;
H A Dam335x-netcom-plus-2xx.dts87 ti,dual-emac-pvid = <1>;
93 ti,dual-emac-pvid = <2>;
H A Dam335x-netcom-plus-8xx.dts119 ti,dual-emac-pvid = <1>;
125 ti,dual-emac-pvid = <2>;
H A Dam335x-moxa-uc-2100-common.dtsi138 ti,dual-emac-pvid = <1>;
142 ti,dual-emac-pvid = <2>;
H A Dam335x-baltos-ir3220.dts112 ti,dual-emac-pvid = <1>;
121 ti,dual-emac-pvid = <2>;
H A Dam335x-baltos-ir5221.dts129 ti,dual-emac-pvid = <1>;
138 ti,dual-emac-pvid = <2>;
H A Dam335x-igep0033.dtsi114 ti,dual-emac-pvid = <1>;
120 ti,dual-emac-pvid = <2>;
H A Ddra71-evm.dts234 ti,dual-emac-pvid = <1>;
240 ti,dual-emac-pvid = <2>;
H A Ddra72-evm.dts80 ti,dual-emac-pvid = <1>;
H A Dam335x-lxm.dts301 ti,dual-emac-pvid = <2>;
307 ti,dual-emac-pvid = <3>;

123