Searched refs:write_idx (Results 1 – 1 of 1) sorted by relevance
146 int32_t write_idx; member372 int32_t write_idx = unsol_read_ctxt[uart].write_idx; in handle_unsol_rx_data() local376 write_idx++; in handle_unsol_rx_data()377 if (write_idx == unsol_rx->size) { in handle_unsol_rx_data()378 write_idx = 0; in handle_unsol_rx_data()380 unsol_rx->buffer[write_idx] = regs->rbr_thr_dll; in handle_unsol_rx_data()383 unsol_read_ctxt[uart].write_idx = write_idx; in handle_unsol_rx_data()384 if (read_idx < write_idx) { in handle_unsol_rx_data()385 unsol_read_ctxt[uart].curr_len = write_idx - read_idx; in handle_unsol_rx_data()387 unsol_read_ctxt[uart].curr_len = unsol_rx->size - read_idx + write_idx; in handle_unsol_rx_data()[all …]