Lines Matching defs:subunit
435 * Parse the unit and subunit from an interface string such as wlXX or wlXX.YY
439 * @param subunit pointer to return the subunit number, may pass NULL
443 * in just digits, unit is set to the value, and subunit is set
444 * to -1. On error both unit and subunit are -1. NULL may be passed
448 get_ifname_unit(const char* ifname, int *unit, int *subunit)
459 if (subunit)
460 *subunit = -1;
487 if (subunit)
488 *subunit = val;
783 int subunit = -1;
801 if (get_ifname_unit(nvifname, &unit, &subunit) != 0)
805 if (subunit < 0)
806 subunit = 0;
807 wlan_index = unit << NETBSD_UNIT_SHIFT | subunit;
830 int subunit;
839 /* try to get some unit/subunit numbers from the os interface name */
844 /* convert the wlan_index to wl/wds unit/subunit */
845 subunit = wlan_index & subunitmask;
851 unit, subunit);