Lines Matching refs:msg
41 struct cosm_msg msg = { .id = COSM_MSG_SHUTDOWN_STATUS }; in cosm_reboot_event() local
48 msg.shutdown_status = event; in cosm_reboot_event()
49 rc = scif_send(client_epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); in cosm_reboot_event()
62 static void cosm_set_time(struct cosm_msg *msg) in cosm_set_time() argument
64 int rc = do_settimeofday64(&msg->timespec); in cosm_set_time()
74 struct cosm_msg msg; in cosm_client_recv() local
78 rc = scif_recv(client_epd, &msg, sizeof(msg), 0); in cosm_client_recv()
88 __func__, __LINE__, rc, msg.id); in cosm_client_recv()
90 switch (msg.id) { in cosm_client_recv()
92 cosm_set_time(&msg); in cosm_client_recv()
99 __func__, __LINE__, msg.id); in cosm_client_recv()
153 struct cosm_msg msg = { .id = COSM_MSG_HEARTBEAT }; in cosm_scif_client() local
175 msg.id = COSM_MSG_HEARTBEAT; in cosm_scif_client()
176 rc = scif_send(client_epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); in cosm_scif_client()