Lines Matching refs:data0
239 uint8_t data0[MAX_SERIAL_PAYLOAD+1]; member
268 qemu_put_buffer(f, s->data0, MAX_SERIAL_PAYLOAD+1); in qemud_serial_save()
288 s->header->buff = s->payload->buff = s->data0; in qemud_serial_load()
298 if ((ret = qemu_get_buffer(f, s->data0, len)) != len) { in qemud_serial_load()
363 if ( !memcmp(s->data0, "001200", 6) ) { in qemud_serial_read()
375 s->in_size = hex2int( s->data0 + LEGACY_LENGTH_OFFSET, LENGTH_SIZE ); in qemud_serial_read()
376 s->in_channel = hex2int( s->data0 + LEGACY_CHANNEL_OFFSET, CHANNEL_SIZE ); in qemud_serial_read()
378 s->in_size = hex2int( s->data0 + LENGTH_OFFSET, LENGTH_SIZE ); in qemud_serial_read()
379 s->in_channel = hex2int( s->data0 + CHANNEL_OFFSET, CHANNEL_SIZE ); in qemud_serial_read()
383 s->in_size = hex2int( s->data0 + LENGTH_OFFSET, LENGTH_SIZE ); in qemud_serial_read()
384 s->in_channel = hex2int( s->data0 + CHANNEL_OFFSET, CHANNEL_SIZE ); in qemud_serial_read()
389 D("%s: bad header: '%.*s'", __FUNCTION__, HEADER_SIZE, s->data0); in qemud_serial_read()
402 qemud_sink_reset(s->payload, s->in_size, s->data0); in qemud_serial_read()
499 qemud_sink_reset( s->header, HEADER_SIZE, s->data0 ); in qemud_serial_init()