Home
last modified time | relevance | path

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

12345678910

/net/tipc/
Dnetlink_compat.c68 int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs);
74 struct sk_buff *skb, struct tipc_nl_compat_msg *msg);
182 struct tipc_nl_compat_msg *msg, in __tipc_nl_compat_dumpit() argument
202 buf->sk = msg->dst_sk; in __tipc_nl_compat_dumpit()
203 if (__tipc_dump_start(&cb, msg->net)) { in __tipc_nl_compat_dumpit()
236 err = (*cmd->format)(msg, attrbuf); in __tipc_nl_compat_dumpit()
240 if (tipc_skb_tailroom(msg->rep) <= 1) { in __tipc_nl_compat_dumpit()
262 if ((TIPC_SKB_MAX - msg->rep->len) <= 1) { in __tipc_nl_compat_dumpit()
263 char *tail = skb_tail_pointer(msg->rep); in __tipc_nl_compat_dumpit()
277 struct tipc_nl_compat_msg *msg) in tipc_nl_compat_dumpit() argument
[all …]
Dnet.c160 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() argument
168 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_add_net()
173 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
177 if (nla_put_u32(msg->skb, TIPC_NLA_NET_ID, tn->net_id)) in __tipc_nl_add_net()
179 if (nla_put_u64_64bit(msg->skb, TIPC_NLA_NET_NODEID, *w0, 0)) in __tipc_nl_add_net()
181 if (nla_put_u64_64bit(msg->skb, TIPC_NLA_NET_NODEID_W1, *w1, 0)) in __tipc_nl_add_net()
183 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
184 genlmsg_end(msg->skb, hdr); in __tipc_nl_add_net()
189 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
191 genlmsg_cancel(msg->skb, hdr); in __tipc_nl_add_net()
[all …]
Dmsg.c103 struct tipc_msg *msg; in tipc_msg_create() local
110 msg = buf_msg(buf); in tipc_msg_create()
111 tipc_msg_init(onode, msg, user, type, hdr_sz, dnode); in tipc_msg_create()
112 msg_set_size(msg, hdr_sz + data_sz); in tipc_msg_create()
113 msg_set_origport(msg, oport); in tipc_msg_create()
114 msg_set_destport(msg, dport); in tipc_msg_create()
115 msg_set_errcode(msg, errcode); in tipc_msg_create()
117 msg_set_orignode(msg, onode); in tipc_msg_create()
118 msg_set_destnode(msg, dnode); in tipc_msg_create()
135 struct tipc_msg *msg; in tipc_buf_append() local
[all …]
/net/core/
Dskmsg.c12 static bool sk_msg_try_coalesce_ok(struct sk_msg *msg, int elem_first_coalesce) in sk_msg_try_coalesce_ok() argument
14 if (msg->sg.end > msg->sg.start && in sk_msg_try_coalesce_ok()
15 elem_first_coalesce < msg->sg.end) in sk_msg_try_coalesce_ok()
18 if (msg->sg.end < msg->sg.start && in sk_msg_try_coalesce_ok()
19 (elem_first_coalesce > msg->sg.start || in sk_msg_try_coalesce_ok()
20 elem_first_coalesce < msg->sg.end)) in sk_msg_try_coalesce_ok()
26 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, in sk_msg_alloc() argument
30 u32 osize = msg->sg.size; in sk_msg_alloc()
33 len -= msg->sg.size; in sk_msg_alloc()
51 i = msg->sg.end; in sk_msg_alloc()
[all …]
Ddrop_monitor.c135 struct net_dm_alert_msg *msg; in reset_per_cpu_data() local
164 msg = nla_data(nla); in reset_per_cpu_data()
165 memset(msg, 0, al); in reset_per_cpu_data()
217 struct net_dm_alert_msg *msg; in trace_drop_common() local
236 msg = nla_data(nla); in trace_drop_common()
237 point = msg->points; in trace_drop_common()
238 for (i = 0; i < msg->entries; i++) { in trace_drop_common()
245 if (msg->entries == dm_hit_limit) in trace_drop_common()
254 msg->entries++; in trace_drop_common()
328 static int net_dm_hw_entry_put(struct sk_buff *msg, in net_dm_hw_entry_put() argument
[all …]
Dscm.c137 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p) in __scm_send() argument
142 for_each_cmsghdr(cmsg, msg) { in __scm_send()
153 if (!CMSG_OK(msg, cmsg)) in __scm_send()
219 int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data) in put_cmsg() argument
223 if (msg->msg_flags & MSG_CMSG_COMPAT) in put_cmsg()
224 return put_cmsg_compat(msg, level, type, len, data); in put_cmsg()
226 if (!msg->msg_control || msg->msg_controllen < sizeof(struct cmsghdr)) { in put_cmsg()
227 msg->msg_flags |= MSG_CTRUNC; in put_cmsg()
230 if (msg->msg_controllen < cmlen) { in put_cmsg()
231 msg->msg_flags |= MSG_CTRUNC; in put_cmsg()
[all …]
Ddevlink.c473 static int devlink_nl_put_handle(struct sk_buff *msg, struct devlink *devlink) in devlink_nl_put_handle() argument
475 if (nla_put_string(msg, DEVLINK_ATTR_BUS_NAME, devlink->dev->bus->name)) in devlink_nl_put_handle()
477 if (nla_put_string(msg, DEVLINK_ATTR_DEV_NAME, dev_name(devlink->dev))) in devlink_nl_put_handle()
520 static int devlink_reload_stat_put(struct sk_buff *msg, in devlink_reload_stat_put() argument
525 reload_stats_entry = nla_nest_start(msg, DEVLINK_ATTR_RELOAD_STATS_ENTRY); in devlink_reload_stat_put()
529 if (nla_put_u8(msg, DEVLINK_ATTR_RELOAD_STATS_LIMIT, limit) || in devlink_reload_stat_put()
530 nla_put_u32(msg, DEVLINK_ATTR_RELOAD_STATS_VALUE, value)) in devlink_reload_stat_put()
532 nla_nest_end(msg, reload_stats_entry); in devlink_reload_stat_put()
536 nla_nest_cancel(msg, reload_stats_entry); in devlink_reload_stat_put()
540 static int devlink_reload_stats_put(struct sk_buff *msg, struct devlink *devlink, bool is_remote) in devlink_reload_stats_put() argument
[all …]
/net/nfc/
Dnetlink.c61 static int nfc_genl_send_target(struct sk_buff *msg, struct nfc_target *target, in nfc_genl_send_target() argument
66 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target()
73 if (nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target->idx) || in nfc_genl_send_target()
74 nla_put_u32(msg, NFC_ATTR_PROTOCOLS, target->supported_protocols) || in nfc_genl_send_target()
75 nla_put_u16(msg, NFC_ATTR_TARGET_SENS_RES, target->sens_res) || in nfc_genl_send_target()
76 nla_put_u8(msg, NFC_ATTR_TARGET_SEL_RES, target->sel_res)) in nfc_genl_send_target()
79 nla_put(msg, NFC_ATTR_TARGET_NFCID1, target->nfcid1_len, in nfc_genl_send_target()
83 nla_put(msg, NFC_ATTR_TARGET_SENSB_RES, target->sensb_res_len, in nfc_genl_send_target()
87 nla_put(msg, NFC_ATTR_TARGET_SENSF_RES, target->sensf_res_len, in nfc_genl_send_target()
92 if (nla_put_u8(msg, NFC_ATTR_TARGET_ISO15693_DSFID, in nfc_genl_send_target()
[all …]
/net/sctp/
Dchunk.c35 static void sctp_datamsg_init(struct sctp_datamsg *msg) in sctp_datamsg_init() argument
37 refcount_set(&msg->refcnt, 1); in sctp_datamsg_init()
38 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()
43 INIT_LIST_HEAD(&msg->chunks); in sctp_datamsg_init()
49 struct sctp_datamsg *msg; in sctp_datamsg_new() local
50 msg = kmalloc(sizeof(struct sctp_datamsg), gfp); in sctp_datamsg_new()
[all …]
/net/batman-adv/
Dnetlink.c177 static int batadv_netlink_mesh_fill_ap_isolation(struct sk_buff *msg, in batadv_netlink_mesh_fill_ap_isolation() argument
190 return nla_put_u8(msg, BATADV_ATTR_AP_ISOLATION_ENABLED, in batadv_netlink_mesh_fill_ap_isolation()
227 static int batadv_netlink_mesh_fill(struct sk_buff *msg, in batadv_netlink_mesh_fill() argument
237 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd); in batadv_netlink_mesh_fill()
241 if (nla_put_string(msg, BATADV_ATTR_VERSION, BATADV_SOURCE_VERSION) || in batadv_netlink_mesh_fill()
242 nla_put_string(msg, BATADV_ATTR_ALGO_NAME, in batadv_netlink_mesh_fill()
244 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || in batadv_netlink_mesh_fill()
245 nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) || in batadv_netlink_mesh_fill()
246 nla_put(msg, BATADV_ATTR_MESH_ADDRESS, ETH_ALEN, in batadv_netlink_mesh_fill()
248 nla_put_u8(msg, BATADV_ATTR_TT_TTVN, in batadv_netlink_mesh_fill()
[all …]
Dbat_v.c218 batadv_v_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_neigh() argument
229 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, in batadv_v_neigh_dump_neigh()
234 if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_neigh_dump_neigh()
236 nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, in batadv_v_neigh_dump_neigh()
238 nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, in batadv_v_neigh_dump_neigh()
240 nla_put_u32(msg, BATADV_ATTR_THROUGHPUT, throughput)) in batadv_v_neigh_dump_neigh()
243 genlmsg_end(msg, hdr); in batadv_v_neigh_dump_neigh()
247 genlmsg_cancel(msg, hdr); in batadv_v_neigh_dump_neigh()
266 batadv_v_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_hardif() argument
279 if (batadv_v_neigh_dump_neigh(msg, portid, seq, hardif_neigh)) { in batadv_v_neigh_dump_hardif()
[all …]
/net/atm/
Dsignaling.c37 static void modify_qos(struct atm_vcc *vcc, struct atmsvc_msg *msg) in modify_qos() argument
44 msg->type = as_error; in modify_qos()
46 msg->reply = -EOPNOTSUPP; in modify_qos()
49 msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, in modify_qos()
50 msg->reply); in modify_qos()
51 if (!msg->reply) in modify_qos()
52 msg->type = as_okay; in modify_qos()
60 *(struct atmsvc_msg *)skb_put(skb, sizeof(struct atmsvc_msg)) = *msg; in modify_qos()
66 struct atmsvc_msg *msg; in sigd_send() local
70 msg = (struct atmsvc_msg *) skb->data; in sigd_send()
[all …]
/net/ipv4/
Dtcp_bpf.c15 struct msghdr *msg, int len, int flags) in __tcp_bpf_recvmsg() argument
17 struct iov_iter *iter = &msg->msg_iter; in __tcp_bpf_recvmsg()
95 struct sk_msg *msg, u32 apply_bytes, int flags) in bpf_tcp_ingress() argument
108 tmp->sg.start = msg->sg.start; in bpf_tcp_ingress()
109 i = msg->sg.start; in bpf_tcp_ingress()
111 sge = sk_msg_elem(msg, i); in bpf_tcp_ingress()
121 sk_msg_xfer(tmp, msg, i, size); in bpf_tcp_ingress()
135 } while (i != msg->sg.end); in bpf_tcp_ingress()
138 msg->sg.start = i; in bpf_tcp_ingress()
150 static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes, in tcp_bpf_push() argument
[all …]
/net/ceph/
Dmsgpool.c15 struct ceph_msg *msg; in msgpool_alloc() local
17 msg = ceph_msg_new2(pool->type, pool->front_len, pool->max_data_items, in msgpool_alloc()
19 if (!msg) { in msgpool_alloc()
22 dout("msgpool_alloc %s %p\n", pool->name, 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
33 dout("msgpool_release %s %p\n", pool->name, msg); in msgpool_free()
34 msg->pool = NULL; in msgpool_free()
35 ceph_msg_put(msg); in msgpool_free()
[all …]
Dmessenger.c506 struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; in ceph_tcp_recvmsg() local
510 msg.msg_flags |= MSG_TRUNC; in ceph_tcp_recvmsg()
512 iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, len); in ceph_tcp_recvmsg()
513 r = sock_recvmsg(sock, &msg, msg.msg_flags); in ceph_tcp_recvmsg()
527 struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; in ceph_tcp_recvpage() local
531 iov_iter_bvec(&msg.msg_iter, READ, &bvec, 1, length); in ceph_tcp_recvpage()
532 r = sock_recvmsg(sock, &msg, msg.msg_flags); in ceph_tcp_recvpage()
545 struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; in ceph_tcp_sendmsg() local
549 msg.msg_flags |= MSG_MORE; in ceph_tcp_sendmsg()
551 msg.msg_flags |= MSG_EOR; /* superfluous, but what the hell */ in ceph_tcp_sendmsg()
[all …]
/net/wireless/
Dnl80211.c949 static int nl80211_msg_put_wmm_rules(struct sk_buff *msg, in nl80211_msg_put_wmm_rules() argument
954 nla_nest_start_noflag(msg, NL80211_FREQUENCY_ATTR_WMM); in nl80211_msg_put_wmm_rules()
960 struct nlattr *nl_wmm_rule = nla_nest_start_noflag(msg, j); in nl80211_msg_put_wmm_rules()
965 if (nla_put_u16(msg, NL80211_WMMR_CW_MIN, in nl80211_msg_put_wmm_rules()
967 nla_put_u16(msg, NL80211_WMMR_CW_MAX, in nl80211_msg_put_wmm_rules()
969 nla_put_u8(msg, NL80211_WMMR_AIFSN, in nl80211_msg_put_wmm_rules()
971 nla_put_u16(msg, NL80211_WMMR_TXOP, in nl80211_msg_put_wmm_rules()
975 nla_nest_end(msg, nl_wmm_rule); in nl80211_msg_put_wmm_rules()
977 nla_nest_end(msg, nl_wmm_rules); in nl80211_msg_put_wmm_rules()
985 static int nl80211_msg_put_channel(struct sk_buff *msg, struct wiphy *wiphy, in nl80211_msg_put_channel() argument
[all …]
Dpmsr.c328 struct sk_buff *msg; in cfg80211_pmsr_complete() local
333 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); in cfg80211_pmsr_complete()
334 if (!msg) in cfg80211_pmsr_complete()
337 hdr = nl80211hdr_put(msg, 0, 0, 0, in cfg80211_pmsr_complete()
342 if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || in cfg80211_pmsr_complete()
343 nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), in cfg80211_pmsr_complete()
347 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_complete()
351 genlmsg_end(msg, hdr); in cfg80211_pmsr_complete()
352 genlmsg_unicast(wiphy_net(wdev->wiphy), msg, req->nl_portid); in cfg80211_pmsr_complete()
355 nlmsg_free(msg); in cfg80211_pmsr_complete()
[all …]
/net/ieee802154/
Dnl-mac.c29 static int nla_put_hwaddr(struct sk_buff *msg, int type, __le64 hwaddr, in nla_put_hwaddr() argument
32 return nla_put_u64_64bit(msg, type, swab64((__force u64)hwaddr), in nla_put_hwaddr()
41 static int nla_put_shortaddr(struct sk_buff *msg, int type, __le16 addr) in nla_put_shortaddr() argument
43 return nla_put_u16(msg, type, le16_to_cpu(addr)); in nla_put_shortaddr()
53 struct sk_buff *msg; in ieee802154_nl_start_confirm() local
57 msg = ieee802154_nl_create(0, IEEE802154_START_CONF); in ieee802154_nl_start_confirm()
58 if (!msg) in ieee802154_nl_start_confirm()
61 if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || in ieee802154_nl_start_confirm()
62 nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || in ieee802154_nl_start_confirm()
63 nla_put(msg, IEEE802154_ATTR_HW_ADDR, IEEE802154_ADDR_LEN, in ieee802154_nl_start_confirm()
[all …]
Dnl-phy.c28 static int ieee802154_nl_fill_phy(struct sk_buff *msg, u32 portid, in ieee802154_nl_fill_phy() argument
40 hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags, in ieee802154_nl_fill_phy()
46 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || in ieee802154_nl_fill_phy()
47 nla_put_u8(msg, IEEE802154_ATTR_PAGE, phy->current_page) || in ieee802154_nl_fill_phy()
48 nla_put_u8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel)) in ieee802154_nl_fill_phy()
55 nla_put(msg, IEEE802154_ATTR_CHANNEL_PAGE_LIST, in ieee802154_nl_fill_phy()
60 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
94 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ieee802154_list_phy()
[all …]
Dnl802154.c302 nl802154_put_flags(struct sk_buff *msg, int attr, u32 mask) in nl802154_put_flags() argument
304 struct nlattr *nl_flags = nla_nest_start_noflag(msg, attr); in nl802154_put_flags()
312 if ((mask & 1) && nla_put_flag(msg, i)) in nl802154_put_flags()
319 nla_nest_end(msg, nl_flags); in nl802154_put_flags()
325 struct sk_buff *msg) in nl802154_send_wpan_phy_channels() argument
330 nl_page = nla_nest_start_noflag(msg, NL802154_ATTR_CHANNELS_SUPPORTED); in nl802154_send_wpan_phy_channels()
335 if (nla_put_u32(msg, NL802154_ATTR_SUPPORTED_CHANNEL, in nl802154_send_wpan_phy_channels()
339 nla_nest_end(msg, nl_page); in nl802154_send_wpan_phy_channels()
345 nl802154_put_capabilities(struct sk_buff *msg, in nl802154_put_capabilities() argument
352 nl_caps = nla_nest_start_noflag(msg, NL802154_ATTR_WPAN_PHY_CAPS); in nl802154_put_capabilities()
[all …]
Dnetlink.c27 struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); in ieee802154_nl_create() local
30 if (!msg) in ieee802154_nl_create()
34 hdr = genlmsg_put(msg, 0, ieee802154_seq_num++, in ieee802154_nl_create()
38 nlmsg_free(msg); in ieee802154_nl_create()
42 return msg; in ieee802154_nl_create()
45 int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) in ieee802154_nl_mcast() argument
47 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_mcast()
50 genlmsg_end(msg, hdr); in ieee802154_nl_mcast()
52 return genlmsg_multicast(&nl802154_family, msg, 0, group, GFP_ATOMIC); in ieee802154_nl_mcast()
59 struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); in ieee802154_nl_new_reply() local
[all …]
/net/
Dcompat.c41 struct compat_msghdr msg; in __get_compat_msghdr() local
44 if (copy_from_user(&msg, umsg, sizeof(*umsg))) in __get_compat_msghdr()
47 kmsg->msg_flags = msg.msg_flags; in __get_compat_msghdr()
48 kmsg->msg_namelen = msg.msg_namelen; in __get_compat_msghdr()
50 if (!msg.msg_name) in __get_compat_msghdr()
60 kmsg->msg_control_user = compat_ptr(msg.msg_control); in __get_compat_msghdr()
61 kmsg->msg_controllen = msg.msg_controllen; in __get_compat_msghdr()
64 *save_addr = compat_ptr(msg.msg_name); in __get_compat_msghdr()
66 if (msg.msg_name && kmsg->msg_namelen) { in __get_compat_msghdr()
68 err = move_addr_to_kernel(compat_ptr(msg.msg_name), in __get_compat_msghdr()
[all …]
Dsocket.c650 static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) in sock_sendmsg_nosec() argument
653 inet_sendmsg, sock, msg, in sock_sendmsg_nosec()
654 msg_data_left(msg)); in sock_sendmsg_nosec()
659 static int __sock_sendmsg(struct socket *sock, struct msghdr *msg) in __sock_sendmsg() argument
661 int err = security_socket_sendmsg(sock, msg, in __sock_sendmsg()
662 msg_data_left(msg)); in __sock_sendmsg()
664 return err ?: sock_sendmsg_nosec(sock, msg); in __sock_sendmsg()
675 int sock_sendmsg(struct socket *sock, struct msghdr *msg) in sock_sendmsg() argument
677 struct sockaddr_storage *save_addr = (struct sockaddr_storage *)msg->msg_name; in sock_sendmsg()
679 int save_len = msg->msg_namelen; in sock_sendmsg()
[all …]
/net/sunrpc/
Dsocklib.c205 static inline int xprt_sendmsg(struct socket *sock, struct msghdr *msg, in xprt_sendmsg() argument
209 iov_iter_advance(&msg->msg_iter, seek); in xprt_sendmsg()
210 return sock_sendmsg(sock, msg); in xprt_sendmsg()
213 static int xprt_send_kvec(struct socket *sock, struct msghdr *msg, in xprt_send_kvec() argument
216 iov_iter_kvec(&msg->msg_iter, WRITE, vec, 1, vec->iov_len); in xprt_send_kvec()
217 return xprt_sendmsg(sock, msg, seek); in xprt_send_kvec()
220 static int xprt_send_pagedata(struct socket *sock, struct msghdr *msg, in xprt_send_pagedata() argument
229 iov_iter_bvec(&msg->msg_iter, WRITE, xdr->bvec, xdr_buf_pagecount(xdr), in xprt_send_pagedata()
231 return xprt_sendmsg(sock, msg, base + xdr->page_base); in xprt_send_pagedata()
239 static int xprt_send_rm_and_kvec(struct socket *sock, struct msghdr *msg, in xprt_send_rm_and_kvec() argument
[all …]
/net/mptcp/
Dcrypto_test.c8 char *msg; member
18 .msg = "48692054",
23 .msg = "dddddddd",
28 .msg = "cdcdcdcd",
38 u8 msg[8]; in mptcp_crypto_test_basic() local
45 nonce1 = be32_to_cpu(*((__be32 *)&tests[i].msg[0])); in mptcp_crypto_test_basic()
46 nonce2 = be32_to_cpu(*((__be32 *)&tests[i].msg[4])); in mptcp_crypto_test_basic()
48 put_unaligned_be32(nonce1, &msg[0]); in mptcp_crypto_test_basic()
49 put_unaligned_be32(nonce2, &msg[4]); in mptcp_crypto_test_basic()
51 mptcp_crypto_hmac_sha(key1, key2, msg, 8, hmac); in mptcp_crypto_test_basic()

12345678910