| /components/drivers/ipc/ |
| A D | completion_mp.c | 33 #define IPC_STORE(dst, val, morder) atomic_store_explicit(dst, val, morder) argument 34 #define IPC_LOAD(dst, morder) atomic_load_explicit(dst, morder) argument 36 #define IPC_CAS(dst, exp, desired, succ, fail) \ argument 37 atomic_compare_exchange_strong_explicit(dst, exp, desired, succ, fail) 42 #define IPC_STORE(dst, val, morder) rt_atomic_store(dst, val) argument 43 #define IPC_LOAD(dst, morder) rt_atomic_load(dst) argument 45 #define IPC_CAS(dst, exp, desired, succ, fail) \ argument 46 rt_atomic_compare_exchange_strong(dst, exp, desired)
|
| /components/net/lwip/lwip-2.1.2/src/netif/ |
| A D | lowpan6_ble.c | 110 ble_addr_to_eui64(uint8_t *dst, const uint8_t *src, int public_addr) in ble_addr_to_eui64() argument 113 memcpy(dst, src, 3); in ble_addr_to_eui64() 114 dst[3] = 0xFF; in ble_addr_to_eui64() 115 dst[4] = 0xFE; in ble_addr_to_eui64() 116 memcpy(&dst[5], &src[3], 3); in ble_addr_to_eui64() 119 dst[0] &= ~0x02; in ble_addr_to_eui64() 121 dst[0] |= 0x02; in ble_addr_to_eui64() 139 eui64_to_ble_addr(uint8_t *dst, const uint8_t *src) in eui64_to_ble_addr() argument 142 memcpy(dst,src,3); in eui64_to_ble_addr() 143 memcpy(&dst[3],&src[5],3); in eui64_to_ble_addr()
|
| A D | bridgeif.c | 302 struct eth_addr *dst = (struct eth_addr *)(p->payload); in bridgeif_output() local 304 bridgeif_portmask_t dstports = bridgeif_find_dst_ports(br, dst); in bridgeif_output() 330 struct eth_addr *src, *dst; in bridgeif_input() local 346 dst = (struct eth_addr *)p->payload; in bridgeif_input() 354 if (dst->addr[0] & 1) { in bridgeif_input() 356 dstports = bridgeif_find_dst_ports(br, dst); in bridgeif_input() 372 if (bridgeif_is_local_mac(br, dst)) { in bridgeif_input() 379 dstports = bridgeif_find_dst_ports(br, dst); in bridgeif_input()
|
| /components/lwp/ |
| A D | lwp_user_mm.c | 712 if (dst >= (void *)USER_VADDR_TOP) in lwp_put_to_user() 737 void *rc = dst; in lwp_memcpy() 740 if (lwp_in_user_space(dst)) in lwp_memcpy() 852 if (!size || !dst) in lwp_data_get() 856 dst_iter = dst; in lwp_data_get() 908 if (!size || !dst) in lwp_data_put() 914 dst_iter = dst; in lwp_data_put() 915 src_put_end = dst + size; in lwp_data_put() 967 if (!size || !dst) in lwp_data_set() 972 dst_iter = dst; in lwp_data_set() [all …]
|
| A D | lwp_user_mm.h | 93 void *lwp_memcpy(void * __restrict dst, const void * __restrict src, size_t size); 104 size_t lwp_data_get(struct rt_lwp *lwp, void *dst, void *src, size_t size); 114 size_t lwp_get_from_user(void *dst, void *src, size_t size); 125 size_t lwp_data_put(struct rt_lwp *lwp, void *dst, void *src, size_t size); 135 size_t lwp_put_to_user(void *dst, void *src, size_t size); 146 size_t lwp_data_set(struct rt_lwp *lwp, void *dst, int c, size_t size);
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmp_raw.c | 56 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument 58 return udp_sendto((struct udp_pcb*)handle, p, dst, port); in snmp_sendto() 62 snmp_get_local_ip_for_dst(void* handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst() argument 70 ip_route_get_local_ip(&udp_pcb->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
|
| A D | snmp_netconn.c | 81 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument 88 result = netconn_sendto((struct netconn*)handle, &buf, dst, port); in snmp_sendto() 94 snmp_get_local_ip_for_dst(void* handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst() argument 102 ip_route_get_local_ip(&conn->pcb.udp->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
|
| A D | snmp_table.c | 323 s32_t *dst = (s32_t*)value; in snmp_table_extract_value_from_s32ref() local 324 *dst = instance->reference.s32; in snmp_table_extract_value_from_s32ref() 325 return sizeof(*dst); in snmp_table_extract_value_from_s32ref() 331 u32_t *dst = (u32_t*)value; in snmp_table_extract_value_from_u32ref() local 332 *dst = instance->reference.u32; in snmp_table_extract_value_from_u32ref() 333 return sizeof(*dst); in snmp_table_extract_value_from_u32ref()
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmp_raw.c | 57 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument 59 return udp_sendto((struct udp_pcb *)handle, p, dst, port); in snmp_sendto() 63 snmp_get_local_ip_for_dst(void *handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst() argument 71 ip_route_get_local_ip(&udp_pcb->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
|
| A D | snmp_netconn.c | 82 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument 89 result = netconn_sendto((struct netconn *)handle, &buf, dst, port); in snmp_sendto() 95 snmp_get_local_ip_for_dst(void *handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst() argument 103 ip_route_get_local_ip(&conn->pcb.udp->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
|
| A D | snmp_table.c | 322 s32_t *dst = (s32_t *)value; in snmp_table_extract_value_from_s32ref() local 323 *dst = instance->reference.s32; in snmp_table_extract_value_from_s32ref() 324 return sizeof(*dst); in snmp_table_extract_value_from_s32ref() 330 u32_t *dst = (u32_t *)value; in snmp_table_extract_value_from_u32ref() local 331 *dst = instance->reference.u32; in snmp_table_extract_value_from_u32ref() 332 return sizeof(*dst); in snmp_table_extract_value_from_u32ref()
|
| /components/dfs/dfs_v1/src/ |
| A D | dfs.c | 796 dst = fullpath; in dfs_normalize_path() 798 dst0 = dst; in dfs_normalize_path() 837 *dst++ = c; in dfs_normalize_path() 854 if (dst - dst0 != 1 || dst[-1] != '/') in dfs_normalize_path() 856 dst--; in dfs_normalize_path() 864 while (dst0 < dst && dst[-1] != '/') in dfs_normalize_path() 865 dst--; in dfs_normalize_path() 868 *dst = '\0'; in dfs_normalize_path() 871 dst--; in dfs_normalize_path() 872 if (dst > fullpath && (*dst == '/')) in dfs_normalize_path() [all …]
|
| A D | dfs_file.c | 900 static void copyfile(const char *src, const char *dst) in copyfile() argument 924 if (dfs_file_open(&fd, dst, O_WRONLY | O_CREAT | O_TRUNC) < 0) in copyfile() 929 rt_kprintf("Write %s failed\n", dst); in copyfile() 958 static void copydir(const char *src, const char *dst) in copydir() argument 1031 void copy(const char *src, const char *dst) in copy() argument 1057 if (dfs_file_stat(dst, &stat) < 0) in copy() 1082 fdst = dfs_normalize_path(dst, _get_path_lastname(src)); in copy() 1093 copyfile(src, dst); in copy() 1113 mkdir(dst, 0); in copy() 1114 copydir(src, dst); in copy() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/prot/ |
| A D | ethernet.h | 157 #define ETHADDR32_COPY(dst, src) SMEMCPY(dst, src, ETH_HWADDR_LEN) argument 163 #define ETHADDR16_COPY(dst, src) SMEMCPY(dst, src, ETH_HWADDR_LEN) argument
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | sockets.h | 568 #define inet_ntop(af,src,dst,size) \ argument 569 (((af) == AF_INET6) ? ip6addr_ntoa_r((const ip6_addr_t*)(src),(dst),(size)) \ 572 #define inet_pton(af,src,dst) \ argument 573 (((af) == AF_INET6) ? ip6addr_aton((src),(ip6_addr_t*)(dst)) \ 574 : (((af) == AF_INET) ? ip4addr_aton((src),(ip4_addr_t*)(dst)) : 0)) 576 #define inet_ntop(af,src,dst,size) \ argument 578 #define inet_pton(af,src,dst) \ argument 579 (((af) == AF_INET) ? ip4addr_aton((src),(ip4_addr_t*)(dst)) : 0) 581 #define inet_ntop(af,src,dst,size) \ argument 583 #define inet_pton(af,src,dst) \ argument [all …]
|
| A D | inet_chksum.h | 59 # define LWIP_CHKSUM_COPY(dst, src, len) lwip_chksum_copy(dst, src, len) argument 77 u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len);
|
| /components/dfs/dfs_v2/src/ |
| A D | dfs.c | 1003 dst = fullpath; in dfs_normalize_path() 1006 dst0 = dst; in dfs_normalize_path() 1051 *dst++ = c; in dfs_normalize_path() 1056 *dst++ = '/'; in dfs_normalize_path() 1070 dst--; in dfs_normalize_path() 1077 while (dst0 < dst && dst[-1] != '/') in dfs_normalize_path() 1078 dst--; in dfs_normalize_path() 1082 *dst = '\0'; in dfs_normalize_path() 1085 dst--; in dfs_normalize_path() 1086 if (dst > fullpath && (*dst == '/')) in dfs_normalize_path() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/include/ipv4/lwip/ |
| A D | inet_chksum.h | 60 #define LWIP_CHKSUM_COPY(dst, src, len) lwip_chksum_copy(dst, src, len) argument 82 u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len);
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | inet_chksum.h | 59 # define LWIP_CHKSUM_COPY(dst, src, len) lwip_chksum_copy(dst, src, len) argument 77 u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len);
|
| /components/net/lwip/lwip-1.4.1/src/include/netif/ |
| A D | etharp.h | 147 #define ETHADDR32_COPY(src, dst) SMEMCPY(src, dst, ETHARP_HWADDR_LEN) argument 153 #define ETHADDR16_COPY(src, dst) SMEMCPY(src, dst, ETHARP_HWADDR_LEN) argument
|
| /components/net/netdev/src/ |
| A D | netdev_ipaddr.c | 554 netdev_inet_ntop(int af, const void *src, char *dst, int32_t size) in netdev_inet_ntop() argument 569 return netdev_ip4addr_ntoa_r((const ip4_addr_t *)src, dst, size_int); in netdev_inet_ntop() 573 return netdev_ip6addr_ntoa_r((const ip6_addr_t *)src, dst, size_int); in netdev_inet_ntop() 582 netdev_inet_pton(int af, const char *src, void *dst) in netdev_inet_pton() argument 592 err = netdev_ip4addr_aton(src, (ip4_addr_t *)dst); in netdev_inet_pton() 604 rt_memcpy(dst, &addr.addr, sizeof(addr.addr)); in netdev_inet_pton()
|
| /components/net/lwip/lwip-2.0.3/test/unit/etharp/ |
| A D | test_etharp.c | 165 ip_addr_t dst; in START_TEST() local 166 ip_addr_copy_from_ip4(dst, adrs[i]); in START_TEST() 167 err2 = udp_sendto(pcb, p, &dst, 123); in START_TEST() 200 ip_addr_t dst; in START_TEST() local 201 ip_addr_copy_from_ip4(dst, adrs[i]); in START_TEST() 202 err2 = udp_sendto(pcb, p, &dst, 123); in START_TEST()
|
| /components/net/lwip/lwip-2.1.2/test/unit/etharp/ |
| A D | test_etharp.c | 168 ip_addr_t dst; in START_TEST() local 169 ip_addr_copy_from_ip4(dst, adrs[i]); in START_TEST() 170 err2 = udp_sendto(pcb, p, &dst, 123); in START_TEST() 203 ip_addr_t dst; in START_TEST() local 204 ip_addr_copy_from_ip4(dst, adrs[i]); in START_TEST() 205 err2 = udp_sendto(pcb, p, &dst, 123); in START_TEST()
|
| /components/net/lwip/lwip-1.4.1/src/core/snmp/ |
| A D | mib2.c | 910 *dst++ = *src++; in ocstrncpy() 926 *dst++ = *src++; in objectidncpy() 1442 ip_addr_t dst; in snmp_insert_iprteidx_tree() local 1447 ip_addr_set_any(&dst); in snmp_insert_iprteidx_tree() 1519 ip_addr_t dst; in snmp_delete_iprteidx_tree() local 1524 ip_addr_set_any(&dst); in snmp_delete_iprteidx_tree() 2754 *dst = *ethaddr_ret; in atentry_get_value() 2761 *dst = *ipaddr_ret; in atentry_get_value() 3298 *dst = netif->gw; in ip_rteentry_get_value() 3445 *dst = *ethaddr_ret; in ip_ntomentry_get_value() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/include/netif/ |
| A D | lowpan6_ble.h | 69 void ble_addr_to_eui64(uint8_t *dst, const uint8_t *src, int public_addr); 70 void eui64_to_ble_addr(uint8_t *dst, const uint8_t *src);
|