| /linux/fs/netfs/ |
| H A D | iterator.c | 128 unsigned int nbv = iter->nr_segs, ix = 0, nsegs = 0; in netfs_limit_bvec() local 149 nsegs++; in netfs_limit_bvec() 151 if (span >= max_size || nsegs >= max_segs) in netfs_limit_bvec() 169 unsigned int nkv = iter->nr_segs, ix = 0, nsegs = 0; in netfs_limit_kvec() local 190 nsegs++; in netfs_limit_kvec() 192 if (span >= max_size || nsegs >= max_segs) in netfs_limit_kvec() 211 unsigned int nsegs = 0; in netfs_limit_xarray() local 238 nsegs++; in netfs_limit_xarray() 239 if (span >= max_size || nsegs >= max_segs) in netfs_limit_xarray() 256 unsigned int nsegs = 0; in netfs_limit_folioq() local [all …]
|
| /linux/block/ |
| H A D | blk-merge.c | 160 const struct queue_limits *lim, unsigned *nsegs, in __bio_split_discard() argument 167 *nsegs = 1; in __bio_split_discard() 196 unsigned *nsegs) in bio_split_discard() argument 205 return __bio_split_discard(bio, lim, nsegs, max_sectors); in bio_split_discard() 283 const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes, in bvec_split_segs() argument 291 while (len && *nsegs < max_segs) { in bvec_split_segs() 294 (*nsegs)++; in bvec_split_segs() 340 unsigned nsegs = 0, bytes = 0, gaps = 0; in bio_split_io_at() local 364 if (nsegs < lim->max_segments && in bio_split_io_at() 367 nsegs++; in bio_split_io_at() [all …]
|
| H A D | blk-mq-dma.c | 292 int nsegs = 0; in __blk_rq_map_sg() local 301 nsegs++; in __blk_rq_map_sg() 311 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq)); in __blk_rq_map_sg() 313 return nsegs; in __blk_rq_map_sg()
|
| H A D | blk.h | 381 unsigned *nsegs); 383 const struct queue_limits *lim, unsigned *nsegs);
|
| /linux/include/uapi/linux/ |
| H A D | elf-fdpic.h | 29 Elf32_Half nsegs; /* number of segments */ member 44 Elf64_Half nsegs; /* number of segments */ member
|
| /linux/fs/nilfs2/ |
| H A D | the_nilfs.h | 271 unsigned long nilfs_nrsvsegs(struct the_nilfs *nilfs, unsigned long nsegs); 272 void nilfs_set_nsegments(struct the_nilfs *nilfs, unsigned long nsegs);
|
| /linux/fs/ |
| H A D | binfmt_elf_fdpic.c | 571 len += sizeof(struct elf_fdpic_loadseg) * exec_params->loadmap->nsegs; in create_elf_fdpic_tables() 583 interp_params->loadmap->nsegs; in create_elf_fdpic_tables() 782 loadmap->nsegs = nloads; in elf_fdpic_map_file() 804 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 829 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 850 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 884 nloads = loadmap->nsegs; in elf_fdpic_map_file() 897 loadmap->nsegs--; in elf_fdpic_map_file() 914 for (loop = 0; loop < loadmap->nsegs; loop++, seg++) in elf_fdpic_map_file()
|
| /linux/fs/nfsd/ |
| H A D | vfs.c | 1321 unsigned int nsegs = 0; in nfsd_write_dio_iters_init() local 1344 nfsd_write_dio_seg_init(&segments[nsegs++], bvec, in nfsd_write_dio_iters_init() 1347 nfsd_write_dio_seg_init(&segments[nsegs], bvec, nvecs, in nfsd_write_dio_iters_init() 1357 if (iov_iter_bvec_offset(&segments[nsegs].iter) & (mem_align - 1)) in nfsd_write_dio_iters_init() 1359 segments[nsegs].flags |= IOCB_DIRECT; in nfsd_write_dio_iters_init() 1360 nsegs++; in nfsd_write_dio_iters_init() 1363 nfsd_write_dio_seg_init(&segments[nsegs++], bvec, nvecs, total, in nfsd_write_dio_iters_init() 1366 return nsegs; in nfsd_write_dio_iters_init() 1382 unsigned int nsegs, i; in nfsd_direct_write() local 1386 nsegs = nfsd_write_dio_iters_init(nf, rqstp->rq_bvec, nvecs, in nfsd_direct_write() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_zone_gc.c | 808 unsigned int nsegs; in xfs_zone_gc_split_write() local 813 split_sectors = bio_split_rw_at(&chunk->bio, lim, &nsegs, in xfs_zone_gc_split_write()
|
| /linux/include/net/ |
| H A D | addrconf.h | 127 unsigned char nsegs);
|
| /linux/kernel/rcu/ |
| H A D | rcutorture.c | 2436 static void rcu_torture_dump_read_segs(struct rt_read_seg *rrsp, int nsegs) in rcu_torture_dump_read_segs() argument 2443 for (i = 0; i < nsegs; i++) { in rcu_torture_dump_read_segs() 2625 unsigned int nsegs; in rcu_torture_one_read() local 2652 nsegs = rtors.rtrsp - rtors.rtseg; in rcu_torture_one_read() 2653 nsegs = clamp_val(nsegs, 0, RCUTORTURE_RDR_MAX_SEGS); in rcu_torture_one_read() 2655 rcu_torture_dump_read_segs(rtors.rtseg, nsegs); in rcu_torture_one_read()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_txrx.c | 1074 int size, offset, nsegs = 1, data_len = 0; in fbnic_pkt_tx() local 1084 nsegs += shinfo->nr_frags; in fbnic_pkt_tx() 1089 if (fbnic_desc_unused(ring) < nsegs) { in fbnic_pkt_tx() 1102 while (nsegs--) { in fbnic_pkt_tx()
|
| /linux/drivers/nvme/target/ |
| H A D | pci-epf.c | 680 int nsegs) in nvmet_pci_epf_alloc_iod_data_segs() argument 683 int nr_segs = iod->nr_data_segs + nsegs; in nvmet_pci_epf_alloc_iod_data_segs()
|
| /linux/net/ipv6/ |
| H A D | addrconf.c | 4600 unsigned char nsegs) in ipv6_chk_rpl_srh_loop() argument 4610 for (i = 0; i < nsegs; i++) { in ipv6_chk_rpl_srh_loop()
|