Home
last modified time | relevance | path

Searched refs:cn_msg (Results 1 – 7 of 7) sorted by relevance

/drivers/hv/
Dhv_utils_transport.c148 static void hvt_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in hvt_cn_callback()
181 struct cn_msg *cn_msg; in hvutil_transport_send() local
187 cn_msg = kzalloc(sizeof(*cn_msg) + len, GFP_ATOMIC); in hvutil_transport_send()
188 if (!cn_msg) in hvutil_transport_send()
190 cn_msg->id.idx = hvt->cn_id.idx; in hvutil_transport_send()
191 cn_msg->id.val = hvt->cn_id.val; in hvutil_transport_send()
192 cn_msg->len = len; in hvutil_transport_send()
193 memcpy(cn_msg->data, msg, len); in hvutil_transport_send()
194 ret = cn_netlink_send(cn_msg, 0, 0, GFP_ATOMIC); in hvutil_transport_send()
195 kfree(cn_msg); in hvutil_transport_send()
/drivers/connector/
Dcn_proc.c44 #define CN_PROC_MSG_SIZE (sizeof(struct cn_msg) + sizeof(struct proc_event) + 4)
47 static inline struct cn_msg *buffer_to_cn_msg(__u8 *buffer) in buffer_to_cn_msg()
49 BUILD_BUG_ON(sizeof(struct cn_msg) != 20); in buffer_to_cn_msg()
50 return (struct cn_msg *)(buffer + 4); in buffer_to_cn_msg()
69 struct cn_msg *msg; in proc_fork_connector()
101 struct cn_msg *msg; in proc_exec_connector()
126 struct cn_msg *msg; in proc_id_connector()
165 struct cn_msg *msg; in proc_sid_connector()
190 struct cn_msg *msg; in proc_ptrace_connector()
223 struct cn_msg *msg; in proc_comm_connector()
[all …]
Dconnector.c73 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, in cn_netlink_send_mult()
80 struct cn_msg *data; in cn_netlink_send_mult()
133 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, in cn_netlink_send()
148 struct cn_msg *msg = nlmsg_data(nlmsg_hdr(skb)); in cn_call_callback()
154 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) in cn_call_callback()
191 if (len < (int)sizeof(struct cn_msg) || in cn_rx_skb()
209 void (*callback)(struct cn_msg *, in cn_add_callback() argument
Dcn_queue.c37 void (*callback)(struct cn_msg *, in cn_queue_alloc_callback_entry() argument
75 void (*callback)(struct cn_msg *, in cn_queue_add_callback() argument
/drivers/md/
Ddm-log-userspace-transfer.c32 static struct cn_msg *prealloced_cn_msg;
59 struct cn_msg *msg = prealloced_cn_msg; in dm_ulog_sendto_server()
61 memset(msg, 0, sizeof(struct cn_msg)); in dm_ulog_sendto_server()
82 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) in fill_pkg()
133 static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_ulog_callback()
177 int overhead_size = sizeof(struct dm_ulog_request) + sizeof(struct cn_msg); in dm_consult_userspace()
200 memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); in dm_consult_userspace()
272 prealloced_ulog_tfr = prealloced + sizeof(struct cn_msg); in dm_ulog_tfr_init()
/drivers/w1/
Dw1_netlink.c44 struct cn_msg *first_cn; /* fixed once the structure is populated */
45 struct cn_msg *cn; /* advances as cn_msg is appeneded */
50 struct cn_msg request_cn;
136 block->cn = (struct cn_msg *)(block->cn->data + in w1_netlink_setup_msg()
156 w1_reply_make_space(block, sizeof(struct cn_msg) + in w1_netlink_queue_cmd()
183 u16 space = sizeof(struct cn_msg) + sizeof(*req_msg) + sizeof(*req_cmd); in w1_netlink_queue_status()
211 static void w1_netlink_send_error(struct cn_msg *cn, struct w1_netlink_msg *msg, in w1_netlink_send_error()
215 struct cn_msg cn; in w1_netlink_send_error()
236 struct cn_msg cn; in w1_netlink_send()
416 static int w1_process_command_root(struct cn_msg *req_cn, u32 portid) in w1_process_command_root()
[all …]
/drivers/video/fbdev/
Duvesafb.c68 static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in uvesafb_cn_callback()
143 struct cn_msg *m; in uvesafb_exec()