Lines Matching refs:msg

91 			 struct mbox_dbus_msg *msg,  in send_dbus_msg()  argument
111 rc = sd_bus_message_append(m, "y", msg->cmd); in send_dbus_msg()
120 rc = sd_bus_message_append_array(m, 'y', msg->args, msg->num_args); in send_dbus_msg()
173 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_ping() local
176 msg.cmd = DBUS_C_PING; in handle_cmd_ping()
178 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_ping()
192 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_daemon_state() local
195 msg.cmd = DBUS_C_DAEMON_STATE; in handle_cmd_daemon_state()
203 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_daemon_state()
225 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_lpc_state() local
228 msg.cmd = DBUS_C_LPC_STATE; in handle_cmd_lpc_state()
236 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_lpc_state()
261 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_kill() local
264 msg.cmd = DBUS_C_KILL; in handle_cmd_kill()
266 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_kill()
280 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_reset() local
283 msg.cmd = DBUS_C_RESET; in handle_cmd_reset()
285 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_reset()
299 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_suspend() local
302 msg.cmd = DBUS_C_SUSPEND; in handle_cmd_suspend()
304 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_suspend()
318 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_resume() local
326 msg.cmd = DBUS_C_RESUME; in handle_cmd_resume()
327 msg.num_args = RESUME_NUM_ARGS; in handle_cmd_resume()
328 msg.args = calloc(msg.num_args, sizeof(*msg.args)); in handle_cmd_resume()
329 if (!msg.args) { in handle_cmd_resume()
335 msg.args[0] = RESUME_NOT_MODIFIED; in handle_cmd_resume()
337 msg.args[0] = RESUME_FLASH_MODIFIED; in handle_cmd_resume()
345 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_resume()
355 free(msg.args); in handle_cmd_resume()
361 struct mbox_dbus_msg msg = { 0 }, resp = { 0 }; in handle_cmd_modified() local
364 msg.cmd = DBUS_C_MODIFIED; in handle_cmd_modified()
366 rc = send_dbus_msg(context, &msg, &resp); in handle_cmd_modified()