Lines Matching defs:size

86 #define BLKGETSIZE	_IO(0x12,96)  /* Get device size in 512-byte blocks. */
89 #define BLKGETSIZE64 _IOR(0x12,114,size_t) /* Get device size in bytes. */
95 # define BLKSSZGET _IO(0x12,104) /* Get device sector size in bytes. */
98 # define BLKBSZSET _IOW(0x12,113,size_t) /* Set device block size in bytes. */
308 * @bksize: size of each block that needs mst deprotecting
312 * blocks of size @bksize bytes each from device @dev at position @pos into the
364 * @bksize: size of each block that needs mst protecting
368 * @count blocks of size @bksize bytes each from data buffer @b to the device
521 * ntfs_device_size_get - return the size of a device in blocks
523 * @block_size: block size in bytes in which to return the result
541 { u64 size;
543 if (dev->d_ops->ioctl(dev, BLKGETSIZE64, &size) >= 0) {
545 (unsigned long long)size,
546 (unsigned long long)size);
547 return (s64)size / block_size;
552 { unsigned long size;
554 if (dev->d_ops->ioctl(dev, BLKGETSIZE, &size) >= 0) {
556 size, size);
557 return (s64)size * 512 / block_size;
566 (unsigned long)this_floppy.size,
567 (unsigned long)this_floppy.size);
568 return (s64)this_floppy.size * 512 / block_size;
575 off_t size;
577 if (dev->d_ops->ioctl(dev, DIOCGMEDIASIZE, &size) >= 0) {
579 (unsigned long long)size,
580 (unsigned long long)size);
581 return (s64)size / block_size;
604 off_t size = 0;
610 size = partitionInfo.size;
612 size = (off_t)geometry.cylinder_count * geometry.sectors_per_track
616 if (size > 0)
617 return (s64)size / block_size;
623 * so do binary search to find the size of the device.
860 * ntfs_device_sector_size_get - get sector size of a device
863 * On success, return the sector size in bytes of the device @dev.
882 ntfs_log_debug("BLKSSZGET sector size = %d bytes\n",
893 ntfs_log_debug("DIOCGSECTORSIZE sector size = %d bytes\n",
904 ntfs_log_debug("DKIOCGETBLOCKSIZE sector size = %d bytes\n",
916 * ntfs_device_block_size_set - set block size of a device
918 * @block_size: block size to set @dev to
939 ntfs_log_debug("Used BLKBSZSET to set block size to "