Searched refs:nr_sects (Results 1 – 6 of 6) sorted by relevance
/block/ |
D | blk-lib.c | 26 sector_t nr_sects, gfp_t gfp_mask, int flags, in __blkdev_issue_discard() argument 55 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard() 62 while (nr_sects) { in __blkdev_issue_discard() 67 req_sects = min_t(sector_t, nr_sects, UINT_MAX >> 9); in __blkdev_issue_discard() 75 if (req_sects < nr_sects && in __blkdev_issue_discard() 89 nr_sects -= req_sects; in __blkdev_issue_discard() 118 sector_t nr_sects, gfp_t gfp_mask, unsigned long flags) in blkdev_issue_discard() argument 125 ret = __blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, flags, in blkdev_issue_discard() 151 sector_t nr_sects, gfp_t gfp_mask, in blkdev_issue_write_same() argument 164 if ((sector | nr_sects) & bs_mask) in blkdev_issue_write_same() [all …]
|
D | partition-generic.c | 242 part->nr_sects = 0; in delete_partition_rcu_cb() 318 p->nr_sects = len; in add_partition()
|
D | ioctl.c | 56 start >= part->start_sect + part->nr_sects)) { in blkpg_ioctl() 131 start >= lpart->start_sect + lpart->nr_sects) in blkpg_ioctl()
|
/block/partitions/ |
D | acorn.c | 35 unsigned int nr_sects; in adfs_partition() local 45 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition() 53 put_partition(state, slot, first_sector, nr_sects); in adfs_partition() 78 unsigned long nr_sects) in riscix_partition() argument 91 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in riscix_partition() 111 put_partition(state, slot++, first_sect, nr_sects); in riscix_partition() 126 __le32 nr_sects; member 133 unsigned long nr_sects) in linux_partition() argument 137 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in linux_partition() 154 le32_to_cpu(linuxp->nr_sects)); in linux_partition() [all …]
|
D | msdos.c | 37 static inline sector_t nr_sects(struct partition *p) in nr_sects() function 39 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects() 165 if (!nr_sects(p) || is_extended_partition(p)) in parse_extended() 171 size = nr_sects(p)*sector_size; in parse_extended() 199 if (nr_sects(p) && is_extended_partition(p)) in parse_extended() 205 this_size = nr_sects(p) * sector_size; in parse_extended() 386 le32_to_cpu(p->nr_sects)); in parse_unixware() 429 start_sect(p), nr_sects(p)); in parse_minix() 534 sector_t size = nr_sects(p)*sector_size; in msdos_partition() 573 if (!nr_sects(p)) in msdos_partition() [all …]
|
D | amiga.c | 34 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local 102 nr_sects = (be32_to_cpu(pb->pb_Environment[10]) + 1 - in amiga_partition() 107 if (!nr_sects) in amiga_partition() 113 put_partition(state,slot++,start_sect,nr_sects); in amiga_partition()
|