Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 69) sorted by relevance

123

/device/google/contexthub/firmware/os/cpu/cortexm4/
DatomicBitset.c46 uint32_t idx = num / 32, mask = 1UL << (num & 31), status, tmp; in atomicBitsetClearBit() local
47 uint32_t *wordPtr = set->words + idx; in atomicBitsetClearBit()
66 uint32_t idx = num / 32, mask = 1UL << (num & 31), status, tmp; in atomicBitsetSetBit() local
67 uint32_t *wordPtr = set->words + idx; in atomicBitsetSetBit()
86 uint32_t idx, numWords = ATOMIC_BITSET_NUM_WORDS(set->numBits); in atomicBitsetFindClearAndSet() local
90 for (idx = 0; idx < numWords; idx++, wordPtr++) { in atomicBitsetFindClearAndSet()
111 return (idx * 32) + bit; in atomicBitsetFindClearAndSet()
119 uint32_t idx, numWords = ATOMIC_BITSET_NUM_WORDS(atomicallyAccessedSet->numBits); in atomicBitsetXchg() local
124 for (idx = 0; idx < numWords; idx++) in atomicBitsetXchg()
125 … otherSet->words[idx] = atomicXchg32bits(&atomicallyAccessedSet->words[idx], otherSet->words[idx]); in atomicBitsetXchg()
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/utest/
Dxaf-mem-test.c74 int idx; in get_heap_ptr_index() local
76 idx = -1; in get_heap_ptr_index()
79 for(idx = 0; idx < MEM_NUM_MEM_ALLOC; idx++) in get_heap_ptr_index()
81 if(g_mem_obj.mem_dev[idx].heap_ptr == p_heap) in get_heap_ptr_index()
88 for(idx = 0; idx < MEM_NUM_MEM_ALLOC; idx++) in get_heap_ptr_index()
90 if(g_mem_obj.mem_comp[idx].heap_ptr == p_heap) in get_heap_ptr_index()
94 return idx; in get_heap_ptr_index()
/device/generic/goldfish/fingerprint/
Dfingerprint.c98 static void saveFingerprint(worker_thread_t* listener, int idx) { in saveFingerprint() argument
99 ALOGD("----------------> %s -----------------> idx %d", __FUNCTION__, idx); in saveFingerprint()
111 ALOGD("Write fingerprint[%d] (0x%" PRIx64 ",0x%" PRIx64 ")", idx, in saveFingerprint()
112 listener->secureid[idx], listener->fingerid[idx]); in saveFingerprint()
114 if (fseek(fp, (idx) * sizeof(uint64_t), SEEK_SET) < 0) { in saveFingerprint()
116 idx); in saveFingerprint()
120 int ns = fwrite(&listener->secureid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
122 if (fseek(fp, (MAX_NUM_FINGERS + idx) * sizeof(uint64_t), SEEK_SET) < 0) { in saveFingerprint()
124 idx); in saveFingerprint()
128 int nf = fwrite(&listener->fingerid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-proxy.h85 #define __XF_QUEUE_IDX(idx, counter) \ argument
86 (((idx) & XF_PROXY_MESSAGE_QUEUE_MASK) | ((counter) << 16))
89 #define XF_QUEUE_IDX(idx) \ argument
90 ((idx) & XF_PROXY_MESSAGE_QUEUE_MASK)
93 #define XF_QUEUE_ADVANCE_IDX(idx) \ argument
94 (((idx) + 0x10001) & (0xFFFF0000 | XF_PROXY_MESSAGE_QUEUE_MASK))
/device/generic/goldfish-opengl/system/egl/
DClientAPIExts.cpp65 void initClientFuncs(const EGLClient_glesInterface *iface, int idx) in initClientFuncs() argument
68 s_client_extensions[idx].fname = \ in initClientFuncs()
77 memset(&s_client_extensions[idx], 0, sizeof(struct _ext_table)); in initClientFuncs()
101 int idx = clientMajorVersion == 1 ? 0 : 1; \
102 if (!s_client_extensions[idx].fname) { \
105 (*s_client_extensions[idx].fname) args; /* NOLINT */ \
115 int idx = (int)thread->currentContext->majorVersion - 1; \
116 if (!s_client_extensions[idx].fname) { \
119 return (*s_client_extensions[idx].fname) args; /* NOLINT */ \
DClientAPIExts.h24 void initClientFuncs(const EGLClient_glesInterface *iface, int idx);
/device/google/contexthub/firmware/os/core/
Dsyscall.c39 uint32_t idx = path >> (32 - *bits); in syscallAddTable() local
43 if ((*tabP)->numEntries <= idx) in syscallAddTable()
50 tabP = &(*tabP)->entry[idx].subtable; in syscallAddTable()
63 uint32_t idx = path >> (32 - *bits); in syscallFindHandlerLoc() local
67 if (tab->numEntries <= idx) in syscallFindHandlerLoc()
71 return &tab->entry[idx].func; in syscallFindHandlerLoc()
73 tab = tab->entry[idx].subtable; in syscallFindHandlerLoc()
Dprintf.c41 uint32_t idx = sizeof(buf) - 1; in StrPrvPrintfEx_number() local
55 buf[idx--] = 0; //terminate in StrPrvPrintfEx_number()
85 buf[idx--] = chr; in StrPrvPrintfEx_number()
94 buf[idx--] = '0'; in StrPrvPrintfEx_number()
102 if (buf[idx+1] != '0') { in StrPrvPrintfEx_number()
103 buf[idx--] = '0'; in StrPrvPrintfEx_number()
109 buf[idx--] = data->flags & FLAG_CAPS ? 'X' : 'x'; in StrPrvPrintfEx_number()
111 buf[idx--] = '0'; in StrPrvPrintfEx_number()
124 buf[idx--] = data->flags & FLAG_ZERO_EXTEND ? '0' : ' '; in StrPrvPrintfEx_number()
132 buf[idx--] = data->posChar; in StrPrvPrintfEx_number()
[all …]
DsimpleQ.c120 uint32_t idx, prev = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAllocWithDiscard() local
122 for (idx = sq->head; idx != SIMPLE_QUEUE_IDX_NONE; prev=idx, idx = cur->nextIdx) { in simpleQueueAllocWithDiscard()
123 cur = simpleQueueGetNth(sq, idx); in simpleQueueAllocWithDiscard()
136 if (sq->tail == idx) in simpleQueueAllocWithDiscard()
Dslab.c80 void* slabAllocatorGetNth(struct SlabAllocator *allocator, uint32_t idx) in slabAllocatorGetNth() argument
82 if (!atomicBitsetGetBit(allocator->bitset, idx)) in slabAllocatorGetNth()
85 return allocator->dataChunks + allocator->itemSz * idx; in slabAllocatorGetNth()
/device/linaro/dragonboard/qcom/qrtr/src/
Dmap.c67 int idx, i; in map_hash() local
72 idx = key % map->size; in map_hash()
75 e = &map->data[idx]; in map_hash()
78 return idx; in map_hash()
81 return idx; in map_hash()
83 idx = (idx + 1) % map->size; in map_hash()
152 int idx, i; in map_find() local
157 idx = key % map->size; in map_find()
160 e = &map->data[idx]; in map_find()
161 idx = (idx + 1) % map->size; in map_find()
/device/google/bonito/json-c/
Darraylist.c76 array_list_put_idx(struct array_list *arr, int idx, void *data) in array_list_put_idx() argument
78 if(array_list_expand_internal(arr, idx+1)) return -1; in array_list_put_idx()
79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx()
80 arr->array[idx] = data; in array_list_put_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
/device/google/coral/json-c/
Darraylist.c76 array_list_put_idx(struct array_list *arr, int idx, void *data) in array_list_put_idx() argument
78 if(array_list_expand_internal(arr, idx+1)) return -1; in array_list_put_idx()
79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx()
80 arr->array[idx] = data; in array_list_put_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
/device/google/crosshatch/json-c/
Darraylist.c76 array_list_put_idx(struct array_list *arr, int idx, void *data) in array_list_put_idx() argument
78 if(array_list_expand_internal(arr, idx+1)) return -1; in array_list_put_idx()
79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx()
80 arr->array[idx] = data; in array_list_put_idx()
81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c565 enum SensorIndex idx; member
980 static void resetOffsetReg(TASK, enum SensorIndex idx) argument
984 DEBUG_PRINT("Reset offset registers sensor=%d\n", idx);
986 if (idx == ACC) {
993 } else if (idx == GYR) {
1094 static void getFifoData(const uint8_t *data, int idx, struct FifoPacketData *out) argument
1105 if (data[idx] & BIT_FIFO_HEAD_ACCEL) {
1106 out->accel[0] = (data[idx + 2] << 8) | data[idx + 1];
1107 out->accel[1] = (data[idx + 4] << 8) | data[idx + 3];
1108 out->accel[2] = (data[idx + 6] << 8) | data[idx + 5];
[all …]
/device/google/cuttlefish/guest/hals/hwcomposer/common/
Dhwcomposer.cpp171 for (int idx = 0; idx < num_layers; ++idx) { in LogLayers() local
173 if (idx == invalid) { in LogLayers()
177 "Composition Type: " + CompositionString(layers[idx].compositionType); in LogLayers()
234 for (int idx = 0; idx < num_layers; ++idx) { in IsValidComposition() local
235 if (layers[idx].compositionType == HWC_FRAMEBUFFER) { in IsValidComposition()
241 if (layers[idx].compositionType == HWC_OVERLAY) { in IsValidComposition()
247 for (int idx = 0; idx < num_layers; ++idx) { in IsValidComposition() local
248 switch (layers[idx].compositionType) { in IsValidComposition()
252 if (on_set && check_fb_target && !IsValidLayer(dev, layers[idx])) { in IsValidComposition()
254 LogLayers(num_layers, layers, idx); in IsValidComposition()
[all …]
Dbase_composer.cpp106 for (size_t idx = 0; idx < num_layers; idx++) { in SetLayers() local
107 if (IS_TARGET_FRAMEBUFFER(layers[idx].compositionType)) { in SetLayers()
108 return PostFrameBufferTarget(layers[idx].handle); in SetLayers()
Dcpu_composer.cpp646 for (size_t idx = 0; idx < num_layers; idx++) { in SetLayers() local
647 if (layers[idx].compositionType == HWC_FRAMEBUFFER) { in SetLayers()
652 if (layers[idx].compositionType == HWC_OVERLAY) { in SetLayers()
660 for (size_t idx = 0; idx < num_layers; idx++) { in SetLayers() local
661 if (IS_TARGET_FRAMEBUFFER(layers[idx].compositionType)) { in SetLayers()
662 CompositeLayer(&layers[idx], buffer_idx); in SetLayers()
668 for (size_t idx = 0; idx < num_layers; idx++) { in SetLayers() local
669 if (IS_TARGET_FRAMEBUFFER(layers[idx].compositionType)) { in SetLayers()
672 if (layers[idx].compositionType == HWC_OVERLAY && in SetLayers()
673 !(layers[idx].flags & HWC_SKIP_LAYER)) { in SetLayers()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/
Dxa-class-base.h167 #define XA_API(codec, cmd, idx, pv) \ argument
170 __e = (codec)->process((xa_codec_handle_t)(codec)->api.addr, (cmd), (idx), (pv)); \
175 TRACE(ERROR, _x("[%p]:(%d, %d, %p): %X"), (codec), (cmd), (idx), (pv), __e); \
183 #define XA_API_NORET(codec, cmd, idx, pv) \ argument
186 __e = (codec)->process((xa_codec_handle_t)(codec)->api.addr, (cmd), (idx), (pv)); \
191 TRACE(ERROR, _x("[%p]:(%d, %d, %p): %X"), (codec), (cmd), (idx), (pv), __e); \
/device/google/cuttlefish/host/commands/kernel_log_monitor/
Dkernel_log_server.cc50 std::size_t idx = 0; in ProcessSubscriptions() local
51 while (idx < active_subscription_count) { in ProcessSubscriptions()
53 auto action = (*subscribers)[idx](evt); in ProcessSubscriptions()
55 ++idx; in ProcessSubscriptions()
60 std::swap((*subscribers)[idx], (*subscribers)[active_subscription_count]); in ProcessSubscriptions()
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/
Dxf-shmem.h146 #define XF_PROXY_COMMAND(core, idx) \ argument
147 (&XF_SHMEM_DATA((core))->remote.command[(idx)])
150 #define XF_PROXY_RESPONSE(core, idx) \ argument
151 (&XF_SHMEM_DATA((core))->local.response[(idx)])
/device/generic/goldfish/network/wifi_forwarder/
Dframe.cpp87 mTxRates[i].idx = rates[i].idx; in FrameInfo()
91 mTxRates[i].idx = -1; in FrameInfo()
115 if (mInitialTxRates[i].idx == -1) { in incrementAttempts()
130 if (mInitialTxRates[i].idx == -1) { in hasRemainingAttempts()
/device/generic/goldfish/wifi/mac80211_create_radios/
Dmain.cpp127 for (int idx = 0; idx < nRadios; ++idx) { in createRadios() local
128 mac[4] = idx; in createRadios()
/device/google/contexthub/firmware/os/cpu/x86/
DatomicBitset.c47 uint32_t idx = num / 32, mask = 1UL << (num & 31); in atomicBitsetClearBit() local
48 uint32_t *wordPtr = set->words + idx; in atomicBitsetClearBit()
/device/google/contexthub/contexthubhal/test/
Dmain.cpp164 Client *getClientByIndex(size_t idx) { in getClientByIndex() argument
165 return idx < mHubArraySize && mHubArray != nullptr ? in getClientByIndex()
166 getClientById(mHubArray[idx].hub_id) : nullptr; in getClientByIndex()
181 NanoClient(int idx = 0) : log(std::clog) { in NanoClient() argument
183 mClient = hub->getClientByIndex(idx); in NanoClient()

123