| /linux/fs/jffs2/ |
| H A D | scan.c | 337 uint32_t xid, version, totlen, crc; in jffs2_scan_xattr_node() local 344 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node() 352 totlen = PAD(sizeof(struct jffs2_raw_xattr) in jffs2_scan_xattr_node() 354 if (totlen != je32_to_cpu(rx->totlen)) { in jffs2_scan_xattr_node() 356 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node() 357 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node() 368 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); in jffs2_scan_xattr_node() 378 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd); in jffs2_scan_xattr_node() 400 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen))))) in jffs2_scan_xref_node() 405 if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) { in jffs2_scan_xref_node() [all …]
|
| H A D | summary.c | 127 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 …]
|
| H A D | xattr.c | 139 uint32_t crc, offset, totlen; in do_verify_xattr_datum() local 161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum() 164 || je32_to_cpu(rx.totlen) != totlen in do_verify_xattr_datum() 171 je32_to_cpu(rx.totlen), totlen, in do_verify_xattr_datum() 186 totlen = PAD(ref_totlen(c, jeb, raw)); in do_verify_xattr_datum() 188 c->unchecked_size -= totlen; c->used_size += totlen; in do_verify_xattr_datum() 189 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in do_verify_xattr_datum() 290 int rc, totlen; in save_xattr_datum() local 300 totlen = vecs[0].iov_len + vecs[1].iov_len; in save_xattr_datum() 306 rx.totlen = cpu_to_je32(PAD(totlen)); in save_xattr_datum() [all …]
|
| H A D | summary.h | 51 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
|
| H A D | write.c | 46 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() 377 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range() 512 rd->totlen = cpu_to_je32(sizeof(*rd) + qstr->len); in jffs2_do_create() 575 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_unlink() 692 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_link()
|
| H A D | debug.c | 319 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()
|
| H A D | gc.c | 815 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata() 861 rd.totlen = cpu_to_je32(sizeof(rd) + rd.nsize); in jffs2_garbage_collect_dirent() 1045 if (je32_to_cpu(ri.totlen) != sizeof(ri)) { in jffs2_garbage_collect_hole() 1048 je32_to_cpu(ri.totlen), sizeof(ri)); in jffs2_garbage_collect_hole() 1072 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_garbage_collect_hole() 1364 ri.totlen = cpu_to_je32(sizeof(ri) + cdatalen); in jffs2_garbage_collect_dnode()
|
| H A D | readinode.c | 610 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry() 612 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry() 747 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode() 896 je32_to_cpu(un->totlen), je32_to_cpu(un->hdr_crc)); in read_unknown() 1064 je32_to_cpu(node->u.totlen), in jffs2_get_inode_nodes()
|
| /linux/include/uapi/linux/ |
| H A D | jffs2.h | 107 jint32_t totlen; /* So we can skip over nodes we don't grok */ member 115 jint32_t totlen; member 139 jint32_t totlen; /* Total length of this node (inc data, etc.) */ member 164 jint32_t totlen; member 180 jint32_t totlen; member 192 jint32_t totlen; member
|
| /linux/net/ife/ |
| H A D | ife.c | 128 u16 *dlen, u16 *totlen) in ife_tlv_meta_decode() argument 139 if (totlen) in ife_tlv_meta_decode() 140 *totlen = nla_total_size(*dlen); in ife_tlv_meta_decode() 162 u16 totlen = nla_total_size(dlen); /*alignment + hdr */ in ife_tlv_meta_encode() local 167 memset(dptr, 0, totlen - NLA_HDRLEN); in ife_tlv_meta_encode() 170 return totlen; in ife_tlv_meta_encode()
|
| /linux/include/net/ |
| H A D | rtnh.h | 18 int totlen = NLA_ALIGN(rtnh->rtnh_len); in rtnh_next() local 20 *remaining -= totlen; in rtnh_next() 21 return (struct rtnexthop *) ((char *) rtnh + totlen); in rtnh_next()
|
| H A D | ife.h | 15 u16 *dlen, u16 *totlen); 34 u16 *totlen) in ife_tlv_meta_decode() argument
|
| H A D | netlink.h | 683 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next() local 685 *remaining -= totlen; in nlmsg_next() 687 return (struct nlmsghdr *) ((unsigned char *) nlh + totlen); in nlmsg_next() 1321 unsigned int totlen = NLA_ALIGN(nla->nla_len); in nla_next() local 1323 *remaining -= totlen; in nla_next() 1324 return (struct nlattr *) ((char *) nla + totlen); in nla_next()
|
| /linux/tools/lib/bpf/ |
| H A D | nlattr.c | 27 int totlen = NLA_ALIGN(nla->nla_len); in nla_next() local 29 *remaining -= totlen; in nla_next() 30 return (struct nlattr *)((void *)nla + totlen); in nla_next()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify.h | 181 unsigned int totlen) in fanotify_info_set_dir_fh() argument 189 info->dir_fh_totlen = totlen; in fanotify_info_set_dir_fh() 193 unsigned int totlen) in fanotify_info_set_dir2_fh() argument 200 info->dir2_fh_totlen = totlen; in fanotify_info_set_dir2_fh() 204 unsigned int totlen) in fanotify_info_set_file_fh() argument 210 info->file_fh_totlen = totlen; in fanotify_info_set_file_fh()
|
| /linux/drivers/net/ethernet/rocker/ |
| H A D | rocker_tlv.h | 32 int totlen = ROCKER_TLV_ALIGN(tlv->len); in rocker_tlv_next() local 34 *remaining -= totlen; in rocker_tlv_next() 35 return (struct rocker_tlv *) ((char *) tlv + totlen); in rocker_tlv_next()
|
| /linux/drivers/net/ethernet/i825xx/ |
| H A D | sun3_82586.c | 760 unsigned short totlen; in sun3_82586_rcv_int() local 774 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int() 776 totlen &= RBD_MASK; /* length of this frame */ in sun3_82586_rcv_int() 778 skb = netdev_alloc_skb(dev, totlen + 2); in sun3_82586_rcv_int() 782 skb_put(skb,totlen); in sun3_82586_rcv_int() 783 skb_copy_to_linear_data(skb,(char *) p->base+swab32((unsigned long) rbd->buffer),totlen); in sun3_82586_rcv_int() 795 totlen = 0; in sun3_82586_rcv_int() 798 totlen += rstat & RBD_MASK; in sun3_82586_rcv_int() 807 totlen += rstat & RBD_MASK; in sun3_82586_rcv_int() 809 printk("%s: received oversized frame! length: %d\n",dev->name,totlen); in sun3_82586_rcv_int()
|
| /linux/net/netfilter/ |
| H A D | nfnetlink_osf.c | 59 u16 totlen; member 75 if (ctx->totlen != f->ss || !nf_osf_ttl(skb, ttl_check, f->ttl)) in nf_osf_match_one() 180 ctx->totlen = ntohs(ip->tot_len); in nf_osf_hdr_ctx_init()
|
| /linux/net/sunrpc/ |
| H A D | svc_xprt.c | 1382 int len, totlen; in svc_xprt_names() local 1392 totlen = 0; in svc_xprt_names() 1394 len = svc_one_xprt_name(xprt, pos, buflen - totlen); in svc_xprt_names() 1397 totlen = len; in svc_xprt_names() 1403 totlen += len; in svc_xprt_names() 1407 return totlen; in svc_xprt_names()
|
| /linux/fs/gfs2/ |
| H A D | dir.c | 450 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_offset() local 452 if (ptr < (void *)dent || ptr >= (void *)dent + totlen) in gfs2_dirent_find_offset() 458 if ((void *)dent + totlen >= ptr + required) in gfs2_dirent_find_offset() 469 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_space() local 473 if (totlen - actual >= required) in gfs2_dirent_find_space() 717 unsigned totlen; in do_init_dirent() local 719 totlen = be16_to_cpu(dent->de_rec_len); in do_init_dirent() 720 BUG_ON(offset + name->len > totlen); in do_init_dirent() 724 gfs2_qstr2dirent(name, totlen - offset, ndent); in do_init_dirent()
|
| /linux/include/linux/mtd/ |
| H A D | doc2000.h | 183 unsigned long totlen; member
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_bbt.c | 171 size_t retlen, len, totlen; in read_bbt() local 178 totlen = (num * bits) >> 3; in read_bbt() 182 while (totlen) { in read_bbt() 183 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt() 242 totlen -= len; in read_bbt()
|
| /linux/drivers/mtd/chips/ |
| H A D | cfi_cmdset_0020.c | 668 size_t totlen = 0, thislen; in cfi_staa_writev() local 697 totlen += thislen; in cfi_staa_writev() 707 totlen += thislen; in cfi_staa_writev() 721 totlen += thislen; in cfi_staa_writev() 727 *retlen = totlen; in cfi_staa_writev()
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | sdio.h | 328 struct sk_buff_head *pktq, uint totlen);
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bnad.c | 526 u32 ci, pi, totlen = 0; in bnad_cq_setup_skb_frags() local 554 totlen += len; in bnad_cq_setup_skb_frags() 566 skb->len += totlen; in bnad_cq_setup_skb_frags() 567 skb->data_len += totlen; in bnad_cq_setup_skb_frags() 597 u32 packets = 0, len = 0, totlen = 0; in bnad_cq_process() local 642 totlen = len; in bnad_cq_process() 672 totlen += len; in bnad_cq_process() 696 rcb->rxq->rx_bytes += totlen; in bnad_cq_process() 697 ccb->bytes_per_intr += totlen; in bnad_cq_process()
|