Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/drivers/i2c/
Di2c_xilinx_axi.c327 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()
[all …]
Di2c_bcm_iproc.c637 uint32_t bytes_left, val; in iproc_i2c_data_recv() local
641 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()
/Zephyr-latest/drivers/ethernet/
Deth_stellaris.c125 int frame_len, bytes_left; in eth_stellaris_rx_pkt() local
165 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()
/Zephyr-latest/drivers/flash/
Dflash_util.c165 for (uint32_t offs = 0, N = size, bytes_read = 0, bytes_left = N; offs < N; in z_impl_flash_copy() local
166 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()
/Zephyr-latest/subsys/usb/device/class/dfu/
Dusb_dfu.c468 uint32_t bytes_left; in dfu_class_handle_to_host() local
537 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()