Lines Matching refs:msg

275 void cld80211_oem_send_reply(struct sk_buff *msg, void *hdr,  in cld80211_oem_send_reply()  argument
280 nla_nest_end(msg, nest); in cld80211_oem_send_reply()
281 genlmsg_end(msg, hdr); in cld80211_oem_send_reply()
283 genlmsg_multicast_netns(cld80211_fam, &init_net, msg, 0, in cld80211_oem_send_reply()
291 struct sk_buff *msg; in cld80211_oem_rsp_alloc_skb() local
296 msg = nlmsg_new(WLAN_CLD80211_MAX_SIZE, *flags); in cld80211_oem_rsp_alloc_skb()
297 if (!msg) { in cld80211_oem_rsp_alloc_skb()
303 *hdr = nl80211hdr_put(msg, portid, 0, *flags, WLAN_NL_MSG_OEM); in cld80211_oem_rsp_alloc_skb()
310 *nest = nla_nest_start(msg, CLD80211_ATTR_VENDOR_DATA); in cld80211_oem_rsp_alloc_skb()
316 return msg; in cld80211_oem_rsp_alloc_skb()
318 genlmsg_cancel(msg, *hdr); in cld80211_oem_rsp_alloc_skb()
319 nlmsg_free(msg); in cld80211_oem_rsp_alloc_skb()
371 static int cld80211_fill_data(struct sk_buff *msg, uint32_t portid, in cld80211_fill_data() argument
378 hdr = nl80211hdr_put(msg, portid, seq, flags, cmd); in cld80211_fill_data()
385 nest = nla_nest_start(msg, CLD80211_ATTR_VENDOR_DATA); in cld80211_fill_data()
392 if (nla_put(msg, CLD80211_ATTR_DATA, len, buf)) { in cld80211_fill_data()
398 nla_nest_end(msg, nest); in cld80211_fill_data()
399 genlmsg_end(msg, hdr); in cld80211_fill_data()
403 genlmsg_cancel(msg, hdr); in cld80211_fill_data()
422 struct sk_buff *msg; in send_msg_to_cld80211() local
437 msg = nlmsg_new(WLAN_CLD80211_MAX_SIZE, flags); in send_msg_to_cld80211()
439 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, flags); in send_msg_to_cld80211()
441 if (!msg) { in send_msg_to_cld80211()
447 status = cld80211_fill_data(msg, pid, 0, 0, app_id, buf, len); in send_msg_to_cld80211()
449 nlmsg_free(msg); in send_msg_to_cld80211()
453 genlmsg_multicast_netns(cld80211_fam, &init_net, msg, 0, in send_msg_to_cld80211()
472 void *msg = NLMSG_DATA(nlh); in nl_srv_bcast() local
476 status = send_msg_to_cld80211(mcgroup_id, 0, app_id, msg, msg_len); in nl_srv_bcast()
508 void *msg = NLMSG_DATA(nlh); in nl_srv_ucast() local
513 msg, msg_len); in nl_srv_ucast()