Lines Matching refs:bytesize
101 loff_t bytesize; member
315 if (nbd->config->bytesize) { in nbd_size_clear()
321 static int nbd_set_size(struct nbd_device *nbd, loff_t bytesize, in nbd_set_size() argument
329 if (bytesize < 0) in nbd_set_size()
332 nbd->config->bytesize = bytesize; in nbd_set_size()
348 if (!set_capacity_and_notify(nbd->disk, bytesize >> 9)) in nbd_set_size()
1343 return nbd_set_size(nbd, config->bytesize, nbd_blksize(config)); in nbd_start_device()
1401 loff_t bytesize; in __nbd_ioctl() local
1412 return nbd_set_size(nbd, config->bytesize, arg); in __nbd_ioctl()
1416 if (check_shl_overflow(arg, config->blksize_bits, &bytesize)) in __nbd_ioctl()
1418 return nbd_set_size(nbd, bytesize, nbd_blksize(config)); in __nbd_ioctl()
1616 debugfs_create_u64("size_bytes", 0444, dir, &config->bytesize); in nbd_dev_dbg_init()
1847 u64 bytes = config->bytesize; in nbd_genl_size_set()
1855 if (bytes != config->bytesize || bsize != nbd_blksize(config)) in nbd_genl_size_set()