Home
last modified time | relevance | path

Searched refs:BYTES_PER_FIFO_WORD (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/tty/serial/
H A Dqcom_geni_serial.c97 #define BYTES_PER_FIFO_WORD 4U macro
366 private_data->poll_cached_bytes_cnt = BYTES_PER_FIFO_WORD; in qcom_geni_serial_get_char()
418 if (private_data->write_cached_bytes_cnt == BYTES_PER_FIFO_WORD) { in qcom_geni_serial_wr_char()
468 (BYTES_PER_FIFO_WORD - private_data->write_cached_bytes_cnt); in __qcom_geni_serial_console_write()
546 int chunk = min_t(int, bytes - i, BYTES_PER_FIFO_WORD); in handle_rx_console()
714 total_bytes = BYTES_PER_FIFO_WORD * (word_cnt - 1); in qcom_geni_serial_handle_rx_fifo()
718 total_bytes += BYTES_PER_FIFO_WORD; in qcom_geni_serial_handle_rx_fifo()
879 u8 buf[BYTES_PER_FIFO_WORD]; in qcom_geni_serial_send_chunk_fifo()
883 tx_bytes = min(remaining, BYTES_PER_FIFO_WORD); in qcom_geni_serial_send_chunk_fifo()
923 avail *= BYTES_PER_FIFO_WORD; in qcom_geni_serial_handle_tx_fifo()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-tegra.c31 #define BYTES_PER_FIFO_WORD 4 macro
758 words_to_transfer = buf_remaining / BYTES_PER_FIFO_WORD; in tegra_i2c_empty_rx_fifo()
764 buf += words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_empty_rx_fifo()
765 buf_remaining -= words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_empty_rx_fifo()
811 words_to_transfer = buf_remaining / BYTES_PER_FIFO_WORD; in tegra_i2c_fill_tx_fifo()
830 buf_remaining -= words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_fill_tx_fifo()
834 i2c_dev->msg_buf = buf + words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_fill_tx_fifo()
841 buf += words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_fill_tx_fifo()
1254 xfer_size = ALIGN(xfer_size, BYTES_PER_FIFO_WORD); in tegra_i2c_xfer_msg()