Lines Matching defs:cnt
492 int nr_pages, cnt;
498 cnt = PAGE_SIZE / conf->stripe_size;
499 nr_pages = (disks + cnt - 1) / cnt;
505 sh->stripes_per_page = cnt;
975 int cnt = 0;
998 cnt++;
999 if (cnt >= target)
1002 conf->pending_data_cnt -= cnt;
1003 BUG_ON(conf->pending_data_cnt < 0 || cnt < target);
2390 * @cnt: scribble objs count for required size of the scribble region
2402 int num, int cnt)
2415 scribble = kvmalloc_array(cnt, obj_size, GFP_KERNEL);
2492 int hash, cnt;
2529 cnt = 0;
2552 cnt++;
2553 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS +
2556 cnt = 0;
4923 pr_debug("handling stripe %llu, state=%#lx cnt=%d, "
5617 int cnt = 0;
5638 cnt++;
5645 trace_block_unplug(mddev->queue, cnt, !from_schedule);
6880 static int alloc_thread_groups(struct r5conf *conf, int cnt,
6954 static int alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt,
6961 if (cnt == 0) {
6967 size = sizeof(struct r5worker) * cnt;
6984 group->workers = workers + i * cnt;
6986 for (j = 0; j < cnt; j++) {