Searched refs:write_idx (Results 1 – 1 of 1) sorted by relevance
144 int32_t write_idx; member374 int32_t write_idx = unsol_read_ctxt[uart].write_idx; in handle_unsol_rx_data() local378 write_idx++; in handle_unsol_rx_data()379 if (write_idx == unsol_rx->size) { in handle_unsol_rx_data()380 write_idx = 0; in handle_unsol_rx_data()382 unsol_rx->buffer[write_idx] = regs->rbr_thr_dll; in handle_unsol_rx_data()385 unsol_read_ctxt[uart].write_idx = write_idx; in handle_unsol_rx_data()386 if (read_idx < write_idx) { in handle_unsol_rx_data()387 unsol_read_ctxt[uart].curr_len = write_idx - read_idx; in handle_unsol_rx_data()389 unsol_read_ctxt[uart].curr_len = unsol_rx->size - read_idx + write_idx; in handle_unsol_rx_data()[all …]