Lines Matching defs:csize
40 BUG_ON(tn->csize == 0);
44 len = tn->csize;
51 if (adj >= tn->csize) {
53 ref_offset(ref), tn->csize, ofs);
62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len);
69 JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize);
718 uint32_t len, csize;
740 csize = je32_to_cpu(rd->csize);
747 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) {
754 if (jffs2_is_writebuffered(c) && csize != 0) {
795 len = min_t(uint32_t, rdlen - sizeof(*rd), csize);
798 dbg_readinode("Calculates CRC (%#08x) for %d bytes, csize %d\n", tn->partial_crc, len, csize);
802 if (len >= csize && unlikely(tn->partial_crc != je32_to_cpu(rd->data_crc))) {
809 } else if (csize == 0) {
842 tn->csize = csize;
850 csize/dsize swapped. Deal with it */
851 if (rd->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(rd->dsize) && csize)
852 tn->fn->size = csize;
856 dbg_readinode2("dnode @%08x: ver %u, offset %#04x, dsize %#04x, csize %#04x\n",
858 je32_to_cpu(rd->offset), je32_to_cpu(rd->dsize), csize);
1268 uint32_t csize = je32_to_cpu(latest_node->csize);
1269 if (csize > JFFS2_MAX_NAME_LEN)
1271 f->target = kmalloc(csize + 1, GFP_KERNEL);
1273 JFFS2_ERROR("can't allocate %u bytes of memory for the symlink target path cache\n", csize);
1278 csize, &retlen, (char *)f->target);
1280 if (ret || retlen != csize) {
1281 if (retlen != csize)
1288 f->target[csize] = '\0';