Searched refs:bytes_left (Results 1 – 5 of 5) sorted by relevance
327 uint32_t bytes_left = msg->len; in i2c_xilinx_axi_read_nondyn() local330 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() local397 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()[all …]
637 uint32_t bytes_left, val; in iproc_i2c_data_recv() local641 bytes_left = msg->len - dd->rx_bytes; in iproc_i2c_data_recv()642 if (bytes_left == 0) { in iproc_i2c_data_recv()645 } else if (bytes_left < dd->thld_bytes) { in iproc_i2c_data_recv()649 val |= (bytes_left << M_FIFO_RX_THLD_SHIFT); in iproc_i2c_data_recv()651 dd->thld_bytes = bytes_left; in iproc_i2c_data_recv()
125 int frame_len, bytes_left; in eth_stellaris_rx_pkt() local165 bytes_left = frame_len - 4; in eth_stellaris_rx_pkt()168 for (; bytes_left > 7; bytes_left -= 4) { in eth_stellaris_rx_pkt()178 while (bytes_left > 0) { in eth_stellaris_rx_pkt()183 if (bytes_left <= 4) { in eth_stellaris_rx_pkt()184 bytes_left = 0; in eth_stellaris_rx_pkt()188 count = bytes_left - 4; in eth_stellaris_rx_pkt()194 bytes_left -= 4; in eth_stellaris_rx_pkt()
165 for (uint32_t offs = 0, N = size, bytes_read = 0, bytes_left = N; offs < N; in z_impl_flash_copy() local166 offs += bytes_read, bytes_left -= bytes_read) { in z_impl_flash_copy()168 if (bytes_left < write_size) { in z_impl_flash_copy()175 bytes_read = MIN(MAX(bytes_left, write_size), buf_size); in z_impl_flash_copy()
468 uint32_t bytes_left; in dfu_class_handle_to_host() local537 bytes_left = dfu_data.flash_upload_size - in dfu_class_handle_to_host()539 if (bytes_left < setup->wLength) { in dfu_class_handle_to_host()540 len = bytes_left; in dfu_class_handle_to_host()