Searched refs:event_buffer_offset (Results 1 – 2 of 2) sorted by relevance
66 size_t event_buffer_offset; member78 #define EVENT_PACKET_LENGTH(hci) ((hci)->event_buffer_offset > 2 ? (hci)->event_buffer[2] + 3 : 0)248 hci->event_buffer[hci->event_buffer_offset++] = *src++; in hci_handle_uart_read_events()256 size_t copy = packet_length - hci->event_buffer_offset; in hci_handle_uart_read_events()258 memcpy(hci->event_buffer + hci->event_buffer_offset, src, copy); in hci_handle_uart_read_events()260 hci->event_buffer_offset += copy; in hci_handle_uart_read_events()262 if (hci->event_buffer_offset == packet_length) { in hci_handle_uart_read_events()276 hci->event_buffer_offset = 1; in hci_handle_uart_read_events()521 hci->event_buffer_offset = 1; in hci_bind()
72 size_t event_buffer_offset; member155 if (hci->event_buffer_offset == 0 && length >= 2) { in hci_event_complete()170 if (hci->event_buffer_offset + length > sizeof(hci->event_buffer)) { in hci_event_complete()175 memcpy(&hci->event_buffer[hci->event_buffer_offset], buffer, length); in hci_event_complete()176 if (hci->event_buffer_offset == 0) { in hci_event_complete()181 hci->event_buffer_offset += length; in hci_event_complete()184 if (packet_size <= hci->event_buffer_offset) { in hci_event_complete()193 uint32_t remaining = hci->event_buffer_offset - packet_size; in hci_event_complete()195 hci->event_buffer_offset = 0; in hci_event_complete()
Completed in 11 milliseconds