Lines Matching refs:unit
1248 * wl: by unit # provided by the driver, for example, if eth1 is wireless
1249 * i/f and its unit # is 0, then it will be in the i/f name list if
1259 int i, unit;
1283 /* wl: use unit # to identify wl */
1286 wl_ioctl(ifr.ifr_name, WLC_GET_INSTANCE, &unit, sizeof(unit)) ||
1287 unit != atoi(&name[2]))
1465 nvram_unset(strcat_r(prefix, "unit", tmp));
1488 ure_restore_defaults(int unit)
1493 sprintf(prefix, "wl%d.1_", unit);
1502 sprintf(prefix, "wl%d_ure", unit);
1507 set_ure_vars(int unit)
1509 int wl_unit = unit;
2227 int unit;
2231 for (unit = 0; unit < MAX_NVPARSE; unit ++) {
2232 snprintf(prefix, sizeof(prefix), "wan%d_", unit);
2233 if (nvram_get(strcat_r(prefix, "unit", tmp)))
2237 if (unit >= MAX_NVPARSE) {
2251 nvram_set(strcat_r(prefix, "unit", tmp), "0");
2459 int unit = -1;
2481 /* Search for existing PCI wl devices and the max unit number used.
2488 if (!wl_ioctl(ifname, WLC_GET_INSTANCE, &unit,
2489 sizeof(unit))) {
2491 maxunit = (unit > maxunit) ? unit : maxunit;
2496 /* Set instance base (starting unit number) for USB device */
2508 if (!wl_ioctl(ifname, WLC_GET_INSTANCE, &unit, sizeof(unit)))
2509 cprintf("wl%d is up in %d sec\n", unit, wl_wait - i);
2511 cprintf("wl%d not up in %d sec\n", unit, wl_wait);