Home
last modified time | relevance | path

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

/linux/net/psample/
H A Dpsample.c374 struct sk_buff *nl_skb; in psample_sample_packet() local
411 nl_skb = genlmsg_new(meta_len + nla_total_size(data_len), GFP_ATOMIC); in psample_sample_packet()
412 if (unlikely(!nl_skb)) in psample_sample_packet()
415 data = genlmsg_put(nl_skb, 0, 0, &psample_nl_family, 0, in psample_sample_packet()
421 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_IIFINDEX, in_ifindex); in psample_sample_packet()
427 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OIFINDEX, out_ifindex); in psample_sample_packet()
432 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_RATE, sample_rate); in psample_sample_packet()
436 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_ORIGSIZE, skb->len); in psample_sample_packet()
440 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_GROUP, group->group_num); in psample_sample_packet()
444 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_GROUP_SEQ, group->seq++); in psample_sample_packet()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dtestmode.c50 struct sk_buff *nl_skb; in ath11k_tm_wmi_event_unsegmented() local
66 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath11k_tm_wmi_event_unsegmented()
70 if (!nl_skb) { in ath11k_tm_wmi_event_unsegmented()
76 if (nla_put_u32(nl_skb, ATH11K_TM_ATTR_CMD, ATH11K_TM_CMD_WMI) || in ath11k_tm_wmi_event_unsegmented()
77 nla_put_u32(nl_skb, ATH11K_TM_ATTR_WMI_CMDID, cmd_id) || in ath11k_tm_wmi_event_unsegmented()
78 nla_put(nl_skb, ATH11K_TM_ATTR_DATA, skb->len, skb->data)) { in ath11k_tm_wmi_event_unsegmented()
80 kfree_skb(nl_skb); in ath11k_tm_wmi_event_unsegmented()
84 cfg80211_testmode_event(nl_skb, GFP_ATOMIC); in ath11k_tm_wmi_event_unsegmented()
100 struct sk_buff *nl_skb; in ath11k_tm_process_event() local
164 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath11k_tm_process_event()
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A 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()