Lines Matching refs:pack
293 static void hl_static_pack_int(volatile struct hl_packed_int *pack, int32_t value) in hl_static_pack_int() argument
295 hl_write16(&pack->type, PAT_INT); in hl_static_pack_int()
296 hl_write16(&pack->size, 4); in hl_static_pack_int()
297 hl_write32(&pack->value, value); in hl_static_pack_int()
300 static void hl_static_pack_char(volatile struct hl_packed_short_buff *pack, unsigned char c) in hl_static_pack_char() argument
302 hl_write16(&pack->type, PAT_STRING); in hl_static_pack_char()
303 hl_write16(&pack->size, 1); in hl_static_pack_char()
304 hl_write8(&pack->payload_short, c); in hl_static_pack_char()
307 static int hl_static_unpack_int(volatile struct hl_packed_int *pack, int32_t *value) in hl_static_unpack_int() argument
309 uint16_t type = hl_read16(&pack->type); in hl_static_unpack_int()
310 uint16_t size = hl_read16(&pack->size); in hl_static_unpack_int()
320 *value = hl_read32(&pack->value); in hl_static_unpack_int()