Home
last modified time | relevance | path

Searched refs:item_size (Results 1 – 15 of 15) sorted by relevance

/linux-2.6.39/fs/btrfs/
Dinode-item.c30 u32 item_size; in find_name_in_backref() local
35 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in find_name_in_backref()
37 while (cur_offset < item_size) { in find_name_in_backref()
90 u32 item_size; in btrfs_del_inode_ref() local
117 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
122 if (del_len == item_size) { in btrfs_del_inode_ref()
130 item_size - (ptr + sub_item_len - item_start)); in btrfs_del_inode_ref()
132 item_size - sub_item_len, 1); in btrfs_del_inode_ref()
Dprint-tree.c69 u32 item_size = btrfs_item_size_nr(eb, slot); in print_extent_item() local
73 if (item_size < sizeof(*ei)) { in print_extent_item()
76 BUG_ON(item_size != sizeof(*ei0)); in print_extent_item()
110 end = (unsigned long)ei + item_size; in print_extent_item()
Dtree-log.c312 u32 item_size; in overwrite_item() local
322 item_size = btrfs_item_size_nr(eb, slot); in overwrite_item()
332 if (dst_size != item_size) in overwrite_item()
335 if (item_size == 0) { in overwrite_item()
339 dst_copy = kmalloc(item_size, GFP_NOFS); in overwrite_item()
340 src_copy = kmalloc(item_size, GFP_NOFS); in overwrite_item()
348 read_extent_buffer(eb, src_copy, src_ptr, item_size); in overwrite_item()
352 item_size); in overwrite_item()
353 ret = memcmp(dst_copy, src_copy, item_size); in overwrite_item()
373 key, item_size); in overwrite_item()
[all …]
Dfile-item.c193 u32 item_size; in __btrfs_lookup_bio_sums() local
223 item_size = btrfs_item_size_nr(path->nodes[0], in __btrfs_lookup_bio_sums()
226 (item_size / csum_size) * in __btrfs_lookup_bio_sums()
689 u32 item_size; in btrfs_csum_file_blocks() local
692 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_csum_file_blocks()
693 if ((item_size / csum_size) >= in btrfs_csum_file_blocks()
Dctree.c746 int item_size, struct btrfs_key *key, in generic_bin_search() argument
764 offset = p + mid * item_size; in generic_bin_search()
3011 u32 item_size; in setup_leaf_for_split() local
3023 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in setup_leaf_for_split()
3041 if (ret > 0 || item_size != btrfs_item_size_nr(leaf, path->slots[0])) in setup_leaf_for_split()
3080 u32 item_size; in split_item() local
3091 item_size = btrfs_item_size(leaf, item); in split_item()
3093 buf = kmalloc(item_size, GFP_NOFS); in split_item()
3098 path->slots[0]), item_size); in split_item()
3115 btrfs_set_item_size(leaf, new_item, item_size - split_offset); in split_item()
[all …]
Dextent-tree.c696 u32 item_size; in btrfs_lookup_extent_info() local
720 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info()
721 if (item_size >= sizeof(*ei)) { in btrfs_lookup_extent_info()
729 BUG_ON(item_size != sizeof(*ei0)); in btrfs_lookup_extent_info()
1394 u64 item_size; in lookup_inline_extent_backref() local
1421 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref()
1423 if (item_size < sizeof(*ei)) { in lookup_inline_extent_backref()
1435 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref()
1438 BUG_ON(item_size < sizeof(*ei)); in lookup_inline_extent_backref()
1444 end = (unsigned long)ei + item_size; in lookup_inline_extent_backref()
[all …]
Drelocation.c609 u32 item_size; in find_inline_backref() local
611 item_size = btrfs_item_size_nr(leaf, slot); in find_inline_backref()
613 if (item_size < sizeof(*ei)) { in find_inline_backref()
614 WARN_ON(item_size != sizeof(struct btrfs_extent_item_v0)); in find_inline_backref()
622 if (item_size <= sizeof(*ei) + sizeof(*bi)) { in find_inline_backref()
623 WARN_ON(item_size < sizeof(*ei) + sizeof(*bi)); in find_inline_backref()
629 *end = (unsigned long)ei + item_size; in find_inline_backref()
3090 u32 item_size; local
3095 item_size = btrfs_item_size_nr(eb, path->slots[0]);
3097 if (item_size >= sizeof(*ei) + sizeof(*bi)) {
[all …]
Dvolumes.c2219 struct btrfs_chunk *chunk, int item_size) in btrfs_add_system_chunk() argument
2227 if (array_size + item_size > BTRFS_SYSTEM_CHUNK_ARRAY_SIZE) in btrfs_add_system_chunk()
2234 memcpy(ptr, chunk, item_size); in btrfs_add_system_chunk()
2235 item_size += sizeof(disk_key); in btrfs_add_system_chunk()
2236 btrfs_set_super_sys_array_size(super_copy, array_size + item_size); in btrfs_add_system_chunk()
2668 size_t item_size = btrfs_chunk_item_size(map->num_stripes); in __finish_chunk_alloc() local
2672 chunk = kzalloc(item_size, GFP_NOFS); in __finish_chunk_alloc()
2712 ret = btrfs_insert_item(trans, chunk_root, &key, chunk, item_size); in __finish_chunk_alloc()
2717 item_size); in __finish_chunk_alloc()
Dctree.h1666 BTRFS_SETGET_FUNCS(item_size, struct btrfs_item, size, 32);
/linux-2.6.39/drivers/net/wireless/libertas/
Ddebugfs.c832 #define item_size(n) (FIELD_SIZEOF(struct lbs_private, n)) macro
845 {"psmode", item_size(psmode), item_addr(psmode)},
846 {"psstate", item_size(psstate), item_addr(psstate)},
/linux-2.6.39/drivers/scsi/be2iscsi/
Dbe_main.h791 u32 item_size; /* size in bytes of one object */ member
/linux-2.6.39/drivers/net/vxge/
Dvxge-config.c2620 ((char *)the_memblock + j*mempool->item_size); in __vxge_hw_mempool_grow()
2648 u32 item_size, in __vxge_hw_mempool_create() argument
2660 if (memblock_size < item_size) { in __vxge_hw_mempool_create()
2675 mempool->item_size = item_size; in __vxge_hw_mempool_create()
2682 mempool->items_per_memblock = memblock_size / item_size; in __vxge_hw_mempool_create()
Dvxge-traffic.h156 u32 item_size; member
Dvxge-config.h1956 (*memblock_item_idx) = (u32) offset / mempool->item_size; in __vxge_hw_mempool_item_priv()
/linux-2.6.39/drivers/scsi/
Dlibiscsi.c2501 iscsi_pool_init(struct iscsi_pool *q, int max, void ***items, int item_size) in iscsi_pool_init() argument
2520 q->pool[i] = kzalloc(item_size, GFP_KERNEL); in iscsi_pool_init()