Lines Matching refs:attrbuf
942 struct nlattr **attrbuf) in nl80211_prepare_wdev_dump() argument
949 if (!attrbuf) { in nl80211_prepare_wdev_dump()
950 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), in nl80211_prepare_wdev_dump()
952 if (!attrbuf) in nl80211_prepare_wdev_dump()
954 attrbuf_free = attrbuf; in nl80211_prepare_wdev_dump()
959 attrbuf, nl80211_fam.maxattr, in nl80211_prepare_wdev_dump()
968 attrbuf); in nl80211_prepare_wdev_dump()
9846 struct nlattr **attrbuf; in nl80211_dump_survey() local
9854 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), GFP_KERNEL); in nl80211_dump_survey()
9855 if (!attrbuf) in nl80211_dump_survey()
9858 res = nl80211_prepare_wdev_dump(cb, &rdev, &wdev, attrbuf); in nl80211_dump_survey()
9860 kfree(attrbuf); in nl80211_dump_survey()
9867 radio_stats = attrbuf[NL80211_ATTR_SURVEY_RADIO_STATS]; in nl80211_dump_survey()
9905 kfree(attrbuf); in nl80211_dump_survey()
10807 struct nlattr **attrbuf = NULL; in nl80211_testmode_dump() local
10828 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), in nl80211_testmode_dump()
10830 if (!attrbuf) { in nl80211_testmode_dump()
10837 attrbuf, nl80211_fam.maxattr, in nl80211_testmode_dump()
10842 rdev = __cfg80211_rdev_from_attrs(sock_net(skb->sk), attrbuf); in nl80211_testmode_dump()
10849 if (attrbuf[NL80211_ATTR_TESTDATA]) in nl80211_testmode_dump()
10850 cb->args[1] = (long)attrbuf[NL80211_ATTR_TESTDATA]; in nl80211_testmode_dump()
10900 kfree(attrbuf); in nl80211_testmode_dump()
14045 struct nlattr **attrbuf; in nl80211_prepare_vendor_dump() local
14076 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), GFP_KERNEL); in nl80211_prepare_vendor_dump()
14077 if (!attrbuf) in nl80211_prepare_vendor_dump()
14082 attrbuf, nl80211_fam.maxattr, in nl80211_prepare_vendor_dump()
14087 if (!attrbuf[NL80211_ATTR_VENDOR_ID] || in nl80211_prepare_vendor_dump()
14088 !attrbuf[NL80211_ATTR_VENDOR_SUBCMD]) { in nl80211_prepare_vendor_dump()
14093 *wdev = __cfg80211_wdev_from_attrs(NULL, sock_net(skb->sk), attrbuf); in nl80211_prepare_vendor_dump()
14097 *rdev = __cfg80211_rdev_from_attrs(sock_net(skb->sk), attrbuf); in nl80211_prepare_vendor_dump()
14103 vid = nla_get_u32(attrbuf[NL80211_ATTR_VENDOR_ID]); in nl80211_prepare_vendor_dump()
14104 subcmd = nla_get_u32(attrbuf[NL80211_ATTR_VENDOR_SUBCMD]); in nl80211_prepare_vendor_dump()
14128 if (attrbuf[NL80211_ATTR_VENDOR_DATA]) { in nl80211_prepare_vendor_dump()
14129 data = nla_data(attrbuf[NL80211_ATTR_VENDOR_DATA]); in nl80211_prepare_vendor_dump()
14130 data_len = nla_len(attrbuf[NL80211_ATTR_VENDOR_DATA]); in nl80211_prepare_vendor_dump()
14134 attrbuf[NL80211_ATTR_VENDOR_DATA], in nl80211_prepare_vendor_dump()
14151 kfree(attrbuf); in nl80211_prepare_vendor_dump()