/linux-2.6.39/arch/um/drivers/ |
D | cow_user.c | 29 __s32 sectorsize; member 48 __s32 sectorsize; member 91 __u32 sectorsize; member 103 __u32 sectorsize; member 125 void cow_sizes(int version, __u64 size, int sectorsize, int align, in cow_sizes() argument 130 *bitmap_len_out = (size + sectorsize - 1) / (8 * sectorsize); in cow_sizes() 133 *data_offset_out = (*data_offset_out + sectorsize - 1) / in cow_sizes() 134 sectorsize; in cow_sizes() 135 *data_offset_out *= sectorsize; in cow_sizes() 138 *bitmap_len_out = DIV_ROUND(size, sectorsize); in cow_sizes() [all …]
|
D | cow.h | 42 int sectorsize, int alignment, int *bitmap_offset_out, 53 int sectorsize, int alignment, 56 extern void cow_sizes(int version, __u64 size, int sectorsize, int align,
|
D | ubd_kern.c | 70 int sectorsize; member 611 int fd, err, sectorsize, asked_switch, mode = 0644; in open_ubd_file() local 642 &size, §orsize, &align, bitmap_offset_out); in open_ubd_file() 660 sectorsize, align, &size); in open_ubd_file() 672 cow_sizes(version, size, sectorsize, align, *bitmap_offset_out, in open_ubd_file() 683 int sectorsize, int alignment, int *bitmap_offset_out, in create_cow_file() argument 697 err = init_cow_file(fd, cow_file, backing_file, sectorsize, alignment, in create_cow_file() 1221 io_req->sectorsize = 1 << 9; in prepare_request() 1358 nsectors = req->length / req->sectorsize; in do_io() 1369 start * req->sectorsize; in do_io() [all …]
|
/linux-2.6.39/fs/btrfs/ |
D | free-space-cache.c | 559 ~(root->sectorsize - 1), (u64)-1); in btrfs_write_out_cache() 854 static inline unsigned long offset_to_bit(u64 bitmap_start, u64 sectorsize, in offset_to_bit() argument 859 return (unsigned long)(div64_u64(offset, sectorsize)); in offset_to_bit() 862 static inline unsigned long bytes_to_bits(u64 bytes, u64 sectorsize) in bytes_to_bits() argument 864 return (unsigned long)(div64_u64(bytes, sectorsize)); in bytes_to_bits() 873 bytes_per_bitmap = BITS_PER_BITMAP * block_group->sectorsize; in offset_to_bitmap() 1035 block_group->sectorsize > offset) in tree_search_offset() 1046 block_group->sectorsize > offset) in tree_search_offset() 1140 start = offset_to_bit(info->offset, block_group->sectorsize, offset); in bitmap_clear_bits() 1141 end = start + bytes_to_bits(bytes, block_group->sectorsize); in bitmap_clear_bits() [all …]
|
D | file-item.c | 35 (r)->sectorsize - (r)->sectorsize) 227 root->sectorsize; in __btrfs_lookup_bio_sums() 236 diff = diff / root->sectorsize; in __btrfs_lookup_bio_sums() 330 csum_end = key.offset + (size / csum_size) * root->sectorsize; in btrfs_lookup_csums_range() 361 size -= root->sectorsize; in btrfs_lookup_csums_range() 362 start += root->sectorsize; in btrfs_lookup_csums_range() 772 u64 tmp = total_bytes + root->sectorsize; in btrfs_csum_file_blocks() 777 if (next_sector + root->sectorsize != next->bytenr) in btrfs_csum_file_blocks() 779 tmp += root->sectorsize; in btrfs_csum_file_blocks() 836 total_bytes += root->sectorsize; in btrfs_csum_file_blocks()
|
D | ordered-data.h | 126 unsigned long num_sectors = (bytes + root->sectorsize - 1) / in btrfs_ordered_sum_size() 127 root->sectorsize; in btrfs_ordered_sum_size()
|
D | disk-io.c | 1037 static int __setup_root(u32 nodesize, u32 leafsize, u32 sectorsize, in __setup_root() argument 1044 root->sectorsize = sectorsize; in __setup_root() 1112 tree_root->sectorsize, tree_root->stripesize, in find_and_setup_root() 1144 tree_root->sectorsize, tree_root->stripesize, in alloc_log_tree() 1247 tree_root->sectorsize, tree_root->stripesize, in btrfs_read_fs_root_no_radix() 1600 u32 sectorsize; in open_ctree() local 1892 sectorsize = btrfs_super_sectorsize(disk_super); in open_ctree() 1896 tree_root->sectorsize = sectorsize; in open_ctree() 1899 sb->s_blocksize = sectorsize; in open_ctree() 1900 sb->s_blocksize_bits = blksize_bits(sectorsize); in open_ctree() [all …]
|
D | compression.c | 90 ((disk_size + root->sectorsize - 1) / root->sectorsize) * in compressed_bio_size() 670 sums += (comp_bio->bi_size + root->sectorsize - 1) / in btrfs_submit_compressed_read() 671 root->sectorsize; in btrfs_submit_compressed_read()
|
D | ordered-data.c | 783 offset = ALIGN(offset, BTRFS_I(inode)->root->sectorsize); in btrfs_ordered_update_i_size() 911 u32 sectorsize = BTRFS_I(inode)->root->sectorsize; in btrfs_find_ordered_sum() local 921 num_sectors = ordered_sum->len / sectorsize; in btrfs_find_ordered_sum()
|
D | file.c | 143 start_pos = pos & ~((u64)root->sectorsize - 1); in btrfs_dirty_pages() 145 root->sectorsize - 1) & ~((u64)root->sectorsize - 1); in btrfs_dirty_pages() 491 root->sectorsize); in btrfs_drop_extents() 815 start_pos = pos & ~((u64)root->sectorsize - 1); in prepare_pages() 1310 u64 mask = BTRFS_I(inode)->root->sectorsize - 1; in btrfs_fallocate()
|
D | inode.c | 228 u64 aligned_end = (end + root->sectorsize - 1) & in cow_file_range_inline() 229 ~((u64)root->sectorsize - 1); in cow_file_range_inline() 241 (actual_end & (root->sectorsize - 1)) == 0) || in cow_file_range_inline() 328 u64 blocksize = root->sectorsize; in compress_file_range() 774 u64 blocksize = root->sectorsize; in cow_file_range() 825 root->sectorsize, 0, alloc_hint, in cow_file_range() 1148 extent_end = ALIGN(extent_end, root->sectorsize); in run_delalloc_nocow() 3293 u64 mask = root->sectorsize - 1; in btrfs_truncate_inode_items() 3387 found_key.offset + root->sectorsize - 1; in btrfs_truncate_inode_items() 3389 ~((u64)root->sectorsize - 1); in btrfs_truncate_inode_items() [all …]
|
D | ctree.h | 381 __le32 sectorsize; member 832 u64 sectorsize; member 1125 u32 sectorsize; member 1962 sectorsize, 32);
|
D | extent-tree.c | 3145 bytes = (bytes + root->sectorsize - 1) & ~((u64)root->sectorsize - 1); in btrfs_check_data_free_space() 3246 bytes = (bytes + root->sectorsize - 1) & ~((u64)root->sectorsize - 1); in btrfs_free_reserved_data_space() 4074 num_bytes = ALIGN(num_bytes, root->sectorsize); in btrfs_delalloc_reserve_metadata() 4110 num_bytes = ALIGN(num_bytes, root->sectorsize); in btrfs_delalloc_release_metadata() 4975 WARN_ON(num_bytes < root->sectorsize); in find_free_extent() 5466 WARN_ON(num_bytes < root->sectorsize); in btrfs_reserve_extent() 5473 num_bytes = num_bytes & ~(root->sectorsize - 1); in btrfs_reserve_extent() 8585 cache->sectorsize = root->sectorsize; in btrfs_read_block_groups() 8677 cache->sectorsize = root->sectorsize; in btrfs_make_block_group()
|
D | volumes.c | 1590 device->io_width = root->sectorsize; in btrfs_init_new_device() 1591 device->io_align = root->sectorsize; in btrfs_init_new_device() 1592 device->sector_size = root->sectorsize; in btrfs_init_new_device() 2598 map->sector_size = extent_root->sectorsize; in __btrfs_alloc_chunk() 2705 btrfs_set_stack_chunk_sector_size(chunk, extent_root->sectorsize); in __finish_chunk_alloc()
|
D | relocation.c | 1569 root->sectorsize)); 1570 WARN_ON(!IS_ALIGNED(end, root->sectorsize)); 1925 WARN_ON(!IS_ALIGNED(start, root->sectorsize)); 1940 WARN_ON(!IS_ALIGNED(end, root->sectorsize)); 4258 offset += root->sectorsize;
|
D | extent_io.c | 2966 u64 sectorsize = BTRFS_I(inode)->root->sectorsize; in get_extent_skip_holes() local 2977 len = (len + sectorsize - 1) & ~(sectorsize - 1); in get_extent_skip_holes()
|
D | super.c | 318 root->sectorsize); in btrfs_parse_options()
|
D | ioctl.c | 993 do_div(new_size, root->sectorsize); in btrfs_ioctl_resize() 994 new_size *= root->sectorsize; in btrfs_ioctl_resize()
|
D | tree-log.c | 487 u64 mask = root->sectorsize - 1; in replay_one_extent()
|
/linux-2.6.39/fs/xfs/linux-2.6/ |
D | xfs_buf.c | 1470 unsigned int sectorsize, in xfs_setsize_buftarg_flags() argument 1474 btp->bt_sshift = ffs(sectorsize) - 1; in xfs_setsize_buftarg_flags() 1475 btp->bt_smask = sectorsize - 1; in xfs_setsize_buftarg_flags() 1477 if (set_blocksize(btp->bt_bdev, sectorsize)) { in xfs_setsize_buftarg_flags() 1480 sectorsize, XFS_BUFTARG_NAME(btp)); in xfs_setsize_buftarg_flags() 1505 unsigned int sectorsize) in xfs_setsize_buftarg() argument 1507 return xfs_setsize_buftarg_flags(btp, blocksize, sectorsize, 1); in xfs_setsize_buftarg()
|
/linux-2.6.39/fs/udf/ |
D | super.c | 610 int sectorsize; in udf_check_vsd() local 618 sectorsize = sizeof(struct volStructDesc); in udf_check_vsd() 620 sectorsize = sb->s_blocksize; in udf_check_vsd() 628 for (; !nsr02 && !nsr03; sector += sectorsize) { in udf_check_vsd()
|
/linux-2.6.39/Documentation/scsi/ |
D | ChangeLog.1992-1997 | 1621 Clear buffer before asking for capacity/sectorsize (some drives 1830 dispatch table (supply NULL). If we do not have a sectorsize, 1832 obtain sectorsize. 1907 sectorsize.
|
/linux-2.6.39/crypto/ |
D | Kconfig | 265 can't handle a sectorsize which is not a multiple of 16 bytes.
|