Lines Matching refs:total_cnt
1065 int total_cnt = 0; in __cgroup_bpf_query() local
1091 total_cnt += bpf_prog_array_length(effective); in __cgroup_bpf_query()
1093 total_cnt += prog_list_length(&cgrp->bpf.progs[atype], NULL); in __cgroup_bpf_query()
1101 if (copy_to_user(&uattr->query.prog_cnt, &total_cnt, sizeof(total_cnt))) in __cgroup_bpf_query()
1103 if (attr->query.prog_cnt == 0 || !prog_ids || !total_cnt) in __cgroup_bpf_query()
1107 if (attr->query.prog_cnt < total_cnt) { in __cgroup_bpf_query()
1108 total_cnt = attr->query.prog_cnt; in __cgroup_bpf_query()
1112 for (atype = from_atype; atype <= to_atype && total_cnt; atype++) { in __cgroup_bpf_query()
1116 cnt = min_t(int, bpf_prog_array_length(effective), total_cnt); in __cgroup_bpf_query()
1125 cnt = min_t(int, prog_list_length(progs, NULL), total_cnt); in __cgroup_bpf_query()
1148 total_cnt -= cnt; in __cgroup_bpf_query()