Lines Matching refs:attrbuf
971 struct nlattr **attrbuf) in nl80211_prepare_wdev_dump() argument
978 if (!attrbuf) { in nl80211_prepare_wdev_dump()
979 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), in nl80211_prepare_wdev_dump()
981 if (!attrbuf) in nl80211_prepare_wdev_dump()
983 attrbuf_free = attrbuf; in nl80211_prepare_wdev_dump()
988 attrbuf, nl80211_fam.maxattr, in nl80211_prepare_wdev_dump()
997 attrbuf); in nl80211_prepare_wdev_dump()
10343 struct nlattr **attrbuf; in nl80211_dump_survey() local
10351 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), GFP_KERNEL); in nl80211_dump_survey()
10352 if (!attrbuf) in nl80211_dump_survey()
10355 res = nl80211_prepare_wdev_dump(cb, &rdev, &wdev, attrbuf); in nl80211_dump_survey()
10357 kfree(attrbuf); in nl80211_dump_survey()
10364 radio_stats = attrbuf[NL80211_ATTR_SURVEY_RADIO_STATS]; in nl80211_dump_survey()
10404 kfree(attrbuf); in nl80211_dump_survey()
11464 struct nlattr **attrbuf = NULL; in nl80211_testmode_dump() local
11485 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), in nl80211_testmode_dump()
11487 if (!attrbuf) { in nl80211_testmode_dump()
11494 attrbuf, nl80211_fam.maxattr, in nl80211_testmode_dump()
11499 rdev = __cfg80211_rdev_from_attrs(sock_net(skb->sk), attrbuf); in nl80211_testmode_dump()
11506 if (attrbuf[NL80211_ATTR_TESTDATA]) in nl80211_testmode_dump()
11507 cb->args[1] = (long)attrbuf[NL80211_ATTR_TESTDATA]; in nl80211_testmode_dump()
11557 kfree(attrbuf); in nl80211_testmode_dump()
14754 struct nlattr **attrbuf; in nl80211_prepare_vendor_dump() local
14785 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), GFP_KERNEL); in nl80211_prepare_vendor_dump()
14786 if (!attrbuf) in nl80211_prepare_vendor_dump()
14791 attrbuf, nl80211_fam.maxattr, in nl80211_prepare_vendor_dump()
14796 if (!attrbuf[NL80211_ATTR_VENDOR_ID] || in nl80211_prepare_vendor_dump()
14797 !attrbuf[NL80211_ATTR_VENDOR_SUBCMD]) { in nl80211_prepare_vendor_dump()
14802 *wdev = __cfg80211_wdev_from_attrs(NULL, sock_net(skb->sk), attrbuf); in nl80211_prepare_vendor_dump()
14806 *rdev = __cfg80211_rdev_from_attrs(sock_net(skb->sk), attrbuf); in nl80211_prepare_vendor_dump()
14812 vid = nla_get_u32(attrbuf[NL80211_ATTR_VENDOR_ID]); in nl80211_prepare_vendor_dump()
14813 subcmd = nla_get_u32(attrbuf[NL80211_ATTR_VENDOR_SUBCMD]); in nl80211_prepare_vendor_dump()
14837 if (attrbuf[NL80211_ATTR_VENDOR_DATA]) { in nl80211_prepare_vendor_dump()
14838 data = nla_data(attrbuf[NL80211_ATTR_VENDOR_DATA]); in nl80211_prepare_vendor_dump()
14839 data_len = nla_len(attrbuf[NL80211_ATTR_VENDOR_DATA]); in nl80211_prepare_vendor_dump()
14843 attrbuf[NL80211_ATTR_VENDOR_DATA], in nl80211_prepare_vendor_dump()
14860 kfree(attrbuf); in nl80211_prepare_vendor_dump()