Lines Matching refs:start
20 long long start, length; in blkpg_do_ioctl() local
35 start = p.start >> SECTOR_SHIFT; in blkpg_do_ioctl()
40 long pstart = start, plength = length; in blkpg_do_ioctl()
42 if (pstart != start || plength != length || pstart < 0 || in blkpg_do_ioctl()
50 if (p.start & (bdev_logical_block_size(bdev) - 1)) in blkpg_do_ioctl()
52 return bdev_add_partition(bdev, p.pno, start, length); in blkpg_do_ioctl()
54 return bdev_resize_partition(bdev, p.pno, start, length); in blkpg_do_ioctl()
122 uint64_t start, len; in blk_ioctl_discard() local
135 start = range[0]; in blk_ioctl_discard()
138 if (start & 511) in blk_ioctl_discard()
143 if (start + len > i_size_read(bdev->bd_inode)) in blk_ioctl_discard()
146 err = truncate_bdev_range(bdev, mode, start, start + len - 1); in blk_ioctl_discard()
150 return blkdev_issue_discard(bdev, start >> 9, len >> 9, in blk_ioctl_discard()
158 uint64_t start, end, len; in blk_ioctl_zeroout() local
167 start = range[0]; in blk_ioctl_zeroout()
169 end = start + len - 1; in blk_ioctl_zeroout()
171 if (start & 511) in blk_ioctl_zeroout()
177 if (end < start) in blk_ioctl_zeroout()
181 err = truncate_bdev_range(bdev, mode, start, end); in blk_ioctl_zeroout()
185 return blkdev_issue_zeroout(bdev, start >> 9, len >> 9, GFP_KERNEL, in blk_ioctl_zeroout()
429 geo.start = get_start_sect(bdev); in blkdev_getgeo()
443 u32 start; member
463 geo.start = get_start_sect(bdev); in compat_hdio_getgeo()
469 ret |= put_user(geo.start, &ugeo->start); in compat_hdio_getgeo()