Searched refs:vlans (Results 1 - 24 of 24) sorted by relevance

/openwrt/target/linux/generic/files/drivers/net/phy/
H A Dmvsw61xx.c261 if (vno <= 0 || vno >= dev->vlans)
265 if (state->vlans[vno].mask & (1 << i)) {
268 mode = (state->vlans[vno].port_mode >> (i * 4)) & 0xf;
292 if (vno <= 0 || vno >= dev->vlans)
295 state->vlans[vno].mask = 0;
296 state->vlans[vno].port_mode = 0;
297 state->vlans[vno].port_sstate = 0;
299 if(state->vlans[vno].vid == 0)
300 state->vlans[vno].vid = vno;
305 state->vlans[vn
[all...]
H A Dmvswitch.c45 u8 vlans[16]; member in struct:mvswitch_priv
92 if (unlikely((vid > 15 || !priv->vlans[vid])))
124 ((priv->vlans[vid] << MV_HEADER_PORTS_S) & MV_HEADER_PORTS_M)
130 ((priv->vlans[vid] & MV_TRAILER_PORTS_M) << MV_TRAILER_PORTS_S)
168 for (i = 0; i < ARRAY_SIZE(priv->vlans); i++) {
169 if ((1 << buf[1]) & priv->vlans[i])
214 /* initialize default vlans */
216 priv->vlans[(i == MV_WANPORT ? 2 : 1)] |= (1 << i);
259 for (j = 0; j < ARRAY_SIZE(priv->vlans); j++) {
260 if (priv->vlans[
[all...]
H A Dip17xx.c101 bitnum SIMPLE_VLAN_REGISTERS; // 175C has two vlans per register but 178C has only one.
319 } vlans[MAX_VLANS]; member in struct:ip17xx_state
558 vlan_mask = state->vlans[j].ports;
585 if (state->vlans[i].ports != 0) {
586 state->num_vlans = i+1; // Hack -- we need to store the "set" vlans somewhere...
599 if (state->vlans[j].ports & portmask)
600 state->ports[i].shareports |= state->vlans[j].ports;
650 if (!state->vlans[i].tag) {
656 err |= ip_phy_write(state, 22, 14+i, state->vlans[i].tag);
657 ports[i] = state->vlans[
[all...]
H A Dmvsw61xx.h259 } vlans[MV_VLANS]; member in struct:mvsw61xx_state
H A Dpsb6970.c104 if (vlan >= dev->vlans)
200 * appear in other vlans */
232 } else /* clear VLAN Valid flag for unused vlans */
337 swdev->vlans = PSB6970_MAX_VLANS;
H A Drtl8306.c467 /* reset all vlans */
613 if (val->port_vlan >= dev->vlans)
622 if (val->port_vlan >= dev->vlans)
729 rtl_set(dev, RTL_PORT_REG(i, PVID), dev->vlans - 1);
881 priv->dev.vlans = RTL8306_NUM_VLANS;
H A Dswconfig.c65 if (val->port_vlan >= dev->vlans)
83 if (val->port_vlan >= dev->vlans)
536 if (val->port_vlan >= dev->vlans)
935 if (nla_put_u32(msg, SWITCH_ATTR_VLANS, dev->vlans))
H A Dar8216.c952 if (vlan >= dev->vlans)
1037 * appear in other vlans */
1115 /* calculate the port destination masks and load vlans
1696 .vlans = AR8216_NUM_VLANS,
1726 .vlans = AR8216_NUM_VLANS,
1756 .vlans = AR8X16_MAX_VLANS,
1938 swdev->vlans = chip->vlans;
H A Dar8216.h396 int vlans; member in struct:ar8xxx_chip
H A Dar8327.c1378 .vlans = AR8X16_MAX_VLANS,
1413 .vlans = AR8X16_MAX_VLANS,
H A Dadm6996.c990 swdev->vlans = ADM_NUM_VLANS;
H A Drtl8366s.c957 dev->vlans = RTL8366S_NUM_VIDS;
H A Drtl8366rb.c1305 dev->vlans = RTL8366RB_NUM_VIDS;
H A Drtl8367.c1635 dev->vlans = RTL8367_NUM_VIDS;
H A Drtl8367b.c1395 dev->vlans = RTL8367B_NUM_VIDS;
/openwrt/target/linux/generic/files/drivers/net/phy/b53/
H A Db53_common.c373 * mode through port vlans.
424 for (i = 1; i < dev->sw_dev.vlans; i++)
434 for (i = 0; i < dev->sw_dev.vlans; i++) {
435 struct b53_vlan *vlan = &dev->vlans[i];
681 struct b53_vlan *vlan = &priv->vlans[val->port_vlan];
711 struct b53_vlan *vlan = &priv->vlans[val->port_vlan];
849 /* reset vlans */
854 memset(priv->vlans, 0, sizeof(*priv->vlans) * dev->vlans);
1114 u16 vlans; member in struct:b53_chip_data
[all...]
H A Db53_priv.h102 struct b53_vlan *vlans; member in struct:b53_device
/openwrt/package/network/config/swconfig/src/
H A Dswlib.h127 int vlans; member in struct:switch_dev
H A Dcli.c78 printf("%s: %s(%s), ports: %d (cpu @ %d), vlans: %d\n", dev->dev_name, dev->alias, dev->name, dev->ports, dev->cpu_port, dev->vlans);
378 for (i=0; i < dev->vlans; i++)
H A Dswlib.c773 dev->vlans = nla_get_u32(tb[SWITCH_ATTR_VLANS]);
/openwrt/target/linux/generic/files/include/linux/
H A Dswitch.h119 int vlans; member in struct:switch_dev
/openwrt/package/base-files/files/bin/
H A Dconfig_generate143 # autogenerate vlans
199 local vlans
/openwrt/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/
H A Dag71xx_ar7240.c795 if (vlan >= dev->vlans)
852 * appear in other vlans */
912 /* calculate the port destination masks and load vlans
1129 swdev->vlans = AR7240_MAX_VLANS;
/openwrt/docs/
H A Dnetwork.tex140 For instance, if you wish to have 3 vlans, like one 3-port switch, 1 port in a

Completed in 262 milliseconds