Lines Matching defs:idx

104     uint32_t idx = __sync_fetch_and_add(&dc->mWorkers.mLaunchCount, 1);
106 //ALOGV("RS helperThread starting %p idx=%i", dc, idx);
108 dc->mWorkers.mLaunchSignals[idx].init();
109 dc->mWorkers.mNativeThreadId[idx] = gettid();
121 cpuset.bits[idx / 64] |= 1ULL << (idx % 64);
122 int ret = syscall(241, rsc->mWorkers.mNativeThreadId[idx],
128 dc->mWorkers.mLaunchSignals[idx].wait();
130 // idx +1 is used because the calling thread is always worker 0.
131 dc->mWorkers.mLaunchCallback(dc->mWorkers.mLaunchData, idx+1);
137 //ALOGV("RS helperThread exited %p idx=%i", dc, idx);
391 static void walk_general_foreach(void *usr, uint32_t idx) {
394 fep.lid = idx;
418 static void walk_2d_foreach(void *usr, uint32_t idx) {
421 fep.lid = idx;
443 static void walk_1d_foreach(void *usr, uint32_t idx) {
446 fep.lid = idx;
523 REDUCE_ALOGV(mtls, 2, "%s(%p): idx = %u got accumCount %u and accumPtr %p",
533 static void walk_1d_reduce(void *usr, uint32_t idx) {
538 uint8_t *&accumPtr = mtls->accumPtr[idx];
540 reduce_get_accumulator(accumPtr, mtls, __func__, idx);
567 REDUCE_ALOGV(mtls, 2, "walk_1d_reduce(%p): idx = %u, x in [%u, %u)%s",
568 mtls->accumFunc, idx, xStart, xEnd, fmt);
572 static void walk_2d_reduce(void *usr, uint32_t idx) {
577 uint8_t *&accumPtr = mtls->accumPtr[idx];
579 reduce_get_accumulator(accumPtr, mtls, __func__, idx);
606 REDUCE_ALOGV(mtls, 2, "walk_2d_reduce(%p): idx = %u, y in [%u, %u)%s",
607 mtls->accumFunc, idx, yStart, yEnd, fmt);
611 static void walk_3d_reduce(void *usr, uint32_t idx) {
616 uint8_t *&accumPtr = mtls->accumPtr[idx];
618 reduce_get_accumulator(accumPtr, mtls, __func__, idx);
641 REDUCE_ALOGV(mtls, 2, "walk_3d_reduce(%p): idx = %u, z = %u%s",
642 mtls->accumFunc, idx, redp.current.z, fmt);
779 for (unsigned idx = 0; idx < mtls->accumCount; ++idx) {
780 uint8_t *const thisAccumPtr = mtls->accumPtr[idx];
790 mtls->accumFunc, idx,