Lines Matching refs:csize
38 BUG_ON(tn->csize == 0);
42 len = tn->csize;
49 if (adj >= tn->csize) {
51 ref_offset(ref), tn->csize, ofs);
60 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);
714 uint32_t len, csize;
736 csize = je32_to_cpu(rd->csize);
743 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) {
750 if (jffs2_is_writebuffered(c) && csize != 0) {
791 len = min_t(uint32_t, rdlen - sizeof(*rd), csize);
794 dbg_readinode("Calculates CRC (%#08x) for %d bytes, csize %d\n", tn->partial_crc, len, csize);
798 if (len >= csize && unlikely(tn->partial_crc != je32_to_cpu(rd->data_crc))) {
805 } else if (csize == 0) {
838 tn->csize = csize;
846 csize/dsize swapped. Deal with it */
847 if (rd->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(rd->dsize) && csize)
848 tn->fn->size = csize;
852 dbg_readinode2("dnode @%08x: ver %u, offset %#04x, dsize %#04x, csize %#04x\n",
854 je32_to_cpu(rd->offset), je32_to_cpu(rd->dsize), csize);
1259 f->target = kmalloc(je32_to_cpu(latest_node->csize) + 1, GFP_KERNEL);
1261 JFFS2_ERROR("can't allocate %d bytes of memory for the symlink target path cache\n", je32_to_cpu(latest_node->csize));
1268 je32_to_cpu(latest_node->csize), &retlen, (char *)f->target);
1270 if (ret || retlen != je32_to_cpu(latest_node->csize)) {
1271 if (retlen != je32_to_cpu(latest_node->csize))
1280 f->target[je32_to_cpu(latest_node->csize)] = '\0';