Home
last modified time | relevance | path

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

1234567

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
Dscanner.py28 def _scan_once(string, idx): argument
30 nextchar = string[idx]
35 return parse_string(string, idx + 1, encoding, strict)
37 return parse_object((string, idx + 1), encoding, strict,
40 return parse_array((string, idx + 1), _scan_once)
41 elif nextchar == 'n' and string[idx:idx + 4] == 'null':
42 return None, idx + 4
43 elif nextchar == 't' and string[idx:idx + 4] == 'true':
44 return True, idx + 4
45 elif nextchar == 'f' and string[idx:idx + 5] == 'false':
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
Dscanner.py28 def _scan_once(string, idx): argument
30 nextchar = string[idx]
35 return parse_string(string, idx + 1, encoding, strict)
37 return parse_object((string, idx + 1), encoding, strict,
40 return parse_array((string, idx + 1), _scan_once)
41 elif nextchar == 'n' and string[idx:idx + 4] == 'null':
42 return None, idx + 4
43 elif nextchar == 't' and string[idx:idx + 4] == 'true':
44 return True, idx + 4
45 elif nextchar == 'f' and string[idx:idx + 5] == 'false':
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_json.c91 scan_once_str(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr);
93 scan_once_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr);
95 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx);
383 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) { in _build_rval_index_tuple() argument
393 pyidx = PyInt_FromSsize_t(idx); in _build_rval_index_tuple()
858 _parse_object_str(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr) { in _parse_object_str() argument
882 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
885 if (idx <= end_idx && str[idx] != '}') { in _parse_object_str()
886 while (idx <= end_idx) { in _parse_object_str()
888 if (str[idx] != '"') { in _parse_object_str()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_json.c91 scan_once_str(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr);
93 scan_once_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr);
95 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx);
383 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) { in _build_rval_index_tuple() argument
393 pyidx = PyInt_FromSsize_t(idx); in _build_rval_index_tuple()
881 _parse_object_str(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr) { in _parse_object_str() argument
905 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
908 if (idx <= end_idx && str[idx] != '}') { in _parse_object_str()
909 while (idx <= end_idx) { in _parse_object_str()
911 if (str[idx] != '"') { in _parse_object_str()
[all …]
/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/bootloader/edk2/StdLib/Include/Lua/
Dlua.h144 LUA_API int (lua_absindex) (lua_State *L, int idx);
146 LUA_API void (lua_settop) (lua_State *L, int idx);
147 LUA_API void (lua_pushvalue) (lua_State *L, int idx);
148 LUA_API void (lua_remove) (lua_State *L, int idx);
149 LUA_API void (lua_insert) (lua_State *L, int idx);
150 LUA_API void (lua_replace) (lua_State *L, int idx);
161 LUA_API int (lua_isnumber) (lua_State *L, int idx);
162 LUA_API int (lua_isstring) (lua_State *L, int idx);
163 LUA_API int (lua_iscfunction) (lua_State *L, int idx);
164 LUA_API int (lua_isuserdata) (lua_State *L, int idx);
[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/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlapi.c55 static TValue *index2addr (lua_State *L, int idx) { in index2addr() argument
57 if (idx > 0) { in index2addr()
58 TValue *o = ci->func + idx; in index2addr()
59 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
63 else if (!ispseudo(idx)) { /* negative index */ in index2addr()
64 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
65 return L->top + idx; in index2addr()
67 else if (idx == LUA_REGISTRYINDEX) in index2addr()
70 idx = LUA_REGISTRYINDEX - idx; in index2addr()
71 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr()
[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/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/
Dcmd_opt.c43 const char *cmd_opt_get_name(int idx) in cmd_opt_get_name() argument
45 if (idx >= num_reg_opt) { in cmd_opt_get_name()
49 return long_opt[idx].name; in cmd_opt_get_name()
52 const char *cmd_opt_get_help_msg(int idx) in cmd_opt_get_help_msg() argument
54 if (idx >= num_reg_opt) { in cmd_opt_get_help_msg()
58 return help_msg[idx]; in cmd_opt_get_help_msg()
/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 */ \
/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()
/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/bootloader/arm-trusted-firmware/lib/psci/
Dpsci_private.h68 #define psci_lock_init(non_cpu_pd_node, idx) \ argument
69 ((non_cpu_pd_node)[(idx)].lock_index = (idx))
103 #define psci_get_aff_info_state_by_idx(idx) \ argument
104 get_cpu_data_by_index(idx, psci_svc_cpu_data.aff_info_state)
105 #define psci_set_aff_info_state_by_idx(idx, aff_state) \ argument
106 set_cpu_data_by_index(idx, psci_svc_cpu_data.aff_info_state,\
116 #define psci_get_cpu_local_state_by_idx(idx) \ argument
117 get_cpu_data_by_index(idx, psci_svc_cpu_data.local_state)
122 #define psci_spin_lock_cpu(idx) spin_lock(&psci_cpu_pd_nodes[idx].cpu_lock) argument
123 #define psci_spin_unlock_cpu(idx) spin_unlock(&psci_cpu_pd_nodes[idx].cpu_lock) argument
/device/linaro/bootloader/arm-trusted-firmware/drivers/auth/
Dimg_parser_mod.c70 unsigned int idx; in img_parser_check_integrity() local
81 idx = parser_lib_indices[img_type]; in img_parser_check_integrity()
82 assert(idx != INVALID_IDX); in img_parser_check_integrity()
85 return parser_lib_descs[idx].check_integrity(img_ptr, img_len); in img_parser_check_integrity()
104 unsigned int idx; in img_parser_get_auth_param() local
121 idx = parser_lib_indices[img_type]; in img_parser_get_auth_param()
122 assert(idx != INVALID_IDX); in img_parser_get_auth_param()
125 return parser_lib_descs[idx].get_auth_param(type_desc, img_ptr, img_len, in img_parser_get_auth_param()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
Dtest_fail.py64 for idx, doc in enumerate(JSONDOCS):
65 idx = idx + 1
66 if idx in SKIPS:
74 self.fail("Expected failure for fail{0}.json: {1!r}".format(idx, doc))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
Dtest_fail.py82 for idx, doc in enumerate(JSONDOCS):
83 idx = idx + 1
84 if idx in SKIPS:
92 self.fail("Expected failure for fail{0}.json: {1!r}".format(idx, doc))
/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/sunfish/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/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/redbull/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/linaro/hikey/l-loader/
Dgen_loader_hikey.py40 idx = 0 variable in generator
69 if self.idx == 0:
72 elif (self.idx > 1):
81 if (self.idx == 0):
103 if (self.idx == 0):
113 … byte = struct.pack('8s8siii', 'ENTRYHDR', self.s1_entry_name[self.idx], lba, blocks, bootp)
117 self.idx += 1
149 print 'self.idx: ', self.idx
177 loader.idx = 0
/device/google/cuttlefish/guest/hals/hwcomposer/common/
Dhwcomposer.cpp170 for (int idx = 0; idx < num_layers; ++idx) { in LogLayers() local
172 if (idx == invalid) { in LogLayers()
176 "Composition Type: " + CompositionString(layers[idx].compositionType); in LogLayers()
233 for (int idx = 0; idx < num_layers; ++idx) { in IsValidComposition() local
234 if (layers[idx].compositionType == HWC_FRAMEBUFFER) { in IsValidComposition()
240 if (layers[idx].compositionType == HWC_OVERLAY) { in IsValidComposition()
246 for (int idx = 0; idx < num_layers; ++idx) { in IsValidComposition() local
247 switch (layers[idx].compositionType) { in IsValidComposition()
251 if (on_set && check_fb_target && !IsValidLayer(dev, layers[idx])) { in IsValidComposition()
253 LogLayers(num_layers, layers, idx); in IsValidComposition()
[all …]
/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 …]

1234567