Lines Matching refs:BYTE_0
20 #define BYTE_0(x) (uint8_t)(((x) >> 0) & 0xFF) macro
244 data->cmdq_data.data_length_lb = BYTE_0(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx()
247 data->cmdq_data.data_addr_lb = BYTE_0(mem_address); in spi_it8xxx2_tx()
267 data->cmdq_data.data_length_lb = BYTE_0(ctx->rx_len); in spi_it8xxx2_rx()
291 data->cmdq_data.data_length_lb = BYTE_0(ctx->rx_len); in spi_it8xxx2_tx_rx()
302 data->cmdq_data.data_length_lb = BYTE_0(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx_rx()
306 data->cmdq_data.data_addr_lb = BYTE_0(mem_address); in spi_it8xxx2_tx_rx()
355 sys_write8(BYTE_0(cmd_address), cfg->base + SPI05_CH0_CMD_ADDR_LB); in spi_it8xxx2_next_xfer()
360 sys_write8(BYTE_0(mem_address), cfg->base + SPI0E_CH0_WR_MEM_ADDR_LB); in spi_it8xxx2_next_xfer()
365 sys_write8(BYTE_0(cmd_address), cfg->base + SPI12_CH1_CMD_ADDR_LB); in spi_it8xxx2_next_xfer()
370 sys_write8(BYTE_0(mem_address), cfg->base + SPI14_CH1_WR_MEM_ADDR_LB); in spi_it8xxx2_next_xfer()