Lines Matching defs:stripes
27 uint32_t stripes;
31 /* The size of this target / num. stripes */
61 static inline struct stripe_c *alloc_context(unsigned int stripes)
66 stripes))
69 len = sizeof(struct stripe_c) + (sizeof(struct stripe) * stripes);
96 * <number of stripes> <chunk size (2^^n)> [<dev_path> <offset>]+
102 uint32_t stripes;
113 stripes = simple_strtoul(argv[0], &end, 10);
114 if (!stripes || *end) {
141 if (sector_div(width, stripes)) {
143 "number of stripes";
148 * Do we have enough arguments for that many stripes ?
150 if (argc != (2 + 2 * stripes)) {
156 sc = alloc_context(stripes);
167 sc->stripes = stripes;
170 if (stripes & (stripes - 1))
173 sc->stripes_shift = ffs(stripes) - 1;
174 sc->stripes_mask = ((sector_t) stripes) - 1;
178 ti->num_flush_requests = stripes;
179 ti->num_discard_requests = stripes;
187 for (i = 0; i < stripes; i++) {
211 for (i = 0; i < sc->stripes; i++)
225 *stripe = sector_div(chunk, sc->stripes);
276 BUG_ON(target_request_nr >= sc->stripes);
282 BUG_ON(target_request_nr >= sc->stripes);
298 * #stripes [stripe_name <stripe_name>] [group word count]
302 * #stripes [stripe chunk size]
311 char buffer[sc->stripes + 1];
317 DMEMIT("%d ", sc->stripes);
318 for (i = 0; i < sc->stripes; i++) {
328 DMEMIT("%d %llu", sc->stripes,
330 for (i = 0; i < sc->stripes; i++)
361 * and increment error count for all stripes on that device.
365 for (i = 0; i < sc->stripes; i++)
387 } while (!ret && ++i < sc->stripes);
399 blk_limits_io_opt(limits, chunk_size * sc->stripes);