Lines Matching refs:bd
86 struct block_device *bd = NULL; in iblock_configure_device() local
111 bd = blkdev_get_by_path(ib_dev->ibd_udev_path, mode, ib_dev); in iblock_configure_device()
112 if (IS_ERR(bd)) { in iblock_configure_device()
113 ret = PTR_ERR(bd); in iblock_configure_device()
116 ib_dev->ibd_bd = bd; in iblock_configure_device()
118 q = bdev_get_queue(bd); in iblock_configure_device()
120 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
137 bi = bdev_get_integrity(bd); in iblock_configure_device()
200 struct block_device *bd, in iblock_emulate_read_cap_with_block_size() argument
203 unsigned long long blocks_long = (div_u64(i_size_read(bd->bd_inode), in iblock_emulate_read_cap_with_block_size()
204 bdev_logical_block_size(bd)) - 1); in iblock_emulate_read_cap_with_block_size()
205 u32 block_size = bdev_logical_block_size(bd); in iblock_emulate_read_cap_with_block_size()
601 struct block_device *bd = ib_dev->ibd_bd; in iblock_show_configfs_dev_params() local
605 if (bd) in iblock_show_configfs_dev_params()
607 bdevname(bd, buf)); in iblock_show_configfs_dev_params()
614 if (bd) { in iblock_show_configfs_dev_params()
616 MAJOR(bd->bd_dev), MINOR(bd->bd_dev), (!bd->bd_contains) ? in iblock_show_configfs_dev_params()
617 "" : (bd->bd_holder == ib_dev) ? in iblock_show_configfs_dev_params()
775 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_blocks() local
776 struct request_queue *q = bdev_get_queue(bd); in iblock_get_blocks()
778 return iblock_emulate_read_cap_with_block_size(dev, bd, q); in iblock_get_blocks()
784 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_alignment_offset_lbas() local
787 ret = bdev_alignment_offset(bd); in iblock_get_alignment_offset_lbas()
792 return ret / bdev_logical_block_size(bd); in iblock_get_alignment_offset_lbas()
798 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_lbppbe() local
799 int logs_per_phys = bdev_physical_block_size(bd) / bdev_logical_block_size(bd); in iblock_get_lbppbe()
807 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_io_min() local
809 return bdev_io_min(bd); in iblock_get_io_min()
815 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_io_opt() local
817 return bdev_io_opt(bd); in iblock_get_io_opt()
836 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_write_cache() local
837 struct request_queue *q = bdev_get_queue(bd); in iblock_get_write_cache()