Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 274) sorted by relevance

1234567891011

/net/tipc/
A Dnetlink_compat.c282 if (msg->req_type && (!msg->req_size || in tipc_nl_compat_dumpit()
283 !TLV_CHECK_TYPE(msg->req, msg->req_type))) in tipc_nl_compat_dumpit()
286 msg->rep = tipc_tlv_alloc(msg->rep_size); in tipc_nl_compat_dumpit()
287 if (!msg->rep) in tipc_nl_compat_dumpit()
291 tipc_tlv_init(msg->rep, msg->rep_type); in tipc_nl_compat_dumpit()
389 if (msg->req_type && (!msg->req_size || in tipc_nl_compat_doit()
390 !TLV_CHECK_TYPE(msg->req, msg->req_type))) in tipc_nl_compat_doit()
399 if (!msg->rep) in tipc_nl_compat_doit()
1300 memset(&msg, 0, sizeof(msg)); in tipc_nl_compat_recv()
1315 if (msg.req_size && !TLV_OK(msg.req, msg.req_size)) { in tipc_nl_compat_recv()
[all …]
A Dnet.c172 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_add_net()
188 genlmsg_end(msg->skb, hdr); in __tipc_nl_add_net()
205 struct tipc_nl_msg msg; in tipc_nl_net_dump() local
210 msg.skb = skb; in tipc_nl_net_dump()
212 msg.seq = cb->nlh->nlmsg_seq; in tipc_nl_net_dump()
297 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_addr_legacy_get()
311 genlmsg_end(msg->skb, hdr); in __tipc_nl_addr_legacy_get()
326 struct tipc_nl_msg msg; in tipc_nl_net_addr_legacy_get() local
334 msg.skb = rep; in tipc_nl_net_addr_legacy_get()
336 msg.seq = info->snd_seq; in tipc_nl_net_addr_legacy_get()
[all …]
/net/devlink/
A Ddev.c211 if (!msg) in devlink_notify()
230 if (!msg) in devlink_nl_get_doit()
495 if (!msg) in devlink_nl_reload_actions_performed_snd()
690 if (!msg) in devlink_nl_eswitch_get_doit()
887 req.msg = msg; in devlink_nl_info_fill()
913 if (!msg) in devlink_nl_info_get_doit()
1006 if (!msg) in __devlink_flash_update_notify()
1195 if (!msg) in __devlink_compat_running_version()
1198 req.msg = msg; in __devlink_compat_running_version()
1204 (void *)msg->data, msg->len, rem) { in __devlink_compat_running_version()
[all …]
A Dsb.c209 struct sk_buff *msg; in devlink_nl_sb_get_doit() local
217 if (!msg) in devlink_nl_sb_get_doit()
224 nlmsg_free(msg); in devlink_nl_sb_get_doit()
311 struct sk_buff *msg; in devlink_nl_sb_pool_get_doit() local
328 if (!msg) in devlink_nl_sb_pool_get_doit()
335 nlmsg_free(msg); in devlink_nl_sb_pool_get_doit()
512 struct sk_buff *msg; in devlink_nl_sb_port_pool_get_doit() local
529 if (!msg) in devlink_nl_sb_port_pool_get_doit()
537 nlmsg_free(msg); in devlink_nl_sb_port_pool_get_doit()
744 if (!msg) in devlink_nl_sb_tc_pool_bind_get_doit()
[all …]
A Dtrap.c320 if (!msg) in devlink_nl_trap_get_doit()
332 nlmsg_free(msg); in devlink_nl_trap_get_doit()
529 if (!msg) in devlink_nl_trap_group_get_doit()
541 nlmsg_free(msg); in devlink_nl_trap_group_get_doit()
821 if (!msg) in devlink_nl_trap_policer_get_doit()
833 nlmsg_free(msg); in devlink_nl_trap_policer_get_doit()
1175 if (!msg) in devlink_trap_group_notify()
1181 nlmsg_free(msg); in devlink_trap_group_notify()
1236 if (!msg) in devlink_trap_notify()
1241 nlmsg_free(msg); in devlink_trap_notify()
[all …]
A Dparam.c309 nla_nest_end(msg, param_attr); in devlink_nl_param_fill()
310 genlmsg_end(msg, hdr); in devlink_nl_param_fill()
318 genlmsg_cancel(msg, hdr); in devlink_nl_param_fill()
327 struct sk_buff *msg; in devlink_param_notify() local
342 if (!msg) in devlink_param_notify()
347 nlmsg_free(msg); in devlink_param_notify()
485 struct sk_buff *msg; in devlink_nl_param_get_doit() local
493 if (!msg) in devlink_nl_param_get_doit()
500 nlmsg_free(msg); in devlink_nl_param_get_doit()
504 return genlmsg_reply(msg, info); in devlink_nl_param_get_doit()
[all …]
A Dport.c292 struct sk_buff *msg, in devlink_port_fn_hw_addr_fill() argument
536 genlmsg_end(msg, hdr); in devlink_nl_port_fill()
551 struct sk_buff *msg; in devlink_port_notify() local
560 if (!msg) in devlink_port_notify()
565 nlmsg_free(msg); in devlink_port_notify()
597 struct sk_buff *msg; in devlink_nl_port_get_doit() local
601 if (!msg) in devlink_nl_port_get_doit()
608 nlmsg_free(msg); in devlink_nl_port_get_doit()
903 struct sk_buff *msg; in devlink_nl_port_new_doit() local
941 if (!msg) { in devlink_nl_port_new_doit()
[all …]
/net/nfc/
A Dnetlink.c183 if (!msg) in nfc_genl_targets_found()
210 if (!msg) in nfc_genl_target_lost()
240 if (!msg) in nfc_genl_tm_activated()
271 if (!msg) in nfc_genl_tm_deactivated()
311 if (!msg) in nfc_genl_device_added()
340 if (!msg) in nfc_genl_device_removed()
374 if (!msg) in nfc_genl_llc_send_sdres()
435 if (!msg) in nfc_genl_se_added()
466 if (!msg) in nfc_genl_se_removed()
498 if (!msg) in nfc_genl_se_transaction()
[all …]
/net/sctp/
A Dchunk.c38 msg->send_failed = 0; in sctp_datamsg_init()
39 msg->send_error = 0; in sctp_datamsg_init()
40 msg->can_delay = 1; in sctp_datamsg_init()
41 msg->abandoned = 0; in sctp_datamsg_init()
42 msg->expires_at = 0; in sctp_datamsg_init()
51 if (msg) { in sctp_datamsg_new()
55 return msg; in sctp_datamsg_new()
115 kfree(msg); in sctp_datamsg_destroy()
135 chunk->msg = msg; in sctp_datamsg_assign()
159 if (!msg) in sctp_datamsg_from_user()
[all …]
/net/core/
A Dskmsg.c15 if (msg->sg.end > msg->sg.start && in sk_msg_try_coalesce_ok()
19 if (msg->sg.end < msg->sg.start && in sk_msg_try_coalesce_ok()
66 sge = &msg->sg.data[msg->sg.end]; in sk_msg_alloc()
203 sk_msg_check_to_free(msg, i, msg->sg.size); in __sk_msg_free()
287 if (msg->sg.curr == i && msg->sg.copybreak > msg->sg.data[i].length) in sk_msg_trim()
288 msg->sg.copybreak = msg->sg.data[i].length; in sk_msg_trim()
300 msg->sg.curr = msg->sg.start; in sk_msg_trim()
306 msg->sg.copybreak = msg->sg.data[i].length; in sk_msg_trim()
340 sg_set_page(&msg->sg.data[msg->sg.end], in sk_msg_zerocopy_from_iter()
342 sg_unmark_end(&msg->sg.data[msg->sg.end]); in sk_msg_zerocopy_from_iter()
[all …]
A Dscm.c172 for_each_cmsghdr(cmsg, msg) { in __scm_send()
183 if (!CMSG_OK(msg, cmsg)) in __scm_send()
262 if (!msg->msg_control || msg->msg_controllen < sizeof(struct cmsghdr)) { in put_cmsg()
268 cmlen = msg->msg_controllen; in put_cmsg()
295 if (msg->msg_control_is_user) in put_cmsg()
298 msg->msg_control += cmlen; in put_cmsg()
313 if (!msg->msg_control || msg->msg_controllen < CMSG_LEN(len)) in put_cmsg_notrunc()
504 if (!msg->msg_control) { in __scm_recv_common()
524 scm_passec(sk, msg, scm); in __scm_recv_common()
527 scm_detach_fds(msg, scm); in __scm_recv_common()
[all …]
A Ddrop_monitor.c166 memset(msg, 0, al); in reset_per_cpu_data()
255 msg->entries++; in trace_drop_common()
423 if (!msg) in net_dm_hw_summary_work()
428 nlmsg_free(msg); in net_dm_hw_summary_work()
711 if (!msg) in net_dm_packet_report()
716 nlmsg_free(msg); in net_dm_packet_report()
928 if (!msg) in net_dm_hw_packet_report()
1427 if (!msg) in net_dm_cmd_config_get()
1437 nlmsg_free(msg); in net_dm_cmd_config_get()
1562 if (!msg) in net_dm_cmd_stats_get()
[all …]
/net/batman-adv/
A Dnetlink.c382 if (!msg) in batadv_netlink_notify_mesh()
388 nlmsg_free(msg); in batadv_netlink_notify_mesh()
413 if (!msg) in batadv_netlink_get_mesh()
653 if (!msg) in batadv_netlink_tpmeter_notify()
692 nlmsg_free(msg); in batadv_netlink_tpmeter_notify()
725 if (!msg) { in batadv_netlink_tp_meter_start()
744 if (msg) in batadv_netlink_tp_meter_start()
864 if (!msg) in batadv_netlink_notify_hardif()
897 if (!msg) in batadv_netlink_cmd_get_hardif()
1065 if (!msg) in batadv_netlink_notify_vlan()
[all …]
A Dbat_v.c155 genlmsg_end(msg, hdr); in batadv_v_neigh_dump_neigh()
159 genlmsg_cancel(msg, hdr); in batadv_v_neigh_dump_neigh()
310 genlmsg_end(msg, hdr); in batadv_v_orig_dump_subentry()
314 genlmsg_cancel(msg, hdr); in batadv_v_orig_dump_subentry()
695 genlmsg_cancel(msg, hdr); in batadv_v_gw_dump_entry()
701 genlmsg_cancel(msg, hdr); in batadv_v_gw_dump_entry()
706 genlmsg_cancel(msg, hdr); in batadv_v_gw_dump_entry()
712 genlmsg_cancel(msg, hdr); in batadv_v_gw_dump_entry()
718 genlmsg_cancel(msg, hdr); in batadv_v_gw_dump_entry()
724 genlmsg_cancel(msg, hdr); in batadv_v_gw_dump_entry()
[all …]
/net/atm/
A Dsignaling.c44 msg->type = as_error; in modify_qos()
49 msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, in modify_qos()
51 if (!msg->reply) in modify_qos()
52 msg->type = as_okay; in modify_qos()
76 switch (msg->type) { in sigd_send()
155 msg->type = type; in sigd_enq2()
158 msg->reply = reply; in sigd_enq2()
160 msg->qos = *qos; in sigd_enq2()
162 msg->sap = vcc->sap; in sigd_enq2()
164 msg->svc = *svc; in sigd_enq2()
[all …]
/net/ipv4/
A Dtcp_bpf.c104 sge = sk_msg_elem(msg, msg->sg.start); in tcp_bpf_push()
117 if (size < sge->length && msg->sg.start != msg->sg.end) in tcp_bpf_push()
142 if (msg->sg.start == msg->sg.end) in tcp_bpf_push()
406 msg->cork_bytes > msg->sg.size && !enospc) { in tcp_bpf_send_verdict()
407 psock->cork_bytes = msg->cork_bytes - msg->sg.size; in tcp_bpf_send_verdict()
414 memcpy(psock->cork, msg, sizeof(*msg)); in tcp_bpf_send_verdict()
466 kfree(msg); in tcp_bpf_send_verdict()
467 msg = NULL; in tcp_bpf_send_verdict()
487 if (msg && in tcp_bpf_send_verdict()
488 msg->sg.data[msg->sg.start].page_link && in tcp_bpf_send_verdict()
[all …]
/net/ceph/
A Dmsgpool.c15 struct ceph_msg *msg; in msgpool_alloc() local
19 if (!msg) { in msgpool_alloc()
23 msg->pool = pool; in msgpool_alloc()
25 return msg; in msgpool_alloc()
31 struct ceph_msg *msg = element; in msgpool_free() local
34 msg->pool = NULL; in msgpool_free()
35 ceph_msg_put(msg); in msgpool_free()
62 struct ceph_msg *msg; in ceph_msgpool_get() local
78 return msg; in ceph_msgpool_get()
89 msg->data_length = 0; in ceph_msgpool_put()
[all …]
A Dmessenger.c1416 msg, le64_to_cpu(msg->hdr.seq), in ceph_con_process_message()
1707 msg->con->ops->put(msg->con); in msg_con_set()
1869 BUG_ON(msg->num_data_items >= msg->max_data_items); in ceph_msg_data_add()
1870 return &msg->data[msg->num_data_items++]; in ceph_msg_data_add()
2079 if (msg) in ceph_con_in_msg_alloc()
2083 if (msg) { in ceph_con_in_msg_alloc()
2187 return msg; in ceph_msg_get()
2202 msg->front_alloc_len, msg->data_length); in ceph_msg_dump()
2205 &msg->hdr, sizeof(msg->hdr), true); in ceph_msg_dump()
2208 msg->front.iov_base, msg->front.iov_len, true); in ceph_msg_dump()
[all …]
/net/wireless/
A Dnl80211.c3316 if (!msg) in nl80211_get_wiphy()
4285 if (!msg) in nl80211_get_interface()
4574 if (!msg) in _nl80211_new_interface()
4820 if (!msg) in nl80211_get_key()
4828 cookie.msg = msg; in nl80211_get_key()
6176 if (!msg) in nl80211_send_ap_started()
8655 if (!msg) in nl80211_get_mpath()
8763 if (!msg) in nl80211_get_mpp()
8975 if (!msg) in nl80211_get_mesh_config()
9429 if (!msg) in nl80211_get_reg_do()
[all …]
A Dpmsr.c355 struct sk_buff *msg; in cfg80211_pmsr_complete() local
361 if (!msg) in cfg80211_pmsr_complete()
378 genlmsg_end(msg, hdr); in cfg80211_pmsr_complete()
382 nlmsg_free(msg); in cfg80211_pmsr_complete()
545 nla_nest_end(msg, data); in nl80211_pmsr_send_result()
546 nla_nest_end(msg, resp); in nl80211_pmsr_send_result()
547 nla_nest_end(msg, peer); in nl80211_pmsr_send_result()
562 struct sk_buff *msg; in cfg80211_pmsr_report() local
575 if (!msg) in cfg80211_pmsr_report()
597 genlmsg_end(msg, hdr); in cfg80211_pmsr_report()
[all …]
/net/ieee802154/
A Dnl802154.c662 struct sk_buff *msg; in nl802154_get_wpan_phy() local
666 if (!msg) in nl802154_get_wpan_phy()
671 nlmsg_free(msg); in nl802154_get_wpan_phy()
905 struct sk_buff *msg; in nl802154_get_interface() local
910 if (!msg) in nl802154_get_interface()
915 nlmsg_free(msg); in nl802154_get_interface()
1376 struct sk_buff *msg; in nl802154_scan_event() local
1380 if (!msg) in nl802154_scan_event()
1387 nlmsg_free(msg); in nl802154_scan_event()
1511 if (!msg) in nl802154_send_scan_msg()
[all …]
A Dnl-mac.c53 struct sk_buff *msg; in ieee802154_nl_start_confirm() local
58 if (!msg) in ieee802154_nl_start_confirm()
70 nlmsg_free(msg); in ieee802154_nl_start_confirm()
134 genlmsg_end(msg, hdr); in ieee802154_nl_fill_iface()
139 genlmsg_cancel(msg, hdr); in ieee802154_nl_fill_iface()
400 struct sk_buff *msg; in ieee802154_list_iface() local
411 if (!msg) in ieee802154_list_iface()
423 nlmsg_free(msg); in ieee802154_list_iface()
636 struct sk_buff *msg; in ieee802154_llsec_getparams() local
656 if (!msg) in ieee802154_llsec_getparams()
[all …]
A Dnl-phy.c60 genlmsg_end(msg, hdr); in ieee802154_nl_fill_phy()
65 genlmsg_cancel(msg, hdr); in ieee802154_nl_fill_phy()
76 struct sk_buff *msg; in ieee802154_list_phy() local
95 if (!msg) in ieee802154_list_phy()
107 nlmsg_free(msg); in ieee802154_list_phy()
163 struct sk_buff *msg; in ieee802154_add_iface() local
200 if (!msg) in ieee802154_add_iface()
260 nlmsg_free(msg); in ieee802154_add_iface()
268 struct sk_buff *msg; in ieee802154_del_iface() local
319 if (!msg) in ieee802154_del_iface()
[all …]
A Dnetlink.c30 if (!msg) in ieee802154_nl_create()
38 nlmsg_free(msg); in ieee802154_nl_create()
42 return msg; in ieee802154_nl_create()
47 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_mcast()
50 genlmsg_end(msg, hdr); in ieee802154_nl_mcast()
61 if (!msg) in ieee802154_nl_new_reply()
64 hdr = genlmsg_put_reply(msg, info, in ieee802154_nl_new_reply()
67 nlmsg_free(msg); in ieee802154_nl_new_reply()
71 return msg; in ieee802154_nl_new_reply()
79 genlmsg_end(msg, hdr); in ieee802154_nl_reply()
[all …]
/net/
A Dcompat.c37 struct compat_msghdr *msg, in __get_compat_msghdr() argument
42 kmsg->msg_flags = msg->msg_flags; in __get_compat_msghdr()
43 kmsg->msg_namelen = msg->msg_namelen; in __get_compat_msghdr()
45 if (!msg->msg_name) in __get_compat_msghdr()
75 if (msg->msg_iovlen > UIO_MAXIOV) in __get_compat_msghdr()
88 struct compat_msghdr msg; in get_compat_msghdr() local
99 compat_ptr(msg.msg_iov), msg.msg_iovlen, in get_compat_msghdr()
130 msg->msg_controllen) in cmsg_compat_nxthdr()
316 cmlen = msg->msg_controllen; in scm_detach_fds_compat()
318 msg->msg_controllen -= cmlen; in scm_detach_fds_compat()
[all …]

Completed in 705 milliseconds

1234567891011