Home
last modified time | relevance | path

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

1234

/components/net/lwip/lwip-1.4.1/test/unit/etharp/
A Dtest_etharp.c138 s8_t idx; in START_TEST() local
175 fail_unless(idx == i); in START_TEST()
185 fail_unless(idx == 0); in START_TEST()
211 fail_unless(idx == 1); in START_TEST()
221 fail_unless(idx == 0); in START_TEST()
223 fail_unless(idx == 2); in START_TEST()
228 fail_unless(idx == 0); in START_TEST()
230 fail_unless(idx == -1); in START_TEST()
236 fail_unless(idx == 0); in START_TEST()
243 fail_unless(idx == -1); in START_TEST()
[all …]
/components/net/lwip/lwip-2.0.3/test/unit/etharp/
A Dtest_etharp.c139 s8_t idx; in START_TEST() local
179 fail_unless(idx == i); in START_TEST()
189 fail_unless(idx == 0); in START_TEST()
218 fail_unless(idx == 1); in START_TEST()
228 fail_unless(idx == 0); in START_TEST()
230 fail_unless(idx == 2); in START_TEST()
235 fail_unless(idx == 0); in START_TEST()
237 fail_unless(idx == -1); in START_TEST()
243 fail_unless(idx == 0); in START_TEST()
250 fail_unless(idx == -1); in START_TEST()
[all …]
/components/net/lwip/lwip-2.1.2/test/unit/etharp/
A Dtest_etharp.c142 ssize_t idx; in START_TEST() local
182 fail_unless(idx == i); in START_TEST()
192 fail_unless(idx == 0); in START_TEST()
221 fail_unless(idx == 1); in START_TEST()
231 fail_unless(idx == 0); in START_TEST()
233 fail_unless(idx == 2); in START_TEST()
238 fail_unless(idx == 0); in START_TEST()
240 fail_unless(idx == -1); in START_TEST()
246 fail_unless(idx == 0); in START_TEST()
253 fail_unless(idx == -1); in START_TEST()
[all …]
/components/drivers/pci/endpoint/
A Dmem.c20 rt_size_t idx; in rt_pci_ep_mem_array_init() local
38 for (idx = 0; idx < mems_nr; ++idx) in rt_pci_ep_mem_array_init()
40 struct rt_pci_ep_mem *mem = &ep->mems[idx]; in rt_pci_ep_mem_array_init()
58 while (idx --> 0) in rt_pci_ep_mem_array_init()
60 rt_free(ep->mems[idx].map); in rt_pci_ep_mem_array_init()
151 for (rt_size_t idx = 0; idx < ep->mems_nr; ++idx) in rt_pci_ep_mem_alloc() local
154 struct rt_pci_ep_mem *mem = &ep->mems[idx]; in rt_pci_ep_mem_alloc()
190 for (rt_size_t idx = 0; idx < ep->mems_nr; ++idx) in rt_pci_ep_mem_free() local
192 struct rt_pci_ep_mem *mem = &ep->mems[idx]; in rt_pci_ep_mem_free()
/components/drivers/virtio/
A Dvirtio_blk.c24 rt_uint16_t idx[3]; in virtio_blk_rw() local
33 while (virtio_alloc_desc_chain(virtio_dev, 0, 3, idx)) in virtio_blk_rw()
45 virtio_blk_dev->info[idx[0]].status = 0xff; in virtio_blk_rw()
46 virtio_blk_dev->info[idx[0]].valid = RT_TRUE; in virtio_blk_rw()
47 virtio_blk_dev->info[idx[0]].req.type = flags; in virtio_blk_rw()
48 virtio_blk_dev->info[idx[0]].req.ioprio = 0; in virtio_blk_rw()
53 virtio_fill_desc(virtio_dev, VIRTIO_BLK_QUEUE, idx[0], in virtio_blk_rw()
54 …VIRTIO_VA2PA(&virtio_blk_dev->info[idx[0]].req), sizeof(struct virtio_blk_req), VIRTQ_DESC_F_NEXT,… in virtio_blk_rw()
56 virtio_fill_desc(virtio_dev, VIRTIO_BLK_QUEUE, idx[1], in virtio_blk_rw()
67 while (virtio_blk_dev->info[idx[0]].valid) in virtio_blk_rw()
[all …]
A Dvirtio_net.c27 id = (queue_tx->avail->idx * 2) % queue_tx->num; in virtio_net_tx()
67 if (queue_rx->used_idx != queue_rx->used->idx) in virtio_net_rx()
98 rt_uint16_t idx[VIRTIO_NET_RTX_QUEUE_SIZE]; in virtio_net_init() local
106 virtio_alloc_desc_chain(virtio_dev, VIRTIO_NET_QUEUE_RX, queue_rx->num, idx); in virtio_net_init()
107 virtio_alloc_desc_chain(virtio_dev, VIRTIO_NET_QUEUE_TX, queue_tx->num, idx); in virtio_net_init()
127 queue_rx->avail->idx = queue_rx->num; in virtio_net_init()
129 queue_rx->used_idx = queue_rx->used->idx; in virtio_net_init()
132 queue_tx->avail->idx = 0; in virtio_net_init()
184 if (queue_rx->used_idx != queue_rx->used->idx) in virtio_net_isr()
/components/net/lwip/lwip-2.0.3/src/apps/snmp/
A Dsnmp_mib2_udp.c115 u8_t idx = 0; in udp_endpointTable_get_cell_value() local
120 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len-idx, &local_ip, &local_port); in udp_endpointTable_get_cell_value()
121 if (idx == 0) { in udp_endpointTable_get_cell_value()
126 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len-idx, &remote_ip, &remote_port); in udp_endpointTable_get_cell_value()
127 if (idx == 0) { in udp_endpointTable_get_cell_value()
132 if (row_oid_len < (idx+1)) { in udp_endpointTable_get_cell_value()
135 if (row_oid[idx] != 0) { in udp_endpointTable_get_cell_value()
176 u8_t idx = 0; in udp_endpointTable_get_next_cell_instance_and_value() local
179 idx += snmp_ip_port_to_oid(&pcb->local_ip, pcb->local_port, &test_oid[idx]); in udp_endpointTable_get_next_cell_instance_and_value()
182 idx += snmp_ip_port_to_oid(&pcb->remote_ip, pcb->remote_port, &test_oid[idx]); in udp_endpointTable_get_next_cell_instance_and_value()
[all …]
A Dsnmp_mib2_tcp.c328 u8_t idx = 0; in tcp_ConnectionTable_get_cell_value() local
335 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len-idx, &local_ip, &local_port); in tcp_ConnectionTable_get_cell_value()
336 if (idx == 0) { in tcp_ConnectionTable_get_cell_value()
341 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len-idx, &remote_ip, &remote_port); in tcp_ConnectionTable_get_cell_value()
342 if (idx == 0) { in tcp_ConnectionTable_get_cell_value()
387 u8_t idx = 0; in tcp_ConnectionTable_get_next_cell_instance_and_value() local
437 u8_t idx = 0; in tcp_ListenerTable_get_cell_value() local
442 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len-idx, &local_ip, &local_port); in tcp_ListenerTable_get_cell_value()
443 if (idx == 0) { in tcp_ListenerTable_get_cell_value()
478 u8_t idx = 0; in tcp_ListenerTable_get_next_cell_instance_and_value() local
[all …]
/components/net/lwip/lwip-1.4.1/src/api/
A Dnetdb.c119 u8_t idx; in lwip_gethostbyname() local
120 for ( idx=0; s_hostent.h_aliases[idx]; idx++) { in lwip_gethostbyname()
121 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases[%i]-> == %p\n", idx, s_hostent.h_aliases[idx])); in lwip_gethostbyname()
122 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases[%i]-> == %s\n", idx, s_hostent.h_aliases[idx])); in lwip_gethostbyname()
129 u8_t idx; in lwip_gethostbyname() local
130 for ( idx=0; s_hostent.h_addr_list[idx]; idx++) { in lwip_gethostbyname()
131 … LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i] == %p\n", idx, s_hostent.h_addr_list[idx])); in lwip_gethostbyname()
132 …F(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ip_ntoa((ip_addr_t*)s_hostent.h_addr_list[ in lwip_gethostbyname()
/components/net/lwip/lwip-2.1.2/src/apps/snmp/
A Dsnmp_mib2_udp.c123 u8_t idx = 0; in udp_endpointTable_get_cell_value() local
128 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in udp_endpointTable_get_cell_value()
129 if (idx == 0) { in udp_endpointTable_get_cell_value()
134 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &remote_ip, &remote_port); in udp_endpointTable_get_cell_value()
135 if (idx == 0) { in udp_endpointTable_get_cell_value()
140 if (row_oid_len < (idx + 1)) { in udp_endpointTable_get_cell_value()
143 if (row_oid[idx] != 0) { in udp_endpointTable_get_cell_value()
184 u8_t idx = 0; in udp_endpointTable_get_next_cell_instance_and_value() local
187 idx += snmp_ip_port_to_oid(&pcb->local_ip, pcb->local_port, &test_oid[idx]); in udp_endpointTable_get_next_cell_instance_and_value()
190 idx += snmp_ip_port_to_oid(&pcb->remote_ip, pcb->remote_port, &test_oid[idx]); in udp_endpointTable_get_next_cell_instance_and_value()
[all …]
A Dsnmp_mib2_tcp.c335 u8_t idx = 0; in tcp_ConnectionTable_get_cell_value() local
342 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in tcp_ConnectionTable_get_cell_value()
343 if (idx == 0) { in tcp_ConnectionTable_get_cell_value()
348 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &remote_ip, &remote_port); in tcp_ConnectionTable_get_cell_value()
349 if (idx == 0) { in tcp_ConnectionTable_get_cell_value()
394 u8_t idx = 0; in tcp_ConnectionTable_get_next_cell_instance_and_value() local
444 u8_t idx = 0; in tcp_ListenerTable_get_cell_value() local
449 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in tcp_ListenerTable_get_cell_value()
450 if (idx == 0) { in tcp_ListenerTable_get_cell_value()
485 u8_t idx = 0; in tcp_ListenerTable_get_next_cell_instance_and_value() local
[all …]
/components/net/lwip/lwip-2.1.2/src/include/lwip/apps/
A Dsntp.h58 void sntp_setserver(u8_t idx, const ip_addr_t *addr);
59 const ip_addr_t* sntp_getserver(u8_t idx);
62 u8_t sntp_getreachability(u8_t idx);
66 void sntp_setservername(u8_t idx, const char *server);
67 const char *sntp_getservername(u8_t idx);
/components/net/lwip/lwip-2.0.3/src/apps/netbiosns/
A Dnetbiosns.c154 int idx = 0; in netbiosns_name_decode() local
191 if (idx < NETBIOS_NAME_LEN) { in netbiosns_name_decode()
193 name_dec[idx++] = (cnbname!=' '?cnbname:'\0'); in netbiosns_name_decode()
209 int idx = 0;
228 if (idx >= name_dec_len) {
234 name_dec[idx++] = ('A'+((ucname>>4) & 0x0F));
235 name_dec[idx++] = ('A'+( ucname & 0x0F));
240 for (;idx < name_dec_len - 1;) {
241 name_dec[idx++] = 'C';
242 name_dec[idx++] = 'A';
[all …]
/components/dfs/dfs_v2/src/
A Ddfs.c107 int idx; in _fdt_slot_alloc() local
110 for (idx = startfd; idx < (int)fdt->maxfd; idx++) in _fdt_slot_alloc()
118 idx = fdt->maxfd; in _fdt_slot_alloc()
119 if (idx < startfd) in _fdt_slot_alloc()
129 return idx; in _fdt_slot_alloc()
146 int idx; in _fdt_fd_alloc() local
150 return idx; in _fdt_fd_alloc()
300 int idx = -1; in fdt_fd_new() local
311 if (idx < 0) in fdt_fd_new()
336 idx = -1; in fdt_fd_new()
[all …]
/components/net/lwip/lwip-2.0.3/src/include/lwip/apps/
A Dsntp.h58 void sntp_setserver(u8_t idx, const ip_addr_t *addr);
59 const ip_addr_t* sntp_getserver(u8_t idx);
62 void sntp_setservername(u8_t idx, char *server);
63 char *sntp_getservername(u8_t idx);
/components/drivers/watchdog/
A Dwatchdog-dw.c36 #define DW_WDT_FIX_TOP(idx) (1U << (16 + idx)) argument
110 int idx; in dw_wdt_find_best_top() local
117 for (idx = 0; idx < DW_WDT_NUM_TOPS; ++idx) in dw_wdt_find_best_top()
119 if (dw_wdt->timeouts[idx].sec >= timeout) in dw_wdt_find_best_top()
125 if (idx == DW_WDT_NUM_TOPS) in dw_wdt_find_best_top()
127 --idx; in dw_wdt_find_best_top()
130 *top_val = dw_wdt->timeouts[idx].top_val; in dw_wdt_find_best_top()
132 return dw_wdt->timeouts[idx].sec; in dw_wdt_find_best_top()
147 int idx; in dw_wdt_get_timeout() local
150 for (idx = 0; idx < DW_WDT_NUM_TOPS; ++idx) in dw_wdt_get_timeout()
[all …]
/components/net/lwip/lwip-2.1.2/src/core/ipv6/
A Ddhcp6.c118 #define dhcp6_option_given(dhcp6, idx) (dhcp6_rx_options[idx].option_given != 0) argument
119 #define dhcp6_got_option(dhcp6, idx) (dhcp6_rx_options[idx].option_given = 1) argument
120 #define dhcp6_clear_option(dhcp6, idx) (dhcp6_rx_options[idx].option_given = 0) argument
122 #define dhcp6_get_option_start(dhcp6, idx) (dhcp6_rx_options[idx].val_start) argument
123 #define dhcp6_get_option_length(dhcp6, idx) (dhcp6_rx_options[idx].val_length) argument
124 #define dhcp6_set_option(dhcp6, idx, start, len) do { dhcp6_rx_options[idx].val_start = (start); dh… argument
527 u16_t idx; in dhcp6_handle_config_reply() local
532 for (n = 0, idx = op_start; (idx < op_start + op_len) && (n < LWIP_DHCP6_PROVIDE_DNS_SERVERS); in dhcp6_handle_config_reply()
533 n++, idx += sizeof(struct ip6_addr_packed)) { in dhcp6_handle_config_reply()
561 u16_t idx; in dhcp6_handle_config_reply() local
[all …]
/components/dfs/dfs_v1/src/
A Ddfs.c241 int idx; in fd_slot_alloc() local
244 for (idx = startfd; idx < (int)fdt->maxfd; idx++) in fd_slot_alloc()
252 idx = fdt->maxfd; in fd_slot_alloc()
253 if (idx < startfd) in fd_slot_alloc()
261 return idx; in fd_slot_alloc()
276 int idx; in fd_alloc() local
282 if (idx < 0) in fd_alloc()
296 return idx; in fd_alloc()
307 int idx; in fdt_fd_new() local
316 if (idx < 0) in fdt_fd_new()
[all …]
/components/drivers/pci/msi/
A Dirq.c59 for (int idx = 0; idx < i; ++i, --last_irq) in rt_pci_msi_setup_irqs() local
89 for (int idx = 0; idx < nvec; ++idx) in rt_pci_msi_setup_irqs() local
91 pirq = rt_pic_find_pirq(msi_pic, irq + idx); in rt_pci_msi_setup_irqs()
/components/net/lwip/lwip-2.0.3/src/apps/sntp/
A Dsntp.c639 if (idx < SNTP_MAX_SERVERS) { in sntp_setserver()
641 sntp_servers[idx].addr = (*server); in sntp_setserver()
646 sntp_servers[idx].name = NULL; in sntp_setserver()
687 sntp_getserver(u8_t idx) in sntp_getserver() argument
689 if (idx < SNTP_MAX_SERVERS) { in sntp_getserver()
690 return &sntp_servers[idx].addr; in sntp_getserver()
705 if (idx < SNTP_MAX_SERVERS) { in sntp_setservername()
706 sntp_servers[idx].name = server; in sntp_setservername()
718 sntp_getservername(u8_t idx) in sntp_getservername() argument
720 if (idx < SNTP_MAX_SERVERS) { in sntp_getservername()
[all …]
/components/net/lwip/lwip-2.1.2/src/apps/sntp/
A Dsntp.c744 sntp_getreachability(u8_t idx) in sntp_getreachability() argument
746 if (idx < SNTP_MAX_SERVERS) { in sntp_getreachability()
780 if (idx < SNTP_MAX_SERVERS) { in sntp_setserver()
787 sntp_servers[idx].name = NULL; in sntp_setserver()
828 sntp_getserver(u8_t idx) in sntp_getserver() argument
830 if (idx < SNTP_MAX_SERVERS) { in sntp_getserver()
831 return &sntp_servers[idx].addr; in sntp_getserver()
847 if (idx < SNTP_MAX_SERVERS) { in sntp_setservername()
860 sntp_getservername(u8_t idx) in sntp_getservername() argument
862 if (idx < SNTP_MAX_SERVERS) { in sntp_getservername()
[all …]
/components/net/lwip/lwip-2.0.3/src/core/
A Ddns.c749 dns_send(u8_t idx) in dns_send() argument
771 dns_call_found(idx, NULL); in dns_send()
898 u8_t idx; in dns_alloc_pcb() local
915 for (i = 0, idx = dns_last_pcb_idx + 1; i < DNS_MAX_SOURCE_PORTS; i++, idx++) { in dns_alloc_pcb()
917 idx = 0; in dns_alloc_pcb()
919 if (dns_pcbs[idx] != NULL) { in dns_alloc_pcb()
920 dns_last_pcb_idx = idx; in dns_alloc_pcb()
921 return idx; in dns_alloc_pcb()
965 if (dns_requests[idx].found) { in dns_call_found()
966 (*dns_requests[idx].found)(dns_table[idx].name, addr, dns_requests[idx].arg); in dns_call_found()
[all …]
/components/net/lwip/lwip-2.1.2/src/core/
A Ddns.c776 dns_send(u8_t idx) in dns_send() argument
806 dns_call_found(idx, NULL); in dns_send()
943 u8_t idx; in dns_alloc_pcb() local
960 for (i = 0, idx = (u8_t)(dns_last_pcb_idx + 1); i < DNS_MAX_SOURCE_PORTS; i++, idx++) { in dns_alloc_pcb()
962 idx = 0; in dns_alloc_pcb()
964 if (dns_pcbs[idx] != NULL) { in dns_alloc_pcb()
965 dns_last_pcb_idx = idx; in dns_alloc_pcb()
966 return idx; in dns_alloc_pcb()
1010 if (dns_requests[idx].found) { in dns_call_found()
1011 (*dns_requests[idx].found)(dns_table[idx].name, addr, dns_requests[idx].arg); in dns_call_found()
[all …]
/components/net/lwip/lwip-2.1.2/src/api/
A Dif_api.c90 u8_t idx; in lwip_if_nametoindex() local
92 err = netifapi_netif_name_to_index(ifname, &idx); in lwip_if_nametoindex()
94 return idx; in lwip_if_nametoindex()
/components/net/lwip/lwip-2.1.2/src/apps/netbiosns/
A Dnetbiosns.c248 int idx = 0; in netbiosns_name_decode() local
282 if (idx < NETBIOS_NAME_LEN) { in netbiosns_name_decode()
284 name_dec[idx++] = (cnbname != ' ' ? cnbname : '\0'); in netbiosns_name_decode()
300 int idx = 0;
321 if (idx >= name_dec_len) {
327 name_dec[idx++] = ('A' + ((ucname >> 4) & 0x0F));
328 name_dec[idx++] = ('A' + ( ucname & 0x0F));
333 for (; idx < name_dec_len - 1;) {
334 name_dec[idx++] = 'C';
335 name_dec[idx++] = 'A';
[all …]

Completed in 46 milliseconds

1234