Home
last modified time | relevance | path

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

/sbin/sysctl/
Dsysctl.c32 PrintVal(int idx) in PrintVal() argument
34 switch (SYSCTLTable[idx].type) { in PrintVal()
38 OSSysCtl(SYSCTLTable[idx].path, &scStr, NULL); in PrintVal()
39 printf("%s: %s\n", SYSCTLTable[idx].path, scStr.value); in PrintVal()
45 OSSysCtl(SYSCTLTable[idx].path, &scInt, NULL); in PrintVal()
46 printf("%s: %ld\n", SYSCTLTable[idx].path, scInt.value); in PrintVal()
52 OSSysCtl(SYSCTLTable[idx].path, &scBool, NULL); in PrintVal()
53 printf("%s: %s\n", SYSCTLTable[idx].path, in PrintVal()
58 printf("%s: Unsupported type\n", SYSCTLTable[idx].path); in PrintVal()
64 UpdateVal(int idx, const char *val) in UpdateVal() argument
[all …]
/lib/libc/
Dmalloc.c67 grow_small(int idx) in grow_small() argument
70 size_t bucketSz = (1 << idx) * 64; // Compute bucket size in grow_small()
71 char *addr = (char *)pool[idx].top; in grow_small()
81 pool[idx].top += bucketSz * HEAP_INCREMENT; in grow_small()
89 obj->next = pool[idx].free; in grow_small()
90 pool[idx].free = obj; in grow_small()
97 int idx = size_to_idx(sz); in malloc_small() local
101 if (pool[idx].free == 0) in malloc_small()
102 grow_small(idx); in malloc_small()
105 if (pool[idx].free == 0) in malloc_small()
[all …]
/lib/liblwip/test/unit/etharp/
Dtest_etharp.c138 s8_t idx; in START_TEST() local
174 idx = etharp_find_addr(NULL, &adrs[i], &unused_ethaddr, &unused_ipaddr); in START_TEST()
175 fail_unless(idx == i); in START_TEST()
184 idx = etharp_find_addr(NULL, &adrs[ARP_TABLE_SIZE], &unused_ethaddr, &unused_ipaddr); in START_TEST()
185 fail_unless(idx == 0); in START_TEST()
206 idx = etharp_find_addr(NULL, &adrs[i], &unused_ethaddr, &unused_ipaddr); in START_TEST()
208 fail_unless(idx == i+1); in START_TEST()
211 fail_unless(idx == 1); in START_TEST()
220 idx = etharp_find_addr(NULL, &adrs[ARP_TABLE_SIZE], &unused_ethaddr, &unused_ipaddr); in START_TEST()
221 fail_unless(idx == 0); in START_TEST()
[all …]
/lib/liblwip/src/api/
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()
/lib/liblwip/src/include/lwip/
Dsnmp_structs.h213 s32_t (*ident_cmp)(void* addr_inf, u8_t level, u16_t idx, s32_t sub_id);
214 void (*get_objid)(void* addr_inf, u8_t level, u16_t idx, s32_t *sub_id);
/lib/liblwip/src/core/
Ddhcp.c140 #define dhcp_option_given(dhcp, idx) (dhcp_rx_options_given[idx] != 0) argument
141 #define dhcp_got_option(dhcp, idx) (dhcp_rx_options_given[idx] = 1) argument
142 #define dhcp_clear_option(dhcp, idx) (dhcp_rx_options_given[idx] = 0) argument
144 #define dhcp_get_option_value(dhcp, idx) (dhcp_rx_options_val[idx]) argument
145 #define dhcp_set_option_value(dhcp, idx, val) (dhcp_rx_options_val[idx] = (val)) argument