Lines Matching refs:items
38 int items; in thread_map__new_by_pid() local
43 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid()
44 if (items <= 0) in thread_map__new_by_pid()
47 threads = thread_map__alloc(items); in thread_map__new_by_pid()
49 for (i = 0; i < items; i++) in thread_map__new_by_pid()
51 threads->nr = items; in thread_map__new_by_pid()
55 for (i=0; i<items; i++) in thread_map__new_by_pid()
78 int max_threads = 32, items, i; in __thread_map__new_all_cpus() local
111 items = scandir(path, &namelist, filter, NULL); in __thread_map__new_all_cpus()
112 if (items <= 0) { in __thread_map__new_all_cpus()
116 while (threads->nr + items >= max_threads) { in __thread_map__new_all_cpus()
131 for (i = 0; i < items; i++) { in __thread_map__new_all_cpus()
136 for (i = 0; i < items; i++) in __thread_map__new_all_cpus()
140 threads->nr += items; in __thread_map__new_all_cpus()
153 for (i = 0; i < items; i++) in __thread_map__new_all_cpus()
185 int items, total_tasks = 0; in thread_map__new_by_pid_str() local
208 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid_str()
209 if (items <= 0) in thread_map__new_by_pid_str()
212 total_tasks += items; in thread_map__new_by_pid_str()
219 for (i = 0; i < items; i++) { in thread_map__new_by_pid_str()
234 for (i = 0; i < items; i++) in thread_map__new_by_pid_str()