Lines Matching refs:cn_msg
34 char buf[sizeof(struct cn_msg) + sizeof(struct w1_netlink_msg)]; in w1_netlink_send()
35 struct cn_msg *m = (struct cn_msg *)buf; in w1_netlink_send()
53 struct cn_msg *msg = dev->priv; in w1_send_slave()
78 static int w1_process_search_command(struct w1_master *dev, struct cn_msg *msg, in w1_process_search_command()
99 static int w1_send_read_reply(struct cn_msg *msg, struct w1_netlink_msg *hdr, in w1_send_read_reply()
105 struct cn_msg *cm; in w1_send_read_reply()
108 data = kzalloc(sizeof(struct cn_msg) + in w1_send_read_reply()
115 cm = (struct cn_msg *)(data); in w1_send_read_reply()
119 memcpy(cm, msg, sizeof(struct cn_msg)); in w1_send_read_reply()
138 static int w1_process_command_io(struct w1_master *dev, struct cn_msg *msg, in w1_process_command_io()
163 static int w1_process_command_master(struct w1_master *dev, struct cn_msg *req_msg, in w1_process_command_master()
167 struct cn_msg *msg; in w1_process_command_master()
194 PAGE_SIZE - msg->len - sizeof(struct cn_msg)); in w1_process_command_master()
213 static int w1_process_command_slave(struct w1_slave *sl, struct cn_msg *msg, in w1_process_command_slave()
223 static int w1_process_command_root(struct cn_msg *msg, struct w1_netlink_msg *mcmd) in w1_process_command_root()
226 struct cn_msg *cn; in w1_process_command_root()
255 if (cn->len + sizeof(*id) > PAGE_SIZE - sizeof(struct cn_msg)) { in w1_process_command_root()
276 static int w1_netlink_send_error(struct cn_msg *rcmsg, struct w1_netlink_msg *rmsg, in w1_netlink_send_error()
279 struct cn_msg *cmsg; in w1_netlink_send_error()
310 static void w1_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in w1_cn_callback()