Home
last modified time | relevance | path

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

/linux-6.12.1/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.c360 uint32_t readlen = min((uint32_t)PAGE_SIZE, jeb->offset + c->sector_size - ofs); in jffs2_block_check_erase() local
365 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase()
372 if (retlen != readlen) { in jffs2_block_check_erase()
374 ofs, readlen, retlen); in jffs2_block_check_erase()
378 for (i=0; i<readlen; i += sizeof(unsigned long)) { in jffs2_block_check_erase()
389 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()
/linux-6.12.1/drivers/i2c/busses/
Di2c-xgene-slimpro.c237 u32 readlen, u32 *data) in slimpro_i2c_rd() argument
242 SLIMPRO_IIC_READ, protocol, addrlen, readlen); in slimpro_i2c_rd()
264 u32 addrlen, u32 protocol, u32 readlen, in slimpro_i2c_blkrd() argument
271 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, readlen, DMA_FROM_DEVICE); in slimpro_i2c_blkrd()
279 protocol, addrlen, readlen); in slimpro_i2c_blkrd()
289 memcpy(data, ctx->dma_buffer, readlen); in slimpro_i2c_blkrd()
291 dma_unmap_single(ctx->dev, paddr, readlen, DMA_FROM_DEVICE); in slimpro_i2c_blkrd()
/linux-6.12.1/drivers/mtd/nand/onenand/
Donenand_bbt.c63 size_t readlen; in create_bbt() local
73 readlen = bd->len; in create_bbt()
84 ops.ooblen = readlen; in create_bbt()
/linux-6.12.1/drivers/firmware/tegra/
Dbpmp-debugfs.c220 if (resp.frd.readlen > remaining) { in mrq_debug_read()
226 memcpy(data, resp.frd.data, resp.frd.readlen); in mrq_debug_read()
227 data += resp.frd.readlen; in mrq_debug_read()
228 remaining -= resp.frd.readlen; in mrq_debug_read()
347 if (resp.frd.readlen > remaining) { in bpmp_debug_show()
353 seq_write(m, resp.frd.data, resp.frd.readlen); in bpmp_debug_show()
354 remaining -= resp.frd.readlen; in bpmp_debug_show()
/linux-6.12.1/scripts/
Dkallsyms.c126 ssize_t readlen; in read_symbol() local
130 readlen = getline(buf, buf_len, in); in read_symbol()
131 if (readlen < 0) { in read_symbol()
139 if ((*buf)[readlen - 1] == '\n') in read_symbol()
140 (*buf)[readlen - 1] = 0; in read_symbol()
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()
/linux-6.12.1/drivers/platform/x86/intel/telemetry/
Dpltdrv.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()
/linux-6.12.1/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()
/linux-6.12.1/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.c3122 uint32_t readlen, uint8_t *bufpoi, int page) in nand_read_subpage() argument
3136 end_step = (data_offs + readlen - 1) / chip->ecc.size; in nand_read_subpage()
3487 u32 readlen, int col) in rawnand_enable_cont_reads() argument
3501 if (readlen < (2 * mtd->writesize)) in rawnand_enable_cont_reads()
3510 last_page = page + ((col + readlen) / mtd->writesize) - 1; in rawnand_enable_cont_reads()
3578 uint32_t readlen = ops->len; in nand_do_read_ops() local
3589 if (nand_region_is_secured(chip, from, readlen)) in nand_do_read_ops()
3605 rawnand_enable_cont_reads(chip, page, readlen, col); in nand_do_read_ops()
3610 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
3710 readlen -= bytes; in nand_do_read_ops()
[all …]
Dsunxi_nand.c1150 u32 data_offs, u32 readlen, in sunxi_nfc_hw_ecc_read_subpage() argument
1165 i < DIV_ROUND_UP(data_offs + readlen, ecc->size); i++) { in sunxi_nfc_hw_ecc_read_subpage()
1186 u32 data_offs, u32 readlen, in sunxi_nfc_hw_ecc_read_subpage_dma() argument
1189 int nchunks = DIV_ROUND_UP(data_offs + readlen, nand->ecc.size); in sunxi_nfc_hw_ecc_read_subpage_dma()
1201 return sunxi_nfc_hw_ecc_read_subpage(nand, data_offs, readlen, in sunxi_nfc_hw_ecc_read_subpage_dma()
Dmtk_nand.c940 u32 data_offs, u32 readlen, in mtk_nfc_read_subpage() argument
955 end = DIV_ROUND_UP(data_offs + readlen, chip->ecc.size); in mtk_nfc_read_subpage()
/linux-6.12.1/drivers/spi/
Dspi-npcm-fiu.c491 int i, readlen, currlen; in npcm_fiu_read() local
502 readlen = currlen; in npcm_fiu_read()
504 readlen = 16; in npcm_fiu_read()
508 readlen); in npcm_fiu_read()
512 i += readlen; in npcm_fiu_read()
/linux-6.12.1/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
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1072 __le16 readlen; in nfp_nsp_read_module_eeprom() member
1094 *read_len = min_t(unsigned int, len, le16_to_cpu(buf->readlen)); in nfp_nsp_read_module_eeprom()
/linux-6.12.1/include/soc/tegra/
Dbpmp-abi.h777 uint32_t readlen; member