Lines Matching defs:cnt
502 int nr_pages, cnt;
508 cnt = PAGE_SIZE / conf->stripe_size;
509 nr_pages = (disks + cnt - 1) / cnt;
515 sh->stripes_per_page = cnt;
1057 int cnt = 0;
1080 cnt++;
1081 if (cnt >= target)
1084 conf->pending_data_cnt -= cnt;
1085 BUG_ON(conf->pending_data_cnt < 0 || cnt < target);
2461 * @cnt: scribble objs count for required size of the scribble region
2473 int num, int cnt)
2486 scribble = kvmalloc_array(cnt, obj_size, GFP_KERNEL);
2563 int hash, cnt;
2600 cnt = 0;
2623 cnt++;
2624 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS +
2627 cnt = 0;
5036 pr_debug("handling stripe %llu, state=%#lx cnt=%d, "
5722 int cnt = 0;
5743 cnt++;
5750 trace_block_unplug(mddev->queue, cnt, !from_schedule);
7215 static int alloc_thread_groups(struct r5conf *conf, int cnt,
7289 static int alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt,
7296 if (cnt == 0) {
7302 size = sizeof(struct r5worker) * cnt;
7319 group->workers = workers + i * cnt;
7321 for (j = 0; j < cnt; j++) {