Searched refs:pvid (Results 1 - 19 of 19) sorted by relevance

/freebsd-11-stable/sys/dev/etherswitch/ip17x/
H A Dip17x_var.h63 uint32_t *pvid; /* PVID */ member in struct:ip17x_softc
H A Dip17x_vlans.c70 memset(sc->pvid, 0, sizeof(uint32_t) * sc->numports);
98 sc->pvid[i] = 1;
H A Dip175c.c165 if (ip17x_writephy(sc->sc_dev, 29, 30, sc->pvid[i]))
168 if (ip17x_writephy(sc->sc_dev, 29, 24 + i, sc->pvid[i]))
H A Dip175d.c137 ip17x_writephy(sc->sc_dev, 22, 4 + i, sc->pvid[i]);
H A Dip17x.c203 sc->pvid = malloc(sizeof(uint32_t) * sc->numports, M_IP17X,
261 free(sc->pvid, M_IP17X);
374 p->es_pvid = sc->pvid[phy];
439 sc->pvid[phy] = p->es_pvid;
/freebsd-11-stable/sys/dev/etherswitch/arswitch/
H A Darswitch_vlans.c367 ar8xxx_get_pvid(struct arswitch_softc *sc, int port, int *pvid) argument
373 *pvid = reg & 0xfff;
378 ar8xxx_set_pvid(struct arswitch_softc *sc, int port, int pvid) argument
383 AR8X16_REG_PORT_VLAN(port), 0xfff, pvid));
H A Darswitch_8327.c879 /* set pvid = 1; there's only one vlangroup to start with */
906 * If dot1q - set pvid; dot1q, etc.
911 /* Each port - pvid 1 */
971 ar8327_get_pvid(struct arswitch_softc *sc, int port, int *pvid) argument
985 *pvid = reg;
990 ar8327_set_pvid(struct arswitch_softc *sc, int port, int pvid) argument
994 /* Limit pvid to valid values */
995 pvid &= 0x7f;
997 t = pvid << AR8327_PORT_VLAN0_DEF_SVID_S;
998 t |= pvid << AR8327_PORT_VLAN0_DEF_CVID_
[all...]
/freebsd-11-stable/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_mt7620.c502 mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid) argument
507 *pvid = sc->hal.mtkswitch_read(sc, MTKSWITCH_PPBV1(port));
508 *pvid = PPBV_VID_FROM_REG(*pvid);
514 mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid) argument
519 val = PPBV_VID(pvid & PPBV_VID_MASK);
H A Dmtkswitch_rt3050.c445 mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid) argument
449 *pvid = (MTKSWITCH_READ(sc, MTKSWITCH_PVID(port)) >> PVID_OFF(port)) &
456 mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid) argument
463 val |= (pvid & PVID_MASK) << PVID_OFF(port);
/freebsd-11-stable/sys/dev/etherswitch/e6000sw/
H A De6000sw.c135 static int e6000sw_get_pvid(e6000sw_softc_t *sc, int port, int *pvid);
136 static int e6000sw_set_pvid(e6000sw_softc_t *sc, int port, int pvid);
746 e6000sw_set_pvid(e6000sw_softc_t *sc, int port, int pvid) argument
749 e6000sw_writereg(sc, REG_PORT(port), PORT_VID, pvid &
756 e6000sw_get_pvid(e6000sw_softc_t *sc, int port, int *pvid) argument
759 if (pvid == NULL)
762 *pvid = e6000sw_readreg(sc, REG_PORT(port), PORT_VID) &
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_iov_api.h432 * @brief Set forced VLAN [pvid] in PFs copy of bulletin board
434 * Setting of pvid 0 would clear the feature.
436 * @param pvid
440 u16 pvid, int vfid);
569 * @brief Returns pvid if one is configured
574 * @return 0 if no pvid is configured, otherwise the pvid.
792 static OSAL_INLINE void ecore_iov_bulletin_set_forced_vlan(struct ecore_hwfn OSAL_UNUSED p_hwfn, u16 OSAL_UNUSED pvid, int OSAL_UNUSED vfid) {} argument
H A Decore_vfpf_if.h663 u16 pvid; member in struct:ecore_bulletin_content
H A Decore_sriov.c2051 filter.vlan = p_vf->bulletin.p_virt->pvid;
4549 u16 pvid, int vfid)
4568 vf_info->bulletin.p_virt->pvid = pvid;
4569 if (pvid)
4763 return p_vf->bulletin.p_virt->pvid;
4548 ecore_iov_bulletin_set_forced_vlan(struct ecore_hwfn *p_hwfn, u16 pvid, int vfid) argument
H A Decore_vf.c1917 *dst_pvid = bulletin->pvid;
/freebsd-11-stable/tools/tools/usbtest/
H A Dusb_msc_test.c860 show_host_device_selection(uint8_t level, uint16_t *pvid, uint16_t *ppid) argument
910 *pvid = 0;
914 *pvid = vid[sel];
/freebsd-11-stable/sys/dev/oce/
H A Doce_if.h894 uint32_t pvid; member in struct:oce_softc
1188 #define IS_QNQ_OR_UMC(sc) ((sc->pvid && (sc->function_mode & FNM_UMC_MODE ))\
H A Doce_if.c1691 } else if (sc->pvid != (cq_info.vtag & VLAN_VID_MASK)) {
1692 /* In UMC mode generally pvid will be striped by
1694 with pvid. So if pvid == vlan, neglect vlan.
1769 } else if (sc->pvid != (vtag & VLAN_VID_MASK)) {
1770 /* In UMC mode generally pvid will be striped by
1772 with pvid. So if pvid == vlan, neglect vlan.
2712 sc->pvid = gcqe->tag & VLAN_VID_MASK;
2714 sc->pvid
[all...]
H A Doce_sysctl.c123 OID_AUTO, "pvid",
125 &sc->pvid,
/freebsd-11-stable/sys/dev/ixl/
H A Di40e_adminq_cmd.h926 __le16 pvid; /* VLANS include priority bits */ member in struct:i40e_aqc_vsi_properties_data

Completed in 308 milliseconds