Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mtd/ubi/
H A Dblock.c328 static int calc_disk_capacity(struct ubi_volume_info *vi, u64 *disk_capacity) in calc_disk_capacity() argument
344 *disk_capacity = size; in calc_disk_capacity()
353 u64 disk_capacity; in ubiblock_create() local
356 ret = calc_disk_capacity(vi, &disk_capacity); in ubiblock_create()
415 set_capacity(gd, disk_capacity); in ubiblock_create()
497 u64 disk_capacity; in ubiblock_resize() local
512 ret = calc_disk_capacity(vi, &disk_capacity); in ubiblock_resize()
525 if (get_capacity(dev->gd) != disk_capacity) { in ubiblock_resize()
526 set_capacity(dev->gd, disk_capacity); in ubiblock_resize()