Home
last modified time | relevance | path

Searched refs:logical_block_size (Results 1 – 14 of 14) sorted by relevance

/linux-2.6.39/block/
Dblk-settings.c124 lim->logical_block_size = lim->physical_block_size = lim->io_min = 512; in blk_set_default_limits()
326 q->limits.logical_block_size = size; in blk_queue_logical_block_size()
350 if (q->limits.physical_block_size < q->limits.logical_block_size) in blk_queue_physical_block_size()
351 q->limits.physical_block_size = q->limits.logical_block_size; in blk_queue_physical_block_size()
392 if (limits->io_min < limits->logical_block_size) in blk_limits_io_min()
393 limits->io_min = limits->logical_block_size; in blk_limits_io_min()
529 t->logical_block_size = max(t->logical_block_size, in blk_stack_limits()
530 b->logical_block_size); in blk_stack_limits()
542 if (t->physical_block_size & (t->logical_block_size - 1)) { in blk_stack_limits()
543 t->physical_block_size = t->logical_block_size; in blk_stack_limits()
[all …]
/linux-2.6.39/include/linux/
Diso_fs.h40 char logical_block_size [ISODCL (129, 132)]; /* 723 */ member
77 char logical_block_size [ISODCL (129, 132)]; /* 723 */ member
126 char logical_block_size [ISODCL (137, 140)]; /* 723 */ member
Dblkdev.h253 unsigned short logical_block_size; member
986 if (q && q->limits.logical_block_size) in queue_logical_block_size()
987 retval = q->limits.logical_block_size; in queue_logical_block_size()
/linux-2.6.39/drivers/block/drbd/
Ddrbd_actlog.c110 int logical_block_size, mask, ok; in drbd_md_sync_page_io() local
118 logical_block_size = bdev_logical_block_size(bdev->md_bdev); in drbd_md_sync_page_io()
119 if (logical_block_size == 0) in drbd_md_sync_page_io()
120 logical_block_size = MD_SECTOR_SIZE; in drbd_md_sync_page_io()
123 if (logical_block_size != MD_SECTOR_SIZE) { in drbd_md_sync_page_io()
124 mask = (logical_block_size / MD_SECTOR_SIZE) - 1; in drbd_md_sync_page_io()
126 D_ASSERT(logical_block_size == (mask+1) * MD_SECTOR_SIZE); in drbd_md_sync_page_io()
138 READ, logical_block_size); in drbd_md_sync_page_io()
157 ok = _drbd_md_sync_page_io(mdev, bdev, iop, sector, rw, logical_block_size); in drbd_md_sync_page_io()
164 if (logical_block_size != MD_SECTOR_SIZE && !(rw & WRITE)) { in drbd_md_sync_page_io()
Ddrbd_nl.c871 int logical_block_size; in drbd_nl_disk_conf() local
1027 logical_block_size = bdev_logical_block_size(nbc->md_bdev); in drbd_nl_disk_conf()
1028 if (logical_block_size == 0) in drbd_nl_disk_conf()
1029 logical_block_size = MD_SECTOR_SIZE; in drbd_nl_disk_conf()
1031 if (logical_block_size != MD_SECTOR_SIZE) { in drbd_nl_disk_conf()
1038 logical_block_size, MD_SECTOR_SIZE); in drbd_nl_disk_conf()
/linux-2.6.39/drivers/md/
Ddm-table.c370 limits->logical_block_size >> SECTOR_SHIFT; in device_area_is_invalid()
394 limits->logical_block_size, bdevname(bdev, b)); in device_area_is_invalid()
403 limits->logical_block_size, bdevname(bdev, b)); in device_area_is_invalid()
516 q->limits.logical_block_size, in dm_set_device_limits()
666 limits->logical_block_size >> SECTOR_SHIFT; in validate_hardware_logical_block_alignment()
701 remaining & ((ti_limits.logical_block_size >> in validate_hardware_logical_block_alignment()
718 limits->logical_block_size); in validate_hardware_logical_block_alignment()
/linux-2.6.39/drivers/target/
Dtarget_core_file.c194 limits->logical_block_size = bdev_logical_block_size(inode->i_bdev); in fd_create_virtdevice()
219 limits->logical_block_size = FD_BLOCKSIZE; in fd_create_virtdevice()
Dtarget_core_iblock.c167 limits->logical_block_size = bdev_logical_block_size(bd); in iblock_create_virtdevice()
Dtarget_core_device.c891 DEV_ATTRIB(dev)->hw_block_size = limits->logical_block_size; in se_dev_set_default_attribs()
892 DEV_ATTRIB(dev)->block_size = limits->logical_block_size; in se_dev_set_default_attribs()
Dtarget_core_rd.c269 dev_limits.limits.logical_block_size = RD_BLOCKSIZE; in rd_create_virtdevice()
Dtarget_core_pscsi.c366 limits->logical_block_size = sd->sector_size; in pscsi_add_device_to_list()
/linux-2.6.39/Documentation/ABI/testing/
Dsysfs-block86 What: /sys/block/<disk>/queue/logical_block_size
/linux-2.6.39/fs/isofs/
Dinode.c730 sbi->s_log_zone_size = isonum_723(h_pri->logical_block_size); in isofs_fill_super()
737 sbi->s_log_zone_size = isonum_723(pri->logical_block_size); in isofs_fill_super()
/linux-2.6.39/drivers/scsi/
Dsd.c489 unsigned int logical_block_size = sdkp->device->sector_size; in sd_config_discard() local
496 sdkp->unmap_granularity * logical_block_size); in sd_config_discard()
523 q->limits.max_discard_sectors = max_blocks * (logical_block_size >> 9); in sd_config_discard()