/kernel/linux/linux-6.6/drivers/vfio/platform/ |
H A D | vfio_platform_common.c | 314 if (info.index >= vdev->num_regions) in vfio_platform_ioctl() 318 info.offset = VFIO_PLATFORM_INDEX_TO_OFFSET(info.index); in vfio_platform_ioctl() 319 info.size = vdev->regions[info.index].size; in vfio_platform_ioctl() 320 info.flags = vdev->regions[info.index].flags; in vfio_platform_ioctl() 336 if (info.index >= vdev->num_irqs) in vfio_platform_ioctl() 339 info.flags = vdev->irqs[info.index].flags; in vfio_platform_ioctl() 340 info.count = vdev->irqs[info.index].count; in vfio_platform_ioctl() 370 ret = vfio_platform_set_irqs_ioctl(vdev, hdr.flags, hdr.index, in vfio_platform_ioctl() 445 unsigned int index = VFIO_PLATFORM_OFFSET_TO_INDEX(*ppos); in vfio_platform_read() local 448 if (index > in vfio_platform_read() 523 unsigned int index = VFIO_PLATFORM_OFFSET_TO_INDEX(*ppos); vfio_platform_write() local 566 unsigned int index; vfio_platform_mmap() local [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | instruction.h | 277 // Gets the |index|-th logical operand. 278 inline Operand& GetOperand(uint32_t index); 279 inline const Operand& GetOperand(uint32_t index) const; 284 // Gets the |index|-th logical operand as a single SPIR-V word. This method is 287 uint32_t GetSingleWordOperand(uint32_t index) const; 288 // Sets the |index|-th in-operand's data to the given |data|. 289 inline void SetInOperand(uint32_t index, Operand::OperandData&& data); 290 // Sets the |index|-th operand's data to the given |data|. 291 // This is for in-operands modification only, but with |index| expressed in 292 // terms of operand index rathe 327 RemoveOperand(uint32_t index) RemoveOperand() argument 331 InsertOperand(uint32_t index, Operand&& operand) InsertOperand() argument 340 GetInOperand(uint32_t index) GetInOperand() argument 349 RemoveInOperand(uint32_t index) RemoveInOperand() argument 655 GetOperand(uint32_t index) GetOperand() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | instruction.h | 277 // Gets the |index|-th logical operand. 278 inline Operand& GetOperand(uint32_t index); 279 inline const Operand& GetOperand(uint32_t index) const; 284 // Gets the |index|-th logical operand as a single SPIR-V word. This method is 287 uint32_t GetSingleWordOperand(uint32_t index) const; 288 // Sets the |index|-th in-operand's data to the given |data|. 289 inline void SetInOperand(uint32_t index, Operand::OperandData&& data); 290 // Sets the |index|-th operand's data to the given |data|. 291 // This is for in-operands modification only, but with |index| expressed in 292 // terms of operand index rathe 327 RemoveOperand(uint32_t index) RemoveOperand() argument 331 InsertOperand(uint32_t index, Operand&& operand) InsertOperand() argument 340 GetInOperand(uint32_t index) GetInOperand() argument 349 RemoveInOperand(uint32_t index) RemoveInOperand() argument 655 GetOperand(uint32_t index) GetOperand() argument [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | instruction.h | 290 // Gets the |index|-th logical operand. 291 inline Operand& GetOperand(uint32_t index); 292 inline const Operand& GetOperand(uint32_t index) const; 299 // Gets the |index|-th logical operand as a single SPIR-V word. This method is 302 uint32_t GetSingleWordOperand(uint32_t index) const; 303 // Sets the |index|-th in-operand's data to the given |data|. 304 inline void SetInOperand(uint32_t index, Operand::OperandData&& data); 305 // Sets the |index|-th operand's data to the given |data|. 306 // This is for in-operands modification only, but with |index| expressed in 307 // terms of operand index rathe 343 RemoveOperand(uint32_t index) RemoveOperand() argument 347 InsertOperand(uint32_t index, Operand&& operand) InsertOperand() argument 356 GetInOperand(uint32_t index) GetInOperand() argument 365 RemoveInOperand(uint32_t index) RemoveInOperand() argument 671 GetOperand(uint32_t index) GetOperand() argument [all...] |
/third_party/python/Modules/ |
H A D | _collectionsmodule.c | 57 * 0 <= index < BLOCKLEN 902 PyObject *index = _PyNumber_Index(args[0]); in deque_rotate() local 903 if (index == NULL) { in deque_rotate() 906 n = PyLong_AsSsize_t(index); in deque_rotate() 907 Py_DECREF(index); in deque_rotate() 942 /* Advance left block/index pair */ in deque_reverse() 949 /* Step backwards with the right block/index pair */ in deque_reverse() 966 Py_ssize_t index = deque->leftindex; in deque_count() local 975 item = b->data[index]; in deque_count() 989 /* Advance left block/index pai in deque_count() 1006 Py_ssize_t index = deque->leftindex; deque_contains() local 1047 Py_ssize_t index = deque->leftindex; deque_index() local 1123 Py_ssize_t index; deque_insert() local 1173 Py_ssize_t n, index=i; deque_item() local 1229 Py_ssize_t i, n = Py_SIZE(deque), index = deque->leftindex; deque_remove() local 1271 Py_ssize_t n, len=Py_SIZE(deque), halflen=(len+1)>>1, index=i; deque_ass_item() local 1328 Py_ssize_t index; deque_traverse() local 1671 Py_ssize_t index; global() member 1744 Py_ssize_t i, index=0; dequeiter_new() local 1886 Py_ssize_t i, index=0; dequereviter_new() local 2394 Py_ssize_t index; global() member 2408 tuplegetter_new_impl(PyTypeObject *type, Py_ssize_t index, PyObject *doc) tuplegetter_new_impl() argument 2425 Py_ssize_t index = ((_tuplegetterobject*)self)->index; tuplegetter_descr_get() local [all...] |
/device/soc/hisilicon/common/hal/display/source/display_device/src/composer/ |
H A D | hdi_composer.h | 52 HdiComposition *GetPreCompostion(uint32_t index)
in GetPreCompostion() argument 54 if (index >= preComp_.size()) {
in GetPreCompostion() 55 DISPLAY_LOGE("the index is overflow index %{public}d", index);
in GetPreCompostion() 58 return preComp_[index].get();
in GetPreCompostion() 61 HdiComposition *GetPostCompostion(uint32_t index)
in GetPostCompostion() argument 63 if (index >= postComp_.size()) {
in GetPostCompostion() 64 DISPLAY_LOGE("the index is overflow index in GetPostCompostion() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 26 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) in opal_nvram_read() argument 31 if (*index >= nvram_size) in opal_nvram_read() 33 off = *index; in opal_nvram_read() 39 *index += count; in opal_nvram_read() 47 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) in opal_nvram_write() argument 52 if (*index >= nvram_size) in opal_nvram_write() 54 off = *index; in opal_nvram_write() 77 *index += count; in opal_nvram_write()
|
/kernel/linux/linux-5.10/arch/mips/sgi-ip27/ |
H A D | ip27-klconfig.c | 20 int index, j; in find_component() local 23 index = 0; in find_component() 28 index = j; in find_component() 29 if (index == KLCF_NUM_COMPS(brd)) { in find_component() 33 index++; /* next component */ in find_component() 36 for (; index < KLCF_NUM_COMPS(brd); index++) { in find_component() 37 kli = KLCF_COMP(brd, index); in find_component()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 26 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) in opal_nvram_read() argument 31 if (*index >= nvram_size) in opal_nvram_read() 33 off = *index; in opal_nvram_read() 39 *index += count; in opal_nvram_read() 47 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) in opal_nvram_write() argument 52 if (*index >= nvram_size) in opal_nvram_write() 54 off = *index; in opal_nvram_write() 77 *index += count; in opal_nvram_write()
|
/kernel/linux/linux-6.6/arch/mips/sgi-ip27/ |
H A D | ip27-klconfig.c | 20 int index, j; in find_component() local 23 index = 0; in find_component() 28 index = j; in find_component() 29 if (index == KLCF_NUM_COMPS(brd)) { in find_component() 33 index++; /* next component */ in find_component() 36 for (; index < KLCF_NUM_COMPS(brd); index++) { in find_component() 37 kli = KLCF_COMP(brd, index); in find_component()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | of_gpio.h | 53 const char *list_name, int index, enum of_gpio_flags *flags); 71 const char *list_name, int index, enum of_gpio_flags *flags) in of_get_named_gpio_flags() 117 static inline int of_get_gpio_flags(struct device_node *np, int index, in of_get_gpio_flags() argument 120 return of_get_named_gpio_flags(np, "gpios", index, flags); in of_get_gpio_flags() 127 * @index: index of the GPIO 133 const char *propname, int index) in of_get_named_gpio() 135 return of_get_named_gpio_flags(np, propname, index, NULL); in of_get_named_gpio() 141 * @index: index o 70 of_get_named_gpio_flags(struct device_node *np, const char *list_name, int index, enum of_gpio_flags *flags) of_get_named_gpio_flags() argument 132 of_get_named_gpio(struct device_node *np, const char *propname, int index) of_get_named_gpio() argument 146 of_get_gpio(struct device_node *np, int index) of_get_gpio() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
H A D | base.c | 67 nvkm_dma_oclass_base_get(struct nvkm_oclass *sclass, int index, in nvkm_dma_oclass_base_get() argument 71 if (index < count) { in nvkm_dma_oclass_base_get() 72 const struct nvkm_sclass *oclass = &nvkm_dma_sclass[index]; in nvkm_dma_oclass_base_get() 76 return index; in nvkm_dma_oclass_base_get() 82 nvkm_dma_oclass_fifo_get(struct nvkm_oclass *oclass, int index) in nvkm_dma_oclass_fifo_get() argument 85 if (index < count) { in nvkm_dma_oclass_fifo_get() 86 oclass->base = nvkm_dma_sclass[index]; in nvkm_dma_oclass_fifo_get() 87 return index; in nvkm_dma_oclass_fifo_get()
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/swtmr/full/ |
H A D | It_los_swtmr_033.c | 42 UINT32 index; in HwiF01() local 46 for (index = 0; index < TEST_HWI_RUNTIME; index++) { in HwiF01() 60 UINT32 index; in SwtmrF02() local 64 for (index = 0; index < 0x1000; index++) { in SwtmrF02()
|
/kernel/liteos_m/testsuites/sample/kernel/swtmr/ |
H A D | It_los_swtmr_033.c | 42 UINT32 index;
in Case1() local 46 for (index = 0; index < TEST_HWI_RUNTIME; index++) {
in Case1() 62 UINT32 index;
in Case3() local 67 for (index = 0; index < TEST_HWI_RUNTIME; index++) {
in Case3()
|
/kernel/liteos_m/testsuites/sample/kernel/task/ |
H A D | It_los_task_087.c | 46 UINT8 index;
in TestCase() local 69 for (index = 0; index < g_leavingTaskNum + startIndex; pro++, index++) {
in TestCase() 79 (void)sprintf_s(acName, TASK_NAME_NUM, "Tsk087_%d", index);
in TestCase() 82 ret = LOS_TaskCreate(&auwTestTaskID[index], &task1);
in TestCase() 88 ret = LOS_TaskCreate(&auwTestTaskID[index], &task1);
in TestCase() 92 for (delIndex = 0; delIndex < index - 1 + startIndex; delIndex++) {
in TestCase()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUDebug.java | 100 int index = params.indexOf(arg); in value() 101 if (index != -1) { in value() 102 index += arg.length(); in value() 103 if (params.length() > index && params.charAt(index) == '=') { in value() 104 index += 1; in value() 105 int limit = params.indexOf(",", index); in value() 106 result = params.substring(index, limit == -1 ? params.length() : limit); in value()
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-array-iterator-prototype.c | 90 uint32_t index = ext_obj_p->u.pseudo_array.u1.iterator_index; in ecma_builtin_array_iterator_prototype_object_next() local 92 if (JERRY_UNLIKELY (index == ECMA_ITERATOR_INDEX_LIMIT)) in ecma_builtin_array_iterator_prototype_object_next() 101 index = (uint32_t) (ecma_get_number_from_value (index_value) + 1); in ecma_builtin_array_iterator_prototype_object_next() 106 ecma_make_uint32_value (index), in ecma_builtin_array_iterator_prototype_object_next() 119 if (index >= length) in ecma_builtin_array_iterator_prototype_object_next() 131 return ecma_create_iter_result_object (ecma_make_uint32_value (index), ECMA_VALUE_FALSE); in ecma_builtin_array_iterator_prototype_object_next() 135 ecma_value_t get_value = ecma_op_object_get_by_uint32_index (array_object_p, index); in ecma_builtin_array_iterator_prototype_object_next() 158 ecma_make_uint32_value (index)); in ecma_builtin_array_iterator_prototype_object_next()
|
/third_party/node/lib/internal/modules/esm/ |
H A D | create_dynamic_module.js | 16 * Creates an import statement for a given module path and index. 18 * @param {number} index - The index of the import statement. 20 function createImport(impt, index) { 22 return `import * as $import_${index} from ${imptPath}; 23 import.meta.imports[${imptPath}] = $import_${index};`; 29 * @param {number} index - The index of the export statement. 31 function createExport(expt, index) { 33 return `let $export_${index}; [all...] |
/third_party/node/deps/npm/node_modules/graceful-fs/ |
H A D | legacy-streams.js | 31 for (var index = 0, length = keys.length; index < length; index++) { 32 var key = keys[index]; 93 for (var index = 0, length = keys.length; index < length; index++) { 94 var key = keys[index];
|
/third_party/lwip/src/core/distributed_net/ |
H A D | distributed_net.c | 72 int index = SOCKET_TO_INDEX(sock); in set_distributed_net_socket() local 73 if (index >= 0 && index < NUM_SOCKETS) { in set_distributed_net_socket() 75 g_is_distributed_net_socket[index] = 1; in set_distributed_net_socket() 82 int index = SOCKET_TO_INDEX(sock); in reset_distributed_net_socket() local 83 if (index >= 0 && index < NUM_SOCKETS) { in reset_distributed_net_socket() 85 g_is_distributed_net_socket[index] = 0; in reset_distributed_net_socket()
|
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | gc-info-table.h | 42 // Minimum index returned. Values smaller |kMinIndex| may be used as 59 const GCInfo& GCInfoFromIndex(GCInfoIndex index) const { in GCInfoFromIndex() 60 DCHECK_GE(index, kMinIndex); in GCInfoFromIndex() 61 DCHECK_LT(index, kMaxIndex); in GCInfoFromIndex() 63 return table_[index]; in GCInfoFromIndex() 69 GCInfo& TableSlotForTesting(GCInfoIndex index) { return table_[index]; } in TableSlotForTesting() argument 83 // index into this table. 86 // Current index used when requiring a new GCInfo object. 108 static const GCInfo& GCInfoFromIndex(GCInfoIndex index) { in GCInfoFromIndex() argument [all...] |
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | AbstractProtobufList.java | 67 // based approach in our super class. Otherwise our index based approach will avoid those in equals() 103 public void add(int index, E element) { in add() argument 105 super.add(index, element); in add() 115 public boolean addAll(int index, Collection<? extends E> c) { in addAll() argument 117 return super.addAll(index, c); in addAll() 137 public E remove(int index) { in remove() argument 139 return super.remove(index); in remove() 161 public E set(int index, E element) { in set() argument 163 return super.set(index, element); in set()
|
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/ |
H A D | FunctionList.h | 48 void removeEffectAt(unsigned int index) { in removeEffectAt() argument 49 if (index < functionList.size()) { in removeEffectAt() 50 functionList.erase(std::next(functionList.begin(), index)); in removeEffectAt() 66 void modifyEffectAt(size_t index, std::function<void(iter_type, iter_type)> fun) { in modifyEffectAt() argument 67 functionList[index] = {std::move(fun), functionList[index].second}; in modifyEffectAt() 70 void enableEffectAt(size_t index, bool enable) { in enableEffectAt() argument 71 functionList[index].second = enable; in enableEffectAt()
|
/third_party/skia/src/utils/ |
H A D | SkOrderedFontMgr.cpp | 26 void SkOrderedFontMgr::onGetFamilyName(int index, SkString* familyName) const { in onGetFamilyName() argument 29 if (index < count) { in onGetFamilyName() 30 return fm->getFamilyName(index, familyName); in onGetFamilyName() 32 index -= count; in onGetFamilyName() 36 SkFontStyleSet* SkOrderedFontMgr::onCreateStyleSet(int index) const { in onCreateStyleSet() 39 if (index < count) { in onCreateStyleSet() 40 return fm->createStyleSet(index); in onCreateStyleSet() 42 index -= count; in onCreateStyleSet()
|
/third_party/skia/tests/ |
H A D | PathOpsThreeWayTest.cpp | 42 static void testSetTest(skiatest::Reporter* reporter, int index) { in testSetTest() argument 43 const TestSet& testSet = testSets[index]; in testSetTest() 75 for (int index = 0; index < testSetsCount; ++index) { in DEF_TEST() 76 testSetTest(reporter, index); in DEF_TEST() 82 int index = 0; in DEF_TEST() local 83 testSetTest(reporter, index); in DEF_TEST()
|