Lines Matching defs:state
2395 int flags, struct nl80211_dump_wiphy_state *state)
2412 if (WARN_ON(!state))
2425 switch (state->split_start) {
2467 state->split_start++;
2468 if (state->split)
2514 state->split_start++;
2515 if (state->split)
2522 state->split_start++;
2523 if (state->split)
2532 for (band = state->band_start;
2533 band < (state->split ?
2540 if (band > NL80211_BAND_5GHZ && !state->split)
2552 switch (state->chan_start) {
2555 state->split))
2557 state->chan_start++;
2558 if (state->split)
2568 for (i = state->chan_start - 1;
2580 state->split))
2584 if (state->split)
2588 state->chan_start = i + 2;
2590 state->chan_start = 0;
2596 if (state->split) {
2598 if (state->chan_start)
2606 state->band_start = band + 1;
2608 state->band_start = 0;
2611 if (state->band_start == 0 && state->chan_start == 0)
2612 state->split_start++;
2613 if (state->split)
2625 if (state->split) {
2643 state->split_start++;
2644 if (state->split)
2659 state->split_start++;
2660 if (state->split)
2665 if (nl80211_send_wowlan(msg, rdev, state->split))
2667 state->split_start++;
2668 if (state->split)
2671 state->split_start++;
2680 state->split))
2683 state->split_start++;
2684 if (state->split)
2699 if (state->split)
2726 if (state->split)
2727 state->split_start++;
2729 state->split_start = 0;
2782 state->split_start++;
2798 state->split_start++;
2834 state->split_start++;
2876 state->split_start++;
2888 for (i = state->capa_start;
2917 if (state->split)
2922 state->capa_start = i + 1;
2953 state->split_start++;
2959 state->split_start++;
2973 state->split_start++;
2995 state->split_start = 0;
3009 struct nl80211_dump_wiphy_state *state)
3027 state->split = tb[NL80211_ATTR_SPLIT_WIPHY_DUMP];
3029 state->filter_wiphy = nla_get_u32(tb[NL80211_ATTR_WIPHY]);
3031 state->filter_wiphy = nla_get_u64(tb[NL80211_ATTR_WDEV]) >> 32;
3045 state->filter_wiphy = rdev->wiphy_idx;
3058 struct nl80211_dump_wiphy_state *state = (void *)cb->args[0];
3062 if (!state) {
3063 state = kzalloc(sizeof(*state), GFP_KERNEL);
3064 if (!state) {
3068 state->filter_wiphy = -1;
3069 ret = nl80211_dump_wiphy_parse(skb, cb, state);
3071 kfree(state);
3075 cb->args[0] = (long)state;
3081 if (++idx <= state->start)
3083 if (state->filter_wiphy != -1 &&
3084 state->filter_wiphy != rdev->wiphy_idx)
3093 NLM_F_MULTI, state);
3109 !skb->len && !state->split &&
3112 state->split_start = 0;
3120 } while (state->split_start > 0);
3126 state->start = idx;
3141 struct nl80211_dump_wiphy_state state = {};
3149 &state) < 0) {
3966 struct nl80211_dump_wiphy_state state = {
3970 ret = nl80211_dump_wiphy_parse(skb, cb, &state);
3974 filter_wiphy = state.filter_wiphy;
10761 * Since we no longer track auth state, ignore
10762 * requests to only change local state.
12721 bool state;
12734 state = (ps_state == NL80211_PS_ENABLED) ? true : false;
12736 if (state == wdev->ps)
12739 err = rdev_set_power_mgmt(rdev, dev, state, wdev->ps_timeout);
12741 wdev->ps = state;
17575 struct nl80211_dump_wiphy_state state = {};
17584 if (nl80211_send_wiphy(rdev, cmd, msg, 0, 0, 0, &state) < 0) {
19938 unsigned long state,
19946 if (state != NETLINK_URELEASE || notify->protocol != NETLINK_GENERIC)