Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 223) sorted by relevance

123456789

/components/libc/posix/libdl/
A Ddlelf.c61 for (index = 0; index < elf_module->e_phnum; index++) in dlmodule_load_shared_object()
66 LOG_D("LOAD segment: %d, 0x%p, 0x%08x", index, phdr[index].p_vaddr, phdr[index].p_memsz); in dlmodule_load_shared_object()
68 if (phdr[index].p_memsz < phdr[index].p_filesz) in dlmodule_load_shared_object()
71 index, phdr[index].p_memsz, phdr[index].p_filesz); in dlmodule_load_shared_object()
82 index, phdr[index].p_vaddr, phdr[index].p_memsz); in dlmodule_load_shared_object()
131 for (index = 0; index < elf_module->e_phnum; index++) in dlmodule_load_shared_object()
145 for (index = 0; index < elf_module->e_shnum; index ++) in dlmodule_load_shared_object()
212 for (index = 0; index < elf_module->e_shnum; index ++) in dlmodule_load_shared_object()
324 for (index = 0; index < elf_module->e_shnum; index ++) in dlmodule_load_relocated_object()
368 for (index = 0; index < elf_module->e_shnum; index ++) in dlmodule_load_relocated_object()
[all …]
/components/libc/posix/tls/
A Demutls.c148 uintptr_t index = __atomic_load_n(&control->object.index, __ATOMIC_ACQUIRE); in emutls_get_index() local
149 if (!index) in emutls_get_index()
154 index = control->object.index; in emutls_get_index()
155 if (!index) in emutls_get_index()
157 index = ++emutls_num_object; in emutls_get_index()
158 __atomic_store_n(&control->object.index, index, __ATOMIC_RELEASE); in emutls_get_index()
162 return index; in emutls_get_index()
191 emutls_get_address_array(uintptr_t index) in emutls_get_address_array() argument
200 else if (index > array->size) in emutls_get_address_array()
218 if (array->data[index - 1] == NULL) in __emutls_get_address()
[all …]
/components/dfs/dfs_v1/src/
A Ddfs_fs.c434 int index; in dfs_mkfs() local
451 for (index = 0; index < DFS_FILESYSTEM_TYPES_MAX; index ++) in dfs_mkfs()
460 if (index < DFS_FILESYSTEM_TYPES_MAX) in dfs_mkfs()
505 int index = 0; in dfs_mount_table() local
512 mount_table[index].path, in dfs_mount_table()
522 index ++; in dfs_mount_table()
530 int index = 0; in dfs_mount_device() local
545 mount_table[index].path, in dfs_mount_device()
551 mount_table[index].path); in dfs_mount_device()
555 mount_table[index].path); in dfs_mount_device()
[all …]
A Ddfs.c186 int index; in fd_slot_expand() local
218 for (index = fdt->maxfd; index < nr; index++) in fd_slot_expand()
494 unsigned int index; in fd_is_open() local
521 for (index = 0; index < fdt->maxfd; index++) in fd_is_open()
626 for(int index = 0; index < (int)fdt->maxfd; index++) in fd_get_fd_index_form_fdt() local
630 fd = index; in fd_get_fd_index_form_fdt()
933 int index; in list_fd() local
943 for (index = 0; index < (int)fd_table->maxfd; index++) in list_fd()
976 int index; in lsofp() local
997 for (index = 0; index < (int)fd_table->maxfd; index++) in lsofp()
[all …]
/components/finsh/
A Dmsh.c46 rt_kprintf("%-16s - %s\n", index->name, index->desc); in msh_help()
649 index = RT_NULL; in msh_auto_complete_path()
658 if (index == RT_NULL) index = path; in msh_auto_complete_path()
660 if (index != RT_NULL) in msh_auto_complete_path()
662 char *dest = index; in msh_auto_complete_path()
668 for (index = path; index != dest;) in msh_auto_complete_path()
680 index = dest; in msh_auto_complete_path()
706 if (strncmp(index, dirent->d_name, rt_strlen(index)) == 0) in msh_auto_complete_path()
737 if (strncmp(index, dirent->d_name, rt_strlen(index)) == 0) in msh_auto_complete_path()
820 for (index = _syscall_table_begin; index < _syscall_table_end; FINSH_NEXT_SYSCALL(index)) in msh_auto_complete()
[all …]
A Dmsh_file.c32 int index = 0; in msh_readline() local
45 line_buf[index ++] = ch; in msh_readline()
47 while (index < size) in msh_readline()
66 return index; in msh_readline()
129 for (index = 0; index < length; index ++) in msh_exec_script()
303 int index; in cmd_cat() local
313 for (index = 1; index < argc; index ++) in cmd_cat()
393 int index, n; in cmd_rm() local
429 for (index = 1; index < argc; index ++) in cmd_rm()
993 index = 0; in cmd_chmod()
[all …]
/components/drivers/pinctrl/
A Dpinctrl.c20 static rt_err_t ofw_pin_ctrl_confs_apply(struct rt_ofw_node *np, int index) in ofw_pin_ctrl_confs_apply() argument
28 rt_sprintf(pinctrl_n_name, "pinctrl-%d", index); in ofw_pin_ctrl_confs_apply()
29 index = 0; in ofw_pin_ctrl_confs_apply()
107 if (index) in ofw_pin_ctrl_confs_apply()
129 ++index; in ofw_pin_ctrl_confs_apply()
142 int index; in ofw_pin_ctrl_confs_apply_by_name() local
145 index = ofw_pin_ctrl_confs_lookup(np, name); in ofw_pin_ctrl_confs_apply_by_name()
147 if (index >= 0) in ofw_pin_ctrl_confs_apply_by_name()
149 err = ofw_pin_ctrl_confs_apply(np, index); in ofw_pin_ctrl_confs_apply_by_name()
187 if (device && index >= 0) in rt_pin_ctrl_confs_apply()
[all …]
/components/drivers/include/drivers/core/
A Ddm.h72 void *rt_dm_dev_iomap(rt_device_t dev, int index);
76 int rt_dm_dev_get_irq(rt_device_t dev, int index);
83 int index, int nr, rt_uint8_t *out_values);
85 int index, int nr, rt_uint16_t *out_values);
87 int index, int nr, rt_uint32_t *out_values);
89 int index, int nr, rt_uint64_t *out_values);
99 int index, rt_uint8_t *out_value) in rt_dm_dev_prop_read_u8_index() argument
107 int index, rt_uint16_t *out_value) in rt_dm_dev_prop_read_u16_index() argument
115 int index, rt_uint32_t *out_value) in rt_dm_dev_prop_read_u32_index() argument
123 int index, rt_uint64_t *out_value) in rt_dm_dev_prop_read_u64_index() argument
[all …]
/components/drivers/iio/
A Diio.c14 static void *ofw_iio_channel_get_by_index(struct rt_ofw_node *np, int index, int *out_channel) in ofw_iio_channel_get_by_index() argument
21 if (!rt_ofw_parse_phandle_cells(np, "io-channels", "#io-channel-cells", index, &iio_args)) in ofw_iio_channel_get_by_index()
42 void *rt_iio_channel_get_by_index(struct rt_device *dev, int index, int *out_channel) in rt_iio_channel_get_by_index() argument
46 if (!dev || index < 0) in rt_iio_channel_get_by_index()
53 iio = ofw_iio_channel_get_by_index(dev->ofw_node, index, out_channel); in rt_iio_channel_get_by_index()
61 int index; in rt_iio_channel_get_by_name() local
68 index = rt_dm_dev_prop_index_of_string(dev, "io-channel-names", name); in rt_iio_channel_get_by_name()
70 return rt_iio_channel_get_by_index(dev, index, out_channel); in rt_iio_channel_get_by_name()
/components/libc/posix/pthreads/
A Dpthread_tls.c158 rt_uint32_t index; in pthread_key_create() local
161 for (index = 0; index < PTHREAD_KEY_MAX; index ++) in pthread_key_create()
163 if (_thread_keys[index].is_used == 0) in pthread_key_create()
165 _thread_keys[index].is_used = 1; in pthread_key_create()
166 _thread_keys[index].destructor = destructor; in pthread_key_create()
168 *key = index; in pthread_key_create()
A Dpthread.c77 int index; in _pthread_data_get_pth() local
80 for (index = 0; index < PTHREAD_NUM_MAX; index ++) in _pthread_data_get_pth()
86 return index; in _pthread_data_get_pth()
111 int index; in _pthread_data_create() local
124 for (index = 0; index < PTHREAD_NUM_MAX; index ++) in _pthread_data_create()
135 if (index == PTHREAD_NUM_MAX) in _pthread_data_create()
141 return index; in _pthread_data_create()
169 data = ptd->tls[index]; in _destroy_item()
216 int index; in _pthread_data_destroy() local
231 …for (index = start; i < PTHREAD_KEY_MAX; index = (index - 1 + PTHREAD_KEY_MAX) % PTHREAD_KEY_MAX, … in _pthread_data_destroy()
[all …]
/components/dfs/dfs_v1/filesystems/romfs/
A Ddfs_romfs.c71 rt_size_t index, found; in dfs_romfs_lookup() local
104 for (index = 0; index < dirent_size; index ++) in dfs_romfs_lookup()
106 if (check_dirent(&dirent[index]) != 0) in dfs_romfs_lookup()
111 dirent_size = dirent[index].size; in dfs_romfs_lookup()
123 return &dirent[index]; in dfs_romfs_lookup()
136 return &dirent[index]; in dfs_romfs_lookup()
299 rt_size_t index; in dfs_romfs_getdents() local
322 index = 0; in dfs_romfs_getdents()
323 for (index = 0; index < count && file->pos < file->vnode->size; index++) in dfs_romfs_getdents()
325 d = dirp + index; in dfs_romfs_getdents()
[all …]
/components/dfs/dfs_v2/filesystems/romfs/
A Ddfs_romfs.c92 rt_size_t index, found; in __dfs_romfs_lookup() local
125 for (index = 0; index < dirent_size; index ++) in __dfs_romfs_lookup()
127 if (check_dirent(&dirent[index]) != 0) in __dfs_romfs_lookup()
132 dirent_size = dirent[index].size; in __dfs_romfs_lookup()
144 return &dirent[index]; in __dfs_romfs_lookup()
157 return &dirent[index]; in __dfs_romfs_lookup()
317 rt_size_t index; in dfs_romfs_getdents() local
339 index = 0; in dfs_romfs_getdents()
340 for (index = 0; index < count && file->fpos < file->vnode->size; index++) in dfs_romfs_getdents()
342 d = dirp + index; in dfs_romfs_getdents()
[all …]
/components/drivers/pci/host/dw/
A Dpcie-dw.c252 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_BASE, in dw_pcie_prog_outbound_atu_unroll()
254 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_BASE, in dw_pcie_prog_outbound_atu_unroll()
256 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_LIMIT, in dw_pcie_prog_outbound_atu_unroll()
258 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_LIMIT, in dw_pcie_prog_outbound_atu_unroll()
260 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_TARGET, in dw_pcie_prog_outbound_atu_unroll()
262 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_TARGET, in dw_pcie_prog_outbound_atu_unroll()
264 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL1, in dw_pcie_prog_outbound_atu_unroll()
297 index, type, cpu_addr, pci_addr, size); in __dw_pcie_prog_outbound_atu()
399 index, bar, cpu_addr, aspace_type); in dw_pcie_prog_inbound_atu()
465 dw_pcie_writel_ib_unroll(pci, index, in dw_pcie_disable_atu()
[all …]
/components/dfs/dfs_v1/filesystems/elmfat/
A Ddfs_elm.c94 int index; in get_disk() local
96 for (index = 0; index < FF_VOLUMES; index ++) in get_disk()
99 return index; in get_disk()
109 int index; in dfs_elm_mount() local
115 if (index == -1) in dfs_elm_mount()
177 int index; in dfs_elm_unmount() local
209 int index; in dfs_elm_mkfs() local
230 if (index == -1) in dfs_elm_mkfs()
651 index = 0; in dfs_elm_getdents()
678 index ++; in dfs_elm_getdents()
[all …]
/components/net/netdev/src/
A Dnetdev.c59 rt_uint16_t index; in netdev_register() local
76 for (index = 0; index < NETDEV_IPV6_NUM_ADDRESSES; index++) in netdev_register()
82 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_register()
975 unsigned int index; in netdev_low_level_set_dns_server() local
984 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_low_level_set_dns_server()
1172 rt_ubase_t index; in netdev_list_if() local
1196 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if()
1204 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if()
1261 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_list_if()
1366 for (index = 0; index < times; index++) in netdev_cmd_ping()
[all …]
/components/drivers/pm/
A Dpm.c200 rt_uint16_t index; in _judge_sleep_mode() local
203 for (index = 0; index < PM_SLEEP_MODE_MAX -1; index++) in _judge_sleep_mode()
220 int index; in _pm_select_sleep_mode() local
225 for (index = PM_SLEEP_MODE_NONE; index < PM_SLEEP_MODE_MAX; index ++) in _pm_select_sleep_mode()
1164 for (index = 0; index < PM_MODULE_MAX_ID; index ++) in rt_pm_module_get_status()
1197 uint8_t index; in pm_sleep_dump() local
1203 for (index = 0; index < PM_SLEEP_MODE_MAX -1; index++) in pm_sleep_dump()
1246 rt_uint32_t index; in rt_pm_dump_status() local
1253 for (index = 0; index < PM_SLEEP_MODE_MAX; index ++) in rt_pm_dump_status()
1269 for (index = 0; index < PM_MODULE_MAX_ID; index ++) in rt_pm_dump_status()
[all …]
/components/drivers/mailbox/
A Dmailbox.c235 if (!client && index < 0) in rt_mbox_request_by_index()
268 int index; in rt_mbox_request_by_index() local
272 index = ctrl->ops->ofw_parse(ctrl, &args); in rt_mbox_request_by_index()
276 index = mbox_controller_ofw_parse_default(ctrl, &args); in rt_mbox_request_by_index()
279 if (index >= 0) in rt_mbox_request_by_index()
281 chan = &ctrl->chans[index]; in rt_mbox_request_by_index()
288 chan = rt_err_ptr(index); in rt_mbox_request_by_index()
321 int index; in rt_mbox_request_by_name() local
330 index = rt_ofw_prop_index_of_string(np, "mbox-names", name); in rt_mbox_request_by_name()
332 if (index < 0) in rt_mbox_request_by_name()
[all …]
/components/net/lwip/lwip-2.0.3/src/apps/snmp/
A Dsnmp_table.c61 if (col_def->index == instance->instance_oid.id[1]) { in snmp_table_get_instance()
123 if (col_def->index == column) { in snmp_table_get_next_instance()
126 …} else if ((col_def->index > column) && ((next_col_def == NULL) || (col_def->index < next_col_def-… in snmp_table_get_next_instance()
141 &next_col_def->index, in snmp_table_get_next_instance()
151 column = next_col_def->index + 1; in snmp_table_get_next_instance()
157 instance->instance_oid.id[1] = col_def->index; in snmp_table_get_next_instance()
258 if (col_def->index == column) { in snmp_table_simple_get_next_instance()
262 (col_def->index < next_col_def->index))) { in snmp_table_simple_get_next_instance()
274 &next_col_def->index, in snmp_table_simple_get_next_instance()
285 column = next_col_def->index + 1; in snmp_table_simple_get_next_instance()
[all …]
/components/net/lwip/lwip-2.1.2/src/apps/snmp/
A Dsnmp_table.c61 if (col_def->index == instance->instance_oid.id[1]) { in snmp_table_get_instance()
123 if (col_def->index == column) { in snmp_table_get_next_instance()
126 …} else if ((col_def->index > column) && ((next_col_def == NULL) || (col_def->index < next_col_def-… in snmp_table_get_next_instance()
141 &next_col_def->index, in snmp_table_get_next_instance()
151 column = next_col_def->index + 1; in snmp_table_get_next_instance()
157 instance->instance_oid.id[1] = col_def->index; in snmp_table_get_next_instance()
258 if (col_def->index == column) { in snmp_table_simple_get_next_instance()
262 (col_def->index < next_col_def->index))) { in snmp_table_simple_get_next_instance()
274 &next_col_def->index, in snmp_table_simple_get_next_instance()
285 column = next_col_def->index + 1; in snmp_table_simple_get_next_instance()
[all …]
/components/dfs/dfs_v2/filesystems/procfs/
A Dproc_cpuinfo.c21 static void *seq_start(struct dfs_seq_file *seq, off_t *index) in seq_start() argument
23 off_t i = *index; // seq->index in seq_start()
32 static void *seq_next(struct dfs_seq_file *seq, void *data, off_t *index) in seq_next() argument
35 off_t i = *index + 1; // seq->index in seq_next()
37 *index = i; in seq_next()
A Dproc_filesystems.c22 static void *seq_start(struct dfs_seq_file *seq, off_t *index) in seq_start() argument
24 off_t i = *index; // seq->index in seq_start()
46 static void *seq_next(struct dfs_seq_file *seq, void *data, off_t *index) in seq_next() argument
49 off_t i = *index + 1; // seq->index in seq_next()
52 *index = i; in seq_next()
A Dproc_tty.c22 static void *seq_start(struct dfs_seq_file *seq, off_t *index) in seq_start() argument
24 off_t i = *index; // seq->index in seq_start()
33 static void *seq_next(struct dfs_seq_file *seq, void *data, off_t *index) in seq_next() argument
36 off_t i = *index + 1; // seq->index in seq_next()
38 *index = i; in seq_next()
/components/drivers/mtd/
A Dmtd_nand.c269 rt_uint32_t index; in mtd_nand_write() local
288 for (index = 0; index < nand->page_size; index ++) in mtd_nand_write()
290 page_ptr[index] = index & 0xff; in mtd_nand_write()
293 for (index = 0; index < nand->oob_size; index ++) in mtd_nand_write()
295 oob_ptr[index] = index & 0xff; in mtd_nand_write()
326 rt_uint32_t index = 0; in mtd_nand_erase_all() local
336 for (index = 0; index < (nand->block_end - nand->block_start); index ++) in mtd_nand_erase_all()
338 rt_mtd_nand_erase_block(nand, index); in mtd_nand_erase_all()
/components/drivers/ofw/
A Dirq.c457 if (index >= interrupt_len / (interrupt_cells * sizeof(*cell))) in ofw_parse_irq_cells()
463 cell += index * interrupt_cells; in ofw_parse_irq_cells()
483 if (np && index >= 0 && out_irq_args) in rt_ofw_parse_irq_cells()
485 err = ofw_parse_irq_cells(np, index, out_irq_args); in rt_ofw_parse_irq_cells()
605 int rt_ofw_get_irq(struct rt_ofw_node *np, int index) in rt_ofw_get_irq() argument
609 if (np && index >= 0) in rt_ofw_get_irq()
613 irq = ofw_parse_irq_cells(np, index, &irq_args); in rt_ofw_get_irq()
621 … if (irq >= 0 && !rt_ofw_prop_read_u32_index(np, "interrupt-affinity", index, &cpu_phandle)) in rt_ofw_get_irq()
653 int index = rt_ofw_prop_index_of_string(np, "interrupt-names", name); in rt_ofw_get_irq_by_name() local
655 if (index >= 0) in rt_ofw_get_irq_by_name()
[all …]

Completed in 42 milliseconds

123456789