Lines Matching refs:total_cnt
1048 int total_cnt = 0; in __cgroup_bpf_query() local
1074 total_cnt += bpf_prog_array_length(effective); in __cgroup_bpf_query()
1076 total_cnt += prog_list_length(&cgrp->bpf.progs[atype]); in __cgroup_bpf_query()
1084 if (copy_to_user(&uattr->query.prog_cnt, &total_cnt, sizeof(total_cnt))) in __cgroup_bpf_query()
1086 if (attr->query.prog_cnt == 0 || !prog_ids || !total_cnt) in __cgroup_bpf_query()
1090 if (attr->query.prog_cnt < total_cnt) { in __cgroup_bpf_query()
1091 total_cnt = attr->query.prog_cnt; in __cgroup_bpf_query()
1095 for (atype = from_atype; atype <= to_atype && total_cnt; atype++) { in __cgroup_bpf_query()
1099 cnt = min_t(int, bpf_prog_array_length(effective), total_cnt); in __cgroup_bpf_query()
1108 cnt = min_t(int, prog_list_length(progs), total_cnt); in __cgroup_bpf_query()
1131 total_cnt -= cnt; in __cgroup_bpf_query()