/linux-3.4.99/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 | 36 static inline sector_t nr_sects(struct partition *p) in nr_sects() function 38 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects() 151 if (!nr_sects(p) || is_extended_partition(p)) in parse_extended() 157 size = nr_sects(p)*sector_size; in parse_extended() 184 if (nr_sects(p) && is_extended_partition(p)) in parse_extended() 190 this_size = nr_sects(p) * sector_size; in parse_extended() 367 le32_to_cpu(p->nr_sects)); in parse_unixware() 410 start_sect(p), nr_sects(p)); in parse_minix() 503 sector_t size = nr_sects(p)*sector_size; in msdos_partition() 539 if (!nr_sects(p)) in msdos_partition() [all …]
|
D | amiga.c | 32 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local 100 nr_sects = (be32_to_cpu(pb->pb_Environment[10]) + 1 - in amiga_partition() 105 if (!nr_sects) in amiga_partition() 111 put_partition(state,slot++,start_sect,nr_sects); in amiga_partition()
|
/linux-3.4.99/block/ |
D | blk-lib.c | 41 sector_t nr_sects, gfp_t gfp_mask, unsigned long flags) in blkdev_issue_discard() argument 81 while (nr_sects) { in blkdev_issue_discard() 93 if (nr_sects > max_discard_sectors) { in blkdev_issue_discard() 95 nr_sects -= max_discard_sectors; in blkdev_issue_discard() 98 bio->bi_size = nr_sects << 9; in blkdev_issue_discard() 99 nr_sects = 0; in blkdev_issue_discard() 137 sector_t nr_sects, gfp_t gfp_mask) in blkdev_issue_zeroout() argument 150 while (nr_sects != 0) { in blkdev_issue_zeroout() 152 min(nr_sects, (sector_t)BIO_MAX_PAGES)); in blkdev_issue_zeroout() 163 while (nr_sects != 0) { in blkdev_issue_zeroout() [all …]
|
D | partition-generic.c | 87 return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects); in part_size_show() 230 part->nr_sects = 0; in delete_partition_rcu_cb() 304 p->nr_sects = len; in add_partition()
|
D | genhd.c | 157 if (!part->nr_sects && in disk_part_iter_next() 194 sector < part->start_sect + part->nr_sects; in sector_in_part() 773 (unsigned long long)part->nr_sects >> 1, in printk_all_partitions() 866 (unsigned long long)part->nr_sects >> 1, in show_partition()
|
D | ioctl.c | 55 start >= part->start_sect + part->nr_sects)) { in blkpg_ioctl()
|
/linux-3.4.99/drivers/block/xen-blkback/ |
D | blkback.c | 178 if (likely(req->nr_sects)) { in xen_vbd_translate() 179 blkif_sector_t end = req->sector_number + req->nr_sects; in xen_vbd_translate() 412 preq.nr_sects = req->u.discard.nr_sectors; in dispatch_discard_io() 418 preq.sector_number + preq.nr_sects, blkif->vbd.pdevice); in dispatch_discard_io() 674 preq.nr_sects = 0; in dispatch_rw_block_io() 688 preq.nr_sects += seg[i].nsec; in dispatch_rw_block_io() 696 preq.sector_number + preq.nr_sects, preq.dev); in dispatch_rw_block_io() 779 blkif->st_rd_sect += preq.nr_sects; in dispatch_rw_block_io() 781 blkif->st_wr_sect += preq.nr_sects; in dispatch_rw_block_io()
|
D | common.h | 225 (_v)->bdev->bd_part->nr_sects : \ 237 blkif_sector_t nr_sects; member
|
/linux-3.4.99/include/linux/ |
D | genhd.h | 79 __le32 nr_sects; /* nr of sectors in partition */ member 101 sector_t nr_sects; member 432 return disk->part0.nr_sects; in get_capacity() 436 disk->part0.nr_sects = size; in set_capacity() 539 __le32 nr_sects; /* number of sectors in slice */ member
|
D | blkdev.h | 955 sector_t nr_sects, gfp_t gfp_mask, unsigned long flags); 957 sector_t nr_sects, gfp_t gfp_mask);
|
/linux-3.4.99/fs/gfs2/ |
D | rgrp.c | 831 sector_t nr_sects = 0; in gfs2_rgrp_send_discards() local 854 if (nr_sects == 0) in gfs2_rgrp_send_discards() 856 if ((start + nr_sects) != blk) { in gfs2_rgrp_send_discards() 857 if (nr_sects >= minlen) { in gfs2_rgrp_send_discards() 859 start, nr_sects, in gfs2_rgrp_send_discards() 863 trimmed += nr_sects; in gfs2_rgrp_send_discards() 865 nr_sects = 0; in gfs2_rgrp_send_discards() 869 nr_sects += sects_per_blk; in gfs2_rgrp_send_discards() 875 if (nr_sects >= minlen) { in gfs2_rgrp_send_discards() 876 rv = blkdev_issue_discard(bdev, start, nr_sects, GFP_NOFS, 0); in gfs2_rgrp_send_discards() [all …]
|
/linux-3.4.99/drivers/scsi/ |
D | scsicam.c | 167 + get_unaligned(&largest->nr_sects); in scsi_partsize()
|
D | scsi_debug.c | 2665 pp->nr_sects = end_sec - start_sec + 1; in sdebug_build_parts()
|
/linux-3.4.99/drivers/mtd/ |
D | ftl.c | 1010 unsigned long sector, unsigned nr_sects) in ftl_discardsect() argument 1016 sector, nr_sects); in ftl_discardsect() 1018 while (nr_sects) { in ftl_discardsect() 1026 nr_sects--; in ftl_discardsect()
|
/linux-3.4.99/fs/ |
D | block_dev.c | 1221 !bdev->bd_part || !bdev->bd_part->nr_sects) { in __blkdev_get() 1225 bd_set_size(bdev, (loff_t)bdev->bd_part->nr_sects << 9); in __blkdev_get()
|
/linux-3.4.99/drivers/target/ |
D | target_core_pscsi.c | 1176 return pdv->pdv_bd->bd_part->nr_sects; in pscsi_get_blocks()
|
/linux-3.4.99/kernel/trace/ |
D | blktrace.c | 415 bt->end_lba = part->start_sect + part->nr_sects; in blk_trace_setup_lba()
|