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