/Linux-v6.1/block/ |
D | blk-lib.c | 39 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop) in __blkdev_issue_discard() argument 57 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard() 60 if (!nr_sects) in __blkdev_issue_discard() 63 while (nr_sects) { in __blkdev_issue_discard() 65 min(nr_sects, bio_discard_limit(bdev, sector)); in __blkdev_issue_discard() 71 nr_sects -= req_sects; in __blkdev_issue_discard() 98 sector_t nr_sects, gfp_t gfp_mask) in blkdev_issue_discard() argument 105 ret = __blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, &bio); in blkdev_issue_discard() 119 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_write_zeroes() argument 134 while (nr_sects) { in __blkdev_issue_write_zeroes() [all …]
|
/Linux-v6.1/block/partitions/ |
D | acorn.c | 29 unsigned int nr_sects; in adfs_partition() local 39 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition() 47 put_partition(state, slot, first_sector, nr_sects); in adfs_partition() 72 unsigned long nr_sects) in riscix_partition() argument 85 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in riscix_partition() 105 put_partition(state, slot++, first_sect, nr_sects); in riscix_partition() 120 __le32 nr_sects; member 127 unsigned long nr_sects) in linux_partition() argument 131 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in linux_partition() 148 le32_to_cpu(linuxp->nr_sects)); in linux_partition() [all …]
|
D | msdos.c | 41 static inline sector_t nr_sects(struct msdos_partition *p) in nr_sects() function 43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects() 176 if (!nr_sects(p) || is_extended_partition(p)) in parse_extended() 182 size = nr_sects(p)*sector_size; in parse_extended() 210 if (nr_sects(p) && is_extended_partition(p)) in parse_extended() 216 this_size = nr_sects(p) * sector_size; in parse_extended() 443 __le32 nr_sects; /* number of sectors in slice */ member 514 le32_to_cpu(p->nr_sects)); in parse_unixware() 559 start_sect(p), nr_sects(p)); in parse_minix() 665 sector_t size = nr_sects(p)*sector_size; in msdos_partition() [all …]
|
D | amiga.c | 34 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local 99 nr_sects = (be32_to_cpu(pb->pb_Environment[10]) + 1 - in amiga_partition() 104 if (!nr_sects) in amiga_partition() 110 put_partition(state,slot++,start_sect,nr_sects); in amiga_partition()
|
/Linux-v6.1/drivers/block/xen-blkback/ |
D | blkback.c | 453 if (likely(req->nr_sects)) { in xen_vbd_translate() 454 blkif_sector_t end = req->sector_number + req->nr_sects; in xen_vbd_translate() 956 preq->nr_sects += seg[n].nsec; in xen_blkbk_parse_indirect() 978 preq.nr_sects = req->u.discard.nr_sectors; in dispatch_discard_io() 984 preq.sector_number + preq.nr_sects, blkif->vbd.pdevice); in dispatch_discard_io() 1251 preq.nr_sects = 0; in dispatch_rw_block_io() 1271 preq.nr_sects += seg[i].nsec; in dispatch_rw_block_io() 1284 preq.sector_number + preq.nr_sects, in dispatch_rw_block_io() 1363 ring->st_rd_sect += preq.nr_sects; in dispatch_rw_block_io() 1365 ring->st_wr_sect += preq.nr_sects; in dispatch_rw_block_io()
|
D | common.h | 374 blkif_sector_t nr_sects; member
|
/Linux-v6.1/include/linux/ |
D | msdos_partition.h | 17 __le32 nr_sects; /* nr of sectors in partition */ member
|
D | blkdev.h | 1067 sector_t nr_sects, gfp_t gfp_mask); 1069 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop); 1071 sector_t nr_sects, gfp_t gfp); 1077 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, 1080 sector_t nr_sects, gfp_t gfp_mask, unsigned flags);
|
/Linux-v6.1/drivers/mtd/ |
D | ftl.c | 970 unsigned long sector, unsigned nr_sects) in ftl_discardsect() argument 976 sector, nr_sects); in ftl_discardsect() 978 while (nr_sects) { in ftl_discardsect() 986 nr_sects--; in ftl_discardsect()
|
D | rfd_ftl.c | 709 unsigned long sector, unsigned int nr_sects) in rfd_ftl_discardsect() argument 715 while (nr_sects) { in rfd_ftl_discardsect() 730 nr_sects--; in rfd_ftl_discardsect()
|
/Linux-v6.1/drivers/scsi/ |
D | scsicam.c | 107 + get_unaligned_le32(&largest->nr_sects); in scsi_partsize()
|
D | scsi_debug.c | 5535 pp->nr_sects = cpu_to_le32(end_sec - start_sec + 1); in sdebug_build_parts()
|
/Linux-v6.1/fs/f2fs/ |
D | file.c | 3686 sector_t nr_sects = SECTOR_FROM_BLOCK(len); in f2fs_secure_erase() local 3691 ret = blkdev_issue_secure_erase(bdev, sector, nr_sects, in f2fs_secure_erase() 3694 ret = blkdev_issue_discard(bdev, sector, nr_sects, in f2fs_secure_erase() 3702 ret = blkdev_issue_zeroout(bdev, sector, nr_sects, in f2fs_secure_erase()
|
D | segment.c | 1731 sector_t sector, nr_sects; in __f2fs_issue_discard_zone() local 1748 nr_sects = SECTOR_FROM_BLOCK(blklen); in __f2fs_issue_discard_zone() 1751 nr_sects != bdev_zone_sectors(bdev)) { in __f2fs_issue_discard_zone() 1759 sector, nr_sects, GFP_NOFS); in __f2fs_issue_discard_zone()
|