Home
last modified time | relevance | path

Searched refs:num_u16 (Results 1 – 4 of 4) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_flow_dissector.c143 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/
Dpsock_snd.c54 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/
Dwuffs-v0.2.c1375 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()
Dwuffs-v0.3.c3593 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()