Lines Matching defs:total_cnt
1031 int total_cnt = 0;
1057 total_cnt += bpf_prog_array_length(effective);
1059 total_cnt += prog_list_length(&cgrp->bpf.progs[atype]);
1067 if (copy_to_user(&uattr->query.prog_cnt, &total_cnt, sizeof(total_cnt)))
1069 if (attr->query.prog_cnt == 0 || !prog_ids || !total_cnt)
1073 if (attr->query.prog_cnt < total_cnt) {
1074 total_cnt = attr->query.prog_cnt;
1078 for (atype = from_atype; atype <= to_atype && total_cnt; atype++) {
1082 cnt = min_t(int, bpf_prog_array_length(effective), total_cnt);
1091 cnt = min_t(int, prog_list_length(progs), total_cnt);
1114 total_cnt -= cnt;