Lines Matching defs:vlan
496 if (!priv->vlan)
521 int port, vlan;
527 /* don't strip the header if vlan mode is disabled */
528 if (!priv->vlan)
531 /* strip header, get vlan id */
535 /* check for vlan header presence */
545 /* lookup port vid from local table, the switch passes an invalid vlan id */
546 vlan = priv->vlan_id[priv->pvid[port]];
549 buf[14 + 2] |= vlan >> 8;
550 buf[15 + 2] = vlan & 0xff;
646 if (priv->vlan) {
659 if (chip_is_ar8216(priv) && priv->vlan && port == AR8216_PORT_CPU)
805 if (priv->vlan) {
931 priv->vlan = !!val->value.i;
940 val->value.i = priv->vlan;
946 ar8xxx_sw_set_pvid(struct switch_dev *dev, int port, int vlan)
952 if (vlan >= dev->vlans)
955 priv->pvid[port] = vlan;
960 ar8xxx_sw_get_pvid(struct switch_dev *dev, int port, int *vlan)
963 *vlan = priv->pvid[port];
1110 /* flush all vlan translation unit entries */
1116 * into the vlan translation unit */
1133 /* vlan disabled:
1167 memset(&priv->vlan, 0, sizeof(struct ar8xxx_priv) -
1168 offsetof(struct ar8xxx_priv, vlan));