Lines Matching refs:le16_to_cpu
919 for (i = 0 ; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_xattr_list_entries()
926 le16_to_cpu(entry->xe_name_offset); in ocfs2_xattr_list_entries()
947 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_has_inline_xattr_value_outside()
949 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) in ocfs2_has_inline_xattr_value_outside()
970 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_list()
997 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_list()
1068 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) { in ocfs2_xattr_find_entry()
1074 le16_to_cpu(entry->xe_name_offset)), in ocfs2_xattr_find_entry()
1155 (xs->end - le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_get()
1168 le16_to_cpu(xs->here->xe_name_offset) + in ocfs2_xattr_ibody_get()
1172 (xs->base + le16_to_cpu( in ocfs2_xattr_ibody_get()
1225 name_offset = le16_to_cpu(xs->here->xe_name_offset); in ocfs2_xattr_block_get()
1229 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_xattr_block_get()
1502 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_add_namevalue()
1511 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_fill_value_buf()
1569 int i, count = le16_to_cpu(xh->xh_count); in ocfs2_xa_block_get_free_start()
1573 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset); in ocfs2_xa_block_get_free_start()
1584 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_block_check_space()
1615 int count = le16_to_cpu(xh->xh_count); in ocfs2_xa_block_wipe_namevalue()
1617 namevalue_offset = le16_to_cpu(entry->xe_name_offset); in ocfs2_xa_block_wipe_namevalue()
1629 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset); in ocfs2_xa_block_wipe_namevalue()
1643 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_block_add_entry()
1726 return le16_to_cpu(bucket_xh(bucket)->xh_free_start); in ocfs2_xa_bucket_get_free_start()
1747 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_bucket_check_space()
1797 int count = le16_to_cpu(xh->xh_count); in ocfs2_xa_bucket_add_entry()
1849 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_bucket_fill_value_buf()
1925 count = le16_to_cpu(xh->xh_count); in ocfs2_xa_remove_entry()
1972 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_cleanup_value_truncate()
2036 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_install_value_root()
2060 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_reuse_entry()
2187 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_store_value()
2263 loc->xl_size = le16_to_cpu(di->i_xattr_inline_size); in ocfs2_init_dinode_xa_loc()
2277 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); in ocfs2_init_xattr_block_xa_loc()
2358 for (i = 0; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_remove_value_outside()
2365 le16_to_cpu(entry->xe_name_offset); in ocfs2_remove_value_outside()
2420 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_remove()
2450 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_remove()
2492 bit = le16_to_cpu(xb->xb_suballoc_bit); in ocfs2_xattr_free_block()
2500 le16_to_cpu(xb->xb_suballoc_slot)); in ocfs2_xattr_free_block()
2634 free = le16_to_cpu(idata->id_count) - le64_to_cpu(di->i_size); in ocfs2_xattr_has_space_inline()
2640 free = (le16_to_cpu(el->l_count) - in ocfs2_xattr_has_space_inline()
2641 le16_to_cpu(el->l_next_free_rec)) * in ocfs2_xattr_has_space_inline()
2681 (xs->end - le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_find()
2819 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_find()
2962 if (!(le16_to_cpu(xblk->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_set()
2978 if (le16_to_cpu(xblk->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_xattr_block_set()
2999 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) { in ocfs2_xattr_can_be_in_inode()
3000 size_t offs = le16_to_cpu(last->xe_name_offset); in ocfs2_xattr_can_be_in_inode()
3062 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_calc_xattr_set_need()
3070 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_calc_xattr_set_need()
3075 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3185 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3699 for (i = le16_to_cpu(el->l_next_free_rec) - 1; i >= 0; i--) { in ocfs2_xattr_get_rec()
3717 *num_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_xattr_get_rec()
3747 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_find_xe_in_bucket()
3826 high_bucket = le16_to_cpu(xh->xh_num_buckets) - 1; in ocfs2_xattr_bucket_find()
3851 xe = &xh->xh_entries[le16_to_cpu(xh->xh_count) - 1]; in ocfs2_xattr_bucket_find()
3922 if (le16_to_cpu(el->l_next_free_rec) == 0) in ocfs2_xattr_index_block_find()
3984 num_buckets = le16_to_cpu(bucket_xh(bucket)->xh_num_buckets); in ocfs2_iterate_xattr_buckets()
4018 if (index < 0 || index >= le16_to_cpu(xh->xh_count)) in ocfs2_xattr_bucket_get_name_value()
4021 name_offset = le16_to_cpu(xh->xh_entries[index].xe_name_offset); in ocfs2_xattr_bucket_get_name_value()
4038 for (i = 0 ; i < le16_to_cpu(bucket_xh(bucket)->xh_count); i++) { in ocfs2_list_xattr_bucket()
4182 u16 count = le16_to_cpu(xb_xh->xh_count); in ocfs2_cp_xattr_block_to_bucket()
4200 offset = le16_to_cpu(xe->xe_name_offset) + off_change; in ocfs2_cp_xattr_block_to_bucket()
4271 u16 xb_flags = le16_to_cpu(xb->xb_flags); in ocfs2_xattr_create_index_block()
4355 u32 l_name_offset = le16_to_cpu(l->xe_name_offset); in cmp_xe_offset()
4356 u32 r_name_offset = le16_to_cpu(r->xe_name_offset); in cmp_xe_offset()
4409 xh_free_start = le16_to_cpu(xh->xh_free_start); in ocfs2_defrag_xattr_bucket()
4412 (unsigned long long)blkno, le16_to_cpu(xh->xh_count), in ocfs2_defrag_xattr_bucket()
4413 xh_free_start, le16_to_cpu(xh->xh_name_value_len)); in ocfs2_defrag_xattr_bucket()
4420 sort(entries, le16_to_cpu(xh->xh_count), in ocfs2_defrag_xattr_bucket()
4427 for (i = 0; i < le16_to_cpu(xh->xh_count); i++, xe++) { in ocfs2_defrag_xattr_bucket()
4428 offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_defrag_xattr_bucket()
4462 sort(entries, le16_to_cpu(xh->xh_count), in ocfs2_defrag_xattr_bucket()
4510 BUG_ON(le16_to_cpu(bucket_xh(first)->xh_num_buckets) < num_buckets); in ocfs2_mv_xattr_bucket_cross_cluster()
4572 int count = le16_to_cpu(xh->xh_count); in ocfs2_xattr_find_divide_pos()
4674 count = le16_to_cpu(xh->xh_count); in ocfs2_divide_xattr_bucket()
4711 if (le16_to_cpu(xe->xe_name_offset) < name_offset) in ocfs2_divide_xattr_bucket()
4712 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_divide_xattr_bucket()
4738 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_divide_xattr_bucket()
4740 if (le16_to_cpu(xe->xe_name_offset) < in ocfs2_divide_xattr_bucket()
4741 le16_to_cpu(xh->xh_free_start)) in ocfs2_divide_xattr_bucket()
5189 u16 new_bucket = le16_to_cpu(bucket_xh(first)->xh_num_buckets); in ocfs2_extend_xattr_bucket()
5298 if (num_buckets == le16_to_cpu(bucket_xh(first)->xh_num_buckets)) { in ocfs2_add_new_xattr_bucket()
5359 offset = le16_to_cpu(xe->xe_name_offset) + in ocfs2_xattr_bucket_value_truncate()
5514 if (xh->xh_entries[le16_to_cpu(xh->xh_count) - 1].xe_name_hash == in ocfs2_check_xattr_bucket_collision()
5657 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_delete_xattr_in_bucket()
5770 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_prepare_refcount_xattr()
5779 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_prepare_refcount_xattr()
5783 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_prepare_refcount_xattr()
5936 for (i = 0; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_xattr_attach_refcount_normal()
5943 le16_to_cpu(xe->xe_name_offset) + in ocfs2_xattr_attach_refcount_normal()
5970 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_inline_attach_refcount()
6049 le16_to_cpu(xh->xh_count)); in ocfs2_xattr_bucket_value_refcount()
6050 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_xattr_bucket_value_refcount()
6099 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_attach_refcount()
6212 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_value_metas_in_xattr_header()
6223 *metas += le16_to_cpu(xv->xr_list.l_tree_depth) * in ocfs2_value_metas_in_xattr_header()
6224 le16_to_cpu(xv->xr_list.l_next_free_rec); in ocfs2_value_metas_in_xattr_header()
6234 *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec); in ocfs2_value_metas_in_xattr_header()
6255 le16_to_cpu(xe->xe_name_offset) + in ocfs2_get_xattr_value_root()
6300 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * in ocfs2_reflink_lock_xattr_allocators()
6301 le16_to_cpu(rb->rf_list.l_next_free_rec) + 1; in ocfs2_reflink_lock_xattr_allocators()
6345 le16_to_cpu(xh->xh_count)); in ocfs2_reflink_xattr_header()
6347 last = &new_xh->xh_entries[le16_to_cpu(new_xh->xh_count)]; in ocfs2_reflink_xattr_header()
6348 for (i = 0, j = 0; i < le16_to_cpu(xh->xh_count); i++, j++) { in ocfs2_reflink_xattr_header()
6456 int inline_size = le16_to_cpu(di->i_xattr_inline_size); in ocfs2_reflink_xattr_inline()
6775 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * in ocfs2_lock_reflink_xattr_rec_allocators()
6776 le16_to_cpu(rb->rf_list.l_next_free_rec) + 1; in ocfs2_lock_reflink_xattr_rec_allocators()
6930 num_buckets = le16_to_cpu(bucket_xh(args->old_bucket)->xh_num_buckets); in ocfs2_reflink_xattr_buckets()
7085 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_reflink_xattr_in_block()