Home
last modified time | relevance | path

Searched refs:nl_skb (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dtestmode.c28 struct sk_buff *nl_skb; in ath11k_tm_event_wmi() local
42 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath11k_tm_event_wmi()
45 if (!nl_skb) { in ath11k_tm_event_wmi()
51 ret = nla_put_u32(nl_skb, ATH11K_TM_ATTR_CMD, ATH11K_TM_CMD_WMI); in ath11k_tm_event_wmi()
56 kfree_skb(nl_skb); in ath11k_tm_event_wmi()
60 ret = nla_put_u32(nl_skb, ATH11K_TM_ATTR_WMI_CMDID, cmd_id); in ath11k_tm_event_wmi()
65 kfree_skb(nl_skb); in ath11k_tm_event_wmi()
69 ret = nla_put(nl_skb, ATH11K_TM_ATTR_DATA, skb->len, skb->data); in ath11k_tm_event_wmi()
74 kfree_skb(nl_skb); in ath11k_tm_event_wmi()
78 cfg80211_testmode_event(nl_skb, GFP_ATOMIC); in ath11k_tm_event_wmi()
/kernel/linux/linux-5.10/net/psample/
Dpsample.c365 struct sk_buff *nl_skb; in psample_sample_packet() local
389 nl_skb = genlmsg_new(meta_len + nla_total_size(data_len), GFP_ATOMIC); in psample_sample_packet()
390 if (unlikely(!nl_skb)) in psample_sample_packet()
393 data = genlmsg_put(nl_skb, 0, 0, &psample_nl_family, 0, in psample_sample_packet()
399 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_IIFINDEX, in_ifindex); in psample_sample_packet()
405 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OIFINDEX, out_ifindex); in psample_sample_packet()
410 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_RATE, sample_rate); in psample_sample_packet()
414 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_ORIGSIZE, skb->len); in psample_sample_packet()
418 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_GROUP, group->group_num); in psample_sample_packet()
422 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_GROUP_SEQ, group->seq++); in psample_sample_packet()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dtestmode.c33 struct sk_buff *nl_skb; in ath10k_tm_event_wmi() local
56 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath10k_tm_event_wmi()
59 if (!nl_skb) { in ath10k_tm_event_wmi()
65 ret = nla_put_u32(nl_skb, ATH10K_TM_ATTR_CMD, ATH10K_TM_CMD_WMI); in ath10k_tm_event_wmi()
70 kfree_skb(nl_skb); in ath10k_tm_event_wmi()
74 ret = nla_put_u32(nl_skb, ATH10K_TM_ATTR_WMI_CMDID, cmd_id); in ath10k_tm_event_wmi()
79 kfree_skb(nl_skb); in ath10k_tm_event_wmi()
83 ret = nla_put(nl_skb, ATH10K_TM_ATTR_DATA, skb->len, skb->data); in ath10k_tm_event_wmi()
88 kfree_skb(nl_skb); in ath10k_tm_event_wmi()
92 cfg80211_testmode_event(nl_skb, GFP_ATOMIC); in ath10k_tm_event_wmi()