Home
last modified time | relevance | path

Searched refs:nr_sects (Results 1 – 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/block/
Dblk-lib.c26 sector_t nr_sects, gfp_t gfp_mask, int flags, in __blkdev_issue_discard() argument
60 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard()
63 if (!nr_sects) in __blkdev_issue_discard()
70 while (nr_sects) { in __blkdev_issue_discard()
89 req_sects = min_t(sector_t, nr_sects, in __blkdev_issue_discard()
92 req_sects = min_t(sector_t, nr_sects, in __blkdev_issue_discard()
104 nr_sects -= req_sects; in __blkdev_issue_discard()
132 sector_t nr_sects, gfp_t gfp_mask, unsigned long flags) in blkdev_issue_discard() argument
139 ret = __blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, flags, in blkdev_issue_discard()
166 sector_t nr_sects, gfp_t gfp_mask, struct page *page, in __blkdev_issue_write_same() argument
[all …]
Dblk.h405 sector_t nr_sects; in part_nr_sects_read() local
409 nr_sects = part->nr_sects; in part_nr_sects_read()
411 return nr_sects; in part_nr_sects_read()
413 sector_t nr_sects; in part_nr_sects_read()
416 nr_sects = part->nr_sects; in part_nr_sects_read()
418 return nr_sects; in part_nr_sects_read()
420 return part->nr_sects; in part_nr_sects_read()
434 part->nr_sects = size; in part_nr_sects_write()
439 part->nr_sects = size; in part_nr_sects_write()
442 part->nr_sects = size; in part_nr_sects_write()
/kernel/linux/linux-5.10/block/partitions/
Dacorn.c29 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 …]
Dmsdos.c41 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()
175 if (!nr_sects(p) || is_extended_partition(p)) in parse_extended()
181 size = nr_sects(p)*sector_size; in parse_extended()
209 if (nr_sects(p) && is_extended_partition(p)) in parse_extended()
215 this_size = nr_sects(p) * sector_size; in parse_extended()
442 __le32 nr_sects; /* number of sectors in slice */ member
513 le32_to_cpu(p->nr_sects)); in parse_unixware()
558 start_sect(p), nr_sects(p)); in parse_minix()
663 sector_t size = nr_sects(p)*sector_size; in msdos_partition()
[all …]
Damiga.c34 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()
Dcore.c298 part->nr_sects = 0; in hd_struct_free_work()
422 p->nr_sects = len; in add_partition()
514 start >= part->start_sect + part->nr_sects || in partition_overlaps()
/kernel/linux/linux-5.10/fs/pstore/
Dblk.c106 sector_t nr_sects; member
234 sector_t nr_sects; in psblk_get_bdev() local
258 nr_sects = part_nr_sects_read(bdev->bd_part); in psblk_get_bdev()
259 if (!nr_sects) { in psblk_get_bdev()
267 info->nr_sects = nr_sects; in psblk_get_bdev()
405 info->nr_sects = binfo.nr_sects; in __register_pstore_blk()
409 dev.total_size = info->nr_sects << SECTOR_SHIFT; in __register_pstore_blk()
/kernel/linux/linux-5.10/include/linux/
Dgenhd.h60 sector_t nr_sects; member
331 return disk->part0.nr_sects; in get_capacity()
335 disk->part0.nr_sects = size; in set_capacity()
Dmsdos_partition.h17 __le32 nr_sects; /* nr of sectors in partition */ member
Dpstore_blk.h45 sector_t nr_sects; member
Dblkdev.h1343 sector_t nr_sects, gfp_t gfp_mask, struct page *page);
1348 sector_t nr_sects, gfp_t gfp_mask, unsigned long flags);
1350 sector_t nr_sects, gfp_t gfp_mask, int flags,
1357 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop,
1360 sector_t nr_sects, gfp_t gfp_mask, unsigned flags);
/kernel/linux/linux-5.10/drivers/block/xen-blkback/
Dblkback.c453 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()
979 preq.nr_sects = req->u.discard.nr_sectors; in dispatch_discard_io()
985 preq.sector_number + preq.nr_sects, blkif->vbd.pdevice); in dispatch_discard_io()
1250 preq.nr_sects = 0; in dispatch_rw_block_io()
1270 preq.nr_sects += seg[i].nsec; in dispatch_rw_block_io()
1283 preq.sector_number + preq.nr_sects, in dispatch_rw_block_io()
1371 ring->st_rd_sect += preq.nr_sects; in dispatch_rw_block_io()
1373 ring->st_wr_sect += preq.nr_sects; in dispatch_rw_block_io()
Dcommon.h364 (_v)->bdev->bd_part->nr_sects : \
376 blkif_sector_t nr_sects; member
/kernel/linux/linux-5.10/drivers/mtd/
Dftl.c970 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()
/kernel/linux/linux-5.10/drivers/scsi/
Dscsicam.c108 + get_unaligned_le32(&largest->nr_sects); in scsi_partsize()
Dscsi_debug.c5345 pp->nr_sects = cpu_to_le32(end_sec - start_sec + 1); in sdebug_build_parts()
/kernel/linux/linux-5.10/fs/
Dblock_dev.c1552 !bdev->bd_part || !bdev->bd_part->nr_sects) { in __blkdev_get()
1556 bd_set_nr_sectors(bdev, bdev->bd_part->nr_sects); in __blkdev_get()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_pscsi.c1042 return pdv->pdv_bd->bd_part->nr_sects; in pscsi_get_blocks()
/kernel/linux/linux-5.10/fs/f2fs/
Dsegment.c1950 sector_t sector, nr_sects; in __f2fs_issue_discard_zone() local
1967 nr_sects = SECTOR_FROM_BLOCK(blklen); in __f2fs_issue_discard_zone()
1970 nr_sects != bdev_zone_sectors(bdev)) { in __f2fs_issue_discard_zone()
1978 sector, nr_sects, GFP_NOFS); in __f2fs_issue_discard_zone()
Dfile.c3790 sector_t nr_sects = SECTOR_FROM_BLOCK(len); in f2fs_secure_erase() local
3797 ret = blkdev_issue_discard(bdev, sector, nr_sects, GFP_NOFS, in f2fs_secure_erase()
3805 ret = blkdev_issue_zeroout(bdev, sector, nr_sects, in f2fs_secure_erase()
Dsuper.c3260 sector_t nr_sectors = bdev->bd_part->nr_sects; in init_blkz_info()
/kernel/linux/linux-5.10/kernel/trace/
Dblktrace.c468 bt->end_lba = part->start_sect + part->nr_sects; in blk_trace_setup_lba()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c2899 int nr_sects = obj->efile.nr_reloc_sects; in bpf_object__elf_collect() local
2913 sects = libbpf_reallocarray(sects, nr_sects + 1, in bpf_object__elf_collect()
2921 obj->efile.reloc_sects[nr_sects].shdr = sh; in bpf_object__elf_collect()
2922 obj->efile.reloc_sects[nr_sects].data = data; in bpf_object__elf_collect()
/kernel/linux/linux-5.10/drivers/md/bcache/
Dsuper.c1454 dc->bdev->bd_part->nr_sects - dc->sb.data_offset, in cached_dev_init()
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch49068 + p->nr_sects = len;