Lines Matching refs:bytes_to_read
397 uint32_t bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn() local
409 if (bytes_to_read > FIFO_SIZE) { in i2c_xilinx_axi_read_dyn()
410 bytes_to_read = FIFO_SIZE; in i2c_xilinx_axi_read_dyn()
412 sys_write32(bytes_to_read - 1, config->base + REG_RX_FIFO_PIRQ); in i2c_xilinx_axi_read_dyn()
423 bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn()
424 if (bytes_to_read > FIFO_SIZE) { in i2c_xilinx_axi_read_dyn()
425 bytes_to_read = FIFO_SIZE; in i2c_xilinx_axi_read_dyn()
428 sys_write32(bytes_to_read - 1, config->base + REG_RX_FIFO_PIRQ); in i2c_xilinx_axi_read_dyn()
429 ret = i2c_xilinx_axi_wait_rx_full(config, data, bytes_to_read); in i2c_xilinx_axi_read_dyn()
434 while (bytes_to_read) { in i2c_xilinx_axi_read_dyn()
436 bytes_to_read--; in i2c_xilinx_axi_read_dyn()