Home
last modified time | relevance | path

Searched refs:read_len (Results 1 – 25 of 27) sorted by relevance

12

/device/soc/esp/esp32/components/spi_flash/
Dflash_ops.c352 int32_t read_len = MIN(sizeof(before_buf), remaining); in spi_flash_write_inner()
355 res = esp_rom_spiflash_read(target + i, before_buf, read_len); in spi_flash_write_inner()
360 for (int r = 0; r < read_len; r += sizeof(uint32_t)) { in spi_flash_write_inner()
377 res = esp_rom_spiflash_write(target + i, &src_addr[i_w], read_len); in spi_flash_write_inner()
382 res = esp_rom_spiflash_read(target + i, after_buf, read_len); in spi_flash_write_inner()
387 for (int r = 0; r < read_len; r += sizeof(uint32_t)) { in spi_flash_write_inner()
404 remaining -= read_len; in spi_flash_write_inner()
603 int32_t read_len = MIN(sizeof(read_buf), remaining); in spi_flash_write_encrypted() local
606 esp_err_t err = spi_flash_read(dest_addr + i, read_buf, read_len); in spi_flash_write_encrypted()
613 for (int r = 0; r < read_len; r += sizeof(uint32_t)) { in spi_flash_write_encrypted()
[all …]
Dmemspi_host_driver.c39 …ash_hal_gpspi_read(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len);
184 …_t memspi_host_read(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len) in memspi_host_read() argument
190 .miso_len = read_len, in memspi_host_read()
Dspi_flash_chip_winbond.c62 …uint32_t read_len = chip->host->driver->read_data_slicer(chip->host, address, length, &align_addre… in spi_flash_chip_winbond_read() local
64 uint32_t data_len = MIN(align_address + read_len, address + length) - address; in spi_flash_chip_winbond_read()
65 err = chip->host->driver->read(chip->host, temp_buffer, align_address, read_len); in spi_flash_chip_winbond_read()
Dspi_flash_chip_generic.c203 …uint32_t read_len = chip->host->driver->read_data_slicer(chip->host, address, length, &align_addre… in spi_flash_chip_generic_read() local
205 uint32_t data_len = MIN(align_address + read_len, address + length) - address; in spi_flash_chip_generic_read()
206 err = chip->host->driver->read(chip->host, temp_buffer, align_address, read_len); in spi_flash_chip_generic_read()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/
Dtransfer.c33 hi_u32 file_length, remain, read_len, ret, cs; in loader_serial_ymodem() local
55 read_len = ymodem_read(g_ymodem_buf, read_size, ((uintptr_t)g_ymodem_buf) ^ read_size); in loader_serial_ymodem()
56 if (read_len == 0 || remain < read_len) { in loader_serial_ymodem()
61 …s = (uintptr_t)(hi_void *)store_addr ^ (hi_u32)remain ^ (uintptr_t)g_ymodem_buf ^ (hi_u32)read_len; in loader_serial_ymodem()
62 … if (memcpy_s((hi_void *)store_addr, (hi_u32)remain, g_ymodem_buf, read_len, cs) != EOK) { in loader_serial_ymodem()
66 ret = g_flash_cmd_funcs.write(store_addr, read_len, (hi_u8 *)g_ymodem_buf, HI_FALSE); in loader_serial_ymodem()
72 remain -= read_len; in loader_serial_ymodem()
73 size += read_len; in loader_serial_ymodem()
74 store_addr += (hi_u32)read_len; in loader_serial_ymodem()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/osal/hisiv600/
Dhdmi_osal.c48 hi_s32 read_len; in hdmi_osal_file_read() local
53 read_len = osal_klib_fread(buf, len, file); in hdmi_osal_file_read()
55 return read_len; in hdmi_osal_file_read()
/device/soc/esp/esp32/components/hal/esp32/include/hal/
Dspi_flash_ll.h142 static inline void spi_flash_ll_get_buffer_data(spi_dev_t *dev, void *buffer, uint32_t read_len) in spi_flash_ll_get_buffer_data() argument
144 if (((intptr_t)buffer % 4 == 0) && (read_len % 4 == 0)) { in spi_flash_ll_get_buffer_data()
146 memcpy(buffer, (void *)dev->data_buf, read_len); in spi_flash_ll_get_buffer_data()
149 int copy_len = read_len; in spi_flash_ll_get_buffer_data()
150 for (size_t i = 0; i < (read_len + 3) / 4; i++) { in spi_flash_ll_get_buffer_data()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/libraries/app_log/
Dapp_log_store.c173 uint32_t read_len; in log_store_data_flash_write() local
185read_len = ring_buffer_read(&s_log_store_rbuf, read_buff, align_num - s_log_store_env.store_head.o… in log_store_data_flash_write()
187 read_len = ring_buffer_read(&s_log_store_rbuf, read_buff, APP_LOG_STORE_ONECE_OP_SIZE); in log_store_data_flash_write()
190 if (s_log_store_ops.flash_write && read_len) { in log_store_data_flash_write()
192 read_len); in log_store_data_flash_write()
193 s_log_store_env.store_head.offset += read_len; in log_store_data_flash_write()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_v2x/
Ddisp_waveform.c250 __s32 read_len = 0; in init_waveform() local
285 read_len = vfs_read(fp, (char *)g_waveform_file.p_wf_vaddr, file_len, &pos); in init_waveform()
286 if (read_len != file_len) { in init_waveform()
288 read_len, file_len); in init_waveform()
Ddisp_eink_data.c653 __s32 read_len = 0; in load_wavedata() local
676 read_len = vfs_read(fp, (char *)buf, file_len, &pos); in load_wavedata()
677 if (read_len != file_len) { in load_wavedata()
679 path, read_len, file_len); in load_wavedata()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/
Dbh.c1266 size_t read_len = 0; in xradio_bh() local
1557 read_len = (ctrl_reg & HIF_CTRL_NEXT_LEN_MASK)<<1; in xradio_bh()
1558 if (!read_len) { in xradio_bh()
1568 if (SYS_WARN((read_len < sizeof(struct wsm_hdr)) || in xradio_bh()
1569 (read_len > EFFECTIVE_BUF_SIZE))) { in xradio_bh()
1570 bh_printk(XRADIO_DBG_ERROR, "Invalid read len: %zu", read_len); in xradio_bh()
1586 read_len = read_len + 2; in xradio_bh()
1588 read_len); in xradio_bh()
1596 read_len, alloc_len); in xradio_bh()
1607 skb_put(skb_rx, read_len); in xradio_bh()
[all …]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/fm11nt081d/
Dfm11nt081d.c163 static hi_u32 WriteRead(hi_u16 cmd, hi_u8 send_len, hi_u8 read_len) in WriteRead() argument
176 status = i2c_func->pfn_i2c_read(id, C081_NFC_ADDR | I2C_RD, cmd, send_len, recvData, read_len); in WriteRead()
183 for (i = 0; i < read_len; i++) { in WriteRead()
/device/soc/beken/bk7235/hals/utils/file/src/
Dhal_file.c426 int read_len = 0; in FileRead() local
431 read_len = HalFileRead(fd,buf,len); in FileRead()
433 return read_len; in FileRead()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/based/mkp/src/
Dcmpi_log.c419 hi_s32 read_len = 0; in log_read() local
448 while ((!error) && (read_len < count) && in log_read()
470 read_len++; in log_read()
476 return read_len; in log_read()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/
Deink_buffer_manager.c70 __s32 read_len = 0; in __put_gary2buf() local
87 read_len = vfs_read(fp, buf, length, &pos); in __put_gary2buf()
88 if (read_len != length) { in __put_gary2buf()
90 read_len, length); in __put_gary2buf()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/drivers/uart/
Dhi_uart.c331 hi_s32 read_len = hi_uart_read(id, data, need_read_len); in hi_uart_read_timeout() local
332 if (read_len == -1) { in hi_uart_read_timeout()
336 data += read_len; in hi_uart_read_timeout()
337 need_read_len -= read_len; in hi_uart_read_timeout()
/device/soc/esp/esp32/components/hal/
Dspi_flash_hal_common.inc181 … spi_flash_hal_read(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len)
188 spi_flash_ll_set_miso_bitlen(dev, read_len * 8);
191 spi_flash_ll_get_buffer_data(dev, buffer, read_len);
/device/soc/esp/esp32/components/spi_flash/include/
Dmemspi_host_driver.h155 …t memspi_host_read(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len);
/device/soc/esp/esp32/components/hal/include/hal/
Dspi_flash_hal.h151 …spi_flash_hal_read(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len);
Dspi_flash_types.h158 … esp_err_t (*read)(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len);
/device/soc/esp/esp32/components/spi_flash/sim/stubs/soc/include/hal/
Dspi_flash_types.h109 … esp_err_t (*read)(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len);
/device/soc/amlogic/a311d/soc/amlogic/unifykey/
Dunifykey.c86 unsigned int read_len = 0; in key_storage_read() local
104 read_len = amlkey_read((u8 *)name, (u8 *)data, len); in key_storage_read()
105 if (read_len != len) { in key_storage_read()
106 pr_err("key[%s], want read %u Bytes, but %u bytes\n", name, len, read_len); in key_storage_read()
109 *real = read_len; in key_storage_read()
/device/board/isoftstone/yangfan/kernel/src/incl/linux/current/
Dsensor-dev.h153 int read_len; member
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/frame_provider/decoder/avs/
Davsp_trans.c1100 int read_len; member
2220 curr_stream->read_len = in slice_header()
5028 &(curr_stream->read_len), img->type); in process_long_cabac()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Ddhd_pcie.c2852 uint32 file_size = 0, read_len = 0; in dhdpcie_download_code_file() local
2912 read_len += len; in dhdpcie_download_code_file()
2913 if (read_len > file_size) { in dhdpcie_download_code_file()
2916 len, read_len, file_size, (len - (read_len - file_size)))); in dhdpcie_download_code_file()
2917 len -= (read_len - file_size); in dhdpcie_download_code_file()
2959 if (read_len >= file_size) { in dhdpcie_download_code_file()

12