/openwrt/package/utils/admswconfig/files/ |
H A D | admswswitch.sh | 5 config_get ports "$CONFIG_SECTION" "eth$1" 6 ports=`echo "$ports"| sed s/" "/""/g` 8 admswconfig eth$1 ${ports}c
|
/openwrt/target/linux/cns3xxx/files/include/linux/platform_data/ |
H A D | cns3xxx.h | 20 u8 ports; /* Bitmap of enabled Ports */ member in struct:cns3xxx_plat_info
|
/openwrt/target/linux/adm5120/files-3.18/drivers/net/ |
H A D | adm5120sw.h | 19 u16 ports; member in struct:adm5120_sw_info
|
H A D | adm5120sw.c | 241 SW_DBG(" misc %08X%s pktlen=%04X ports=%02X vlan=%02X\n", t, 773 static void adm5120_switch_set_vlan_ports(unsigned int vlan, u32 ports) argument 787 t |= (ports << (vlan*8)); 933 u32 ports; local 936 ports = adm5120_eth_vlans[priv->vlan_no] & SWITCH_PORTS_NOCPU; 941 t &= ~(ports << CPUP_CONF_DUNP_SHIFT); 944 t |= (ports << CPUP_CONF_DUNP_SHIFT); 949 t &= ~(ports << CPUP_CONF_DMCP_SHIFT); 952 t |= (ports << CPUP_CONF_DMCP_SHIFT); 961 /* VLAN0 and VLAN1. Both ports o [all...] |
/openwrt/scripts/ |
H A D | freebsd.sh | 1 env PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/ pkg_add -r gmake-3.82.tbz bash-4.1.11.tbz python27-2.7.2_3.tbz gtar-1.26.tbz findutils-4.5.10_2.tbz coreutils-8.12.tbz getopt-1.1.4_2.tbz wget-1.13.4_1.tbz gnugrep-2.9.tbz gawk-4.0.0.tbz
|
/openwrt/target/linux/generic/files/drivers/net/phy/ |
H A D | adm6996.h | 15 * ADM_PHY_PORTS: Number of ports with a PHY. 16 * We only control ports 0 to 3, because if 4 is connected, it is most likely 167 /* Convert ports to a form for ADM6996L VLAN map */ 168 #define ADM_VLAN_FILT(ports) ((ports & 0x01) | ((ports & 0x02) << 1) | \ 169 ((ports & 0x04) << 2) | ((ports & 0x08) << 3) | \ 170 ((ports & 0x10) << 3) | ((ports [all...] |
H A D | mvsw61xx.c | 182 val->value.i = state->ports[val->port_vlan].qmode; 193 state->ports[val->port_vlan].qmode = val->value.i; 203 *val = state->ports[port].pvid; 216 state->ports[port].pvid = (u16)val; 264 for (i = 0, j = 0; i < dev->ports; i++) { 266 val->value.ports[j].id = i; 270 val->value.ports[j].flags = 273 val->value.ports[j].flags = 0; 303 pno = val->value.ports[i].id; 306 if (val->value.ports[ [all...] |
H A D | ip17xx.c | 58 /* These ports are tagged. 63 /* These ports are untagged. 69 Default: All ports on all VLANs. */ 77 /* This VLAN corresponds to which ports. 312 } ports[MAX_PORTS]; member in struct:ip17xx_state 317 unsigned int ports; member in struct:ip17xx_state::vlan_state 540 //printf("shareports for %d is %02X\n",j,state->ports[j].shareports); 542 SET_PORT_BITS(state, state->ports[j].shareports, addr, bit_lookup); 558 vlan_mask = state->vlans[j].ports; 566 state->ports[ 637 unsigned int ports[16], add[16], rem[16]; local 781 unsigned int ports; local [all...] |
H A D | swconfig.c | 79 struct switch_port *ports = val->value.ports; local 86 /* validate ports */ 87 if (val->len > dev->ports) 94 if (ports[i].id >= dev->ports) 98 !(ports[i].flags & (1 << SWITCH_PORT_FLAG_TAGGED))) 99 ops->set_port_pvid(dev, ports[i].id, val->port_vlan); 109 if (val->port_vlan >= dev->ports) 122 if (val->port_vlan >= dev->ports) [all...] |
H A D | adm6996.c | 442 u8 ports = priv->vlan_table[val->port_vlan]; local 453 if (!(ports & (1 << i))) 456 p = &val->value.ports[val->len++]; 471 u8 *ports = &priv->vlan_table[val->port_vlan]; local 475 pr_devel("set_ports port_vlan %d ports", val->port_vlan); 477 *ports = 0; 481 struct switch_port *p = &val->value.ports[i]; 494 *ports |= (1 << p->id); 544 * Sets VLAN mapping for port-based VLAN with all ports connected to 583 * Sets VLAN mapping for port-based VLAN with all ports connecte 647 u8 ports, tagged; local 674 u8 ports; local [all...] |
H A D | psb6970.c | 163 u8 ports = priv->vlan_table[val->port_vlan]; local 170 if (!(ports & (1 << i))) 173 p = &val->value.ports[val->len++]; 191 struct switch_port *p = &val->value.ports[i]; 338 swdev->ports = PSB6970_NUM_PORTS;
|
H A D | ar8327.c | 735 if (port >= priv->dev.ports) 901 u8 ports = priv->vlan_table[val->port_vlan]; local 905 for (i = 0; i < dev->ports; i++) { 908 if (!(ports & (1 << i))) 911 p = &val->value.ports[val->len++]; 930 struct switch_port *p = &val->value.ports[i]; 993 if (port >= dev->ports) 1015 if (port >= dev->ports) 1130 if (port >= dev->ports) 1148 if (port >= dev->ports) [all...] |
H A D | ar8216.c | 371 /* Capture the hardware statistics for all ports */ 404 WARN_ON(port >= priv->dev.ports); 785 while (!(val2 & t) && ++i < priv->dev.ports) 999 u8 ports = priv->vlan_table[val->port_vlan]; local 1003 for (i = 0; i < dev->ports; i++) { 1006 if (!(ports & (1 << i))) 1009 p = &val->value.ports[val->len++]; 1028 struct switch_port *p = &val->value.ports[i]; 1123 for (i = 0; i < dev->ports; i++) { 1134 * isolate all ports, bu [all...] |
/openwrt/package/network/config/swconfig/src/ |
H A D | swlib.h | 86 ->value.ports (for attr->type == SWITCH_TYPE_PORT) 126 int ports; member in struct:switch_dev 145 struct switch_port *ports; member in union:switch_val::__anon89
|
H A D | swlib.c | 179 int ports = val->attr->dev->ports; local 183 if (!val->value.ports) 184 val->value.ports = malloc(sizeof(struct switch_port) * ports); 190 if (val->len >= ports) 200 port = &val->value.ports[val->len]; 318 struct switch_port *port = &val->value.ports[i]; 432 struct switch_port *ports; local 448 ports [all...] |
H A D | cli.c | 61 type = "ports"; 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); 120 val->value.ports[i].id, 121 (val->value.ports[i].flags & 189 attr = swlib_lookup_attr(dev, SWLIB_ATTR_GROUP_VLAN, "ports"); 376 for (i=0; i < dev->ports; i++)
|
/openwrt/package/base-files/files/lib/functions/ |
H A D | uci-defaults.sh | 104 json_select_array ports 127 json_add_string ports "$num" 134 json_get_var port ports 135 json_add_string ports "$port $num" 145 local index role roles num device need_tag port ports 158 json_select ports 171 json_get_vars role ports 172 json_add_string ports "$ports $num" 263 local ports [all...] |
/openwrt/package/base-files/files/bin/ |
H A D | config_generate | 140 local port ports role roles num attr val 151 json_get_vars ports 158 set network.@switch_vlan[-1].ports='$ports' 169 json_get_keys ports ports 170 json_select ports 172 for port in $ports; do
|
/openwrt/target/linux/generic/files/include/linux/ |
H A D | switch.h | 118 int ports; member in struct:switch_dev 156 struct switch_port *ports; member in union:switch_val::__anon237
|
/openwrt/package/network/config/qos-scripts/files/usr/lib/qos/ |
H A D | generate.sh | 46 local ports="" 71 *:ports|*:srcports|*:dstports) 79 ports) 83 append "$var" "--ports $value" 86 config_set "$section" ports "" 92 config_set "$section" ports "" 98 ports=1 101 config_set "$section" ports "" 109 ports=1 185 case "$ports [all...] |
/openwrt/package/utils/admswconfig/ |
H A D | Makefile | 34 With this program you can configure which ports of the switch belong
|
/openwrt/target/linux/adm5120/files-3.18/drivers/usb/host/ |
H A D | adm5120-hub.c | 96 /* can't autostop if ports are connected */ 149 /* ports removable, and usb 1.0 legacy PortPwrCtrlMask */ 316 int ports = ahcd->num_ports; local 337 if (!wIndex || wIndex > ports) 377 if (!wIndex || wIndex > ports) 394 if (!wIndex || wIndex > ports)
|
/openwrt/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ |
H A D | ag71xx_ar7240.c | 333 return BIT(as->swdev.ports) - 1; 524 /* Capture the hardware statistics for all ports */ 652 /* Set all ports to disabled state. */ 732 /* allow the port to talk to all other ports, but exclude its 814 u8 ports = as->vlan_table[val->port_vlan]; local 818 for (i = 0; i < as->swdev.ports; i++) { 821 if (!(ports & (1 << i))) 824 p = &val->value.ports[val->len++]; 843 struct switch_port *p = &val->value.ports[i]; 920 for (i = 0; i < as->swdev.ports; [all...] |
/openwrt/target/linux/generic/files/drivers/net/phy/b53/ |
H A D | b53_common.c | 388 /* disable unused ports 6 & 7 */ 446 dev->ports[i].pvid); 508 /* enable all ports */ 658 *val = priv->ports[port].pvid; 672 priv->ports[port].pvid = val; 680 struct switch_port *port = &val->value.ports[0]; 689 for (i = 0; i < dev->ports; i++) { 722 port = &val->value.ports[0]; 730 priv->ports[port->id].pvid = val->port_vlan; 734 /* ignore disabled ports */ [all...] |
/openwrt/scripts/flashing/ |
H A D | flash.sh | 43 1) connect your pc to any of the four LAN ports
|