Lines Matching refs:bytesize
104 loff_t bytesize; member
330 static int __nbd_set_size(struct nbd_device *nbd, loff_t bytesize, in __nbd_set_size() argument
342 if (bytesize < 0) in __nbd_set_size()
345 nbd->config->bytesize = bytesize; in __nbd_set_size()
377 if (!set_capacity_and_notify(nbd->disk, bytesize >> 9)) in __nbd_set_size()
382 static int nbd_set_size(struct nbd_device *nbd, loff_t bytesize, in nbd_set_size() argument
388 error = __nbd_set_size(nbd, bytesize, blksize); in nbd_set_size()
1365 if (nbd->config->bytesize) in nbd_config_put()
1456 return nbd_set_size(nbd, config->bytesize, nbd_blksize(config)); in nbd_start_device()
1513 loff_t bytesize; in __nbd_ioctl() local
1524 return nbd_set_size(nbd, config->bytesize, arg); in __nbd_ioctl()
1528 if (check_shl_overflow(arg, config->blksize_bits, &bytesize)) in __nbd_ioctl()
1530 return nbd_set_size(nbd, bytesize, nbd_blksize(config)); in __nbd_ioctl()
1753 debugfs_create_u64("size_bytes", 0444, dir, &config->bytesize); in nbd_dev_dbg_init()
1977 u64 bytes = config->bytesize; in nbd_genl_size_set()
1985 if (bytes != config->bytesize || bsize != nbd_blksize(config)) in nbd_genl_size_set()