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()
10346 struct nlattr **attrbuf; in nl80211_dump_survey() local
10354 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), GFP_KERNEL); in nl80211_dump_survey()
10355 if (!attrbuf) in nl80211_dump_survey()
10358 res = nl80211_prepare_wdev_dump(cb, &rdev, &wdev, attrbuf); in nl80211_dump_survey()
10360 kfree(attrbuf); in nl80211_dump_survey()
10367 radio_stats = attrbuf[NL80211_ATTR_SURVEY_RADIO_STATS]; in nl80211_dump_survey()
10407 kfree(attrbuf); in nl80211_dump_survey()
11467 struct nlattr **attrbuf = NULL; in nl80211_testmode_dump() local
11488 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), in nl80211_testmode_dump()
11490 if (!attrbuf) { in nl80211_testmode_dump()
11497 attrbuf, nl80211_fam.maxattr, in nl80211_testmode_dump()
11502 rdev = __cfg80211_rdev_from_attrs(sock_net(skb->sk), attrbuf); in nl80211_testmode_dump()
11509 if (attrbuf[NL80211_ATTR_TESTDATA]) in nl80211_testmode_dump()
11510 cb->args[1] = (long)attrbuf[NL80211_ATTR_TESTDATA]; in nl80211_testmode_dump()
11560 kfree(attrbuf); in nl80211_testmode_dump()
14757 struct nlattr **attrbuf; in nl80211_prepare_vendor_dump() local
14788 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), GFP_KERNEL); in nl80211_prepare_vendor_dump()
14789 if (!attrbuf) in nl80211_prepare_vendor_dump()
14794 attrbuf, nl80211_fam.maxattr, in nl80211_prepare_vendor_dump()
14799 if (!attrbuf[NL80211_ATTR_VENDOR_ID] || in nl80211_prepare_vendor_dump()
14800 !attrbuf[NL80211_ATTR_VENDOR_SUBCMD]) { in nl80211_prepare_vendor_dump()
14805 *wdev = __cfg80211_wdev_from_attrs(NULL, sock_net(skb->sk), attrbuf); in nl80211_prepare_vendor_dump()
14809 *rdev = __cfg80211_rdev_from_attrs(sock_net(skb->sk), attrbuf); in nl80211_prepare_vendor_dump()
14815 vid = nla_get_u32(attrbuf[NL80211_ATTR_VENDOR_ID]); in nl80211_prepare_vendor_dump()
14816 subcmd = nla_get_u32(attrbuf[NL80211_ATTR_VENDOR_SUBCMD]); in nl80211_prepare_vendor_dump()
14840 if (attrbuf[NL80211_ATTR_VENDOR_DATA]) { in nl80211_prepare_vendor_dump()
14841 data = nla_data(attrbuf[NL80211_ATTR_VENDOR_DATA]); in nl80211_prepare_vendor_dump()
14842 data_len = nla_len(attrbuf[NL80211_ATTR_VENDOR_DATA]); in nl80211_prepare_vendor_dump()
14846 attrbuf[NL80211_ATTR_VENDOR_DATA], in nl80211_prepare_vendor_dump()
14863 kfree(attrbuf); in nl80211_prepare_vendor_dump()