Home
last modified time | relevance | path

Searched refs:totlen (Results 1 – 25 of 44) sorted by relevance

12

/linux-3.4.99/fs/jffs2/
Dscan.c332 uint32_t xid, version, totlen, crc; in jffs2_scan_xattr_node() local
339 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node()
347 totlen = PAD(sizeof(struct jffs2_raw_xattr) in jffs2_scan_xattr_node()
349 if (totlen != je32_to_cpu(rx->totlen)) { in jffs2_scan_xattr_node()
351 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node()
352 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node()
363 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); in jffs2_scan_xattr_node()
373 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd); in jffs2_scan_xattr_node()
395 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen))))) in jffs2_scan_xref_node()
400 if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) { in jffs2_scan_xref_node()
[all …]
Dsummary.c127 temp->totlen = ri->totlen; in jffs2_sum_add_inode_mem()
143 temp->totlen = rd->totlen; in jffs2_sum_add_dirent_mem()
170 temp->totlen = rx->totlen; in jffs2_sum_add_xattr_mem()
275 temp->totlen = node->i.totlen; in jffs2_sum_add_kvec()
289 temp->totlen = node->d.totlen; in jffs2_sum_add_kvec()
324 temp->totlen = node->x.totlen; in jffs2_sum_add_kvec()
344 c->summary->sum_padded += je32_to_cpu(node->u.totlen); in jffs2_sum_add_kvec()
416 jeb->offset + je32_to_cpu(spi->offset) + je32_to_cpu(spi->totlen)); in jffs2_sum_process_sum_data()
425 PAD(je32_to_cpu(spi->totlen)), ic); in jffs2_sum_process_sum_data()
441 jeb->offset + je32_to_cpu(spd->offset) + je32_to_cpu(spd->totlen)); in jffs2_sum_process_sum_data()
[all …]
Dxattr.c136 uint32_t crc, offset, totlen; in do_verify_xattr_datum() local
158 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum()
161 || je32_to_cpu(rx.totlen) != totlen in do_verify_xattr_datum()
168 je32_to_cpu(rx.totlen), totlen, in do_verify_xattr_datum()
183 totlen = PAD(ref_totlen(c, jeb, raw)); in do_verify_xattr_datum()
185 c->unchecked_size -= totlen; c->used_size += totlen; in do_verify_xattr_datum()
186 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in do_verify_xattr_datum()
287 int rc, totlen; in save_xattr_datum() local
297 totlen = vecs[0].iov_len + vecs[1].iov_len; in save_xattr_datum()
303 rx.totlen = cpu_to_je32(PAD(totlen)); in save_xattr_datum()
[all …]
Dsummary.h51 jint32_t totlen; /* record length */ member
57 jint32_t totlen; /* record length */ member
73 jint32_t totlen; /* node length */ member
106 jint32_t totlen; /* record length */ member
113 jint32_t totlen; /* record length */ member
130 jint32_t totlen; member
Dwrite.c46 ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); in jffs2_do_new_inode()
82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode()
84 __func__, je32_to_cpu(ri->totlen), in jffs2_write_dnode()
196 je32_to_cpu(ri->data_crc), je32_to_cpu(ri->totlen)); in jffs2_write_dnode()
376 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range()
511 rd->totlen = cpu_to_je32(sizeof(*rd) + qstr->len); in jffs2_do_create()
574 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_unlink()
691 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_link()
Ddir.c348 ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size); in jffs2_symlink()
414 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink()
558 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_mkdir()
679 ri->totlen = cpu_to_je32(sizeof(*ri) + devlen); in jffs2_mknod()
731 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_mknod()
Ddebug.c319 uint32_t totlen = ref_totlen(c, jeb, ref2); in __jffs2_dbg_acct_paranoia_check_nolock() local
329 my_unchecked_size += totlen; in __jffs2_dbg_acct_paranoia_check_nolock()
331 my_used_size += totlen; in __jffs2_dbg_acct_paranoia_check_nolock()
333 my_dirty_size += totlen; in __jffs2_dbg_acct_paranoia_check_nolock()
792 printk(JFFS2_DBG "totlen:\t%#08x\n", je32_to_cpu(node.u.totlen)); in __jffs2_dbg_dump_node()
Dgc.c795 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
841 rd.totlen = cpu_to_je32(sizeof(rd) + rd.nsize); in jffs2_garbage_collect_dirent()
1025 if (je32_to_cpu(ri.totlen) != sizeof(ri)) { in jffs2_garbage_collect_hole()
1028 je32_to_cpu(ri.totlen), sizeof(ri)); in jffs2_garbage_collect_hole()
1052 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_garbage_collect_hole()
1337 ri.totlen = cpu_to_je32(sizeof(ri) + cdatalen); in jffs2_garbage_collect_dnode()
Dreadinode.c627 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry()
629 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry()
744 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode()
893 je32_to_cpu(un->totlen), je32_to_cpu(un->hdr_crc)); in read_unknown()
1061 je32_to_cpu(node->u.totlen), in jffs2_get_inode_nodes()
/linux-3.4.99/include/linux/
Djffs2.h112 jint32_t totlen; /* So we can skip over nodes we don't grok */ member
120 jint32_t totlen; member
144 jint32_t totlen; /* Total length of this node (inc data, etc.) */ member
169 jint32_t totlen; member
185 jint32_t totlen; member
197 jint32_t totlen; member
/linux-3.4.99/include/net/
Dnexthop.h17 int totlen = NLA_ALIGN(rtnh->rtnh_len); in rtnh_next() local
19 *remaining -= totlen; in rtnh_next()
20 return (struct rtnexthop *) ((char *) rtnh + totlen); in rtnh_next()
Dnetlink.h361 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next() local
363 *remaining -= totlen; in nlmsg_next()
365 return (struct nlmsghdr *) ((unsigned char *) nlh + totlen); in nlmsg_next()
717 int totlen = NLA_ALIGN(nla->nla_len); in nla_next() local
719 *remaining -= totlen; in nla_next()
720 return (struct nlattr *) ((char *) nla + totlen); in nla_next()
/linux-3.4.99/drivers/net/ethernet/i825xx/
Dni52.c951 unsigned short totlen; in ni52_rcv_int() local
962 totlen = readw(&rbd->status); in ni52_rcv_int()
963 if (totlen & RBD_LAST) { in ni52_rcv_int()
965 totlen &= RBD_MASK; /* length of this frame */ in ni52_rcv_int()
967 skb = netdev_alloc_skb(dev, totlen + 2); in ni52_rcv_int()
970 skb_put(skb, totlen); in ni52_rcv_int()
971 memcpy_fromio(skb->data, p->base + readl(&rbd->buffer), totlen); in ni52_rcv_int()
975 dev->stats.rx_bytes += totlen; in ni52_rcv_int()
981 totlen = 0; in ni52_rcv_int()
983 totlen += rstat & RBD_MASK; in ni52_rcv_int()
[all …]
Dsun3_82586.c763 unsigned short totlen; in sun3_82586_rcv_int() local
777 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int()
779 totlen &= RBD_MASK; /* length of this frame */ in sun3_82586_rcv_int()
781 skb = netdev_alloc_skb(dev, totlen + 2); in sun3_82586_rcv_int()
785 skb_put(skb,totlen); in sun3_82586_rcv_int()
786 skb_copy_to_linear_data(skb,(char *) p->base+swab32((unsigned long) rbd->buffer),totlen); in sun3_82586_rcv_int()
798 totlen = 0; in sun3_82586_rcv_int()
801 totlen += rstat & RBD_MASK; in sun3_82586_rcv_int()
810 totlen += rstat & RBD_MASK; in sun3_82586_rcv_int()
812 printk("%s: received oversized frame! length: %d\n",dev->name,totlen); in sun3_82586_rcv_int()
D3c523.c974 unsigned short totlen; in elmc_rcv_int() local
983 if ((totlen = rbd->status) & RBD_LAST) { /* the first and the last buffer? */ in elmc_rcv_int()
984 totlen &= RBD_MASK; /* length of this frame */ in elmc_rcv_int()
986 skb = netdev_alloc_skb(dev, totlen + 2); in elmc_rcv_int()
989 skb_put(skb,totlen); in elmc_rcv_int()
990 skb_copy_to_linear_data(skb, (char *) p->base+(unsigned long) rbd->buffer,totlen); in elmc_rcv_int()
994 dev->stats.rx_bytes += totlen; in elmc_rcv_int()
/linux-3.4.99/net/netfilter/
Dxt_osf.c198 u16 window, totlen, mss = 0; in xt_osf_match_packet() local
215 totlen = ntohs(ip->tot_len); in xt_osf_match_packet()
236 if (totlen == f->ss && xt_osf_ttl(skb, info, f->ttl)) { in xt_osf_match_packet()
/linux-3.4.99/net/sunrpc/
Dsvc_xprt.c1166 int len, totlen; in svc_xprt_names() local
1176 totlen = 0; in svc_xprt_names()
1178 len = svc_one_xprt_name(xprt, pos, buflen - totlen); in svc_xprt_names()
1181 totlen = len; in svc_xprt_names()
1187 totlen += len; in svc_xprt_names()
1191 return totlen; in svc_xprt_names()
/linux-3.4.99/drivers/mtd/devices/
Ddoc2001.c279 this->totlen = this->numchips * (1 << this->chipshift); in DoC_ScanChips()
281 this->numchips ,this->totlen >> 20); in DoC_ScanChips()
364 if (!this->totlen) { in DoCMil_init()
370 mtd->size = this->totlen; in DoCMil_init()
Ddoc2001plus.c402 this->totlen = this->numchips * (1 << this->chipshift); in DoC_ScanChips()
404 this->numchips ,this->totlen >> 20); in DoC_ScanChips()
485 if (!this->totlen) { in DoCMilPlus_init()
491 mtd->size = this->totlen; in DoCMilPlus_init()
513 if (from >= this->totlen)
Ddoc2000.c470 this->totlen = this->numchips * (1 << this->chipshift); in DoC_ScanChips()
473 this->numchips, this->totlen >> 20); in DoC_ScanChips()
581 if (!this->totlen) { in DoC2k_init()
587 mtd->size = this->totlen; in DoC2k_init()
/linux-3.4.99/include/linux/mtd/
Ddoc2000.h183 unsigned long totlen; member
/linux-3.4.99/drivers/mtd/nand/
Dnand_bbt.c182 size_t retlen, len, totlen; in read_bbt() local
189 totlen = (num * bits) >> 3; in read_bbt()
193 while (totlen) { in read_bbt()
194 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt()
248 totlen -= len; in read_bbt()
/linux-3.4.99/drivers/mtd/chips/
Dcfi_cmdset_0020.c669 size_t totlen = 0, thislen; in cfi_staa_writev() local
698 totlen += thislen; in cfi_staa_writev()
708 totlen += thislen; in cfi_staa_writev()
722 totlen += thislen; in cfi_staa_writev()
728 *retlen = totlen; in cfi_staa_writev()
/linux-3.4.99/drivers/mtd/
Dmtdcore.c953 size_t totlen = 0, thislen; in default_mtd_writev() local
961 totlen += thislen; in default_mtd_writev()
966 *retlen = totlen; in default_mtd_writev()
/linux-3.4.99/fs/gfs2/
Ddir.c442 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_space() local
446 if (totlen - actual >= required) in gfs2_dirent_find_space()
687 unsigned offset = 0, totlen; in gfs2_init_dirent() local
691 totlen = be16_to_cpu(dent->de_rec_len); in gfs2_init_dirent()
692 BUG_ON(offset + name->len > totlen); in gfs2_init_dirent()
696 gfs2_qstr2dirent(name, totlen - offset, ndent); in gfs2_init_dirent()

12