Home
last modified time | relevance | path

Searched refs:nsegs (Results 1 - 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/block/
H A Dblk-merge.c66 unsigned *nsegs) in blk_bio_discard_split()
73 *nsegs = 1; in blk_bio_discard_split()
108 struct bio *bio, struct bio_set *bs, unsigned *nsegs) in blk_bio_write_zeroes_split()
110 *nsegs = 0; in blk_bio_write_zeroes_split()
124 unsigned *nsegs) in blk_bio_write_same_split()
126 *nsegs = 1; in blk_bio_write_same_split()
182 * @nsegs: [in,out] Number of segments in the bio being built. Incremented
188 * @max_segs: [in] upper bound for *@nsegs
195 * *@nsegs segments and *@sectors sectors would make that bio unacceptable for
199 const struct bio_vec *bv, unsigned *nsegs, in bvec_split_segs()
63 blk_bio_discard_split(struct request_queue *q, struct bio *bio, struct bio_set *bs, unsigned *nsegs) blk_bio_discard_split() argument
107 blk_bio_write_zeroes_split(struct request_queue *q, struct bio *bio, struct bio_set *bs, unsigned *nsegs) blk_bio_write_zeroes_split() argument
121 blk_bio_write_same_split(struct request_queue *q, struct bio *bio, struct bio_set *bs, unsigned *nsegs) blk_bio_write_same_split() argument
198 bvec_split_segs(const struct request_queue *q, const struct bio_vec *bv, unsigned *nsegs, unsigned *sectors, unsigned max_segs, unsigned max_sectors) bvec_split_segs() argument
253 unsigned nsegs = 0, sectors = 0; blk_bio_segment_split() local
423 unsigned nsegs = 0, total = 0; blk_bvec_map_sg() local
489 int nsegs = 0; __blk_bios_map_sg() local
526 int nsegs = 0; __blk_rq_map_sg() local
[all...]
/kernel/linux/linux-6.6/block/
H A Dblk-merge.c110 unsigned *nsegs, struct bio_set *bs) in bio_split_discard()
116 *nsegs = 1; in bio_split_discard()
151 unsigned *nsegs, struct bio_set *bs) in bio_split_write_zeroes()
153 *nsegs = 0; in bio_split_write_zeroes()
215 * @nsegs: [in,out] Number of segments in the bio being built. Incremented
221 * @max_segs: [in] upper bound for *@nsegs
228 * *@nsegs segments and *@sectors sectors would make that bio unacceptable for
232 const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes, in bvec_split_segs()
240 while (len && *nsegs < max_segs) { in bvec_split_segs()
245 (*nsegs) in bvec_split_segs()
108 bio_split_discard(struct bio *bio, const struct queue_limits *lim, unsigned *nsegs, struct bio_set *bs) bio_split_discard() argument
149 bio_split_write_zeroes(struct bio *bio, const struct queue_limits *lim, unsigned *nsegs, struct bio_set *bs) bio_split_write_zeroes() argument
231 bvec_split_segs(const struct queue_limits *lim, const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes, unsigned max_segs, unsigned max_bytes) bvec_split_segs() argument
284 unsigned nsegs = 0, bytes = 0; bio_split_rw() local
467 unsigned nsegs = 0, total = 0; blk_bvec_map_sg() local
533 int nsegs = 0; __blk_bios_map_sg() local
570 int nsegs = 0; __blk_rq_map_sg() local
[all...]
/kernel/linux/linux-6.6/net/sunrpc/xprtrdma/
H A Drpc_rdma.c298 int nsegs, bool writing, in rpcrdma_mr_prepare()
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()
295 rpcrdma_mr_prepare(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req, struct rpcrdma_mr_seg *seg, int nsegs, bool writing, struct rpcrdma_mr **mr) rpcrdma_mr_prepare() argument
399 int nsegs, nchunks; rpcrdma_encode_write_list() local
476 int nsegs, nchunks; rpcrdma_encode_reply_chunk() local
[all...]
H A Dfrwr_ops.c273 * @nsegs: number of segments remaining
286 int nsegs, bool writing, __be32 xid, in frwr_map()
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()
284 frwr_map(struct rpcrdma_xprt *r_xprt, struct rpcrdma_mr_seg *seg, int nsegs, bool writing, __be32 xid, struct rpcrdma_mr *mr) frwr_map() argument
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
H A Drpc_rdma.c326 int nsegs, bool writing, in rpcrdma_mr_prepare()
339 return frwr_map(r_xprt, seg, nsegs, writing, req->rl_slot.rq_xid, *mr); in rpcrdma_mr_prepare()
371 int nsegs; in rpcrdma_encode_read_list() local
380 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_snd_buf, pos, in rpcrdma_encode_read_list()
382 if (nsegs < 0) in rpcrdma_encode_read_list()
383 return nsegs; in rpcrdma_encode_read_list()
386 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
393 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs); in rpcrdma_encode_read_list()
395 nsegs -= mr->mr_nents; in rpcrdma_encode_read_list()
396 } while (nsegs); in rpcrdma_encode_read_list()
323 rpcrdma_mr_prepare(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req, struct rpcrdma_mr_seg *seg, int nsegs, bool writing, struct rpcrdma_mr **mr) rpcrdma_mr_prepare() argument
427 int nsegs, nchunks; rpcrdma_encode_write_list() local
492 int nsegs, nchunks; rpcrdma_encode_reply_chunk() local
[all...]
H A Dfrwr_ops.c270 * @nsegs: number of segments remaining
283 int nsegs, bool writing, __be32 xid, in frwr_map()
292 if (nsegs > ep->re_max_fr_depth) in frwr_map()
293 nsegs = ep->re_max_fr_depth; in frwr_map()
294 for (i = 0; i < nsegs;) { in frwr_map()
308 if ((i < nsegs && offset_in_page(seg->mr_offset)) || in frwr_map()
281 frwr_map(struct rpcrdma_xprt *r_xprt, struct rpcrdma_mr_seg *seg, int nsegs, bool writing, __be32 xid, struct rpcrdma_mr *mr) frwr_map() argument
H A Dsvc_rdma_sendto.c418 unsigned int i, nsegs; in svc_rdma_encode_write_chunk() local
430 nsegs = be32_to_cpup(src++); in svc_rdma_encode_write_chunk()
431 ret = xdr_stream_encode_u32(&sctxt->sc_stream, nsegs); in svc_rdma_encode_write_chunk()
436 for (i = nsegs; i; i--) { in svc_rdma_encode_write_chunk()
/kernel/linux/linux-5.10/fs/nilfs2/
H A Dsufile.c132 * @nsegs: size of @segnumv array
156 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 in nilfs_sufile_truncate_range()
784 unsigned long nsegs, nrsvsegs; nilfs_sufile_resize() local
863 unsigned long nsegs, segusages_per_block; nilfs_sufile_get_suinfo() local
[all...]
H A Dsufile.h81 * @nsegs: size of @segnumv array
85 size_t nsegs, size_t *ndone) in nilfs_sufile_freev()
87 return nilfs_sufile_updatev(sufile, segnumv, nsegs, 0, ndone, in nilfs_sufile_freev()
95 * @nsegs: size of @segnumv array
102 __u64 *segnumv, size_t nsegs, in nilfs_sufile_cancel_freev()
105 return nilfs_sufile_updatev(sufile, segnumv, nsegs, 0, ndone, in nilfs_sufile_cancel_freev()
84 nilfs_sufile_freev(struct inode *sufile, __u64 *segnumv, size_t nsegs, size_t *ndone) nilfs_sufile_freev() argument
101 nilfs_sufile_cancel_freev(struct inode *sufile, __u64 *segnumv, size_t nsegs, size_t *ndone) nilfs_sufile_cancel_freev() argument
H A Dthe_nilfs.c399 * @nsegs: total number of segments
401 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()
764 size_t nsegs) in nilfs_discard_segments()
774 for (sn = segnump; sn < segnump + nsegs; sn++) { in nilfs_discard_segments()
763 nilfs_discard_segments(struct the_nilfs *nilfs, __u64 *segnump, size_t nsegs) nilfs_discard_segments() argument
H A 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);
H A Dioctl.c872 size_t len, nsegs; in nilfs_ioctl_clean_segments() local
887 nsegs = argv[4].v_nmembs; in nilfs_ioctl_clean_segments()
890 if (nsegs > UINT_MAX / sizeof(__u64)) in nilfs_ioctl_clean_segments()
899 nsegs * sizeof(__u64)); in nilfs_ioctl_clean_segments()
911 if (argv[n].v_nmembs > nsegs * nilfs->ns_blocks_per_segment) in nilfs_ioctl_clean_segments()
/kernel/linux/linux-6.6/fs/nilfs2/
H A Dsufile.c132 * @nsegs: size of @segnumv array
156 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 in nilfs_sufile_truncate_range()
784 unsigned long nsegs, nrsvsegs; nilfs_sufile_resize() local
863 unsigned long nsegs, segusages_per_block; nilfs_sufile_get_suinfo() local
[all...]
H A Dsufile.h81 * @nsegs: size of @segnumv array
85 size_t nsegs, size_t *ndone) in nilfs_sufile_freev()
87 return nilfs_sufile_updatev(sufile, segnumv, nsegs, 0, ndone, in nilfs_sufile_freev()
95 * @nsegs: size of @segnumv array
102 __u64 *segnumv, size_t nsegs, in nilfs_sufile_cancel_freev()
105 return nilfs_sufile_updatev(sufile, segnumv, nsegs, 0, ndone, in nilfs_sufile_cancel_freev()
84 nilfs_sufile_freev(struct inode *sufile, __u64 *segnumv, size_t nsegs, size_t *ndone) nilfs_sufile_freev() argument
101 nilfs_sufile_cancel_freev(struct inode *sufile, __u64 *segnumv, size_t nsegs, size_t *ndone) nilfs_sufile_cancel_freev() argument
H A Dthe_nilfs.c399 * @nsegs: total number of segments
401 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()
773 for (sn = segnump; sn < segnump + nsegs; sn++) { in nilfs_discard_segments()
762 nilfs_discard_segments(struct the_nilfs *nilfs, __u64 *segnump, size_t nsegs) nilfs_discard_segments() argument
H A 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);
H A 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()
/kernel/linux/linux-6.6/include/uapi/linux/
H A Delf-fdpic.h29 Elf32_Half nsegs; /* number of segments */ member
44 Elf64_Half nsegs; /* number of segments */ member
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/
H A 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 in gve_xsk_tx()
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Drpcrdma.h173 int nsegs
176 TP_ARGS(task, pos, mr, nsegs),
186 __field(int, nsegs)
197 __entry->nsegs = nsegs;
204 __entry->nents < __entry->nsegs ? "more" : "last"
214 int nsegs \
216 TP_ARGS(task, pos, mr, nsegs))
222 int nsegs
225 TP_ARGS(task, mr, nsegs),
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A 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),
[all...]
/kernel/linux/linux-5.10/include/uapi/linux/
H A Delf-fdpic.h29 Elf32_Half nsegs; /* number of segments */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Delf-fdpic.h30 Elf32_Half nsegs; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Delf-fdpic.h30 Elf32_Half nsegs; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Delf-fdpic.h17 Elf32_Half nsegs; member

Completed in 21 milliseconds

123