Lines Matching refs:w1_netlink_msg

27 	struct w1_netlink_msg *msg; /* advances as w1_netlink_msg is appened */
29 struct w1_netlink_msg *cur_msg; /* currently message being processed */
42 struct w1_netlink_msg *msg;
115 block->msg = (struct w1_netlink_msg *)(block->cn->data + block->cn->len); in w1_netlink_setup_msg()
127 block->msg = (struct w1_netlink_msg *)block->cn->data; in w1_netlink_setup_msg()
140 sizeof(struct w1_netlink_msg) + sizeof(*cmd) + cmd->len); in w1_netlink_queue_cmd()
163 struct w1_netlink_msg *req_msg, struct w1_netlink_cmd *req_cmd, in w1_netlink_queue_status()
194 static void w1_netlink_send_error(struct cn_msg *cn, struct w1_netlink_msg *msg, in w1_netlink_send_error()
199 struct w1_netlink_msg msg; in w1_netlink_send_error()
216 void w1_netlink_send(struct w1_master *dev, struct w1_netlink_msg *msg) in w1_netlink_send()
220 struct w1_netlink_msg msg; in w1_netlink_send()
403 struct w1_netlink_msg *msg; in w1_process_command_root()
415 cn->len = sizeof(struct w1_netlink_msg); in w1_process_command_root()
416 msg = (struct w1_netlink_msg *)cn->data; in w1_process_command_root()
427 cn->len = sizeof(struct w1_netlink_msg); in w1_process_command_root()
500 static void w1_list_count_cmds(struct w1_netlink_msg *msg, int *cmd_count, in w1_list_count_cmds()
539 struct w1_netlink_msg *msg = (struct w1_netlink_msg *)(cn + 1); in w1_cn_callback()
564 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback()
577 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
578 msg = (struct w1_netlink_msg *)(((u8 *)msg) + in w1_cn_callback()
579 sizeof(struct w1_netlink_msg) + msg->len); in w1_cn_callback()
581 msg = (struct w1_netlink_msg *)(cn + 1); in w1_cn_callback()
588 sizeof(struct w1_netlink_msg) + in w1_cn_callback()
640 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback()
684 node->msg = (struct w1_netlink_msg *)((u8 *)&block->request_cn + in w1_cn_callback()
702 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
703 msg = (struct w1_netlink_msg *)(((u8 *)msg) + in w1_cn_callback()
704 sizeof(struct w1_netlink_msg) + msg->len); in w1_cn_callback()
730 void w1_netlink_send(struct w1_master *dev, struct w1_netlink_msg *cn) in w1_netlink_send()