Lines Matching refs:wiphy_idx
48 struct cfg80211_registered_device *cfg80211_rdev_by_wiphy_idx(int wiphy_idx)
52 if (!wiphy_idx_valid(wiphy_idx))
58 if (rdev->wiphy_idx == wiphy_idx) {
73 return rdev->wiphy_idx;
77 struct wiphy *wiphy_idx_to_wiphy(int wiphy_idx)
81 if (!wiphy_idx_valid(wiphy_idx))
86 rdev = cfg80211_rdev_by_wiphy_idx(wiphy_idx);
181 int wiphy_idx, taken = -1, result, digits;
186 sscanf(newname, PHY_NAME "%d%n", &wiphy_idx, &taken);
187 if (taken == strlen(newname) && wiphy_idx != rdev->wiphy_idx) {
188 /* count number of places needed to print wiphy_idx */
190 while (wiphy_idx /= 10)
340 rdev->wiphy_idx = wiphy_counter++;
342 if (unlikely(!wiphy_idx_valid(rdev->wiphy_idx))) {
353 dev_set_name(&rdev->wiphy.dev, PHY_NAME "%d", rdev->wiphy_idx);
499 request.wiphy_idx = get_wiphy_idx(wiphy);