Searched refs:num_u16 (Results 1 – 4 of 4) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 143 static unsigned long add_csum_hword(const uint16_t *start, int num_u16) in add_csum_hword() argument 148 for (i = 0; i < num_u16; i++) in add_csum_hword() 154 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum() argument 157 sum += add_csum_hword(start, num_u16); in build_ip_csum() 215 int num_u16 = sizeof(iph->saddr); /* halfwords: twice byte len */ in build_udp_v4_csum() local 217 pseudo_sum = add_csum_hword((void *) &iph->saddr, num_u16); in build_udp_v4_csum() 228 int num_u16 = sizeof(ip6h->saddr); /* halfwords: twice byte len */ in build_udp_v6_csum() local 230 pseudo_sum = add_csum_hword((void *) &ip6h->saddr, num_u16); in build_udp_v6_csum()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | psock_snd.c | 54 static unsigned long add_csum_hword(const uint16_t *start, int num_u16) in add_csum_hword() argument 59 for (i = 0; i < num_u16; i++) in add_csum_hword() 65 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum() argument 68 sum += add_csum_hword(start, num_u16); in build_ip_csum()
|
/external/wuffs-mirror-release-c/release/c/ |
D | wuffs-v0.2.c | 1375 wuffs_base__malloc_slice_u16(void* (*malloc_func)(size_t), uint64_t num_u16) { in wuffs_base__malloc_slice_u16() argument 1376 if (malloc_func && (num_u16 <= (SIZE_MAX / sizeof(uint16_t)))) { in wuffs_base__malloc_slice_u16() 1377 void* p = (*malloc_func)(num_u16 * sizeof(uint16_t)); in wuffs_base__malloc_slice_u16() 1379 return wuffs_base__make_slice_u16((uint16_t*)(p), num_u16); in wuffs_base__malloc_slice_u16()
|
D | wuffs-v0.3.c | 3593 wuffs_base__malloc_slice_u16(void* (*malloc_func)(size_t), uint64_t num_u16) { in wuffs_base__malloc_slice_u16() argument 3594 if (malloc_func && (num_u16 <= (SIZE_MAX / sizeof(uint16_t)))) { in wuffs_base__malloc_slice_u16() 3595 void* p = (*malloc_func)((size_t)(num_u16 * sizeof(uint16_t))); in wuffs_base__malloc_slice_u16() 3597 return wuffs_base__make_slice_u16((uint16_t*)(p), (size_t)num_u16); in wuffs_base__malloc_slice_u16()
|