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()
101 static void sg_split_mapped(struct sg_splitter *splitters, const int nb_splits) in sg_split_mapped() argument
107 for (i = 0, split = splitters; i < nb_splits; i++, split++) { in sg_split_mapped()
147 const off_t skip, const int nb_splits, in sg_split() argument
155 splitters = kcalloc(nb_splits, sizeof(*splitters), gfp_mask); in sg_split()
159 ret = sg_calculate_split(in, sg_nents(in), nb_splits, skip, split_sizes, in sg_split()
165 for (i = 0; i < nb_splits; i++) { in sg_split()
176 sg_split_phys(splitters, nb_splits); in sg_split()
178 ret = sg_calculate_split(in, in_mapped_nents, nb_splits, skip, in sg_split()
182 sg_split_mapped(splitters, nb_splits); in sg_split()
185 for (i = 0; i < nb_splits; i++) { in sg_split()
195 for (i = 0; i < nb_splits; i++) in sg_split()