Home
last modified time | relevance | path

Searched refs:readlen (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/fs/jffs2/
Dread.c28 size_t readlen; in jffs2_read_dnode() local
38 ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); in jffs2_read_dnode()
45 if (readlen != sizeof(*ri)) { in jffs2_read_dnode()
48 ref_offset(fd->raw), sizeof(*ri), readlen); in jffs2_read_dnode()
116 je32_to_cpu(ri->csize), &readlen, readbuf); in jffs2_read_dnode()
118 if (!ret && readlen != je32_to_cpu(ri->csize)) in jffs2_read_dnode()
202 uint32_t readlen; in jffs2_read_inode_range() local
206 readlen = min(frag->size - fragofs, end - offset); in jffs2_read_inode_range()
209 frag->ofs + fragofs+readlen, in jffs2_read_inode_range()
212 ret = jffs2_read_dnode(c, f, frag->node, buf, fragofs + frag->ofs - frag->node->ofs, readlen); in jffs2_read_inode_range()
[all …]
Derase.c362 uint32_t readlen = min((uint32_t)PAGE_SIZE, jeb->offset + c->sector_size - ofs); in jffs2_block_check_erase() local
367 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase()
374 if (retlen != readlen) { in jffs2_block_check_erase()
376 ofs, readlen, retlen); in jffs2_block_check_erase()
380 for (i=0; i<readlen; i += sizeof(unsigned long)) { in jffs2_block_check_erase()
391 ofs += readlen; in jffs2_block_check_erase()
Dxattr.c138 size_t readlen; in do_verify_xattr_datum() local
148 rc = jffs2_flash_read(c, offset, sizeof(rx), &readlen, (char *)&rx); in do_verify_xattr_datum()
149 if (rc || readlen != sizeof(rx)) { in do_verify_xattr_datum()
151 rc, sizeof(rx), readlen, offset); in do_verify_xattr_datum()
208 size_t readlen; in do_load_xattr_datum() local
221 length, &readlen, data); in do_load_xattr_datum()
223 if (ret || length!=readlen) { in do_load_xattr_datum()
225 ret, length, readlen, ref_offset(xd->node)); in do_load_xattr_datum()
449 size_t readlen; in verify_xattr_ref() local
459 rc = jffs2_flash_read(c, offset, sizeof(rr), &readlen, (char *)&rr); in verify_xattr_ref()
[all …]
Dgc.c1029 size_t readlen; in jffs2_garbage_collect_hole() local
1033 ret = jffs2_flash_read(c, ref_offset(fn->raw), sizeof(ri), &readlen, (char *)&ri); in jffs2_garbage_collect_hole()
1034 if (readlen != sizeof(ri) || ret) { in jffs2_garbage_collect_hole()
1036 ret, readlen); in jffs2_garbage_collect_hole()
/kernel/linux/linux-5.10/drivers/mtd/nand/onenand/
Donenand_bbt.c63 size_t readlen, ooblen; in create_bbt() local
73 readlen = bd->len; in create_bbt()
84 ops.ooblen = readlen; in create_bbt()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-xgene-slimpro.c245 u32 readlen, u32 *data) in slimpro_i2c_rd() argument
250 SLIMPRO_IIC_READ, protocol, addrlen, readlen); in slimpro_i2c_rd()
272 u32 addrlen, u32 protocol, u32 readlen, in slimpro_i2c_blkrd() argument
279 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, readlen, DMA_FROM_DEVICE); in slimpro_i2c_blkrd()
287 protocol, addrlen, readlen); in slimpro_i2c_blkrd()
297 memcpy(data, ctx->dma_buffer, readlen); in slimpro_i2c_blkrd()
299 dma_unmap_single(ctx->dev, paddr, readlen, DMA_FROM_DEVICE); in slimpro_i2c_blkrd()
/kernel/linux/linux-5.10/drivers/platform/x86/
Dintel_telemetry_pltdrv.c919 int index, idx1, ret, readlen = len; in telemetry_plt_raw_read_eventlog() local
938 readlen = TELEM_MAX_EVENTS_SRAM; in telemetry_plt_raw_read_eventlog()
940 ret = telem_evtlog_read(telem_unit, &ssram_region, readlen); in telemetry_plt_raw_read_eventlog()
954 for (index = 0, readlen = 0; (index < ret) && (readlen < len); in telemetry_plt_raw_read_eventlog()
962 readlen++; in telemetry_plt_raw_read_eventlog()
969 return readlen; in telemetry_plt_raw_read_eventlog()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dsx8654.c140 u8 readlen = nchan * sizeof(*data); in sx8650_irq() local
150 len = i2c_master_recv(ts->client, (u8 *)data, readlen); in sx8650_irq()
151 if (len != readlen) { in sx8650_irq()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dnand_toshiba.c110 uint32_t readlen, uint8_t *bufpoi, int page) in toshiba_nand_read_subpage_benand() argument
115 bufpoi + data_offs, readlen); in toshiba_nand_read_subpage_benand()
Dnand_base.c2777 uint32_t readlen, uint8_t *bufpoi, int page) in nand_read_subpage() argument
2791 end_step = (data_offs + readlen - 1) / chip->ecc.size; in nand_read_subpage()
3121 uint32_t readlen = ops->len; in nand_do_read_ops() local
3146 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
3244 readlen -= bytes; in nand_do_read_ops()
3254 if (!readlen) in nand_do_read_ops()
3272 ops->retlen = ops->len - (size_t) readlen; in nand_do_read_ops()
3454 int readlen = ops->ooblen; in nand_do_read_oob() local
3460 __func__, (unsigned long long)from, readlen); in nand_do_read_oob()
3482 len = min(len, readlen); in nand_do_read_oob()
[all …]
Dsunxi_nand.c1146 u32 data_offs, u32 readlen, in sunxi_nfc_hw_ecc_read_subpage() argument
1161 i < DIV_ROUND_UP(data_offs + readlen, ecc->size); i++) { in sunxi_nfc_hw_ecc_read_subpage()
1182 u32 data_offs, u32 readlen, in sunxi_nfc_hw_ecc_read_subpage_dma() argument
1185 int nchunks = DIV_ROUND_UP(data_offs + readlen, nand->ecc.size); in sunxi_nfc_hw_ecc_read_subpage_dma()
1197 return sunxi_nfc_hw_ecc_read_subpage(nand, data_offs, readlen, in sunxi_nfc_hw_ecc_read_subpage_dma()
Dmtk_nand.c941 u32 data_offs, u32 readlen, in mtk_nfc_read_subpage() argument
956 end = DIV_ROUND_UP(data_offs + readlen, chip->ecc.size); in mtk_nfc_read_subpage()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-npcm-fiu.c471 int i, readlen, currlen; in npcm_fiu_read() local
482 readlen = currlen; in npcm_fiu_read()
484 readlen = 16; in npcm_fiu_read()
488 readlen); in npcm_fiu_read()
492 i += readlen; in npcm_fiu_read()
/kernel/linux/linux-5.10/drivers/firmware/tegra/
Dbpmp-debugfs.c215 if (resp.frd.readlen > remaining) { in mrq_debug_read()
221 memcpy(data, resp.frd.data, resp.frd.readlen); in mrq_debug_read()
222 data += resp.frd.readlen; in mrq_debug_read()
223 remaining -= resp.frd.readlen; in mrq_debug_read()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/
Dusb.c672 ar->readlen = outlen; in carl9170_exec_cmd()
685 if (ar->readlen != outlen) { in carl9170_exec_cmd()
709 ar->readlen = 0; in carl9170_exec_cmd()
782 ar->readlen = 0; in carl9170_usb_stop()
Drx.c136 if (unlikely(ar->readlen != (len - 4))) { in carl9170_cmd_callback()
138 "got %d, instead of %d\n", len - 4, ar->readlen); in carl9170_cmd_callback()
Dcarl9170.h374 int readlen; member
/kernel/linux/linux-5.10/scripts/
Dasn1_compiler.c563 ssize_t readlen; in main() local
610 if ((readlen = read(fd, buffer, st.st_size)) < 0) { in main()
620 if (readlen != st.st_size) { in main()
636 buffer[readlen] = 0; in main()
637 tokenise(buffer, buffer + readlen); in main()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1071 __le16 readlen; in nfp_nsp_read_module_eeprom() member
1093 *read_len = min_t(unsigned int, len, le16_to_cpu(buf->readlen)); in nfp_nsp_read_module_eeprom()
/kernel/linux/linux-5.10/include/soc/tegra/
Dbpmp-abi.h792 uint32_t readlen; member
/kernel/linux/linux-5.10/drivers/net/wireless/cisco/
Dairo.c4537 int readlen; member
4650 priv->readlen); in proc_read()
4739 data->readlen = strlen(data->rbuffer); in proc_status_open()
4795 data->readlen = j; in proc_stats_rid_open()
5120 data->readlen = strlen(data->rbuffer); in proc_config_open()
5389 data->readlen = strlen(data->rbuffer); in proc_wepkey_open()
5433 data->readlen = strlen(data->rbuffer); in proc_SSID_open()
5472 data->readlen = strlen(data->rbuffer); in proc_APList_open()
5518 data->readlen = 0; in proc_BSSList_open()
5543 data->readlen = strlen(data->rbuffer); in proc_BSSList_open()
/kernel/liteos_a/fs/jffs2/
Djffs2.patch2289 - ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf);
2290 + ret = jffs2_flash_read(c, ofs, readlen, &retlen, ebuf);
2296 for (i=0; i<readlen; i += sizeof(unsigned long)) {
5199 - je32_to_cpu(ri->csize), &readlen, readbuf);
5200 + je32_to_cpu(ri->csize), &readlen, (char *)readbuf);
5202 if (!ret && readlen != je32_to_cpu(ri->csize))
5251 - memset(buf, 0, readlen);
5252 + (void)LOS_UserMemClear(buf, readlen);
5255 buf += readlen;
8809 - size_t readlen;
[all …]
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch25286 + uint32_t keylen, uint32_t *readlen);
53072 + u32 keylen, u32 *readlen)
53098 + *readlen = *output;
53099 + if (*readlen > keylen)
53100 + *readlen = keylen;
53102 + memcpy(keybuf, buf, *readlen);
53331 +unsigned long secure_storage_read(u8 *name, u8 *buf, u32 len, u32 *readlen);