Home
last modified time | relevance | path

Searched refs:nsegs (Results 1 – 24 of 24) sorted by relevance

/linux-6.6.21/block/
Dblk-merge.c110 unsigned *nsegs, struct bio_set *bs) in bio_split_discard() argument
116 *nsegs = 1; in bio_split_discard()
151 unsigned *nsegs, struct bio_set *bs) in bio_split_write_zeroes() argument
153 *nsegs = 0; in bio_split_write_zeroes()
232 const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes, in bvec_split_segs() argument
240 while (len && *nsegs < max_segs) { in bvec_split_segs()
245 (*nsegs)++; in bvec_split_segs()
284 unsigned nsegs = 0, bytes = 0; in bio_split_rw() local
294 if (nsegs < lim->max_segments && in bio_split_rw()
297 nsegs++; in bio_split_rw()
[all …]
Dblk-map.c569 unsigned int nsegs = 0, bytes = 0; in blk_rq_map_user_bvec() local
600 if (nsegs >= nr_segs || bytes > UINT_MAX - bv->bv_len) in blk_rq_map_user_bvec()
607 nsegs++; in blk_rq_map_user_bvec()
Dblk-mq.c2902 unsigned int nsegs) in blk_mq_get_new_requests() argument
2911 if (blk_mq_attempt_bio_merge(q, bio, nsegs)) in blk_mq_get_new_requests()
/linux-6.6.21/net/sunrpc/xprtrdma/
Drpc_rdma.c298 int nsegs, bool writing, in rpcrdma_mr_prepare() argument
310 return frwr_map(r_xprt, seg, nsegs, writing, req->rl_slot.rq_xid, *mr); in rpcrdma_mr_prepare()
342 int nsegs; in rpcrdma_encode_read_list() local
351 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_snd_buf, pos, in rpcrdma_encode_read_list()
353 if (nsegs < 0) in rpcrdma_encode_read_list()
354 return nsegs; in rpcrdma_encode_read_list()
357 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
364 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs); in rpcrdma_encode_read_list()
366 nsegs -= mr->mr_nents; in rpcrdma_encode_read_list()
367 } while (nsegs); in rpcrdma_encode_read_list()
[all …]
Dfrwr_ops.c286 int nsegs, bool writing, __be32 xid, in frwr_map() argument
295 if (nsegs > ep->re_max_fr_depth) in frwr_map()
296 nsegs = ep->re_max_fr_depth; in frwr_map()
297 for (i = 0; i < nsegs;) { in frwr_map()
305 if ((i < nsegs && seg->mr_offset) || in frwr_map()
Dxprt_rdma.h539 int nsegs, bool writing, __be32 xid,
/linux-6.6.21/fs/nilfs2/
Dsufile.c156 int nilfs_sufile_updatev(struct inode *sufile, __u64 *segnumv, size_t nsegs, in nilfs_sufile_updatev() argument
168 if (unlikely(nsegs == 0)) in nilfs_sufile_updatev()
172 for (seg = segnumv; seg < segnumv + nsegs; seg++) { in nilfs_sufile_updatev()
198 if (++seg >= segnumv + nsegs) in nilfs_sufile_updatev()
269 __u64 nsegs; in nilfs_sufile_set_alloc_range() local
273 nsegs = nilfs_sufile_get_nsegments(sufile); in nilfs_sufile_set_alloc_range()
275 if (start <= end && end < nsegs) { in nilfs_sufile_set_alloc_range()
682 unsigned long nsegs, ncleaned; in nilfs_sufile_truncate_range() local
689 nsegs = nilfs_sufile_get_nsegments(sufile); in nilfs_sufile_truncate_range()
692 if (start > end || start >= nsegs) in nilfs_sufile_truncate_range()
[all …]
Dsufile.h85 size_t nsegs, size_t *ndone) in nilfs_sufile_freev() argument
87 return nilfs_sufile_updatev(sufile, segnumv, nsegs, 0, ndone, in nilfs_sufile_freev()
102 __u64 *segnumv, size_t nsegs, in nilfs_sufile_cancel_freev() argument
105 return nilfs_sufile_updatev(sufile, segnumv, nsegs, 0, ndone, in nilfs_sufile_cancel_freev()
Dthe_nilfs.c401 unsigned long nilfs_nrsvsegs(struct the_nilfs *nilfs, unsigned long nsegs) in nilfs_nrsvsegs() argument
404 DIV_ROUND_UP(nsegs * nilfs->ns_r_segments_percentage, in nilfs_nrsvsegs()
420 void nilfs_set_nsegments(struct the_nilfs *nilfs, unsigned long nsegs) in nilfs_set_nsegments() argument
422 nilfs->ns_nsegments = nsegs; in nilfs_set_nsegments()
423 nilfs->ns_nrsvsegs = nilfs_nrsvsegs(nilfs, nsegs); in nilfs_set_nsegments()
763 size_t nsegs) in nilfs_discard_segments() argument
773 for (sn = segnump; sn < segnump + nsegs; sn++) { in nilfs_discard_segments()
Dthe_nilfs.h281 unsigned long nilfs_nrsvsegs(struct the_nilfs *nilfs, unsigned long nsegs);
282 void nilfs_set_nsegments(struct the_nilfs *nilfs, unsigned long nsegs);
Dioctl.c857 size_t len, nsegs; in nilfs_ioctl_clean_segments() local
872 nsegs = argv[4].v_nmembs; in nilfs_ioctl_clean_segments()
875 if (nsegs > UINT_MAX / sizeof(__u64)) in nilfs_ioctl_clean_segments()
884 nsegs * sizeof(__u64)); in nilfs_ioctl_clean_segments()
896 if (argv[n].v_nmembs > nsegs * nilfs->ns_blocks_per_segment) in nilfs_ioctl_clean_segments()
/linux-6.6.21/include/uapi/linux/
Delf-fdpic.h29 Elf32_Half nsegs; /* number of segments */ member
44 Elf64_Half nsegs; /* number of segments */ member
/linux-6.6.21/drivers/net/ethernet/google/gve/
Dgve_tx.c687 int nsegs; in gve_tx() local
702 nsegs = gve_tx_add_skb_no_copy(priv, tx, skb); in gve_tx()
704 nsegs = gve_tx_add_skb_copy(priv, tx, skb); in gve_tx()
707 if (nsegs) { in gve_tx()
710 tx->req += nsegs; in gve_tx()
811 int nsegs; in gve_xdp_xmit_one() local
816 nsegs = gve_tx_fill_xdp(priv, tx, data, len, frame_p, false); in gve_xdp_xmit_one()
817 tx->req += nsegs; in gve_xdp_xmit_one()
893 int sent = 0, nsegs; in gve_xsk_tx() local
907 nsegs = gve_tx_fill_xdp(priv, tx, data, desc.len, NULL, true); in gve_xsk_tx()
[all …]
/linux-6.6.21/include/trace/events/
Drpcrdma.h396 int nsegs
399 TP_ARGS(task, pos, mr, nsegs),
409 __field(int, nsegs)
420 __entry->nsegs = nsegs;
428 __entry->nents < __entry->nsegs ? "more" : "last"
438 int nsegs \
440 TP_ARGS(task, pos, mr, nsegs))
446 int nsegs
449 TP_ARGS(task, mr, nsegs),
458 __field(int, nsegs)
[all …]
/linux-6.6.21/fs/
Dbinfmt_elf_fdpic.c563 len += sizeof(struct elf_fdpic_loadseg) * exec_params->loadmap->nsegs; in create_elf_fdpic_tables()
575 interp_params->loadmap->nsegs; in create_elf_fdpic_tables()
769 loadmap->nsegs = nloads; in elf_fdpic_map_file()
791 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file()
816 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file()
837 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file()
871 nloads = loadmap->nsegs; in elf_fdpic_map_file()
884 loadmap->nsegs--; in elf_fdpic_map_file()
901 for (loop = 0; loop < loadmap->nsegs; loop++, seg++) in elf_fdpic_map_file()
/linux-6.6.21/crypto/
Drsa-pkcs1pad.c165 int nsegs = next ? 2 : 1; in pkcs1pad_sg_set_buf() local
167 sg_init_table(sg, nsegs); in pkcs1pad_sg_set_buf()
171 sg_chain(sg, nsegs, next); in pkcs1pad_sg_set_buf()
/linux-6.6.21/fs/smb/client/
Dfile.c3341 unsigned int nbv = iter->nr_segs, ix = 0, nsegs = 0; in cifs_limit_bvec_subset() local
3361 nsegs++; in cifs_limit_bvec_subset()
3363 if (max_size == 0 || nsegs >= max_segs) in cifs_limit_bvec_subset()
3369 *_nsegs = nsegs; in cifs_limit_bvec_subset()
3402 unsigned int wsize, nsegs = 0; in cifs_write_from_iter() local
3429 cur_len = cifs_limit_bvec_subset(from, max_len, max_segs, &nsegs); in cifs_write_from_iter()
3431 cur_len, max_len, nsegs, from->nr_segs, max_segs); in cifs_write_from_iter()
3918 unsigned int rsize, nsegs, max_segs = INT_MAX; in cifs_send_async_read() local
3960 max_segs, &nsegs); in cifs_send_async_read()
3962 cur_len, max_len, nsegs, ctx->iter.nr_segs, max_segs); in cifs_send_async_read()
/linux-6.6.21/drivers/media/dvb-frontends/
Ddib8000.c4014 int guard, rate_num, rate_denum = 1, bits_per_symbol, nsegs; in dib8000_get_time_us() local
4056 nsegs = c->layer[i].segment_count; in dib8000_get_time_us()
4057 if (nsegs == 0 || nsegs > 13) in dib8000_get_time_us()
4100 denom += bits_per_symbol * rate_num * fft_div * nsegs * 384; in dib8000_get_time_us()
4221 unsigned nsegs = c->layer[i].segment_count; in dib8000_get_stats() local
4223 if (nsegs == 0 || nsegs > 13) in dib8000_get_stats()
/linux-6.6.21/drivers/scsi/bfa/
Dbfa_svc.c452 u16 nsegs, idx, per_seg_fcxp; in bfa_fcxp_meminfo() local
465 nsegs = BFI_MEM_DMA_NSEGS(num_fcxps, per_fcxp_sz); in bfa_fcxp_meminfo()
468 bfa_mem_dma_seg_iter(fcxp_mod, seg_ptr, nsegs, idx) { in bfa_fcxp_meminfo()
5144 u16 nsegs, idx, per_seg_sgpg, num_sgpg; in bfa_sgpg_meminfo() local
5154 nsegs = BFI_MEM_DMA_NSEGS(num_sgpg, sgpg_sz); in bfa_sgpg_meminfo()
5157 bfa_mem_dma_seg_iter(sgpg_mod, seg_ptr, nsegs, idx) { in bfa_sgpg_meminfo()
5182 u16 i, idx, nsegs, per_seg_sgpg, num_sgpg; in bfa_sgpg_attach() local
5197 nsegs = BFI_MEM_DMA_NSEGS(num_sgpg, sgpg_sz); in bfa_sgpg_attach()
5202 bfa_mem_dma_seg_iter(mod, seg_ptr, nsegs, idx) { in bfa_sgpg_attach()
5426 u16 nsegs, idx, per_seg_uf = 0; in bfa_uf_meminfo() local
[all …]
Dbfa_fcpim.c3630 u16 nsegs, idx, per_seg_ios, num_io_req; in bfa_fcp_meminfo() local
3664 nsegs = BFI_MEM_DMA_NSEGS(num_io_req, BFI_IOIM_SNSLEN); in bfa_fcp_meminfo()
3667 bfa_mem_dma_seg_iter(fcp, seg_ptr, nsegs, idx) { in bfa_fcp_meminfo()
3687 u16 idx, nsegs, num_io_req; in bfa_fcp_attach() local
3700 nsegs = BFI_MEM_DMA_NSEGS(num_io_req, BFI_IOIM_SNSLEN); in bfa_fcp_attach()
3702 bfa_mem_dma_seg_iter(fcp, seg_ptr, nsegs, idx) { in bfa_fcp_attach()
/linux-6.6.21/include/net/
Daddrconf.h104 unsigned char nsegs);
/linux-6.6.21/drivers/scsi/lpfc/
Dlpfc_nvmet.c2711 int i, cnt, nsegs; in lpfc_nvmet_prep_fcp_wqe() local
2742 nsegs = rsp->sg_cnt; in lpfc_nvmet_prep_fcp_wqe()
2898 if (nsegs == 1 && phba->cfg_enable_pbde) { in lpfc_nvmet_prep_fcp_wqe()
2979 nsegs = 0; in lpfc_nvmet_prep_fcp_wqe()
2996 for_each_sg(rsp->sg, sgel, nsegs, i) { in lpfc_nvmet_prep_fcp_wqe()
/linux-6.6.21/net/ipv6/
Daddrconf.c4510 unsigned char nsegs) in ipv6_chk_rpl_srh_loop() argument
4520 for (i = 0; i < nsegs; i++) { in ipv6_chk_rpl_srh_loop()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c5098 u32 nsegs, n, segs = 0, flags; in bnxt_hwrm_vnic_set_tpa() local
5120 nsegs = (MAX_SKB_FRAGS - 1) * n; in bnxt_hwrm_vnic_set_tpa()
5125 nsegs = (MAX_SKB_FRAGS - n) / n; in bnxt_hwrm_vnic_set_tpa()
5132 segs = ilog2(nsegs); in bnxt_hwrm_vnic_set_tpa()