Lines Matching refs:unit
752 int unit = -1;
755 wl_ioctl(name, WLC_GET_INSTANCE, &unit, sizeof(unit));
757 snprintf(mode, sizeof(mode), "wl%d_mode", unit);
1453 int unit;
1455 if ((unit = wan_ifunit(ifname)) < 0)
1458 sprintf(prefix, "wan%d_", unit);
1502 int unit;
1528 for (unit = 0; unit < MAX_NVPARSE; unit ++) {
1529 snprintf(prefix, sizeof(prefix), "wan%d_", unit);
1608 NULL, NULL, /* ppp unit requested */
1627 snprintf(pppunit, sizeof(pppunit), "%d", unit);
1677 "-p", (sprintf(tmp, "/var/run/udhcpc%d.pid", unit), tmp),
2029 int unit;
2036 wl_ioctl(name, WLC_GET_INSTANCE, &unit, sizeof(unit));
2037 snprintf(mode, sizeof(mode), "wl%d_mode", unit);
2172 int unit;
2175 if ((unit = ppp_ifunit(wan_ifname)) >= 0)
2176 return unit;
2178 for (unit = 0; unit < MAX_NVPARSE; unit ++) {
2179 snprintf(prefix, sizeof(prefix), "wan%d_", unit);
2183 return unit;
2210 int unit;
2212 for (unit = 0; unit < MAX_NVPARSE; unit ++) {
2214 snprintf(prefix, sizeof(prefix), "wan%d_", unit);
2216 return unit;