Home
last modified time | relevance | path

Searched refs:ccc_byte_offset (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/hw/i3c/
H A Dmock-target.c
H A Dmock-i3c-target.c111 s->ccc_byte_offset = 0; in mock_i3c_target_event()
127 while (s->ccc_byte_offset < num_to_read) { in mock_i3c_target_handle_ccc_read()
128 if (s->ccc_byte_offset >= 2) { in mock_i3c_target_handle_ccc_read()
131 data[s->ccc_byte_offset] = 0; in mock_i3c_target_handle_ccc_read()
132 *num_read = s->ccc_byte_offset; in mock_i3c_target_handle_ccc_read()
133 s->ccc_byte_offset++; in mock_i3c_target_handle_ccc_read()
138 while (s->ccc_byte_offset < num_to_read) { in mock_i3c_target_handle_ccc_read()
139 if (s->ccc_byte_offset >= 2) { in mock_i3c_target_handle_ccc_read()
142 if (s->ccc_byte_offset == 0) { in mock_i3c_target_handle_ccc_read()
143 data[s->ccc_byte_offset] = 0; in mock_i3c_target_handle_ccc_read()
[all …]
H A Dcore.c156 t->ccc_byte_offset = 0; in i3c_target_event()
292 if (t->ccc_byte_offset == 8) { in i3c_target_handle_ccc_write()
296 t->ccc_byte_offset = 0; in i3c_target_handle_ccc_write()
408 while (t->ccc_byte_offset < 6) { in i3c_target_handle_ccc_read()
412 data[read_count] = (pid >> (t->ccc_byte_offset * 8)) & 0xff; in i3c_target_handle_ccc_read()
413 t->ccc_byte_offset++; in i3c_target_handle_ccc_read()
418 t->ccc_byte_offset++; in i3c_target_handle_ccc_read()
423 t->ccc_byte_offset++; in i3c_target_handle_ccc_read()
429 while (t->ccc_byte_offset < 6) { in i3c_target_handle_ccc_read()
433 data[read_count] = (t->pid >> (t->ccc_byte_offset * 8)) & 0xff; in i3c_target_handle_ccc_read()
[all …]
/openbmc/qemu/include/hw/i3c/
H A Dmock-target.h
H A Dmock-i3c-target.h44 uint8_t ccc_byte_offset; member
H A Di3c.h145 uint8_t ccc_byte_offset; member