be16_to_cpu 78 fs/affs/inode.c id = be16_to_cpu(tail->uid); be16_to_cpu 86 fs/affs/inode.c id = be16_to_cpu(tail->gid); be16_to_cpu 56 fs/befs/endian.h return be16_to_cpu((__force __be16)n); be16_to_cpu 81 fs/befs/endian.h run.start = be16_to_cpu((__force __be16)n.start); be16_to_cpu 82 fs/befs/endian.h run.len = be16_to_cpu((__force __be16)n.len); be16_to_cpu 251 fs/dlm/dir.c namelen = be16_to_cpu(v); be16_to_cpu 56 fs/efs/dir.c if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { be16_to_cpu 99 fs/efs/inode.c inode->i_mode = be16_to_cpu(efs_inode->di_mode); be16_to_cpu 100 fs/efs/inode.c inode->i_nlink = be16_to_cpu(efs_inode->di_nlink); be16_to_cpu 101 fs/efs/inode.c inode->i_uid = (uid_t)be16_to_cpu(efs_inode->di_uid); be16_to_cpu 102 fs/efs/inode.c inode->i_gid = (gid_t)be16_to_cpu(efs_inode->di_gid); be16_to_cpu 116 fs/efs/inode.c rdev = be16_to_cpu(efs_inode->di_u.di_dev.odev); be16_to_cpu 127 fs/efs/inode.c in->numextents = be16_to_cpu(efs_inode->di_numextents); be16_to_cpu 39 fs/efs/namei.c if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { be16_to_cpu 239 fs/efs/super.c sb->inode_blocks = be16_to_cpu(super->fs_cgisize); be16_to_cpu 240 fs/efs/super.c sb->total_groups = be16_to_cpu(super->fs_ncg); be16_to_cpu 352 fs/gfs2/dir.c be16_to_cpu(dent->de_name_len) == name->len && be16_to_cpu 381 fs/gfs2/dir.c const char *end = (const char *)dent + be16_to_cpu(dent->de_rec_len); be16_to_cpu 392 fs/gfs2/dir.c unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); be16_to_cpu 393 fs/gfs2/dir.c unsigned totlen = be16_to_cpu(dent->de_rec_len); be16_to_cpu 444 fs/gfs2/dir.c unlikely(sizeof(struct gfs2_dirent)+be16_to_cpu(dent->de_name_len) > be16_to_cpu 495 fs/gfs2/dir.c size = be16_to_cpu(dent->de_rec_len); be16_to_cpu 507 fs/gfs2/dir.c size = be16_to_cpu(dent->de_rec_len); be16_to_cpu 565 fs/gfs2/dir.c u16 rec_len = be16_to_cpu(d->de_rec_len); be16_to_cpu 647 fs/gfs2/dir.c prev_rec_len = be16_to_cpu(prev->de_rec_len); be16_to_cpu 648 fs/gfs2/dir.c cur_rec_len = be16_to_cpu(cur->de_rec_len); be16_to_cpu 673 fs/gfs2/dir.c offset = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); be16_to_cpu 674 fs/gfs2/dir.c totlen = be16_to_cpu(dent->de_rec_len); be16_to_cpu 891 fs/gfs2/dir.c dent->de_rec_len = cpu_to_be16(be16_to_cpu(dent->de_rec_len) + be16_to_cpu 955 fs/gfs2/dir.c if (dip->i_depth == be16_to_cpu(oleaf->lf_depth)) { be16_to_cpu 962 fs/gfs2/dir.c nleaf = new_leaf(inode, &nbh, be16_to_cpu(oleaf->lf_depth) + 1); be16_to_cpu 970 fs/gfs2/dir.c len = 1 << (dip->i_depth - be16_to_cpu(oleaf->lf_depth)); be16_to_cpu 973 fs/gfs2/dir.c printk(KERN_WARNING "i_depth %u lf_depth %u index %u\n", dip->i_depth, be16_to_cpu(oleaf->lf_depth), index); be16_to_cpu 1014 fs/gfs2/dir.c str.len = be16_to_cpu(dent->de_name_len); be16_to_cpu 1167 fs/gfs2/dir.c unsigned int len_a = be16_to_cpu(dent_a->de_name_len); be16_to_cpu 1168 fs/gfs2/dir.c unsigned int len_b = be16_to_cpu(dent_b->de_name_len); be16_to_cpu 1242 fs/gfs2/dir.c be16_to_cpu(dent->de_name_len), be16_to_cpu 1244 fs/gfs2/dir.c be16_to_cpu(dent->de_type)); be16_to_cpu 1283 fs/gfs2/dir.c *depth = be16_to_cpu(lf->lf_depth); be16_to_cpu 1284 fs/gfs2/dir.c entries += be16_to_cpu(lf->lf_entries); be16_to_cpu 1315 fs/gfs2/dir.c entries2 += be16_to_cpu(lf->lf_entries); be16_to_cpu 1502 fs/gfs2/dir.c be16_to_cpu(dent->de_type), be16_to_cpu 1529 fs/gfs2/dir.c be16_to_cpu(dent->de_type))) { be16_to_cpu 1568 fs/gfs2/dir.c leaf = new_leaf(inode, &bh, be16_to_cpu(oleaf->lf_depth)); be16_to_cpu 1690 fs/gfs2/dir.c dent = (struct gfs2_dirent *)((char *)dent + be16_to_cpu(prev->de_rec_len)); be16_to_cpu 1696 fs/gfs2/dir.c u16 entries = be16_to_cpu(leaf->lf_entries); be16_to_cpu 1818 fs/gfs2/dir.c len = 1 << (dip->i_depth - be16_to_cpu(leaf->lf_depth)); be16_to_cpu 294 fs/gfs2/inode.c height = be16_to_cpu(str->di_height); be16_to_cpu 299 fs/gfs2/inode.c depth = be16_to_cpu(str->di_depth); be16_to_cpu 33 fs/hfs/bnode.c return be16_to_cpu(data); be16_to_cpu 144 fs/hfs/bnode.c desc.type, desc.height, be16_to_cpu(desc.num_recs)); be16_to_cpu 147 fs/hfs/bnode.c for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { be16_to_cpu 343 fs/hfs/bnode.c node->num_recs = be16_to_cpu(desc->num_recs); be16_to_cpu 25 fs/hfs/brec.c *off = be16_to_cpu(retval[1]); be16_to_cpu 26 fs/hfs/brec.c return be16_to_cpu(retval[0]) - *off; be16_to_cpu 75 fs/hfs/btree.c tree->node_size = be16_to_cpu(head->node_size); be16_to_cpu 76 fs/hfs/btree.c tree->max_key_len = be16_to_cpu(head->max_key_len); be16_to_cpu 77 fs/hfs/btree.c tree->depth = be16_to_cpu(head->depth); be16_to_cpu 66 fs/hfs/extent.c return be16_to_cpu(block1) < be16_to_cpu(block2) ? -1 : 1; be16_to_cpu 80 fs/hfs/extent.c count = be16_to_cpu(ext->count); be16_to_cpu 82 fs/hfs/extent.c return be16_to_cpu(ext->block) + off; be16_to_cpu 95 fs/hfs/extent.c count += be16_to_cpu(ext->count); be16_to_cpu 107 fs/hfs/extent.c return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); be16_to_cpu 170 fs/hfs/extent.c HFS_I(inode)->cached_start = be16_to_cpu(fd->key->ext.FABN); be16_to_cpu 200 fs/hfs/extent.c dprint(DBG_EXTENT, " %u:%u", be16_to_cpu(extent[i].block), be16_to_cpu 201 fs/hfs/extent.c be16_to_cpu(extent[i].count)); be16_to_cpu 213 fs/hfs/extent.c count = be16_to_cpu(extent->count); be16_to_cpu 215 fs/hfs/extent.c start = be16_to_cpu(extent->block); be16_to_cpu 241 fs/hfs/extent.c count = be16_to_cpu(extent->count); be16_to_cpu 252 fs/hfs/extent.c start = be16_to_cpu(extent->block); be16_to_cpu 268 fs/hfs/extent.c count = be16_to_cpu(extent->count); be16_to_cpu 293 fs/hfs/extent.c blocks += be16_to_cpu(extent[i].count); be16_to_cpu 306 fs/hfs/extent.c start = be16_to_cpu(fd.key->ext.FABN); be16_to_cpu 238 fs/hfs/inode.c count += be16_to_cpu(ext[i].count); be16_to_cpu 303 fs/hfs/inode.c rec->file.PyLen, be16_to_cpu(rec->file.ClpSize)); be16_to_cpu 306 fs/hfs/inode.c rec->file.RPyLen, be16_to_cpu(rec->file.ClpSize)); be16_to_cpu 323 fs/hfs/inode.c inode->i_size = be16_to_cpu(rec->dir.Val) + 2; be16_to_cpu 111 fs/hfs/mdb.c sect = be16_to_cpu(mdb->drAlBlSt) + part_start; be16_to_cpu 135 fs/hfs/mdb.c HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks); be16_to_cpu 141 fs/hfs/mdb.c HFS_SB(sb)->fs_start = (be16_to_cpu(mdb->drAlBlSt) + part_start) >> be16_to_cpu 145 fs/hfs/mdb.c HFS_SB(sb)->free_ablocks = be16_to_cpu(mdb->drFreeBks); be16_to_cpu 147 fs/hfs/mdb.c HFS_SB(sb)->root_files = be16_to_cpu(mdb->drNmFls); be16_to_cpu 148 fs/hfs/mdb.c HFS_SB(sb)->root_dirs = be16_to_cpu(mdb->drNmRtDirs); be16_to_cpu 173 fs/hfs/mdb.c block = be16_to_cpu(mdb->drVBMSt) + part_start; be16_to_cpu 298 fs/hfs/mdb.c block = be16_to_cpu(HFS_SB(sb)->mdb->drVBMSt) + HFS_SB(sb)->part_start; be16_to_cpu 70 fs/hfs/part_tbl.c switch (be16_to_cpu(*data)) { be16_to_cpu 47 fs/hfsplus/bnode.c return be16_to_cpu(data); be16_to_cpu 304 fs/hfsplus/bnode.c desc.type, desc.height, be16_to_cpu(desc.num_recs)); be16_to_cpu 307 fs/hfsplus/bnode.c for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { be16_to_cpu 503 fs/hfsplus/bnode.c node->num_recs = be16_to_cpu(desc->num_recs); be16_to_cpu 26 fs/hfsplus/brec.c *off = be16_to_cpu(retval[1]); be16_to_cpu 27 fs/hfsplus/brec.c return be16_to_cpu(retval[0]) - *off; be16_to_cpu 72 fs/hfsplus/brec.c key_len = be16_to_cpu(fd->search_key->key_len) + 2; be16_to_cpu 149 fs/hfsplus/brec.c key_len = be16_to_cpu(fd->search_key->key_len) + 2; be16_to_cpu 56 fs/hfsplus/btree.c tree->node_size = be16_to_cpu(head->node_size); be16_to_cpu 57 fs/hfsplus/btree.c tree->max_key_len = be16_to_cpu(head->max_key_len); be16_to_cpu 58 fs/hfsplus/btree.c tree->depth = be16_to_cpu(head->depth); be16_to_cpu 49 fs/hfsplus/catalog.c len = be16_to_cpu(key->cat.name.length); be16_to_cpu 62 fs/hfsplus/catalog.c ustrlen = be16_to_cpu(name->length); be16_to_cpu 149 fs/hfsplus/catalog.c return 10 + be16_to_cpu(entry->thread.nodeName.length) * 2; be16_to_cpu 165 fs/hfsplus/catalog.c type = be16_to_cpu(tmp.type); be16_to_cpu 254 fs/hfsplus/catalog.c len = be16_to_cpu(fd.search_key->cat.name.length) * 2; be16_to_cpu 55 fs/hfsplus/dir.c type = be16_to_cpu(entry.type); be16_to_cpu 142 fs/hfsplus/dir.c if (be16_to_cpu(entry.type) != HFSPLUS_FOLDER_THREAD) { be16_to_cpu 172 fs/hfsplus/dir.c type = be16_to_cpu(entry.type); be16_to_cpu 193 fs/hfsplus/inode.c mode = be16_to_cpu(perms->mode); be16_to_cpu 86 fs/hfsplus/part_tbl.c switch (be16_to_cpu(*data)) { be16_to_cpu 185 fs/hfsplus/super.c if (be16_to_cpu(vhdr->signature) == HFSPLUS_VOLHEAD_SIG) { be16_to_cpu 328 fs/hfsplus/super.c if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION || be16_to_cpu 329 fs/hfsplus/super.c be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) { be16_to_cpu 37 fs/hfsplus/unicode.c len1 = be16_to_cpu(s1->length); be16_to_cpu 38 fs/hfsplus/unicode.c len2 = be16_to_cpu(s2->length); be16_to_cpu 46 fs/hfsplus/unicode.c c1 = case_fold(be16_to_cpu(*p1)); be16_to_cpu 51 fs/hfsplus/unicode.c c2 = case_fold(be16_to_cpu(*p2)); be16_to_cpu 71 fs/hfsplus/unicode.c len1 = be16_to_cpu(s1->length); be16_to_cpu 72 fs/hfsplus/unicode.c len2 = be16_to_cpu(s2->length); be16_to_cpu 77 fs/hfsplus/unicode.c c1 = be16_to_cpu(*p1); be16_to_cpu 78 fs/hfsplus/unicode.c c2 = be16_to_cpu(*p2); be16_to_cpu 132 fs/hfsplus/unicode.c ustrlen = be16_to_cpu(ustr->length); be16_to_cpu 138 fs/hfsplus/unicode.c c0 = be16_to_cpu(*ip++); be16_to_cpu 149 fs/hfsplus/unicode.c c1 = be16_to_cpu(*ip) - Hangul_VBase; be16_to_cpu 159 fs/hfsplus/unicode.c c1 = be16_to_cpu(*ip) - Hangul_TBase; be16_to_cpu 172 fs/hfsplus/unicode.c c1 = be16_to_cpu(*ip); be16_to_cpu 202 fs/hfsplus/unicode.c ce1 = hfsplus_compose_lookup(ce2, be16_to_cpu(ip[i])); be16_to_cpu 38 fs/hfsplus/wrapper.c attrib = be16_to_cpu(*(__be16 *)(bufptr + HFSP_WRAPOFF_ATTRIB)); be16_to_cpu 48 fs/hfsplus/wrapper.c wd->ablk_start = be16_to_cpu(*(__be16 *)(bufptr + HFSP_WRAPOFF_ABLKSTART)); be16_to_cpu 27 fs/isofs/joliet.c llen = nls->uni2char(be16_to_cpu(ch), op, NLS_MAX_CHARSET_SIZE); be16_to_cpu 55 fs/jffs2/nodelist.h #define je16_to_cpu(x) (be16_to_cpu(x.v16)) be16_to_cpu 89 fs/ocfs2/cluster/tcp.c be16_to_cpu(__hdr->magic), be16_to_cpu(__hdr->data_len), \ be16_to_cpu 90 fs/ocfs2/cluster/tcp.c be16_to_cpu(__hdr->msg_type), be32_to_cpu(__hdr->status), \ be16_to_cpu 1144 fs/ocfs2/cluster/tcp.c switch(be16_to_cpu(hdr->magic)) { be16_to_cpu 1169 fs/ocfs2/cluster/tcp.c nmh = o2net_handler_get(be16_to_cpu(hdr->msg_type), be16_to_cpu 1173 fs/ocfs2/cluster/tcp.c be16_to_cpu(hdr->msg_type), be32_to_cpu(hdr->key)); be16_to_cpu 1180 fs/ocfs2/cluster/tcp.c if (be16_to_cpu(hdr->data_len) > nmh->nh_max_len) be16_to_cpu 1188 fs/ocfs2/cluster/tcp.c sc->sc_msg_type = be16_to_cpu(hdr->msg_type); be16_to_cpu 1190 fs/ocfs2/cluster/tcp.c be16_to_cpu(hdr->data_len), be16_to_cpu 1334 fs/ocfs2/cluster/tcp.c if (be16_to_cpu(hdr->data_len) > be16_to_cpu 1354 fs/ocfs2/cluster/tcp.c if (sc->sc_page_off - sizeof(struct o2net_msg) < be16_to_cpu(hdr->data_len)) { be16_to_cpu 1357 fs/ocfs2/cluster/tcp.c datalen = (sizeof(struct o2net_msg) + be16_to_cpu(hdr->data_len)) - be16_to_cpu 1366 fs/ocfs2/cluster/tcp.c if (sc->sc_page_off - sizeof(struct o2net_msg) == be16_to_cpu(hdr->data_len)) { be16_to_cpu 1353 fs/ocfs2/dlm/dlmrecovery.c buf = kmalloc(be16_to_cpu(msg->data_len), GFP_NOFS); be16_to_cpu 1455 fs/ocfs2/dlm/dlmrecovery.c memcpy(buf, msg->buf, be16_to_cpu(msg->data_len)); /* copy the whole message */ be16_to_cpu 125 fs/ocfs2/dlmglue.c be16_to_cpu(lvb->lvb_imode)); be16_to_cpu 127 fs/ocfs2/dlmglue.c "mtime_packed 0x%llx iattr 0x%x\n", be16_to_cpu(lvb->lvb_inlink), be16_to_cpu 1892 fs/ocfs2/dlmglue.c oi->ip_dyn_features = be16_to_cpu(lvb->lvb_idynfeatures); be16_to_cpu 1903 fs/ocfs2/dlmglue.c inode->i_mode = be16_to_cpu(lvb->lvb_imode); be16_to_cpu 1904 fs/ocfs2/dlmglue.c inode->i_nlink = be16_to_cpu(lvb->lvb_inlink); be16_to_cpu 48 fs/partitions/mac.c if (be16_to_cpu(md->signature) != MAC_DRIVER_MAGIC) { be16_to_cpu 52 fs/partitions/mac.c secsize = be16_to_cpu(md->block_size); be16_to_cpu 58 fs/partitions/mac.c if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) { be16_to_cpu 71 fs/partitions/mac.c if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) be16_to_cpu 69 fs/partitions/sun.c if (be16_to_cpu(label->magic) != SUN_LABEL_MAGIC) { be16_to_cpu 89 fs/partitions/sun.c (be16_to_cpu(label->vtoc.nparts) <= 8)); be16_to_cpu 92 fs/partitions/sun.c nparts = (use_vtoc) ? be16_to_cpu(label->vtoc.nparts) : 8; be16_to_cpu 100 fs/partitions/sun.c spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect); be16_to_cpu 111 fs/partitions/sun.c if (be16_to_cpu(label->vtoc.infos[i].id) == LINUX_RAID_PARTITION) be16_to_cpu 113 fs/partitions/sun.c else if (be16_to_cpu(label->vtoc.infos[i].id) == SUN_WHOLE_DISK) be16_to_cpu 67 fs/partitions/sysv68.c slices = be16_to_cpu(b->dk_ios.ios_slccnt); be16_to_cpu 231 fs/sysv/sysv.h return be16_to_cpu((__force __be16)n); be16_to_cpu 85 fs/ufs/swab.h return be16_to_cpu((__force __be16)n); be16_to_cpu 1184 fs/xfs/quota/xfs_qm.c be16_to_cpu(ddqp->d_bwarns) : XFS_QM_BWARNLIMIT; be16_to_cpu 1186 fs/xfs/quota/xfs_qm.c be16_to_cpu(ddqp->d_iwarns) : XFS_QM_IWARNLIMIT; be16_to_cpu 1188 fs/xfs/quota/xfs_qm.c be16_to_cpu(ddqp->d_rtbwarns) : XFS_QM_RTBWARNLIMIT; be16_to_cpu 897 fs/xfs/quota/xfs_qm_syscalls.c dst->d_iwarns = be16_to_cpu(src->d_iwarns); be16_to_cpu 898 fs/xfs/quota/xfs_qm_syscalls.c dst->d_bwarns = be16_to_cpu(src->d_bwarns); be16_to_cpu 905 fs/xfs/quota/xfs_qm_syscalls.c dst->d_rtbwarns = be16_to_cpu(src->d_rtbwarns); be16_to_cpu 639 fs/xfs/quota/xfs_trans_dquot.c warns = be16_to_cpu(dqp->q_core.d_bwarns); be16_to_cpu 651 fs/xfs/quota/xfs_trans_dquot.c warns = be16_to_cpu(dqp->q_core.d_rtbwarns); be16_to_cpu 690 fs/xfs/quota/xfs_trans_dquot.c warns = be16_to_cpu(dqp->q_core.d_iwarns); be16_to_cpu 44 fs/xfs/support/uuid.c fsid[0] = (be16_to_cpu(uup->uu_clockseq) << 16) | be16_to_cpu 45 fs/xfs/support/uuid.c be16_to_cpu(uup->uu_timemid); be16_to_cpu 307 fs/xfs/xfs_alloc.c be16_to_cpu(bnoblock->bb_numrecs) == be16_to_cpu 308 fs/xfs/xfs_alloc.c be16_to_cpu(cntblock->bb_numrecs)); be16_to_cpu 119 fs/xfs/xfs_alloc_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 329 fs/xfs/xfs_alloc_btree.c if (be16_to_cpu(right->bb_numrecs) - 1 >= be16_to_cpu 334 fs/xfs/xfs_alloc_btree.c ASSERT(be16_to_cpu(block->bb_numrecs) >= be16_to_cpu 351 fs/xfs/xfs_alloc_btree.c rrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 393 fs/xfs/xfs_alloc_btree.c if (be16_to_cpu(left->bb_numrecs) - 1 >= be16_to_cpu 398 fs/xfs/xfs_alloc_btree.c ASSERT(be16_to_cpu(block->bb_numrecs) >= be16_to_cpu 412 fs/xfs/xfs_alloc_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 433 fs/xfs/xfs_alloc_btree.c rrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 440 fs/xfs/xfs_alloc_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 455 fs/xfs/xfs_alloc_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 462 fs/xfs/xfs_alloc_btree.c rrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 660 fs/xfs/xfs_alloc_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 737 fs/xfs/xfs_alloc_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 1037 fs/xfs/xfs_alloc_btree.c if (!(high = be16_to_cpu(block->bb_numrecs))) { be16_to_cpu 1132 fs/xfs/xfs_alloc_btree.c keyno > be16_to_cpu(block->bb_numrecs) && be16_to_cpu 1150 fs/xfs/xfs_alloc_btree.c if (keyno == 0 || keyno > be16_to_cpu(block->bb_numrecs)) be16_to_cpu 1218 fs/xfs/xfs_alloc_btree.c if (be16_to_cpu(left->bb_numrecs) == XFS_ALLOC_BLOCK_MAXRECS(level, cur)) { be16_to_cpu 1222 fs/xfs/xfs_alloc_btree.c nrec = be16_to_cpu(left->bb_numrecs) + 1; be16_to_cpu 1268 fs/xfs/xfs_alloc_btree.c for (i = 0; i < be16_to_cpu(right->bb_numrecs); i++) { be16_to_cpu 1274 fs/xfs/xfs_alloc_btree.c memmove(rkp, rkp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1275 fs/xfs/xfs_alloc_btree.c memmove(rpp, rpp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1276 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1277 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1279 fs/xfs/xfs_alloc_btree.c memmove(rrp, rrp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1280 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1417 fs/xfs/xfs_alloc_btree.c if (be16_to_cpu(left->bb_level) > 0) { be16_to_cpu 1493 fs/xfs/xfs_alloc_btree.c if (cur->bc_ptrs[level] >= be16_to_cpu(left->bb_numrecs)) { be16_to_cpu 1510 fs/xfs/xfs_alloc_btree.c if (be16_to_cpu(right->bb_numrecs) == XFS_ALLOC_BLOCK_MAXRECS(level, cur)) { be16_to_cpu 1523 fs/xfs/xfs_alloc_btree.c lkp = XFS_ALLOC_KEY_ADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1524 fs/xfs/xfs_alloc_btree.c lpp = XFS_ALLOC_PTR_ADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1528 fs/xfs/xfs_alloc_btree.c for (i = be16_to_cpu(right->bb_numrecs) - 1; i >= 0; i--) { be16_to_cpu 1533 fs/xfs/xfs_alloc_btree.c memmove(rkp + 1, rkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1534 fs/xfs/xfs_alloc_btree.c memmove(rpp + 1, rpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1541 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1542 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1548 fs/xfs/xfs_alloc_btree.c lrp = XFS_ALLOC_REC_ADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1550 fs/xfs/xfs_alloc_btree.c memmove(rrp + 1, rrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1552 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1639 fs/xfs/xfs_alloc_btree.c right->bb_numrecs = cpu_to_be16(be16_to_cpu(left->bb_numrecs) / 2); be16_to_cpu 1644 fs/xfs/xfs_alloc_btree.c if ((be16_to_cpu(left->bb_numrecs) & 1) && be16_to_cpu 1645 fs/xfs/xfs_alloc_btree.c cur->bc_ptrs[level] <= be16_to_cpu(right->bb_numrecs) + 1) be16_to_cpu 1647 fs/xfs/xfs_alloc_btree.c i = be16_to_cpu(left->bb_numrecs) - be16_to_cpu(right->bb_numrecs) + 1; be16_to_cpu 1662 fs/xfs/xfs_alloc_btree.c for (i = 0; i < be16_to_cpu(right->bb_numrecs); i++) { be16_to_cpu 1667 fs/xfs/xfs_alloc_btree.c memcpy(rkp, lkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1668 fs/xfs/xfs_alloc_btree.c memcpy(rpp, lpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1669 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1670 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1682 fs/xfs/xfs_alloc_btree.c memcpy(rrp, lrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1683 fs/xfs/xfs_alloc_btree.c xfs_alloc_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1692 fs/xfs/xfs_alloc_btree.c be16_add_cpu(&left->bb_numrecs, -(be16_to_cpu(right->bb_numrecs))); be16_to_cpu 1721 fs/xfs/xfs_alloc_btree.c if (cur->bc_ptrs[level] > be16_to_cpu(left->bb_numrecs) + 1) { be16_to_cpu 1723 fs/xfs/xfs_alloc_btree.c cur->bc_ptrs[level] -= be16_to_cpu(left->bb_numrecs); be16_to_cpu 1860 fs/xfs/xfs_alloc_btree.c cur->bc_ptrs[lev] = be16_to_cpu(block->bb_numrecs); be16_to_cpu 1927 fs/xfs/xfs_alloc_btree.c if (ptr > be16_to_cpu(block->bb_numrecs) || ptr <= 0) { be16_to_cpu 1978 fs/xfs/xfs_alloc_btree.c if (++cur->bc_ptrs[level] <= be16_to_cpu(block->bb_numrecs)) { be16_to_cpu 2000 fs/xfs/xfs_alloc_btree.c if (++cur->bc_ptrs[lev] <= be16_to_cpu(block->bb_numrecs)) be16_to_cpu 2188 fs/xfs/xfs_alloc_btree.c ptr == be16_to_cpu(block->bb_numrecs)) { be16_to_cpu 1213 fs/xfs/xfs_attr.c if (unlikely(be16_to_cpu(leaf->hdr.info.magic) != XFS_ATTR_LEAF_MAGIC)) { be16_to_cpu 1628 fs/xfs/xfs_attr.c ASSERT(be16_to_cpu(((xfs_attr_leafblock_t *) be16_to_cpu 1849 fs/xfs/xfs_attr.c switch (be16_to_cpu(node->hdr.info.magic)) { be16_to_cpu 1858 fs/xfs/xfs_attr.c be16_to_cpu(leaf->hdr.count)-1].hashval)) { be16_to_cpu 1899 fs/xfs/xfs_attr.c if (be16_to_cpu(node->hdr.info.magic) be16_to_cpu 1902 fs/xfs/xfs_attr.c if (unlikely(be16_to_cpu(node->hdr.info.magic) be16_to_cpu 1912 fs/xfs/xfs_attr.c for (i = 0; i < be16_to_cpu(node->hdr.count); be16_to_cpu 1922 fs/xfs/xfs_attr.c if (i == be16_to_cpu(node->hdr.count)) { be16_to_cpu 1938 fs/xfs/xfs_attr.c if (unlikely(be16_to_cpu(leaf->hdr.info.magic) be16_to_cpu 2288 fs/xfs/xfs_attr.c (__psunsigned_t)be16_to_cpu(node->hdr.count), be16_to_cpu 2291 fs/xfs/xfs_attr.c be16_to_cpu(node->hdr.count)-1].hashval)); be16_to_cpu 2315 fs/xfs/xfs_attr.c (__psunsigned_t)be16_to_cpu(leaf->hdr.count), be16_to_cpu 2318 fs/xfs/xfs_attr.c be16_to_cpu(leaf->hdr.count)-1].hashval)); be16_to_cpu 336 fs/xfs/xfs_attr_leaf.c totsize = be16_to_cpu(sf->hdr.totsize); be16_to_cpu 470 fs/xfs/xfs_attr_leaf.c size = be16_to_cpu(sf->hdr.totsize); be16_to_cpu 730 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 734 fs/xfs/xfs_attr_leaf.c for (i = 0; i < be16_to_cpu(leaf->hdr.count); entry++, i++) { be16_to_cpu 742 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(name_loc->valuelen) >= XFS_ATTR_SF_ENTSIZE_MAX) be16_to_cpu 746 fs/xfs/xfs_attr_leaf.c + be16_to_cpu(name_loc->valuelen); be16_to_cpu 776 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 820 fs/xfs/xfs_attr_leaf.c for (i = 0; i < be16_to_cpu(leaf->hdr.count); entry++, i++) { be16_to_cpu 830 fs/xfs/xfs_attr_leaf.c nargs.valuelen = be16_to_cpu(name_loc->valuelen); be16_to_cpu 884 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 887 fs/xfs/xfs_attr_leaf.c leaf->entries[be16_to_cpu(leaf->hdr.count)-1 ].hashval; be16_to_cpu 936 fs/xfs/xfs_attr_leaf.c hdr->freemap[0].size = cpu_to_be16(be16_to_cpu(hdr->firstused) - be16_to_cpu 1009 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1011 fs/xfs/xfs_attr_leaf.c && (args->index <= be16_to_cpu(leaf->hdr.count))); be16_to_cpu 1020 fs/xfs/xfs_attr_leaf.c tablesize = (be16_to_cpu(hdr->count) + 1) be16_to_cpu 1025 fs/xfs/xfs_attr_leaf.c if (tablesize > be16_to_cpu(hdr->firstused)) { be16_to_cpu 1026 fs/xfs/xfs_attr_leaf.c sum += be16_to_cpu(map->size); be16_to_cpu 1032 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(map->base) < be16_to_cpu(hdr->firstused)) be16_to_cpu 1034 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(map->size) >= tmp) { be16_to_cpu 1038 fs/xfs/xfs_attr_leaf.c sum += be16_to_cpu(map->size); be16_to_cpu 1059 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(hdr->freemap[0].size) be16_to_cpu 1082 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1085 fs/xfs/xfs_attr_leaf.c ASSERT((args->index >= 0) && (args->index <= be16_to_cpu(hdr->count))); be16_to_cpu 1091 fs/xfs/xfs_attr_leaf.c if (args->index < be16_to_cpu(hdr->count)) { be16_to_cpu 1092 fs/xfs/xfs_attr_leaf.c tmp = be16_to_cpu(hdr->count) - args->index; be16_to_cpu 1105 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(map->base) < XFS_LBSIZE(mp)); be16_to_cpu 1106 fs/xfs/xfs_attr_leaf.c ASSERT((be16_to_cpu(map->base) & 0x3) == 0); be16_to_cpu 1107 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(map->size) >= be16_to_cpu 1110 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(map->size) < XFS_LBSIZE(mp)); be16_to_cpu 1111 fs/xfs/xfs_attr_leaf.c ASSERT((be16_to_cpu(map->size) & 0x3) == 0); be16_to_cpu 1115 fs/xfs/xfs_attr_leaf.c entry->nameidx = cpu_to_be16(be16_to_cpu(map->base) + be16_to_cpu 1116 fs/xfs/xfs_attr_leaf.c be16_to_cpu(map->size)); be16_to_cpu 1131 fs/xfs/xfs_attr_leaf.c ASSERT((args->index == be16_to_cpu(hdr->count)-1) || be16_to_cpu 1149 fs/xfs/xfs_attr_leaf.c be16_to_cpu(name_loc->valuelen)); be16_to_cpu 1168 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(entry->nameidx) < be16_to_cpu(hdr->firstused)) { be16_to_cpu 1172 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(hdr->firstused) >= be16_to_cpu 1173 fs/xfs/xfs_attr_leaf.c ((be16_to_cpu(hdr->count) * sizeof(*entry)) + sizeof(*hdr))); be16_to_cpu 1174 fs/xfs/xfs_attr_leaf.c tmp = (be16_to_cpu(hdr->count)-1) * sizeof(xfs_attr_leaf_entry_t) be16_to_cpu 1178 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(map->base) == tmp) { be16_to_cpu 1225 fs/xfs/xfs_attr_leaf.c hdr_d->freemap[0].size = cpu_to_be16(be16_to_cpu(hdr_d->firstused) - be16_to_cpu 1233 fs/xfs/xfs_attr_leaf.c be16_to_cpu(hdr_s->count), mp); be16_to_cpu 1268 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf1->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1269 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf2->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1306 fs/xfs/xfs_attr_leaf.c if (count < be16_to_cpu(hdr1->count)) { be16_to_cpu 1311 fs/xfs/xfs_attr_leaf.c count = be16_to_cpu(hdr1->count) - count; be16_to_cpu 1312 fs/xfs/xfs_attr_leaf.c space = be16_to_cpu(hdr1->usedbytes) - totallen; be16_to_cpu 1318 fs/xfs/xfs_attr_leaf.c max = be16_to_cpu(hdr2->firstused) be16_to_cpu 1320 fs/xfs/xfs_attr_leaf.c max -= be16_to_cpu(hdr2->count) * sizeof(xfs_attr_leaf_entry_t); be16_to_cpu 1328 fs/xfs/xfs_attr_leaf.c xfs_attr_leaf_moveents(leaf1, be16_to_cpu(hdr1->count) - count, be16_to_cpu 1333 fs/xfs/xfs_attr_leaf.c } else if (count > be16_to_cpu(hdr1->count)) { be16_to_cpu 1343 fs/xfs/xfs_attr_leaf.c count -= be16_to_cpu(hdr1->count); be16_to_cpu 1344 fs/xfs/xfs_attr_leaf.c space = totallen - be16_to_cpu(hdr1->usedbytes); be16_to_cpu 1350 fs/xfs/xfs_attr_leaf.c max = be16_to_cpu(hdr1->firstused) be16_to_cpu 1352 fs/xfs/xfs_attr_leaf.c max -= be16_to_cpu(hdr1->count) * sizeof(xfs_attr_leaf_entry_t); be16_to_cpu 1361 fs/xfs/xfs_attr_leaf.c be16_to_cpu(hdr1->count), count, state->mp); be16_to_cpu 1371 fs/xfs/xfs_attr_leaf.c leaf1->entries[be16_to_cpu(leaf1->hdr.count)-1].hashval); be16_to_cpu 1373 fs/xfs/xfs_attr_leaf.c leaf2->entries[be16_to_cpu(leaf2->hdr.count)-1].hashval); be16_to_cpu 1387 fs/xfs/xfs_attr_leaf.c if (blk1->index > be16_to_cpu(leaf1->hdr.count)) { be16_to_cpu 1389 fs/xfs/xfs_attr_leaf.c blk2->index = blk1->index - be16_to_cpu(leaf1->hdr.count); be16_to_cpu 1392 fs/xfs/xfs_attr_leaf.c } else if (blk1->index == be16_to_cpu(leaf1->hdr.count)) { be16_to_cpu 1400 fs/xfs/xfs_attr_leaf.c - be16_to_cpu(leaf1->hdr.count); be16_to_cpu 1444 fs/xfs/xfs_attr_leaf.c max = be16_to_cpu(hdr1->count) + be16_to_cpu(hdr2->count); be16_to_cpu 1446 fs/xfs/xfs_attr_leaf.c half += be16_to_cpu(hdr1->usedbytes) + be16_to_cpu 1447 fs/xfs/xfs_attr_leaf.c be16_to_cpu(hdr2->usedbytes) + be16_to_cpu 1477 fs/xfs/xfs_attr_leaf.c if (count == be16_to_cpu(hdr1->count)) { be16_to_cpu 1545 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(info->magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1547 fs/xfs/xfs_attr_leaf.c count = be16_to_cpu(leaf->hdr.count); be16_to_cpu 1550 fs/xfs/xfs_attr_leaf.c be16_to_cpu(leaf->hdr.usedbytes); be16_to_cpu 1604 fs/xfs/xfs_attr_leaf.c count = be16_to_cpu(leaf->hdr.count); be16_to_cpu 1606 fs/xfs/xfs_attr_leaf.c bytes -= be16_to_cpu(leaf->hdr.usedbytes); be16_to_cpu 1608 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1609 fs/xfs/xfs_attr_leaf.c count += be16_to_cpu(leaf->hdr.count); be16_to_cpu 1610 fs/xfs/xfs_attr_leaf.c bytes -= be16_to_cpu(leaf->hdr.usedbytes); be16_to_cpu 1662 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1665 fs/xfs/xfs_attr_leaf.c ASSERT((be16_to_cpu(hdr->count) > 0) be16_to_cpu 1666 fs/xfs/xfs_attr_leaf.c && (be16_to_cpu(hdr->count) < (XFS_LBSIZE(mp)/8))); be16_to_cpu 1668 fs/xfs/xfs_attr_leaf.c && (args->index < be16_to_cpu(hdr->count))); be16_to_cpu 1669 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(hdr->firstused) >= be16_to_cpu 1670 fs/xfs/xfs_attr_leaf.c ((be16_to_cpu(hdr->count) * sizeof(*entry)) + sizeof(*hdr))); be16_to_cpu 1672 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry->nameidx) >= be16_to_cpu(hdr->firstused)); be16_to_cpu 1673 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry->nameidx) < XFS_LBSIZE(mp)); be16_to_cpu 1681 fs/xfs/xfs_attr_leaf.c tablesize = be16_to_cpu(hdr->count) * sizeof(xfs_attr_leaf_entry_t) be16_to_cpu 1684 fs/xfs/xfs_attr_leaf.c tmp = be16_to_cpu(map->size); be16_to_cpu 1689 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(map->base) < XFS_LBSIZE(mp)); be16_to_cpu 1690 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(map->size) < XFS_LBSIZE(mp)); be16_to_cpu 1691 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(map->base) == tablesize) { be16_to_cpu 1697 fs/xfs/xfs_attr_leaf.c if ((be16_to_cpu(map->base) + be16_to_cpu(map->size)) be16_to_cpu 1698 fs/xfs/xfs_attr_leaf.c == be16_to_cpu(entry->nameidx)) { be16_to_cpu 1700 fs/xfs/xfs_attr_leaf.c } else if (be16_to_cpu(map->base) be16_to_cpu 1701 fs/xfs/xfs_attr_leaf.c == (be16_to_cpu(entry->nameidx) + entsize)) { be16_to_cpu 1703 fs/xfs/xfs_attr_leaf.c } else if (be16_to_cpu(map->size) < tmp) { be16_to_cpu 1704 fs/xfs/xfs_attr_leaf.c tmp = be16_to_cpu(map->size); be16_to_cpu 1718 fs/xfs/xfs_attr_leaf.c be16_to_cpu(hdr->freemap[after].size)); be16_to_cpu 1735 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(map->size) < entsize) { be16_to_cpu 1736 fs/xfs/xfs_attr_leaf.c map->base = cpu_to_be16(be16_to_cpu(entry->nameidx)); be16_to_cpu 1744 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(entry->nameidx) == be16_to_cpu(hdr->firstused)) be16_to_cpu 1758 fs/xfs/xfs_attr_leaf.c tmp = (be16_to_cpu(hdr->count) - args->index) be16_to_cpu 1764 fs/xfs/xfs_attr_leaf.c entry = &leaf->entries[be16_to_cpu(hdr->count)]; be16_to_cpu 1776 fs/xfs/xfs_attr_leaf.c for (i = be16_to_cpu(hdr->count)-1; i >= 0; entry++, i--) { be16_to_cpu 1777 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry->nameidx) >= be16_to_cpu 1778 fs/xfs/xfs_attr_leaf.c be16_to_cpu(hdr->firstused)); be16_to_cpu 1779 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry->nameidx) < XFS_LBSIZE(mp)); be16_to_cpu 1781 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(entry->nameidx) < tmp) be16_to_cpu 1782 fs/xfs/xfs_attr_leaf.c tmp = be16_to_cpu(entry->nameidx); be16_to_cpu 1800 fs/xfs/xfs_attr_leaf.c tmp += be16_to_cpu(leaf->hdr.count) * sizeof(xfs_attr_leaf_entry_t); be16_to_cpu 1801 fs/xfs/xfs_attr_leaf.c tmp += be16_to_cpu(leaf->hdr.usedbytes); be16_to_cpu 1825 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(drop_leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1826 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(save_leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1834 fs/xfs/xfs_attr_leaf.c drop_leaf->entries[be16_to_cpu(drop_leaf->hdr.count)-1].hashval); be16_to_cpu 1848 fs/xfs/xfs_attr_leaf.c be16_to_cpu(drop_hdr->count), mp); be16_to_cpu 1851 fs/xfs/xfs_attr_leaf.c be16_to_cpu(save_hdr->count), be16_to_cpu 1852 fs/xfs/xfs_attr_leaf.c be16_to_cpu(drop_hdr->count), mp); be16_to_cpu 1874 fs/xfs/xfs_attr_leaf.c be16_to_cpu(drop_hdr->count), mp); be16_to_cpu 1876 fs/xfs/xfs_attr_leaf.c be16_to_cpu(tmp_leaf->hdr.count), be16_to_cpu 1877 fs/xfs/xfs_attr_leaf.c be16_to_cpu(save_hdr->count), mp); be16_to_cpu 1880 fs/xfs/xfs_attr_leaf.c be16_to_cpu(save_hdr->count), mp); be16_to_cpu 1882 fs/xfs/xfs_attr_leaf.c be16_to_cpu(tmp_leaf->hdr.count), be16_to_cpu 1883 fs/xfs/xfs_attr_leaf.c be16_to_cpu(drop_hdr->count), mp); be16_to_cpu 1896 fs/xfs/xfs_attr_leaf.c save_leaf->entries[be16_to_cpu(save_leaf->hdr.count)-1].hashval); be16_to_cpu 1927 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1928 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.count) be16_to_cpu 1935 fs/xfs/xfs_attr_leaf.c probe = span = be16_to_cpu(leaf->hdr.count) / 2; be16_to_cpu 1948 fs/xfs/xfs_attr_leaf.c || (probe < be16_to_cpu(leaf->hdr.count)))); be16_to_cpu 1959 fs/xfs/xfs_attr_leaf.c while ((probe < be16_to_cpu(leaf->hdr.count)) && be16_to_cpu 1964 fs/xfs/xfs_attr_leaf.c if ((probe == be16_to_cpu(leaf->hdr.count)) || be16_to_cpu 1973 fs/xfs/xfs_attr_leaf.c for ( ; (probe < be16_to_cpu(leaf->hdr.count)) && be16_to_cpu 2031 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2032 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.count) be16_to_cpu 2034 fs/xfs/xfs_attr_leaf.c ASSERT(args->index < be16_to_cpu(leaf->hdr.count)); be16_to_cpu 2041 fs/xfs/xfs_attr_leaf.c valuelen = be16_to_cpu(name_loc->valuelen); be16_to_cpu 2099 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf_s->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2100 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf_d->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2103 fs/xfs/xfs_attr_leaf.c ASSERT((be16_to_cpu(hdr_s->count) > 0) && be16_to_cpu 2104 fs/xfs/xfs_attr_leaf.c (be16_to_cpu(hdr_s->count) < (XFS_LBSIZE(mp)/8))); be16_to_cpu 2105 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(hdr_s->firstused) >= be16_to_cpu 2106 fs/xfs/xfs_attr_leaf.c ((be16_to_cpu(hdr_s->count) be16_to_cpu 2108 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(hdr_d->count) < (XFS_LBSIZE(mp)/8)); be16_to_cpu 2109 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(hdr_d->firstused) >= be16_to_cpu 2110 fs/xfs/xfs_attr_leaf.c ((be16_to_cpu(hdr_d->count) be16_to_cpu 2113 fs/xfs/xfs_attr_leaf.c ASSERT(start_s < be16_to_cpu(hdr_s->count)); be16_to_cpu 2114 fs/xfs/xfs_attr_leaf.c ASSERT(start_d <= be16_to_cpu(hdr_d->count)); be16_to_cpu 2115 fs/xfs/xfs_attr_leaf.c ASSERT(count <= be16_to_cpu(hdr_s->count)); be16_to_cpu 2120 fs/xfs/xfs_attr_leaf.c if (start_d < be16_to_cpu(hdr_d->count)) { be16_to_cpu 2121 fs/xfs/xfs_attr_leaf.c tmp = be16_to_cpu(hdr_d->count) - start_d; be16_to_cpu 2136 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry_s->nameidx) be16_to_cpu 2137 fs/xfs/xfs_attr_leaf.c >= be16_to_cpu(hdr_s->firstused)); be16_to_cpu 2161 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry_d->nameidx) + tmp be16_to_cpu 2165 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry_s->nameidx) + tmp be16_to_cpu 2172 fs/xfs/xfs_attr_leaf.c tmp = be16_to_cpu(hdr_d->count) be16_to_cpu 2175 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(hdr_d->firstused) >= tmp); be16_to_cpu 2184 fs/xfs/xfs_attr_leaf.c if (start_s == be16_to_cpu(hdr_s->count)) { be16_to_cpu 2195 fs/xfs/xfs_attr_leaf.c tmp = be16_to_cpu(hdr_s->count) - count; be16_to_cpu 2202 fs/xfs/xfs_attr_leaf.c entry_s = &leaf_s->entries[be16_to_cpu(hdr_s->count)]; be16_to_cpu 2212 fs/xfs/xfs_attr_leaf.c be16_add_cpu(&hdr_d->freemap[0].base, be16_to_cpu(hdr_d->count) * be16_to_cpu 2214 fs/xfs/xfs_attr_leaf.c hdr_d->freemap[0].size = cpu_to_be16(be16_to_cpu(hdr_d->firstused) be16_to_cpu 2215 fs/xfs/xfs_attr_leaf.c - be16_to_cpu(hdr_d->freemap[0].base)); be16_to_cpu 2234 fs/xfs/xfs_attr_leaf.c ASSERT((be16_to_cpu(leaf1->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC) && be16_to_cpu 2235 fs/xfs/xfs_attr_leaf.c (be16_to_cpu(leaf2->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC)); be16_to_cpu 2236 fs/xfs/xfs_attr_leaf.c if ((be16_to_cpu(leaf1->hdr.count) > 0) && be16_to_cpu 2237 fs/xfs/xfs_attr_leaf.c (be16_to_cpu(leaf2->hdr.count) > 0) && be16_to_cpu 2241 fs/xfs/xfs_attr_leaf.c be16_to_cpu(leaf2->hdr.count)-1].hashval) < be16_to_cpu 2243 fs/xfs/xfs_attr_leaf.c be16_to_cpu(leaf1->hdr.count)-1].hashval)))) { be16_to_cpu 2258 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2260 fs/xfs/xfs_attr_leaf.c *count = be16_to_cpu(leaf->hdr.count); be16_to_cpu 2263 fs/xfs/xfs_attr_leaf.c return be32_to_cpu(leaf->entries[be16_to_cpu(leaf->hdr.count)-1].hashval); be16_to_cpu 2277 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2281 fs/xfs/xfs_attr_leaf.c be16_to_cpu(name_loc->valuelen)); be16_to_cpu 2337 fs/xfs/xfs_attr_leaf.c for (i = 0; i < be16_to_cpu(leaf->hdr.count); entry++, i++) { be16_to_cpu 2350 fs/xfs/xfs_attr_leaf.c if (i == be16_to_cpu(leaf->hdr.count)) { be16_to_cpu 2364 fs/xfs/xfs_attr_leaf.c for ( ; (i < be16_to_cpu(leaf->hdr.count)); entry++, i++) { be16_to_cpu 2381 fs/xfs/xfs_attr_leaf.c be16_to_cpu(name_loc->valuelen), be16_to_cpu 2463 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2464 fs/xfs/xfs_attr_leaf.c ASSERT(args->index < be16_to_cpu(leaf->hdr.count)); be16_to_cpu 2527 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2528 fs/xfs/xfs_attr_leaf.c ASSERT(args->index < be16_to_cpu(leaf->hdr.count)); be16_to_cpu 2597 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf1->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2598 fs/xfs/xfs_attr_leaf.c ASSERT(args->index < be16_to_cpu(leaf1->hdr.count)); be16_to_cpu 2603 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf2->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2604 fs/xfs/xfs_attr_leaf.c ASSERT(args->index2 < be16_to_cpu(leaf2->hdr.count)); be16_to_cpu 2701 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(info->magic) == XFS_DA_NODE_MAGIC) { be16_to_cpu 2703 fs/xfs/xfs_attr_leaf.c } else if (be16_to_cpu(info->magic) == XFS_ATTR_LEAF_MAGIC) { be16_to_cpu 2751 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 2753 fs/xfs/xfs_attr_leaf.c count = be16_to_cpu(node->hdr.count); be16_to_cpu 2785 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(info->magic) == XFS_DA_NODE_MAGIC) { be16_to_cpu 2788 fs/xfs/xfs_attr_leaf.c } else if (be16_to_cpu(info->magic) == XFS_ATTR_LEAF_MAGIC) { be16_to_cpu 2848 fs/xfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 2855 fs/xfs/xfs_attr_leaf.c for (i = 0; i < be16_to_cpu(leaf->hdr.count); entry++, i++) { be16_to_cpu 2856 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(entry->nameidx) && be16_to_cpu 2883 fs/xfs/xfs_attr_leaf.c for (i = 0; i < be16_to_cpu(leaf->hdr.count); entry++, i++) { be16_to_cpu 2884 fs/xfs/xfs_attr_leaf.c if (be16_to_cpu(entry->nameidx) && be16_to_cpu 160 fs/xfs/xfs_attr_leaf.h &((char *)leafp)[be16_to_cpu(leafp->entries[idx].nameidx)]; be16_to_cpu 169 fs/xfs/xfs_attr_leaf.h &((char *)leafp)[be16_to_cpu(leafp->entries[idx].nameidx)]; be16_to_cpu 176 fs/xfs/xfs_attr_leaf.h return &((char *)leafp)[be16_to_cpu(leafp->entries[idx].nameidx)]; be16_to_cpu 69 fs/xfs/xfs_attr_sf.h (be16_to_cpu(((xfs_attr_shortform_t *) \ be16_to_cpu 3012 fs/xfs/xfs_bmap.c ASSERT(be16_to_cpu(rblock->bb_level) == 1); be16_to_cpu 3013 fs/xfs/xfs_bmap.c ASSERT(be16_to_cpu(rblock->bb_numrecs) == 1); be16_to_cpu 3522 fs/xfs/xfs_bmap.c xfs_bmbt_log_recs(cur, abp, 1, be16_to_cpu(ablock->bb_numrecs)); be16_to_cpu 4511 fs/xfs/xfs_bmap.c level = be16_to_cpu(block->bb_level); be16_to_cpu 4552 fs/xfs/xfs_bmap.c num_recs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 4812 fs/xfs/xfs_bmap.c minleft = be16_to_cpu(ifp->if_broot->bb_level) + 1; be16_to_cpu 6143 fs/xfs/xfs_bmap.c ASSERT(be16_to_cpu(block->bb_level) > 0); be16_to_cpu 6146 fs/xfs/xfs_bmap.c for( i = 1; i <= be16_to_cpu(block->bb_numrecs); i++) { be16_to_cpu 6169 fs/xfs/xfs_bmap.c for (j = i+1; j <= be16_to_cpu(block->bb_numrecs); j++) { be16_to_cpu 6223 fs/xfs/xfs_bmap.c level = be16_to_cpu(block->bb_level); be16_to_cpu 6283 fs/xfs/xfs_bmap.c num_recs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 6380 fs/xfs/xfs_bmap.c level = be16_to_cpu(block->bb_level); be16_to_cpu 6452 fs/xfs/xfs_bmap.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 360 fs/xfs/xfs_bmap_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 488 fs/xfs/xfs_bmap_btree.c if (be16_to_cpu(right->bb_numrecs) - 1 >= be16_to_cpu 495 fs/xfs/xfs_bmap_btree.c ASSERT(be16_to_cpu(block->bb_numrecs) >= be16_to_cpu 512 fs/xfs/xfs_bmap_btree.c rrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 544 fs/xfs/xfs_bmap_btree.c if (be16_to_cpu(left->bb_numrecs) - 1 >= be16_to_cpu 551 fs/xfs/xfs_bmap_btree.c ASSERT(be16_to_cpu(block->bb_numrecs) >= be16_to_cpu 562 fs/xfs/xfs_bmap_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 569 fs/xfs/xfs_bmap_btree.c lrecs + be16_to_cpu(block->bb_numrecs) <= XFS_BMAP_BLOCK_IMAXRECS(level, cur)) { be16_to_cpu 584 fs/xfs/xfs_bmap_btree.c rrecs + be16_to_cpu(block->bb_numrecs) <= be16_to_cpu 599 fs/xfs/xfs_bmap_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 609 fs/xfs/xfs_bmap_btree.c numlrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 610 fs/xfs/xfs_bmap_btree.c numrrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 722 fs/xfs/xfs_bmap_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 804 fs/xfs/xfs_bmap_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 901 fs/xfs/xfs_bmap_btree.c if (be16_to_cpu(block->bb_numrecs) != 1) { be16_to_cpu 912 fs/xfs/xfs_bmap_btree.c if (be16_to_cpu(cblock->bb_numrecs) > XFS_BMAP_BLOCK_DMAXRECS(level, cur)) { be16_to_cpu 922 fs/xfs/xfs_bmap_btree.c i = (int)(be16_to_cpu(cblock->bb_numrecs) - XFS_BMAP_BLOCK_IMAXRECS(level, cur)); be16_to_cpu 931 fs/xfs/xfs_bmap_btree.c memcpy(kp, ckp, be16_to_cpu(block->bb_numrecs) * sizeof(*kp)); be16_to_cpu 935 fs/xfs/xfs_bmap_btree.c for (i = 0; i < be16_to_cpu(cblock->bb_numrecs); i++) { be16_to_cpu 942 fs/xfs/xfs_bmap_btree.c memcpy(pp, cpp, be16_to_cpu(block->bb_numrecs) * sizeof(*pp)); be16_to_cpu 1097 fs/xfs/xfs_bmap_btree.c if (!(high = be16_to_cpu(block->bb_numrecs))) { be16_to_cpu 1144 fs/xfs/xfs_bmap_btree.c if (dir == XFS_LOOKUP_GE && keyno > be16_to_cpu(block->bb_numrecs) && be16_to_cpu 1160 fs/xfs/xfs_bmap_btree.c if (keyno == 0 || keyno > be16_to_cpu(block->bb_numrecs)) { be16_to_cpu 1235 fs/xfs/xfs_bmap_btree.c if (be16_to_cpu(left->bb_numrecs) == XFS_BMAP_BLOCK_IMAXRECS(level, cur)) { be16_to_cpu 1240 fs/xfs/xfs_bmap_btree.c lrecs = be16_to_cpu(left->bb_numrecs) + 1; be16_to_cpu 1270 fs/xfs/xfs_bmap_btree.c rrecs = be16_to_cpu(right->bb_numrecs) - 1; be16_to_cpu 1349 fs/xfs/xfs_bmap_btree.c if (cur->bc_ptrs[level] >= be16_to_cpu(left->bb_numrecs)) { be16_to_cpu 1365 fs/xfs/xfs_bmap_btree.c if (be16_to_cpu(right->bb_numrecs) == XFS_BMAP_BLOCK_IMAXRECS(level, cur)) { be16_to_cpu 1371 fs/xfs/xfs_bmap_btree.c lkp = XFS_BMAP_KEY_IADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1372 fs/xfs/xfs_bmap_btree.c lpp = XFS_BMAP_PTR_IADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1376 fs/xfs/xfs_bmap_btree.c for (i = be16_to_cpu(right->bb_numrecs) - 1; i >= 0; i--) { be16_to_cpu 1383 fs/xfs/xfs_bmap_btree.c memmove(rkp + 1, rkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1384 fs/xfs/xfs_bmap_btree.c memmove(rpp + 1, rpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1393 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1394 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1396 fs/xfs/xfs_bmap_btree.c lrp = XFS_BMAP_REC_IADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1398 fs/xfs/xfs_bmap_btree.c memmove(rrp + 1, rrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1400 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1565 fs/xfs/xfs_bmap_btree.c right->bb_numrecs = cpu_to_be16(be16_to_cpu(left->bb_numrecs) / 2); be16_to_cpu 1566 fs/xfs/xfs_bmap_btree.c if ((be16_to_cpu(left->bb_numrecs) & 1) && be16_to_cpu 1567 fs/xfs/xfs_bmap_btree.c cur->bc_ptrs[level] <= be16_to_cpu(right->bb_numrecs) + 1) be16_to_cpu 1569 fs/xfs/xfs_bmap_btree.c i = be16_to_cpu(left->bb_numrecs) - be16_to_cpu(right->bb_numrecs) + 1; be16_to_cpu 1576 fs/xfs/xfs_bmap_btree.c for (i = 0; i < be16_to_cpu(right->bb_numrecs); i++) { be16_to_cpu 1583 fs/xfs/xfs_bmap_btree.c memcpy(rkp, lkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1584 fs/xfs/xfs_bmap_btree.c memcpy(rpp, lpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1585 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1586 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1591 fs/xfs/xfs_bmap_btree.c memcpy(rrp, lrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1592 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1595 fs/xfs/xfs_bmap_btree.c be16_add_cpu(&left->bb_numrecs, -(be16_to_cpu(right->bb_numrecs))); be16_to_cpu 1616 fs/xfs/xfs_bmap_btree.c if (cur->bc_ptrs[level] > be16_to_cpu(left->bb_numrecs) + 1) { be16_to_cpu 1618 fs/xfs/xfs_bmap_btree.c cur->bc_ptrs[level] -= be16_to_cpu(left->bb_numrecs); be16_to_cpu 1689 fs/xfs/xfs_bmap_btree.c ASSERT(be16_to_cpu(rblock->bb_level) > 0); be16_to_cpu 1698 fs/xfs/xfs_bmap_btree.c dmxr = be16_to_cpu(dblock->bb_numrecs); be16_to_cpu 1770 fs/xfs/xfs_bmap_btree.c cur->bc_ptrs[lev] = be16_to_cpu(block->bb_numrecs); be16_to_cpu 2007 fs/xfs/xfs_bmap_btree.c if (++cur->bc_ptrs[level] <= be16_to_cpu(block->bb_numrecs)) { be16_to_cpu 2025 fs/xfs/xfs_bmap_btree.c if (++cur->bc_ptrs[lev] <= be16_to_cpu(block->bb_numrecs)) be16_to_cpu 2285 fs/xfs/xfs_bmap_btree.c memcpy(ckp, kp, be16_to_cpu(cblock->bb_numrecs) * sizeof(*kp)); be16_to_cpu 2288 fs/xfs/xfs_bmap_btree.c for (i = 0; i < be16_to_cpu(cblock->bb_numrecs); i++) { be16_to_cpu 2295 fs/xfs/xfs_bmap_btree.c memcpy(cpp, pp, be16_to_cpu(cblock->bb_numrecs) * sizeof(*pp)); be16_to_cpu 2303 fs/xfs/xfs_bmap_btree.c xfs_iroot_realloc(cur->bc_private.b.ip, 1 - be16_to_cpu(cblock->bb_numrecs), be16_to_cpu 2311 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_keys(cur, bp, 1, be16_to_cpu(cblock->bb_numrecs)); be16_to_cpu 2312 fs/xfs/xfs_bmap_btree.c xfs_bmbt_log_ptrs(cur, bp, 1, be16_to_cpu(cblock->bb_numrecs)); be16_to_cpu 2529 fs/xfs/xfs_bmap_btree.c ASSERT(be16_to_cpu(rblock->bb_level) > 0); be16_to_cpu 2537 fs/xfs/xfs_bmap_btree.c dmxr = be16_to_cpu(dblock->bb_numrecs); be16_to_cpu 192 fs/xfs/xfs_bmap_btree.h be16_to_cpu((bb)->bb_level), cur))) be16_to_cpu 195 fs/xfs/xfs_bmap_btree.h be16_to_cpu((bb)->bb_level), cur))) be16_to_cpu 208 fs/xfs/xfs_bmap_btree.h #define XFS_BMAP_BROOT_NUMRECS(bb) be16_to_cpu((bb)->bb_numrecs) be16_to_cpu 216 fs/xfs/xfs_bmap_btree.h (XFS_BMAP_BROOT_SPACE_CALC(be16_to_cpu((bb)->bb_numrecs))) be16_to_cpu 228 fs/xfs/xfs_bmap_btree.h be16_to_cpu((bb)->bb_level) == level && \ be16_to_cpu 229 fs/xfs/xfs_bmap_btree.h be16_to_cpu((bb)->bb_numrecs) > 0 && \ be16_to_cpu 230 fs/xfs/xfs_bmap_btree.h be16_to_cpu((bb)->bb_numrecs) <= (mp)->m_bmap_dmxr[(level) != 0]) be16_to_cpu 65 fs/xfs/xfs_btree.c be16_to_cpu(block->bb_h.bb_level), cur); be16_to_cpu 68 fs/xfs/xfs_btree.c be16_to_cpu(block->bb_h.bb_level), cur); be16_to_cpu 71 fs/xfs/xfs_btree.c be16_to_cpu(block->bb_h.bb_level), cur); be16_to_cpu 172 fs/xfs/xfs_btree.c be16_to_cpu(block->bb_level) == level && be16_to_cpu 173 fs/xfs/xfs_btree.c be16_to_cpu(block->bb_numrecs) <= be16_to_cpu 292 fs/xfs/xfs_btree.c be16_to_cpu(block->bb_level) == level && be16_to_cpu 293 fs/xfs/xfs_btree.c be16_to_cpu(block->bb_numrecs) <= be16_to_cpu 544 fs/xfs/xfs_btree.c nlevels = be16_to_cpu(ifp->if_broot->bb_level) + 1; be16_to_cpu 671 fs/xfs/xfs_btree.c cur->bc_ptrs[level] = be16_to_cpu(block->bb_h.bb_numrecs); be16_to_cpu 328 fs/xfs/xfs_da_btree.c if (be16_to_cpu(oldroot->hdr.info.magic) == XFS_DA_NODE_MAGIC) { be16_to_cpu 329 fs/xfs/xfs_da_btree.c size = (int)((char *)&oldroot->btree[be16_to_cpu(oldroot->hdr.count)] - be16_to_cpu 332 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(oldroot->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 334 fs/xfs/xfs_da_btree.c size = (int)((char *)&leaf->ents[be16_to_cpu(leaf->hdr.count)] - be16_to_cpu 348 fs/xfs/xfs_da_btree.c be16_to_cpu(node->hdr.level) + 1, &bp, args->whichfork); be16_to_cpu 359 fs/xfs/xfs_da_btree.c if (be16_to_cpu(oldroot->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC) { be16_to_cpu 391 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 401 fs/xfs/xfs_da_btree.c if ((be16_to_cpu(node->hdr.count) + newcount) > state->node_ents) { be16_to_cpu 438 fs/xfs/xfs_da_btree.c if (oldblk->index <= be16_to_cpu(node->hdr.count)) { be16_to_cpu 482 fs/xfs/xfs_da_btree.c if ((be16_to_cpu(node1->hdr.count) > 0) && (be16_to_cpu(node2->hdr.count) > 0) && be16_to_cpu 484 fs/xfs/xfs_da_btree.c (be32_to_cpu(node2->btree[be16_to_cpu(node2->hdr.count)-1].hashval) < be16_to_cpu 485 fs/xfs/xfs_da_btree.c be32_to_cpu(node1->btree[be16_to_cpu(node1->hdr.count)-1].hashval)))) { be16_to_cpu 490 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node1->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 491 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node2->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 492 fs/xfs/xfs_da_btree.c count = (be16_to_cpu(node1->hdr.count) - be16_to_cpu(node2->hdr.count)) / 2; be16_to_cpu 503 fs/xfs/xfs_da_btree.c if ((tmp = be16_to_cpu(node2->hdr.count)) > 0) { be16_to_cpu 516 fs/xfs/xfs_da_btree.c btree_s = &node1->btree[be16_to_cpu(node1->hdr.count) - count]; be16_to_cpu 528 fs/xfs/xfs_da_btree.c btree_d = &node1->btree[be16_to_cpu(node1->hdr.count)]; be16_to_cpu 537 fs/xfs/xfs_da_btree.c tmp = be16_to_cpu(node2->hdr.count) - count; be16_to_cpu 553 fs/xfs/xfs_da_btree.c sizeof(node2->btree[0]) * be16_to_cpu(node2->hdr.count))); be16_to_cpu 561 fs/xfs/xfs_da_btree.c blk1->hashval = be32_to_cpu(node1->btree[be16_to_cpu(node1->hdr.count)-1].hashval); be16_to_cpu 562 fs/xfs/xfs_da_btree.c blk2->hashval = be32_to_cpu(node2->btree[be16_to_cpu(node2->hdr.count)-1].hashval); be16_to_cpu 567 fs/xfs/xfs_da_btree.c if (blk1->index >= be16_to_cpu(node1->hdr.count)) { be16_to_cpu 568 fs/xfs/xfs_da_btree.c blk2->index = blk1->index - be16_to_cpu(node1->hdr.count); be16_to_cpu 569 fs/xfs/xfs_da_btree.c blk1->index = be16_to_cpu(node1->hdr.count) + 1; /* make it invalid */ be16_to_cpu 587 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 588 fs/xfs/xfs_da_btree.c ASSERT((oldblk->index >= 0) && (oldblk->index <= be16_to_cpu(node->hdr.count))); be16_to_cpu 599 fs/xfs/xfs_da_btree.c if (oldblk->index < be16_to_cpu(node->hdr.count)) { be16_to_cpu 600 fs/xfs/xfs_da_btree.c tmp = (be16_to_cpu(node->hdr.count) - oldblk->index) * (uint)sizeof(*btree); be16_to_cpu 614 fs/xfs/xfs_da_btree.c oldblk->hashval = be32_to_cpu(node->btree[be16_to_cpu(node->hdr.count)-1 ].hashval); be16_to_cpu 723 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(oldroot->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 730 fs/xfs/xfs_da_btree.c if (be16_to_cpu(oldroot->hdr.count) > 1) be16_to_cpu 745 fs/xfs/xfs_da_btree.c if (be16_to_cpu(oldroot->hdr.level) == 1) { be16_to_cpu 746 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(blkinfo->magic) == XFS_DIR2_LEAFN_MAGIC || be16_to_cpu 747 fs/xfs/xfs_da_btree.c be16_to_cpu(blkinfo->magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 749 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(blkinfo->magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 785 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(info->magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 787 fs/xfs/xfs_da_btree.c count = be16_to_cpu(node->hdr.count); be16_to_cpu 843 fs/xfs/xfs_da_btree.c count -= be16_to_cpu(node->hdr.count); be16_to_cpu 845 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 846 fs/xfs/xfs_da_btree.c count -= be16_to_cpu(node->hdr.count); be16_to_cpu 920 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 929 fs/xfs/xfs_da_btree.c lasthash = be32_to_cpu(node->btree[be16_to_cpu(node->hdr.count)-1].hashval); be16_to_cpu 944 fs/xfs/xfs_da_btree.c ASSERT(drop_blk->index < be16_to_cpu(node->hdr.count)); be16_to_cpu 951 fs/xfs/xfs_da_btree.c if (drop_blk->index < (be16_to_cpu(node->hdr.count)-1)) { be16_to_cpu 952 fs/xfs/xfs_da_btree.c tmp = be16_to_cpu(node->hdr.count) - drop_blk->index - 1; be16_to_cpu 957 fs/xfs/xfs_da_btree.c btree = &node->btree[be16_to_cpu(node->hdr.count)-1]; be16_to_cpu 988 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(drop_node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 989 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(save_node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 997 fs/xfs/xfs_da_btree.c (be32_to_cpu(drop_node->btree[be16_to_cpu(drop_node->hdr.count)-1].hashval) < be16_to_cpu 998 fs/xfs/xfs_da_btree.c be32_to_cpu(save_node->btree[be16_to_cpu(save_node->hdr.count)-1].hashval))) be16_to_cpu 1000 fs/xfs/xfs_da_btree.c btree = &save_node->btree[be16_to_cpu(drop_node->hdr.count)]; be16_to_cpu 1001 fs/xfs/xfs_da_btree.c tmp = be16_to_cpu(save_node->hdr.count) * (uint)sizeof(xfs_da_node_entry_t); be16_to_cpu 1006 fs/xfs/xfs_da_btree.c (be16_to_cpu(save_node->hdr.count) + be16_to_cpu(drop_node->hdr.count)) * be16_to_cpu 1009 fs/xfs/xfs_da_btree.c btree = &save_node->btree[be16_to_cpu(save_node->hdr.count)]; be16_to_cpu 1012 fs/xfs/xfs_da_btree.c be16_to_cpu(drop_node->hdr.count) * be16_to_cpu 1019 fs/xfs/xfs_da_btree.c tmp = be16_to_cpu(drop_node->hdr.count) * (uint)sizeof(xfs_da_node_entry_t); be16_to_cpu 1021 fs/xfs/xfs_da_btree.c be16_add_cpu(&save_node->hdr.count, be16_to_cpu(drop_node->hdr.count)); be16_to_cpu 1030 fs/xfs/xfs_da_btree.c save_blk->hashval = be32_to_cpu(save_node->btree[be16_to_cpu(save_node->hdr.count)-1].hashval); be16_to_cpu 1082 fs/xfs/xfs_da_btree.c blk->magic = be16_to_cpu(curr->magic); be16_to_cpu 1092 fs/xfs/xfs_da_btree.c max = be16_to_cpu(node->hdr.count); be16_to_cpu 1209 fs/xfs/xfs_da_btree.c ASSERT(old_blk->magic == be16_to_cpu(old_info->magic)); be16_to_cpu 1210 fs/xfs/xfs_da_btree.c ASSERT(new_blk->magic == be16_to_cpu(new_info->magic)); be16_to_cpu 1242 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(tmp_info->magic) == be16_to_cpu(old_info->magic)); be16_to_cpu 1287 fs/xfs/xfs_da_btree.c ASSERT((be16_to_cpu(node1->hdr.info.magic) == XFS_DA_NODE_MAGIC) && be16_to_cpu 1288 fs/xfs/xfs_da_btree.c (be16_to_cpu(node2->hdr.info.magic) == XFS_DA_NODE_MAGIC)); be16_to_cpu 1289 fs/xfs/xfs_da_btree.c if ((be16_to_cpu(node1->hdr.count) > 0) && (be16_to_cpu(node2->hdr.count) > 0) && be16_to_cpu 1292 fs/xfs/xfs_da_btree.c (be32_to_cpu(node2->btree[be16_to_cpu(node2->hdr.count)-1].hashval) < be16_to_cpu 1293 fs/xfs/xfs_da_btree.c be32_to_cpu(node1->btree[be16_to_cpu(node1->hdr.count)-1].hashval)))) { be16_to_cpu 1308 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 1310 fs/xfs/xfs_da_btree.c *count = be16_to_cpu(node->hdr.count); be16_to_cpu 1313 fs/xfs/xfs_da_btree.c return be32_to_cpu(node->btree[be16_to_cpu(node->hdr.count)-1].hashval); be16_to_cpu 1338 fs/xfs/xfs_da_btree.c ASSERT(save_blk->magic == be16_to_cpu(save_info->magic)); be16_to_cpu 1339 fs/xfs/xfs_da_btree.c ASSERT(drop_blk->magic == be16_to_cpu(drop_info->magic)); be16_to_cpu 1421 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 1422 fs/xfs/xfs_da_btree.c if (forward && (blk->index < be16_to_cpu(node->hdr.count)-1)) { be16_to_cpu 1460 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(info->magic) == XFS_DA_NODE_MAGIC || be16_to_cpu 1461 fs/xfs/xfs_da_btree.c be16_to_cpu(info->magic) == XFS_DIR2_LEAFN_MAGIC || be16_to_cpu 1462 fs/xfs/xfs_da_btree.c be16_to_cpu(info->magic) == XFS_ATTR_LEAF_MAGIC); be16_to_cpu 1463 fs/xfs/xfs_da_btree.c blk->magic = be16_to_cpu(info->magic); be16_to_cpu 1466 fs/xfs/xfs_da_btree.c blk->hashval = be32_to_cpu(node->btree[be16_to_cpu(node->hdr.count)-1].hashval); be16_to_cpu 1470 fs/xfs/xfs_da_btree.c blk->index = be16_to_cpu(node->hdr.count)-1; be16_to_cpu 1709 fs/xfs/xfs_da_btree.c if (be16_to_cpu(dead_info->magic) == XFS_DIR2_LEAFN_MAGIC) { be16_to_cpu 1712 fs/xfs/xfs_da_btree.c dead_hash = be32_to_cpu(dead_leaf2->ents[be16_to_cpu(dead_leaf2->hdr.count) - 1].hashval); be16_to_cpu 1714 fs/xfs/xfs_da_btree.c ASSERT(be16_to_cpu(dead_info->magic) == XFS_DA_NODE_MAGIC); be16_to_cpu 1716 fs/xfs/xfs_da_btree.c dead_level = be16_to_cpu(dead_node->hdr.level); be16_to_cpu 1717 fs/xfs/xfs_da_btree.c dead_hash = be32_to_cpu(dead_node->btree[be16_to_cpu(dead_node->hdr.count) - 1].hashval); be16_to_cpu 1774 fs/xfs/xfs_da_btree.c be16_to_cpu(par_node->hdr.info.magic) != XFS_DA_NODE_MAGIC || be16_to_cpu 1775 fs/xfs/xfs_da_btree.c (level >= 0 && level != be16_to_cpu(par_node->hdr.level) + 1))) { be16_to_cpu 1781 fs/xfs/xfs_da_btree.c level = be16_to_cpu(par_node->hdr.level); be16_to_cpu 1783 fs/xfs/xfs_da_btree.c entno < be16_to_cpu(par_node->hdr.count) && be16_to_cpu 1787 fs/xfs/xfs_da_btree.c if (unlikely(entno == be16_to_cpu(par_node->hdr.count))) { be16_to_cpu 1805 fs/xfs/xfs_da_btree.c entno < be16_to_cpu(par_node->hdr.count) && be16_to_cpu 1809 fs/xfs/xfs_da_btree.c if (entno < be16_to_cpu(par_node->hdr.count)) be16_to_cpu 1824 fs/xfs/xfs_da_btree.c be16_to_cpu(par_node->hdr.level) != level || be16_to_cpu 1825 fs/xfs/xfs_da_btree.c be16_to_cpu(par_node->hdr.info.magic) != XFS_DA_NODE_MAGIC)) { be16_to_cpu 2093 fs/xfs/xfs_da_btree.c magic = be16_to_cpu(info->magic); be16_to_cpu 202 fs/xfs/xfs_dinode.h be16_to_cpu((dip)->di_core.di_anextents)) be16_to_cpu 137 fs/xfs/xfs_dir2_block.c enddup = (xfs_dir2_data_unused_t *)((char *)block + be16_to_cpu(*tagp)); be16_to_cpu 143 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(enddup->freetag) != XFS_DIR2_DATA_FREE_TAG) be16_to_cpu 150 fs/xfs/xfs_dir2_block.c ((char *)block + be16_to_cpu(bf[0].offset)); be16_to_cpu 156 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { be16_to_cpu 161 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(bf[1].length) >= len) be16_to_cpu 164 fs/xfs/xfs_dir2_block.c be16_to_cpu(bf[1].offset)); be16_to_cpu 173 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(dup->length) < len) { be16_to_cpu 184 fs/xfs/xfs_dir2_block.c else if (be16_to_cpu(bf[0].length) >= len) { be16_to_cpu 186 fs/xfs/xfs_dir2_block.c ((char *)block + be16_to_cpu(bf[0].offset)); be16_to_cpu 200 fs/xfs/xfs_dir2_block.c dup = (xfs_dir2_data_unused_t *)((char *)block + be16_to_cpu(*tagp)); be16_to_cpu 205 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { be16_to_cpu 206 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * be16_to_cpu 322 fs/xfs/xfs_dir2_block.c ((char *)enddup - (char *)block + be16_to_cpu(enddup->length) - be16_to_cpu 493 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { be16_to_cpu 494 fs/xfs/xfs_dir2_block.c ptr += be16_to_cpu(dup->length); be16_to_cpu 909 fs/xfs/xfs_dir2_block.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC); be16_to_cpu 919 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == be16_to_cpu 944 fs/xfs/xfs_dir2_block.c (uint)sizeof(*lep) * (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale)); be16_to_cpu 949 fs/xfs/xfs_dir2_block.c dup = (xfs_dir2_data_unused_t *)((char *)block + be16_to_cpu(*tagp)); be16_to_cpu 953 fs/xfs/xfs_dir2_block.c if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG || be16_to_cpu 954 fs/xfs/xfs_dir2_block.c be16_to_cpu(dup->length) < size) { be16_to_cpu 973 fs/xfs/xfs_dir2_block.c btp->count = cpu_to_be32(be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale)); be16_to_cpu 980 fs/xfs/xfs_dir2_block.c for (from = to = 0; from < be16_to_cpu(leaf->hdr.count); from++) { be16_to_cpu 1128 fs/xfs/xfs_dir2_block.c be16_to_cpu(dup->length), &needlog, &needscan); be16_to_cpu 1190 fs/xfs/xfs_dir2_block.c offset += be16_to_cpu(dup->length); be16_to_cpu 98 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(bf[0].length) >= be16_to_cpu(bf[1].length)); be16_to_cpu 99 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(bf[1].length) >= be16_to_cpu(bf[2].length)); be16_to_cpu 110 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { be16_to_cpu 112 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)) == be16_to_cpu 120 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(dup->length) <= be16_to_cpu 121 fs/xfs/xfs_dir2_data.c be16_to_cpu(bf[2].length)); be16_to_cpu 123 fs/xfs/xfs_dir2_data.c p += be16_to_cpu(dup->length); be16_to_cpu 136 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(*xfs_dir2_data_entry_tag_p(dep)) == be16_to_cpu 207 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(dfp->offset) == off) { be16_to_cpu 210 fs/xfs/xfs_dir2_data.c } else if (off < be16_to_cpu(dfp->offset)) be16_to_cpu 211 fs/xfs/xfs_dir2_data.c ASSERT(off + be16_to_cpu(dup->length) <= be16_to_cpu(dfp->offset)); be16_to_cpu 213 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(dfp->offset) + be16_to_cpu(dfp->length) <= off); be16_to_cpu 214 fs/xfs/xfs_dir2_data.c ASSERT(matched || be16_to_cpu(dfp->length) >= be16_to_cpu(dup->length)); be16_to_cpu 216 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(dfp[-1].length) >= be16_to_cpu(dfp[0].length)); be16_to_cpu 223 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(dup->length) < be16_to_cpu 224 fs/xfs/xfs_dir2_data.c be16_to_cpu(d->hdr.bestfree[XFS_DIR2_DATA_FD_COUNT - 1].length)) be16_to_cpu 234 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(dfp->offset) == off) be16_to_cpu 265 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(new.length) > be16_to_cpu(dfp[0].length)) { be16_to_cpu 272 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(new.length) > be16_to_cpu(dfp[1].length)) { be16_to_cpu 278 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(new.length) > be16_to_cpu(dfp[2].length)) { be16_to_cpu 365 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { be16_to_cpu 367 fs/xfs/xfs_dir2_data.c be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup))); be16_to_cpu 369 fs/xfs/xfs_dir2_data.c p += be16_to_cpu(dup->length); be16_to_cpu 377 fs/xfs/xfs_dir2_data.c be16_to_cpu(*xfs_dir2_data_entry_tag_p(dep))); be16_to_cpu 553 fs/xfs/xfs_dir2_data.c prevdup = (xfs_dir2_data_unused_t *)((char *)d + be16_to_cpu(*tagp)); be16_to_cpu 554 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(prevdup->freetag) != XFS_DIR2_DATA_FREE_TAG) be16_to_cpu 565 fs/xfs/xfs_dir2_data.c if (be16_to_cpu(postdup->freetag) != XFS_DIR2_DATA_FREE_TAG) be16_to_cpu 593 fs/xfs/xfs_dir2_data.c be16_add_cpu(&prevdup->length, len + be16_to_cpu(postdup->length)); be16_to_cpu 644 fs/xfs/xfs_dir2_data.c needscan = be16_to_cpu(prevdup->length) > be16_to_cpu 645 fs/xfs/xfs_dir2_data.c be16_to_cpu(d->hdr.bestfree[2].length); be16_to_cpu 655 fs/xfs/xfs_dir2_data.c newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length)); be16_to_cpu 672 fs/xfs/xfs_dir2_data.c needscan = be16_to_cpu(newdup->length) > be16_to_cpu 673 fs/xfs/xfs_dir2_data.c be16_to_cpu(d->hdr.bestfree[2].length); be16_to_cpu 716 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG); be16_to_cpu 718 fs/xfs/xfs_dir2_data.c ASSERT(offset + len <= (char *)dup + be16_to_cpu(dup->length) - (char *)d); be16_to_cpu 719 fs/xfs/xfs_dir2_data.c ASSERT((char *)dup - (char *)d == be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup))); be16_to_cpu 724 fs/xfs/xfs_dir2_data.c oldlen = be16_to_cpu(dup->length); be16_to_cpu 725 fs/xfs/xfs_dir2_data.c ASSERT(dfp || oldlen <= be16_to_cpu(d->hdr.bestfree[2].length)); be16_to_cpu 763 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(dfp->offset) == (char *)newdup - (char *)d); be16_to_cpu 790 fs/xfs/xfs_dir2_data.c ASSERT(be16_to_cpu(dfp->offset) == (char *)newdup - (char *)d); be16_to_cpu 811 fs/xfs/xfs_dir2_data.c newdup2->length = cpu_to_be16(oldlen - len - be16_to_cpu(newdup->length)); be16_to_cpu 149 fs/xfs/xfs_dir2_data.h be16_to_cpu(dup->length) - sizeof(__be16)); be16_to_cpu 119 fs/xfs/xfs_dir2_leaf.c xfs_dir2_leaf_log_ents(tp, lbp, 0, be16_to_cpu(leaf->hdr.count) - 1); be16_to_cpu 222 fs/xfs/xfs_dir2_leaf.c index < be16_to_cpu(leaf->hdr.count) && be32_to_cpu(lep->hashval) == args->hashval; be16_to_cpu 228 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(bestsp[i]) != NULLDATAOFF); be16_to_cpu 229 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(bestsp[i]) >= length) { be16_to_cpu 242 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(bestsp[i]) == NULLDATAOFF && use_block == -1) be16_to_cpu 244 fs/xfs/xfs_dir2_leaf.c else if (be16_to_cpu(bestsp[i]) >= length) { be16_to_cpu 260 fs/xfs/xfs_dir2_leaf.c if (use_block != -1 && be16_to_cpu(bestsp[use_block]) == NULLDATAOFF) be16_to_cpu 266 fs/xfs/xfs_dir2_leaf.c if ((char *)bestsp - (char *)&leaf->ents[be16_to_cpu(leaf->hdr.count)] < be16_to_cpu 267 fs/xfs/xfs_dir2_leaf.c needbytes && be16_to_cpu(leaf->hdr.stale) > 1) { be16_to_cpu 274 fs/xfs/xfs_dir2_leaf.c else if ((char *)bestsp - (char *)&leaf->ents[be16_to_cpu( be16_to_cpu 331 fs/xfs/xfs_dir2_leaf.c else if (be16_to_cpu(leaf->hdr.stale)) { be16_to_cpu 332 fs/xfs/xfs_dir2_leaf.c lfloglow = be16_to_cpu(leaf->hdr.count); be16_to_cpu 395 fs/xfs/xfs_dir2_leaf.c ((char *)data + be16_to_cpu(data->hdr.bestfree[0].offset)); be16_to_cpu 396 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(dup->length) >= length); be16_to_cpu 428 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(data->hdr.bestfree[0].length)) { be16_to_cpu 441 fs/xfs/xfs_dir2_leaf.c if (index < be16_to_cpu(leaf->hdr.count)) be16_to_cpu 443 fs/xfs/xfs_dir2_leaf.c (be16_to_cpu(leaf->hdr.count) - index) * sizeof(*lep)); be16_to_cpu 448 fs/xfs/xfs_dir2_leaf.c lfloghigh = be16_to_cpu(leaf->hdr.count); be16_to_cpu 479 fs/xfs/xfs_dir2_leaf.c highstale < be16_to_cpu(leaf->hdr.count) && be16_to_cpu 491 fs/xfs/xfs_dir2_leaf.c (highstale == be16_to_cpu(leaf->hdr.count) || be16_to_cpu 534 fs/xfs/xfs_dir2_leaf.c be16_to_cpu(*tagp))); be16_to_cpu 565 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC); be16_to_cpu 571 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.count) <= xfs_dir2_max_leaf_ents(mp)); be16_to_cpu 576 fs/xfs/xfs_dir2_leaf.c ASSERT((char *)&leaf->ents[be16_to_cpu(leaf->hdr.count)] <= be16_to_cpu 581 fs/xfs/xfs_dir2_leaf.c for (i = stale = 0; i < be16_to_cpu(leaf->hdr.count); i++) { be16_to_cpu 582 fs/xfs/xfs_dir2_leaf.c if (i + 1 < be16_to_cpu(leaf->hdr.count)) be16_to_cpu 588 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.stale) == stale); be16_to_cpu 613 fs/xfs/xfs_dir2_leaf.c for (from = to = 0, loglow = -1; from < be16_to_cpu(leaf->hdr.count); from++) { be16_to_cpu 629 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.stale) == from - to); be16_to_cpu 630 fs/xfs/xfs_dir2_leaf.c be16_add_cpu(&leaf->hdr.count, -(be16_to_cpu(leaf->hdr.stale))); be16_to_cpu 664 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.stale) > 1); be16_to_cpu 679 fs/xfs/xfs_dir2_leaf.c highstale < be16_to_cpu(leaf->hdr.count) && be16_to_cpu 688 fs/xfs/xfs_dir2_leaf.c (highstale == be16_to_cpu(leaf->hdr.count) || be16_to_cpu 697 fs/xfs/xfs_dir2_leaf.c for (from = to = 0; from < be16_to_cpu(leaf->hdr.count); from++) { be16_to_cpu 741 fs/xfs/xfs_dir2_leaf.c highstale = be16_to_cpu(leaf->hdr.count); be16_to_cpu 742 fs/xfs/xfs_dir2_leaf.c *highlogp = be16_to_cpu(leaf->hdr.count) - 1; be16_to_cpu 1040 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(dup->freetag) be16_to_cpu 1043 fs/xfs/xfs_dir2_leaf.c length = be16_to_cpu(dup->length); be16_to_cpu 1072 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { be16_to_cpu 1073 fs/xfs/xfs_dir2_leaf.c length = be16_to_cpu(dup->length); be16_to_cpu 1193 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC); be16_to_cpu 1216 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC || be16_to_cpu 1217 fs/xfs/xfs_dir2_leaf.c be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 1235 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC || be16_to_cpu 1236 fs/xfs/xfs_dir2_leaf.c be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 1255 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC); be16_to_cpu 1360 fs/xfs/xfs_dir2_leaf.c for (lep = &leaf->ents[index]; index < be16_to_cpu(leaf->hdr.count) && be16_to_cpu 1489 fs/xfs/xfs_dir2_leaf.c oldbest = be16_to_cpu(data->hdr.bestfree[0].length); be16_to_cpu 1492 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(bestsp[db]) == oldbest); be16_to_cpu 1518 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(data->hdr.bestfree[0].length) != oldbest) { be16_to_cpu 1526 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(data->hdr.bestfree[0].length) == be16_to_cpu 1554 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(bestsp[i]) != NULLDATAOFF) be16_to_cpu 1659 fs/xfs/xfs_dir2_leaf.c for (lep = leaf->ents, low = 0, high = be16_to_cpu(leaf->hdr.count) - 1, be16_to_cpu 1729 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(data->hdr.bestfree[0].length) == be16_to_cpu 1819 fs/xfs/xfs_dir2_leaf.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 1835 fs/xfs/xfs_dir2_leaf.c (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale)) * (uint)sizeof(leaf->ents[0]) + be16_to_cpu 1846 fs/xfs/xfs_dir2_leaf.c if (be16_to_cpu(leaf->hdr.stale)) be16_to_cpu 161 fs/xfs/xfs_dir2_node.c if ((off = be16_to_cpu(*from)) != NULLDATAOFF) be16_to_cpu 219 fs/xfs/xfs_dir2_node.c if (be16_to_cpu(leaf->hdr.count) == xfs_dir2_max_leaf_ents(mp)) { be16_to_cpu 222 fs/xfs/xfs_dir2_node.c compact = be16_to_cpu(leaf->hdr.stale) > 1; be16_to_cpu 226 fs/xfs/xfs_dir2_node.c ASSERT(index == be16_to_cpu(leaf->hdr.count) || be16_to_cpu 244 fs/xfs/xfs_dir2_node.c lfloglow = be16_to_cpu(leaf->hdr.count); be16_to_cpu 252 fs/xfs/xfs_dir2_node.c if (index < be16_to_cpu(leaf->hdr.count)) be16_to_cpu 254 fs/xfs/xfs_dir2_node.c (be16_to_cpu(leaf->hdr.count) - index) * sizeof(*lep)); be16_to_cpu 256 fs/xfs/xfs_dir2_node.c lfloghigh = be16_to_cpu(leaf->hdr.count); be16_to_cpu 283 fs/xfs/xfs_dir2_node.c highstale < be16_to_cpu(leaf->hdr.count) && be16_to_cpu 296 fs/xfs/xfs_dir2_node.c (highstale == be16_to_cpu(leaf->hdr.count) || be16_to_cpu 355 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 356 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.count) <= xfs_dir2_max_leaf_ents(mp)); be16_to_cpu 357 fs/xfs/xfs_dir2_node.c for (i = stale = 0; i < be16_to_cpu(leaf->hdr.count); i++) { be16_to_cpu 358 fs/xfs/xfs_dir2_node.c if (i + 1 < be16_to_cpu(leaf->hdr.count)) { be16_to_cpu 365 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.stale) == stale); be16_to_cpu 381 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 383 fs/xfs/xfs_dir2_node.c *count = be16_to_cpu(leaf->hdr.count); be16_to_cpu 386 fs/xfs/xfs_dir2_node.c return be32_to_cpu(leaf->ents[be16_to_cpu(leaf->hdr.count) - 1].hashval); be16_to_cpu 420 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 422 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.count) > 0); be16_to_cpu 443 fs/xfs/xfs_dir2_node.c for (lep = &leaf->ents[index]; index < be16_to_cpu(leaf->hdr.count) && be16_to_cpu 503 fs/xfs/xfs_dir2_node.c if (unlikely(be16_to_cpu(free->bests[fi]) == NULLDATAOFF)) { be16_to_cpu 511 fs/xfs/xfs_dir2_node.c if (be16_to_cpu(free->bests[fi]) >= length) be16_to_cpu 564 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 566 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.count) > 0); be16_to_cpu 583 fs/xfs/xfs_dir2_node.c for (lep = &leaf->ents[index]; index < be16_to_cpu(leaf->hdr.count) && be16_to_cpu 656 fs/xfs/xfs_dir2_node.c ASSERT(index == be16_to_cpu(leaf->hdr.count) || be16_to_cpu 730 fs/xfs/xfs_dir2_node.c if (start_d < be16_to_cpu(leaf_d->hdr.count)) { be16_to_cpu 732 fs/xfs/xfs_dir2_node.c (be16_to_cpu(leaf_d->hdr.count) - start_d) * be16_to_cpu 735 fs/xfs/xfs_dir2_node.c count + be16_to_cpu(leaf_d->hdr.count) - 1); be16_to_cpu 760 fs/xfs/xfs_dir2_node.c if (start_s + count < be16_to_cpu(leaf_s->hdr.count)) { be16_to_cpu 792 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf1->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 793 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf2->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 794 fs/xfs/xfs_dir2_node.c if (be16_to_cpu(leaf1->hdr.count) > 0 && be16_to_cpu 795 fs/xfs/xfs_dir2_node.c be16_to_cpu(leaf2->hdr.count) > 0 && be16_to_cpu 797 fs/xfs/xfs_dir2_node.c be32_to_cpu(leaf2->ents[be16_to_cpu(leaf2->hdr.count) - 1].hashval) < be16_to_cpu 798 fs/xfs/xfs_dir2_node.c be32_to_cpu(leaf1->ents[be16_to_cpu(leaf1->hdr.count) - 1].hashval))) be16_to_cpu 841 fs/xfs/xfs_dir2_node.c oldsum = be16_to_cpu(leaf1->hdr.count) + be16_to_cpu(leaf2->hdr.count); be16_to_cpu 843 fs/xfs/xfs_dir2_node.c oldstale = be16_to_cpu(leaf1->hdr.stale) + be16_to_cpu(leaf2->hdr.stale); be16_to_cpu 853 fs/xfs/xfs_dir2_node.c if (mid >= be16_to_cpu(leaf1->hdr.count)) be16_to_cpu 854 fs/xfs/xfs_dir2_node.c midhash = be32_to_cpu(leaf2->ents[mid - be16_to_cpu(leaf1->hdr.count)].hashval); be16_to_cpu 870 fs/xfs/xfs_dir2_node.c count = be16_to_cpu(leaf1->hdr.count) - mid + (isleft == 0); be16_to_cpu 873 fs/xfs/xfs_dir2_node.c be16_to_cpu(leaf1->hdr.count) - count, blk2->bp, 0, count); be16_to_cpu 876 fs/xfs/xfs_dir2_node.c be16_to_cpu(leaf1->hdr.count), count); be16_to_cpu 877 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf1->hdr.count) + be16_to_cpu(leaf2->hdr.count) == oldsum); be16_to_cpu 878 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf1->hdr.stale) + be16_to_cpu(leaf2->hdr.stale) == oldstale); be16_to_cpu 882 fs/xfs/xfs_dir2_node.c if (be16_to_cpu(leaf1->hdr.count) < be16_to_cpu(leaf2->hdr.count)) be16_to_cpu 884 fs/xfs/xfs_dir2_node.c else if (be16_to_cpu(leaf1->hdr.count) > be16_to_cpu(leaf2->hdr.count)) be16_to_cpu 888 fs/xfs/xfs_dir2_node.c swap ^ (blk1->index <= be16_to_cpu(leaf1->hdr.count)); be16_to_cpu 893 fs/xfs/xfs_dir2_node.c blk2->index = blk1->index - be16_to_cpu(leaf1->hdr.count); be16_to_cpu 941 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 968 fs/xfs/xfs_dir2_node.c longest = be16_to_cpu(data->hdr.bestfree[0].length); be16_to_cpu 985 fs/xfs/xfs_dir2_node.c if (longest < be16_to_cpu(data->hdr.bestfree[0].length)) { be16_to_cpu 1011 fs/xfs/xfs_dir2_node.c longest = be16_to_cpu(data->hdr.bestfree[0].length); be16_to_cpu 1055 fs/xfs/xfs_dir2_node.c i >= 0 && be16_to_cpu(free->bests[i]) == NULLDATAOFF; be16_to_cpu 1113 fs/xfs/xfs_dir2_node.c (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale))) < be16_to_cpu 1212 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(info->magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 1214 fs/xfs/xfs_dir2_node.c count = be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale); be16_to_cpu 1268 fs/xfs/xfs_dir2_node.c count = be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale); be16_to_cpu 1271 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 1272 fs/xfs/xfs_dir2_node.c count += be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale); be16_to_cpu 1330 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(drop_leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 1331 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(save_leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); be16_to_cpu 1343 fs/xfs/xfs_dir2_node.c drop_blk->hashval = be32_to_cpu(drop_leaf->ents[be16_to_cpu(drop_leaf->hdr.count) - 1].hashval); be16_to_cpu 1346 fs/xfs/xfs_dir2_node.c be16_to_cpu(drop_leaf->hdr.count)); be16_to_cpu 1349 fs/xfs/xfs_dir2_node.c be16_to_cpu(save_leaf->hdr.count), be16_to_cpu(drop_leaf->hdr.count)); be16_to_cpu 1350 fs/xfs/xfs_dir2_node.c save_blk->hashval = be32_to_cpu(save_leaf->ents[be16_to_cpu(save_leaf->hdr.count) - 1].hashval); be16_to_cpu 1480 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(free->bests[findex]) != NULLDATAOFF); be16_to_cpu 1481 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(free->bests[findex]) >= length); be16_to_cpu 1561 fs/xfs/xfs_dir2_node.c if (be16_to_cpu(free->bests[findex]) != NULLDATAOFF && be16_to_cpu 1562 fs/xfs/xfs_dir2_node.c be16_to_cpu(free->bests[findex]) >= length) be16_to_cpu 1714 fs/xfs/xfs_dir2_node.c if (be16_to_cpu(free->bests[findex]) == NULLDATAOFF) { be16_to_cpu 1752 fs/xfs/xfs_dir2_node.c ASSERT(be16_to_cpu(data->hdr.bestfree[0].length) >= length); be16_to_cpu 1757 fs/xfs/xfs_dir2_node.c ((char *)data + be16_to_cpu(data->hdr.bestfree[0].offset)); be16_to_cpu 1788 fs/xfs/xfs_dir2_node.c if (be16_to_cpu(free->bests[findex]) != be16_to_cpu(data->hdr.bestfree[0].length)) { be16_to_cpu 1806 fs/xfs/xfs_dir2_node.c args->index = be16_to_cpu(*tagp); be16_to_cpu 221 fs/xfs/xfs_dir2_sf.c if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { be16_to_cpu 222 fs/xfs/xfs_dir2_sf.c ptr += be16_to_cpu(dup->length); be16_to_cpu 119 fs/xfs/xfs_ialloc_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 279 fs/xfs/xfs_ialloc_btree.c if (be16_to_cpu(right->bb_numrecs) - 1 >= be16_to_cpu 284 fs/xfs/xfs_ialloc_btree.c ASSERT(be16_to_cpu(block->bb_numrecs) >= be16_to_cpu 301 fs/xfs/xfs_ialloc_btree.c rrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 339 fs/xfs/xfs_ialloc_btree.c if (be16_to_cpu(left->bb_numrecs) - 1 >= be16_to_cpu 344 fs/xfs/xfs_ialloc_btree.c ASSERT(be16_to_cpu(block->bb_numrecs) >= be16_to_cpu 358 fs/xfs/xfs_ialloc_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 379 fs/xfs/xfs_ialloc_btree.c rrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 386 fs/xfs/xfs_ialloc_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 401 fs/xfs/xfs_ialloc_btree.c lrecs = be16_to_cpu(left->bb_numrecs); be16_to_cpu 408 fs/xfs/xfs_ialloc_btree.c rrecs = be16_to_cpu(right->bb_numrecs); be16_to_cpu 585 fs/xfs/xfs_ialloc_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 659 fs/xfs/xfs_ialloc_btree.c numrecs = be16_to_cpu(block->bb_numrecs); be16_to_cpu 926 fs/xfs/xfs_ialloc_btree.c if (!(high = be16_to_cpu(block->bb_numrecs))) { be16_to_cpu 1012 fs/xfs/xfs_ialloc_btree.c keyno > be16_to_cpu(block->bb_numrecs) && be16_to_cpu 1030 fs/xfs/xfs_ialloc_btree.c if (keyno == 0 || keyno > be16_to_cpu(block->bb_numrecs)) be16_to_cpu 1101 fs/xfs/xfs_ialloc_btree.c if (be16_to_cpu(left->bb_numrecs) == XFS_INOBT_BLOCK_MAXRECS(level, cur)) { be16_to_cpu 1105 fs/xfs/xfs_ialloc_btree.c nrec = be16_to_cpu(left->bb_numrecs) + 1; be16_to_cpu 1150 fs/xfs/xfs_ialloc_btree.c for (i = 0; i < be16_to_cpu(right->bb_numrecs); i++) { be16_to_cpu 1156 fs/xfs/xfs_ialloc_btree.c memmove(rkp, rkp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1157 fs/xfs/xfs_ialloc_btree.c memmove(rpp, rpp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1158 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1159 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1161 fs/xfs/xfs_ialloc_btree.c memmove(rrp, rrp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1162 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1299 fs/xfs/xfs_ialloc_btree.c if (be16_to_cpu(left->bb_level) > 0) { be16_to_cpu 1371 fs/xfs/xfs_ialloc_btree.c if (cur->bc_ptrs[level] >= be16_to_cpu(left->bb_numrecs)) { be16_to_cpu 1388 fs/xfs/xfs_ialloc_btree.c if (be16_to_cpu(right->bb_numrecs) == XFS_INOBT_BLOCK_MAXRECS(level, cur)) { be16_to_cpu 1397 fs/xfs/xfs_ialloc_btree.c lkp = XFS_INOBT_KEY_ADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1398 fs/xfs/xfs_ialloc_btree.c lpp = XFS_INOBT_PTR_ADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1402 fs/xfs/xfs_ialloc_btree.c for (i = be16_to_cpu(right->bb_numrecs) - 1; i >= 0; i--) { be16_to_cpu 1407 fs/xfs/xfs_ialloc_btree.c memmove(rkp + 1, rkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1408 fs/xfs/xfs_ialloc_btree.c memmove(rpp + 1, rpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1415 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1416 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1418 fs/xfs/xfs_ialloc_btree.c lrp = XFS_INOBT_REC_ADDR(left, be16_to_cpu(left->bb_numrecs), cur); be16_to_cpu 1420 fs/xfs/xfs_ialloc_btree.c memmove(rrp + 1, rrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1422 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); be16_to_cpu 1525 fs/xfs/xfs_ialloc_btree.c right->bb_numrecs = cpu_to_be16(be16_to_cpu(left->bb_numrecs) / 2); be16_to_cpu 1530 fs/xfs/xfs_ialloc_btree.c if ((be16_to_cpu(left->bb_numrecs) & 1) && be16_to_cpu 1531 fs/xfs/xfs_ialloc_btree.c cur->bc_ptrs[level] <= be16_to_cpu(right->bb_numrecs) + 1) be16_to_cpu 1533 fs/xfs/xfs_ialloc_btree.c i = be16_to_cpu(left->bb_numrecs) - be16_to_cpu(right->bb_numrecs) + 1; be16_to_cpu 1543 fs/xfs/xfs_ialloc_btree.c for (i = 0; i < be16_to_cpu(right->bb_numrecs); i++) { be16_to_cpu 1548 fs/xfs/xfs_ialloc_btree.c memcpy(rkp, lkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp)); be16_to_cpu 1549 fs/xfs/xfs_ialloc_btree.c memcpy(rpp, lpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp)); be16_to_cpu 1550 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1551 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1560 fs/xfs/xfs_ialloc_btree.c memcpy(rrp, lrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp)); be16_to_cpu 1561 fs/xfs/xfs_ialloc_btree.c xfs_inobt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs)); be16_to_cpu 1568 fs/xfs/xfs_ialloc_btree.c be16_add_cpu(&left->bb_numrecs, -(be16_to_cpu(right->bb_numrecs))); be16_to_cpu 1597 fs/xfs/xfs_ialloc_btree.c if (cur->bc_ptrs[level] > be16_to_cpu(left->bb_numrecs) + 1) { be16_to_cpu 1599 fs/xfs/xfs_ialloc_btree.c cur->bc_ptrs[level] -= be16_to_cpu(left->bb_numrecs); be16_to_cpu 1736 fs/xfs/xfs_ialloc_btree.c cur->bc_ptrs[lev] = be16_to_cpu(block->bb_numrecs); be16_to_cpu 1808 fs/xfs/xfs_ialloc_btree.c if (ptr > be16_to_cpu(block->bb_numrecs) || ptr <= 0) { be16_to_cpu 1856 fs/xfs/xfs_ialloc_btree.c if (++cur->bc_ptrs[level] <= be16_to_cpu(block->bb_numrecs)) { be16_to_cpu 1878 fs/xfs/xfs_ialloc_btree.c if (++cur->bc_ptrs[lev] <= be16_to_cpu(block->bb_numrecs)) be16_to_cpu 93 fs/xfs/xfs_ialloc_btree.h ((cur)->bc_ptrs[0] == be16_to_cpu(XFS_BUF_TO_INOBT_BLOCK((cur)->bc_bufs[0])->bb_numrecs)) be16_to_cpu 176 fs/xfs/xfs_inode.c di_ok = be16_to_cpu(dip->di_core.di_magic) == XFS_DINODE_MAGIC && be16_to_cpu 193 fs/xfs/xfs_inode.c be16_to_cpu(dip->di_core.di_magic)); be16_to_cpu 352 fs/xfs/xfs_inode.c be16_to_cpu(dip->di_core.di_anextents) > be16_to_cpu 358 fs/xfs/xfs_inode.c be16_to_cpu(dip->di_core.di_anextents)), be16_to_cpu 399 fs/xfs/xfs_inode.c if (unlikely((be16_to_cpu(dip->di_core.di_mode) & S_IFMT) == S_IFREG)) { be16_to_cpu 455 fs/xfs/xfs_inode.c size = be16_to_cpu(atp->hdr.totsize); be16_to_cpu 665 fs/xfs/xfs_inode.c to->di_magic = be16_to_cpu(from->di_magic); be16_to_cpu 666 fs/xfs/xfs_inode.c to->di_mode = be16_to_cpu(from->di_mode); be16_to_cpu 669 fs/xfs/xfs_inode.c to->di_onlink = be16_to_cpu(from->di_onlink); be16_to_cpu 673 fs/xfs/xfs_inode.c to->di_projid = be16_to_cpu(from->di_projid); be16_to_cpu 675 fs/xfs/xfs_inode.c to->di_flushiter = be16_to_cpu(from->di_flushiter); be16_to_cpu 686 fs/xfs/xfs_inode.c to->di_anextents = be16_to_cpu(from->di_anextents); be16_to_cpu 690 fs/xfs/xfs_inode.c to->di_dmstate = be16_to_cpu(from->di_dmstate); be16_to_cpu 691 fs/xfs/xfs_inode.c to->di_flags = be16_to_cpu(from->di_flags); be16_to_cpu 786 fs/xfs/xfs_inode.c return _xfs_dic2xflags(be16_to_cpu(dic->di_flags)) | be16_to_cpu 860 fs/xfs/xfs_inode.c if (be16_to_cpu(dip->di_core.di_magic) != XFS_DINODE_MAGIC) { be16_to_cpu 867 fs/xfs/xfs_inode.c be16_to_cpu(dip->di_core.di_magic), be16_to_cpu 894 fs/xfs/xfs_inode.c ip->i_d.di_magic = be16_to_cpu(dip->di_core.di_magic); be16_to_cpu 897 fs/xfs/xfs_inode.c ip->i_d.di_flushiter = be16_to_cpu(dip->di_core.di_flushiter); be16_to_cpu 3278 fs/xfs/xfs_inode.c if (XFS_TEST_ERROR(be16_to_cpu(dip->di_core.di_magic) != XFS_DINODE_MAGIC, be16_to_cpu 3282 fs/xfs/xfs_inode.c ip->i_ino, be16_to_cpu(dip->di_core.di_magic), dip); be16_to_cpu 147 fs/xfs/xfs_itable.c buf->bs_nlink = be16_to_cpu(dic->di_onlink); be16_to_cpu 151 fs/xfs/xfs_itable.c buf->bs_projid = be16_to_cpu(dic->di_projid); be16_to_cpu 155 fs/xfs/xfs_itable.c buf->bs_mode = be16_to_cpu(dic->di_mode); be16_to_cpu 171 fs/xfs/xfs_itable.c buf->bs_dmstate = be16_to_cpu(dic->di_dmstate); be16_to_cpu 172 fs/xfs/xfs_itable.c buf->bs_aextents = be16_to_cpu(dic->di_anextents); be16_to_cpu 290 fs/xfs/xfs_itable.c if (be16_to_cpu(dip->di_core.di_magic) != XFS_DINODE_MAGIC || be16_to_cpu 1967 fs/xfs/xfs_log_recover.c if (be16_to_cpu(ddq->d_magic) != XFS_DQUOT_MAGIC) { be16_to_cpu 1971 fs/xfs/xfs_log_recover.c str, id, be16_to_cpu(ddq->d_magic), XFS_DQUOT_MAGIC); be16_to_cpu 2219 fs/xfs/xfs_log_recover.c be16_to_cpu(*((__be16 *)xfs_buf_offset(bp, 0))) && be16_to_cpu 2319 fs/xfs/xfs_log_recover.c if (unlikely(be16_to_cpu(dip->di_core.di_magic) != XFS_DINODE_MAGIC)) { be16_to_cpu 2342 fs/xfs/xfs_log_recover.c if (dicp->di_flushiter < be16_to_cpu(dip->di_core.di_flushiter)) { be16_to_cpu 2347 fs/xfs/xfs_log_recover.c if (be16_to_cpu(dip->di_core.di_flushiter) == DI_MAX_FLUSH && be16_to_cpu 381 fs/xfs/xfs_mount.c to->sb_versionnum = be16_to_cpu(from->sb_versionnum); be16_to_cpu 382 fs/xfs/xfs_mount.c to->sb_sectsize = be16_to_cpu(from->sb_sectsize); be16_to_cpu 383 fs/xfs/xfs_mount.c to->sb_inodesize = be16_to_cpu(from->sb_inodesize); be16_to_cpu 384 fs/xfs/xfs_mount.c to->sb_inopblock = be16_to_cpu(from->sb_inopblock); be16_to_cpu 400 fs/xfs/xfs_mount.c to->sb_qflags = be16_to_cpu(from->sb_qflags); be16_to_cpu 408 fs/xfs/xfs_mount.c to->sb_logsectsize = be16_to_cpu(from->sb_logsectsize); be16_to_cpu 1378 fs/xfs/xfs_mount.c version = be16_to_cpu(sb->sb_versionnum); be16_to_cpu 160 include/linux/byteorder/generic.h *var = cpu_to_be16(be16_to_cpu(*var) + val); be16_to_cpu 27 include/linux/ihex.h int next = ((be16_to_cpu(rec->len) + 5) & ~3) - 2; be16_to_cpu 30 include/linux/ihex.h return be16_to_cpu(rec->len) ? rec : NULL; be16_to_cpu 43 include/linux/ihex.h if (!be16_to_cpu(rec->len)) be16_to_cpu 47 include/linux/ihex.h ofs += (sizeof(*rec) + be16_to_cpu(rec->len) + 3) & ~3; be16_to_cpu 38 include/linux/mtd/cfi_endian.h #define cfi16_to_cpu(x) be16_to_cpu(x) be16_to_cpu 67 lib/iomap.c #define mmio_read16be(addr) be16_to_cpu(__raw_readw(addr)) be16_to_cpu 108 lib/iomap.c #define mmio_write16be(val,port) __raw_writew(be16_to_cpu(val),port) be16_to_cpu 258 net/irda/parameters.c p.pv.i = be16_to_cpu((__u16) p.pv.i); be16_to_cpu 44 net/sched/em_cmp.c val = be16_to_cpu(val); be16_to_cpu 113 sound/pci/mixart/mixart_hwdep.c for( i=0; i < be16_to_cpu(elf_header->e_phnum); i++ ) { be16_to_cpu 114 sound/pci/mixart/mixart_hwdep.c u32 pos = be32_to_cpu(elf_header->e_phoff) + (u32)(i * be16_to_cpu(elf_header->e_phentsize));