Lines Matching refs:ws

42   struct gomp_work_share *ws = thr->ts.work_share;  in gomp_ordered_first()  local
49 index = ws->ordered_cur + ws->ordered_num_used; in gomp_ordered_first()
52 ws->ordered_team_ids[index] = thr->ts.team_id; in gomp_ordered_first()
57 if (ws->ordered_num_used++ == 0) in gomp_ordered_first()
73 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_last() local
81 ws->ordered_owner = -1; in gomp_ordered_last()
84 if (--ws->ordered_num_used > 0) in gomp_ordered_last()
86 unsigned next = ws->ordered_cur + 1; in gomp_ordered_last()
89 ws->ordered_cur = next; in gomp_ordered_last()
91 next_id = ws->ordered_team_ids[next]; in gomp_ordered_last()
108 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_next() local
116 ws->ordered_owner = -1; in gomp_ordered_next()
119 if (ws->ordered_num_used == 1) in gomp_ordered_next()
130 if (ws->ordered_num_used < team->nthreads) in gomp_ordered_next()
132 index = ws->ordered_cur + ws->ordered_num_used; in gomp_ordered_next()
135 ws->ordered_team_ids[index] = thr->ts.team_id; in gomp_ordered_next()
138 index = ws->ordered_cur + 1; in gomp_ordered_next()
141 ws->ordered_cur = index; in gomp_ordered_next()
143 next_id = ws->ordered_team_ids[index]; in gomp_ordered_next()
174 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_static_next() local
180 ws->ordered_owner = -1; in gomp_ordered_static_next()
185 ws->ordered_team_ids[0] = id; in gomp_ordered_static_next()
198 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_sync() local
215 if (ws->ordered_owner != thr->ts.team_id) in gomp_ordered_sync()
218 ws->ordered_owner = thr->ts.team_id; in gomp_ordered_sync()