/lk-master/lib/minip/ |
A D | tcp.c | 205 s, s->state, tcp_state_to_string(s->state), in dump_socket() 206 s->local_ip, s->local_port, s->remote_ip, s->remote_port, s->ref); in dump_socket() 209 s->rx_win_size, s->rx_win_low, s->rx_win_high, in dump_socket() 212 s->tx_win_low, s->tx_win_high, s->tx_win_high - s->tx_win_low, in dump_socket() 213 s->tx_highest_seq, s->tx_highest_seq - s->tx_win_low, in dump_socket() 627 (int)(s->rx_win_low + s->rx_win_size - s->rx_win_high) > (int)s->rx_win_size / 2) { in handle_data() 669 …status_t err = tcp_send(s->remote_ip, s->remote_port, s->local_ip, s->local_port, data, len, flags, in tcp_socket_send() 744 … s, s->tx_win_low, s->tx_win_high, s->tx_highest_seq, s->tx_buffer_size, s->tx_buffer_offset); in handle_ack() 782 … s, s->tx_win_low, s->tx_win_high, s->tx_highest_seq, s->tx_buffer_size, s->tx_buffer_offset); in tcp_write_pending_data() 927 s->tx_win_high = s->tx_win_low; in create_tcp_socket() [all …]
|
A D | dhcp.c | 90 } s; in dhcp_discover() local 91 u8 *opt = s.opt; in dhcp_discover() 93 memset(&s, 0, sizeof(s)); in dhcp_discover() 96 s.msg.hwalen = 6; in dhcp_discover() 97 s.msg.xid = xid; in dhcp_discover() 115 udp_send(&s.msg, sizeof(dhcp_msg_t) + (opt - s.opt), dhcp_udp_handle); in dhcp_discover() 126 } s; in dhcp_request() local 127 u8 *opt = s.opt; in dhcp_request() 129 memset(&s, 0, sizeof(s)); in dhcp_request() 132 s.msg.hwalen = 6; in dhcp_request() [all …]
|
/lk-master/lib/devicetree/ |
A D | devicetree.c | 52 if (s->size < 4) { in su32() 53 s->size = 0; in su32() 56 u32 n = (s->data[0] << 24) | (s->data[1] << 16) | (s->data[2] << 8) | s->data[3]; in su32() 57 s->size -= 4; in su32() 58 s->data += 4; in su32() 68 s->size = 0; in sdata() 89 u32 sz = s->size; in sstring() 90 u8 *end = s->data; in sstring() 104 s->size = 0; in sstring() 115 slice_t s; in dt_init() local [all …]
|
/lk-master/lib/libc/string/ |
A D | memmove.c | 25 const char *s = (const char *)src; in memmove() local 31 if ((long)d < (long)s) { in memmove() 41 *d++ = *s++; in memmove() 44 *(word *)d = *(word *)s; in memmove() 46 s += lsize; in memmove() 49 *d++ = *s++; in memmove() 52 s += count; in memmove() 62 *--d = *--s; in memmove() 66 s -= lsize; in memmove() 67 *(word *)d = *(word *)s; in memmove() [all …]
|
A D | strrchr.c | 16 strrchr(char const *s, int c) { in strrchr() argument 17 char const *last= c?0:s; in strrchr() 20 while (*s) { in strrchr() 21 if (*s== c) { in strrchr() 22 last= s; in strrchr() 25 s+= 1; in strrchr()
|
A D | memcpy.c | 25 const char *s = (const char *)src; in memcpy() local 31 if (((long)d | (long)s) & lmask) { in memcpy() 33 if ((((long)d ^ (long)s) & lmask) || (count < lsize)) in memcpy() 40 *d++ = *s++; in memcpy() 43 *(word *)d = *(word *)s; in memcpy() 45 s += lsize; in memcpy() 48 *d++ = *s++; in memcpy()
|
A D | strchr.c | 16 strchr(const char *s, int c) { in strchr() argument 17 for (; *s != (char) c; ++s) in strchr() 18 if (*s == '\0') in strchr() 20 return (char *) s; in strchr()
|
/lk-master/lib/libcpp/ |
A D | new.cpp | 12 void *operator new (size_t s) { in operator new() argument 13 return malloc(s); in operator new() 16 void *operator new[](size_t s) { in operator new[]() argument 17 return malloc(s); in operator new[]() 20 void *operator new (size_t s, const std::nothrow_t &) noexcept { in operator new() argument 21 return malloc(s); in operator new() 24 void *operator new[](size_t s, const std::nothrow_t &) noexcept { in operator new[]() argument 25 return malloc(s); in operator new[]() 36 void operator delete (void *p, size_t s) { in operator delete() argument 40 void operator delete[](void *p, size_t s) { in operator delete[]() argument
|
/lk-master/lib/libc/ |
A D | strtol.c | 45 const char *s; in strtol() local 55 s = nptr; in strtol() 57 c = (unsigned char) *s++; in strtol() 61 c = *s++; in strtol() 65 c = *s++; in strtol() 68 c == '0' && (*s == 'x' || *s == 'X')) { in strtol() 69 c = s[1]; in strtol() 70 s += 2; in strtol() 103 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtol() 137 *endptr = (char *) (any ? s - 1 : nptr); in strtol()
|
A D | strtoll.c | 46 const char *s; in strtoll() local 56 s = nptr; in strtoll() 58 c = (unsigned char) *s++; in strtoll() 62 c = *s++; in strtoll() 66 c = *s++; in strtoll() 69 c == '0' && (*s == 'x' || *s == 'X')) { in strtoll() 70 c = s[1]; in strtoll() 71 s += 2; in strtoll() 105 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoll() 139 *endptr = (char *) (any ? s - 1 : nptr); in strtoll()
|
/lk-master/external/lib/lwip/api/ |
A D | sockets.c | 110 int s; member 195 get_socket(int s) in get_socket() argument 199 if ((s < 0) || (s >= NUM_SOCKETS)) { in get_socket() 225 if ((s < 0) || (s >= NUM_SOCKETS)) { in tryget_socket() 1249 int s; local 1638 data.s = s; 1659 int s; local 1670 s = data->s; 2055 data.s = s; 2076 int s; local [all …]
|
/lk-master/dev/gpio_i2c/ |
A D | gpio_i2c.c | 133 const gpio_i2c_info_t *i = s->info; in gpio_i2c_tx_common() 138 mutex_acquire(&s->lock); in gpio_i2c_tx_common() 154 mutex_release(&s->lock); in gpio_i2c_tx_common() 163 const gpio_i2c_info_t *i = s->info; in gpio_i2c_rx_common() 170 mutex_acquire(&s->lock); in gpio_i2c_rx_common() 195 mutex_release(&s->lock); in gpio_i2c_rx_common() 204 DEBUG_ASSERT(!s->info); in gpio_i2c_add_bus() 211 mutex_init(&s->lock); in gpio_i2c_add_bus() 212 s->info = info; in gpio_i2c_add_bus() 224 gpio_i2c_state_t *s = gpio_i2c_states + bus; in gpio_i2c_transmit() local [all …]
|
/lk-master/lib/fs/ext2/ |
A D | ext3_fs.h | 82 # define EXT3_BLOCK_SIZE(s) ((s)->s_blocksize) argument 88 # define EXT3_BLOCK_SIZE_BITS(s) ((s)->s_blocksize_bits) argument 90 # define EXT3_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) argument 94 #define EXT3_INODE_SIZE(s) (EXT3_SB(s)->s_inode_size) argument 95 #define EXT3_FIRST_INO(s) (EXT3_SB(s)->s_first_ino) argument 112 # define EXT3_FRAG_SIZE(s) (EXT3_SB(s)->s_frag_size) argument 113 # define EXT3_FRAGS_PER_BLOCK(s) (EXT3_SB(s)->s_frags_per_block) argument 116 # define EXT3_FRAGS_PER_BLOCK(s) (EXT3_BLOCK_SIZE(s) / EXT3_FRAG_SIZE(s)) argument 138 # define EXT3_DESC_PER_BLOCK(s) (EXT3_SB(s)->s_desc_per_block) argument 142 # define EXT3_BLOCKS_PER_GROUP(s) ((s)->s_blocks_per_group) argument [all …]
|
A D | ext2_fs.h | 51 #define EXT2_BLOCK_SIZE(s) ((uint32_t)EXT2_MIN_BLOCK_SIZE << (s).s_log_block_size) argument 52 #define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (uint32_t)) argument 53 #define EXT2_BLOCK_SIZE_BITS(s) ((s).s_log_block_size + 10) argument 54 #define EXT2_INODE_SIZE(s) (((s).s_rev_level == EXT2_GOOD_OLD_REV) ? \ argument 57 #define EXT2_FIRST_INO(s) (((s).s_rev_level == EXT2_GOOD_OLD_REV) ? \ argument 59 (s).s_first_ino) 67 #define EXT2_FRAG_SIZE(s) (EXT2_MIN_FRAG_SIZE << (s).s_log_frag_size) argument 68 #define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) argument 87 #define EXT2_BLOCKS_PER_GROUP(s) ((s).s_blocks_per_group) argument 88 #define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc)) argument [all …]
|
/lk-master/tools/ |
A D | network.c | 50 int s; in inet_listen() local 51 if ((s = socket(AF_INET, type, 0)) < 0) { in inet_listen() 56 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); in inet_listen() 63 if (bind(s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { in inet_listen() 64 close(s); in inet_listen() 67 return s; in inet_listen() 72 int s; in inet_connect() local 73 if ((s = socket(AF_INET, type, 0)) < 0) { in inet_connect() 84 if (connect(s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { in inet_connect() 85 close(s); in inet_connect() [all …]
|
/lk-master/external/lib/lwip/include/lwip/ |
A D | sockets.h | 323 int lwip_shutdown(int s, int how); 328 int lwip_close(int s); 330 int lwip_listen(int s, int backlog); 331 int lwip_recv(int s, void *mem, size_t len, int flags); 332 int lwip_read(int s, void *mem, size_t len); 333 int lwip_recvfrom(int s, void *mem, size_t len, int flags, 339 int lwip_write(int s, const void *dataptr, size_t size); 342 int lwip_ioctl(int s, long cmd, void *argp); 343 int lwip_fcntl(int s, int cmd, int val); 349 #define closesocket(s) lwip_close(s) argument [all …]
|
/lk-master/lib/heap/ |
A D | heap_wrapper.c | 38 static inline void *HEAP_MALLOC(size_t s) { return miniheap_alloc(s, 0); } in HEAP_MALLOC() argument 39 static inline void *HEAP_REALLOC(void *ptr, size_t s) { return miniheap_realloc(ptr, s); } in HEAP_REALLOC() argument 40 static inline void *HEAP_MEMALIGN(size_t boundary, size_t s) { return miniheap_alloc(s, boundary); } in HEAP_MEMALIGN() argument 42 static inline void *HEAP_CALLOC(size_t n, size_t s) { in HEAP_CALLOC() argument 43 size_t realsize = n * s; in HEAP_CALLOC() 64 #define HEAP_MEMALIGN(boundary, s) cmpct_memalign(s, boundary) argument 72 size_t realsize = n * s; in HEAP_CALLOC() 85 #define HEAP_MALLOC(s) dlmalloc(s) argument 86 #define HEAP_CALLOC(n, s) dlcalloc(n, s) argument 87 #define HEAP_MEMALIGN(b, s) dlmemalign(b, s) argument [all …]
|
/lk-master/app/stringtests/ |
A D | string_tests.c | 48 if ((long)d < (long)s) { in c_memmove() 58 *d++ = *s++; in c_memmove() 61 *(word *)d = *(word *)s; in c_memmove() 63 s += lsize; in c_memmove() 66 *d++ = *s++; in c_memmove() 69 s += count; in c_memmove() 79 *--d = *--s; in c_memmove() 83 s -= lsize; in c_memmove() 87 *--d = *--s; in c_memmove() 94 char *xs = (char *) s; in c_memset() [all …]
|
/lk-master/external/platform/pico/rp2_common/pico_stdio/ |
A D | stdio.c | 64 driver->out_chars(s, len); in stdio_out_chars_crlf() 71 if (s[i] == '\n' && !prev_char_was_cr) { in stdio_out_chars_crlf() 80 driver->out_chars(&s[first_of_chunk], len - first_of_chunk); in stdio_out_chars_crlf() 83 driver->last_ended_with_cr = s[len - 1] == '\r'; in stdio_out_chars_crlf() 86 driver->out_chars(s, len); in stdio_out_chars_crlf() 90 static bool stdio_put_string(const char *s, int len, bool newline) { in stdio_put_string() argument 97 if (len == -1) len = strlen(s); in stdio_put_string() 101 stdio_out_chars_crlf(driver, s, len); in stdio_put_string() 137 int WRAPPER_FUNC(puts)(const char *s) { in WRAPPER_FUNC() 138 int len = strlen(s); in WRAPPER_FUNC() [all …]
|
/lk-master/platform/lpc15xx/ |
A D | lpccheck.py | 14 s = 0 variable 16 s += i 17 s = -s variable 20 f.write(struct.pack('i', s))
|
/lk-master/external/lib/aes/ |
A D | aes_locl.h | 10 #define PUTU32(c, s) { (c)[3] = (u8)(s); (c)[2] = (u8)((s)>>8); (c)[1] = (u8)((s)>>16); (c)[0] = (u… argument
|
/lk-master/external/lib/libm/ |
A D | e_log.c | 91 double hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_log() local 125 s = f/(2.0+f); in __ieee754_log() 127 z = s*s; in __ieee754_log() 137 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_log() 138 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_log() 140 if(k==0) return f-s*(f-R); else in __ieee754_log() 141 return dk*ln2_hi-((s*(f-R)-dk*ln2_lo)-f); in __ieee754_log()
|
A D | e_acos.c | 64 double z,p,q,r,w,s,c,df; in __ieee754_acos() local 88 s = sqrt(z); in __ieee754_acos() 90 w = r*s-pio2_lo; in __ieee754_acos() 91 return pi - 2.0*(s+w); in __ieee754_acos() 94 s = sqrt(z); in __ieee754_acos() 95 df = s; in __ieee754_acos() 97 c = (z-df*df)/(s+df); in __ieee754_acos() 101 w = r*s+c; in __ieee754_acos()
|
/lk-master/external/lib/lwip/netif/ppp/ |
A D | ppp_impl.h | 186 #define GETSHORT(s, cp) { \ argument 187 (s) = *(cp); (cp)++; (s) <<= 8; \ 188 (s) |= *(cp); (cp)++; \ 190 #define PUTSHORT(s, cp) { \ argument 191 *(cp)++ = (u_char) ((s) >> 8); \ 192 *(cp)++ = (u_char) (s & 0xff); \ 213 #define BCOPY(s, d, l) MEMCPY((d), (s), (l)) argument 214 #define BZERO(s, n) memset(s, 0, n) argument 322 int pppWrite(int pd, const u_char *s, int n);
|
/lk-master/app/inetsrv/ |
A D | inetsrv.c | 25 tcp_socket_t *s = socket; in chargen_worker() local 44 ssize_t ret = tcp_write(s, buf, CHARGEN_BUFSIZE); in chargen_worker() 56 tcp_close(s); in chargen_worker() 89 tcp_socket_t *s = socket; in discard_worker() local 100 ssize_t ret = tcp_read(s, buf, DISCARD_BUFSIZE); in discard_worker() 112 tcp_close(s); in discard_worker() 145 tcp_socket_t *s = socket; in echo_worker() local 156 ssize_t ret = tcp_read(s, buf, sizeof(buf)); in echo_worker() 160 tcp_write(s, buf, ret); in echo_worker() 166 tcp_close(s); in echo_worker()
|