Lines Matching refs:nb_splits
20 static int sg_calculate_split(struct scatterlist *in, int nents, int nb_splits, in sg_calculate_split() argument
30 for (i = 0; i < nb_splits; i++) { in sg_calculate_split()
51 while (!size && (skip + len < sglen) && (--nb_splits > 0)) { in sg_calculate_split()
65 if (!size && --nb_splits > 0) { in sg_calculate_split()
70 if (!nb_splits) in sg_calculate_split()
77 static void sg_split_phys(struct sg_splitter *splitters, const int nb_splits) in sg_split_phys() argument
83 for (i = 0, split = splitters; i < nb_splits; i++, split++) { in sg_split_phys()
103 static void sg_split_mapped(struct sg_splitter *splitters, const int nb_splits) in sg_split_mapped() argument
109 for (i = 0, split = splitters; i < nb_splits; i++, split++) { in sg_split_mapped()
149 const off_t skip, const int nb_splits, in sg_split() argument
157 splitters = kcalloc(nb_splits, sizeof(*splitters), gfp_mask); in sg_split()
161 ret = sg_calculate_split(in, sg_nents(in), nb_splits, skip, split_sizes, in sg_split()
167 for (i = 0; i < nb_splits; i++) { in sg_split()
178 sg_split_phys(splitters, nb_splits); in sg_split()
180 ret = sg_calculate_split(in, in_mapped_nents, nb_splits, skip, in sg_split()
184 sg_split_mapped(splitters, nb_splits); in sg_split()
187 for (i = 0; i < nb_splits; i++) { in sg_split()
197 for (i = 0; i < nb_splits; i++) in sg_split()