Lines Matching refs:bytes_left
327 uint32_t bytes_left = msg->len; in i2c_xilinx_axi_read_nondyn() local
330 if (!bytes_left) { in i2c_xilinx_axi_read_nondyn()
333 if (bytes_left == 1) { in i2c_xilinx_axi_read_nondyn()
368 while (bytes_left) { in i2c_xilinx_axi_read_nondyn()
375 if (bytes_left == 2) { in i2c_xilinx_axi_read_nondyn()
378 } else if (bytes_left == 1 && (msg->flags & I2C_MSG_STOP)) { in i2c_xilinx_axi_read_nondyn()
386 bytes_left--; in i2c_xilinx_axi_read_nondyn()
396 uint32_t bytes_left = msg->len; in i2c_xilinx_axi_read_dyn() local
397 uint32_t bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn()
399 uint32_t len_word = bytes_left; in i2c_xilinx_axi_read_dyn()
401 if (!bytes_left || bytes_left > MAX_DYNAMIC_READ_LEN) { in i2c_xilinx_axi_read_dyn()
420 while (bytes_left) { in i2c_xilinx_axi_read_dyn()
423 bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn()
437 bytes_left--; in i2c_xilinx_axi_read_dyn()
484 uint32_t bytes_left = msg->len; in i2c_xilinx_axi_write() local
506 while (bytes_left) { in i2c_xilinx_axi_write()
507 uint32_t bytes_to_send = bytes_left; in i2c_xilinx_axi_write()
517 if (bytes_left == 1 && (msg->flags & I2C_MSG_STOP)) { in i2c_xilinx_axi_write()
522 bytes_left--; in i2c_xilinx_axi_write()