Lines Matching refs:nb_splits
22 static int sg_calculate_split(struct scatterlist *in, int nents, int nb_splits, in sg_calculate_split() argument
32 for (i = 0; i < nb_splits; i++) { in sg_calculate_split()
53 while (!size && (skip + len < sglen) && (--nb_splits > 0)) { in sg_calculate_split()
67 if (!size && --nb_splits > 0) { in sg_calculate_split()
72 if (!nb_splits) in sg_calculate_split()
79 static void sg_split_phys(struct sg_splitter *splitters, const int nb_splits) in sg_split_phys() argument
85 for (i = 0, split = splitters; i < nb_splits; i++, split++) { in sg_split_phys()
105 static void sg_split_mapped(struct sg_splitter *splitters, const int nb_splits) in sg_split_mapped() argument
111 for (i = 0, split = splitters; i < nb_splits; i++, split++) { in sg_split_mapped()
151 const off_t skip, const int nb_splits, in sg_split() argument
159 splitters = kcalloc(nb_splits, sizeof(*splitters), gfp_mask); in sg_split()
163 ret = sg_calculate_split(in, sg_nents(in), nb_splits, skip, split_sizes, in sg_split()
169 for (i = 0; i < nb_splits; i++) { in sg_split()
180 sg_split_phys(splitters, nb_splits); in sg_split()
181 ret = sg_calculate_split(in, in_mapped_nents, nb_splits, skip, in sg_split()
185 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()