Home
last modified time | relevance | path

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

123456

/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/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/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/huawei/angler/camera/QCamera2/HAL3/
DQCamera3Mem.cpp745 int32_t idx = -1; in registerBuffer() local
763 idx = getFreeIndexLocked(); in registerBuffer()
764 if (0 > idx) { in registerBuffer()
769 mBufferHandle[idx] = buffer; in registerBuffer()
770 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
772 setMetaData(mPrivateHandle[idx], UPDATE_COLOR_SPACE, &colorSpace); in registerBuffer()
774 mMemInfo[idx].main_ion_fd = open("/dev/ion", O_RDONLY); in registerBuffer()
775 if (mMemInfo[idx].main_ion_fd < 0) { in registerBuffer()
780 ion_info_fd.fd = mPrivateHandle[idx]->fd; in registerBuffer()
781 if (ioctl(mMemInfo[idx].main_ion_fd, in registerBuffer()
[all …]
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3Mem.cpp745 int32_t idx = -1; in registerBuffer() local
763 idx = getFreeIndexLocked(); in registerBuffer()
764 if (0 > idx) { in registerBuffer()
769 mBufferHandle[idx] = buffer; in registerBuffer()
770 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
772 setMetaData(mPrivateHandle[idx], UPDATE_COLOR_SPACE, &colorSpace); in registerBuffer()
774 mMemInfo[idx].main_ion_fd = open("/dev/ion", O_RDONLY); in registerBuffer()
775 if (mMemInfo[idx].main_ion_fd < 0) { in registerBuffer()
780 ion_info_fd.fd = mPrivateHandle[idx]->fd; in registerBuffer()
781 if (ioctl(mMemInfo[idx].main_ion_fd, in registerBuffer()
[all …]
/device/generic/goldfish/fingerprint/
Dfingerprint.c94 static void saveFingerprint(worker_thread_t* listener, int idx) { in saveFingerprint() argument
95 ALOGD("----------------> %s -----------------> idx %d", __FUNCTION__, idx); in saveFingerprint()
107 ALOGD("Write fingerprint[%d] (0x%" PRIx64 ",0x%" PRIx64 ")", idx, in saveFingerprint()
108 listener->secureid[idx], listener->fingerid[idx]); in saveFingerprint()
110 if (fseek(fp, (idx) * sizeof(uint64_t), SEEK_SET) < 0) { in saveFingerprint()
112 idx); in saveFingerprint()
116 int ns = fwrite(&listener->secureid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
118 if (fseek(fp, (MAX_NUM_FINGERS + idx) * sizeof(uint64_t), SEEK_SET) < 0) { in saveFingerprint()
120 idx); in saveFingerprint()
124 int nf = fwrite(&listener->fingerid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
[all …]
/device/google/marlin/camera/QCamera2/HAL3/
DQCamera3Mem.cpp783 int32_t idx = -1; in registerBuffer() local
801 idx = getFreeIndexLocked(); in registerBuffer()
802 if (0 > idx) { in registerBuffer()
807 mBufferHandle[idx] = buffer; in registerBuffer()
808 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
810 setMetaData(mPrivateHandle[idx], UPDATE_COLOR_SPACE, &colorSpace); in registerBuffer()
817 ion_info_fd.fd = mPrivateHandle[idx]->fd; in registerBuffer()
826 idx, mPrivateHandle[idx]->fd, in registerBuffer()
827 mPrivateHandle[idx]->size, in registerBuffer()
828 mPrivateHandle[idx]->offset); in registerBuffer()
[all …]
/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()
100 int idx = (int)thread->currentContext->majorVersion - 1; \
101 if (!s_client_extensions[idx].fname) { \
104 (*s_client_extensions[idx].fname) args; /* NOLINT */ \
114 int idx = (int)thread->currentContext->majorVersion - 1; \
115 if (!s_client_extensions[idx].fname) { \
118 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()
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()
/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/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/arm-trusted-firmware/plat/fvp/
Dfvp_topology.c150 unsigned int aff_state = PSCI_AFF_ABSENT, idx; in plat_get_aff_state() local
151 idx = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_get_aff_state()
161 aff_state = fvp_aff1_topology_map[idx].state; in plat_get_aff_state()
168 idx = fvp_aff1_topology_map[idx].child; in plat_get_aff_state()
169 idx += (mpidr >> MPIDR_AFF0_SHIFT) & MPIDR_AFFLVL_MASK; in plat_get_aff_state()
170 aff_state = fvp_aff0_topology_map[idx].state; in plat_get_aff_state()
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c416 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
420 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
423 idx = 0; in mm_camera_poll_thread_add_poll_fd()
426 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd()
427 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
428 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
429 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
430 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
438 LOGE("invalid handler %d (%d)", handler, idx); in mm_camera_poll_thread_add_poll_fd()
462 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
/device/google/dragon/recovery/updater/
Dfwtool.cpp318 static void print_usage(struct command *commands, int idx, int prefix, in print_usage() argument
324 for (i = 0; i <= idx; i++) in print_usage()
333 static int run_cmd(struct command *commands, int idx, int prefix, in run_cmd() argument
337 if (argc <= idx + 1) in run_cmd()
340 idx += 1; in run_cmd()
342 if (!strcmp(c->name + prefix, argv[idx])) { in run_cmd()
345 return run_cmd(c->subcmd, idx, nprefx, in run_cmd()
348 return c->handler(argc - idx, argv + idx); in run_cmd()
350 print_usage(c->subcmd, idx, nprefx, argc, argv); in run_cmd()
355 idx -= 1; /* last command word was unknown */ in run_cmd()
[all …]
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c415 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
419 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
422 idx = 0; in mm_camera_poll_thread_add_poll_fd()
425 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd()
426 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
427 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
428 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
429 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
438 __func__, handler, idx); in mm_camera_poll_thread_add_poll_fd()
462 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c415 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
419 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
422 idx = 0; in mm_camera_poll_thread_add_poll_fd()
425 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd()
426 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
427 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
428 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
429 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
438 __func__, handler, idx); in mm_camera_poll_thread_add_poll_fd()
462 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/
Drow.c67 PyObject* pysqlite_row_subscript(pysqlite_Row* self, PyObject* idx) in pysqlite_row_subscript() argument
79 if (PyInt_Check(idx)) { in pysqlite_row_subscript()
80 _idx = PyInt_AsLong(idx); in pysqlite_row_subscript()
84 } else if (PyLong_Check(idx)) { in pysqlite_row_subscript()
85 _idx = PyLong_AsLong(idx); in pysqlite_row_subscript()
89 } else if (PyString_Check(idx)) { in pysqlite_row_subscript()
90 key = PyString_AsString(idx); in pysqlite_row_subscript()
127 } else if (PySlice_Check(idx)) { in pysqlite_row_subscript()
/device/linaro/hikey/l-loader/
Dgen_loader.py37 idx = 0 variable in generator
112 if self.idx == 0:
120 if self.idx == 0:
131 if (self.idx == 0) and (self.stage == 1):
152 if (self.idx == 0) and (self.stage == 1):
163 … byte = struct.pack('8s8siii', 'ENTRYHDR', self.s1_entry_name[self.idx], lba, blocks, bootp)
165 … byte = struct.pack('8s8siii', 'ENTRYHDR', self.s2_entry_name[self.idx], lba, blocks, bootp)
169 self.idx += 1
201 print 'self.idx: ', self.idx
251 loader.idx = 0
/device/linaro/bootloader/arm-trusted-firmware/services/std_svc/psci/
Dpsci_private.h44 #define psci_lock_init(aff_map, idx) bakery_lock_init(&(aff_map)[(idx)].lock) argument
48 #define psci_lock_init(aff_map, idx) ((aff_map)[(idx)].aff_map_index = (idx)) argument

123456