/openwrt/target/linux/generic/files/drivers/net/phy/ |
H A D | mvsw61xx.c | 261 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 D | mvswitch.c | 45 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 D | ip17xx.c | 101 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 D | mvsw61xx.h | 259 } vlans[MV_VLANS]; member in struct:mvsw61xx_state
|
H A D | psb6970.c | 104 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 D | rtl8306.c | 467 /* 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 D | swconfig.c | 65 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 D | ar8216.c | 952 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 D | ar8216.h | 396 int vlans; member in struct:ar8xxx_chip
|
H A D | ar8327.c | 1378 .vlans = AR8X16_MAX_VLANS, 1413 .vlans = AR8X16_MAX_VLANS,
|
H A D | adm6996.c | 990 swdev->vlans = ADM_NUM_VLANS;
|
H A D | rtl8366s.c | 957 dev->vlans = RTL8366S_NUM_VIDS;
|
H A D | rtl8366rb.c | 1305 dev->vlans = RTL8366RB_NUM_VIDS;
|
H A D | rtl8367.c | 1635 dev->vlans = RTL8367_NUM_VIDS;
|
H A D | rtl8367b.c | 1395 dev->vlans = RTL8367B_NUM_VIDS;
|
/openwrt/target/linux/generic/files/drivers/net/phy/b53/ |
H A D | b53_common.c | 373 * 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 D | b53_priv.h | 102 struct b53_vlan *vlans; member in struct:b53_device
|
/openwrt/package/network/config/swconfig/src/ |
H A D | swlib.h | 127 int vlans; member in struct:switch_dev
|
H A D | cli.c | 78 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 D | swlib.c | 773 dev->vlans = nla_get_u32(tb[SWITCH_ATTR_VLANS]);
|
/openwrt/target/linux/generic/files/include/linux/ |
H A D | switch.h | 119 int vlans; member in struct:switch_dev
|
/openwrt/package/base-files/files/bin/ |
H A D | config_generate | 143 # autogenerate vlans 199 local vlans
|
/openwrt/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ |
H A D | ag71xx_ar7240.c | 795 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 D | network.tex | 140 For instance, if you wish to have 3 vlans, like one 3-port switch, 1 port in a
|