Lines Matching refs:packet
36 LMKD_CTRL_PACKET packet; in lmkd_register_proc() local
40 size = lmkd_pack_set_procprio(packet, params); in lmkd_register_proc()
41 ret = TEMP_FAILURE_RETRY(write(sock, packet, size)); in lmkd_register_proc()
47 LMKD_CTRL_PACKET packet; in lmkd_register_procs() local
51 size = lmkd_pack_set_procs_prio(packet, params, proc_count); in lmkd_register_procs()
52 ret = TEMP_FAILURE_RETRY(write(sock, packet, size)); in lmkd_register_procs()
58 LMKD_CTRL_PACKET packet; in lmkd_unregister_proc() local
62 size = lmkd_pack_set_procremove(packet, params); in lmkd_unregister_proc()
63 ret = TEMP_FAILURE_RETRY(write(sock, packet, size)); in lmkd_unregister_proc()
69 LMKD_CTRL_PACKET packet; in lmkd_update_props() local
72 size = lmkd_pack_set_update_props(packet); in lmkd_update_props()
73 if (TEMP_FAILURE_RETRY(write(sock, packet, size)) < 0) { in lmkd_update_props()
77 size = TEMP_FAILURE_RETRY(read(sock, packet, CTRL_PACKET_MAX_SIZE)); in lmkd_update_props()
82 if (size != 2 * sizeof(int) || lmkd_pack_get_cmd(packet) != LMK_UPDATE_PROPS) { in lmkd_update_props()
87 lmkd_pack_get_update_props_repl(packet, ¶ms); in lmkd_update_props()
93 LMKD_CTRL_PACKET packet; in lmkd_notify_boot_completed() local
96 size = lmkd_pack_set_boot_completed_notif(packet); in lmkd_notify_boot_completed()
97 if (TEMP_FAILURE_RETRY(write(sock, packet, size)) < 0) { in lmkd_notify_boot_completed()
101 size = TEMP_FAILURE_RETRY(read(sock, packet, CTRL_PACKET_MAX_SIZE)); in lmkd_notify_boot_completed()
106 if (size != 2 * sizeof(int) || lmkd_pack_get_cmd(packet) != LMK_BOOT_COMPLETED) { in lmkd_notify_boot_completed()
111 lmkd_pack_get_boot_completed_notif_repl(packet, ¶ms); in lmkd_notify_boot_completed()
133 LMKD_CTRL_PACKET packet; in lmkd_get_kill_count() local
136 size = lmkd_pack_set_getkillcnt(packet, params); in lmkd_get_kill_count()
137 if (TEMP_FAILURE_RETRY(write(sock, packet, size)) < 0) { in lmkd_get_kill_count()
141 size = TEMP_FAILURE_RETRY(read(sock, packet, CTRL_PACKET_MAX_SIZE)); in lmkd_get_kill_count()
146 if (size != 2 * sizeof(int) || lmkd_pack_get_cmd(packet) != LMK_GETKILLCNT) { in lmkd_get_kill_count()
150 return packet[1]; in lmkd_get_kill_count()