Home
last modified time | relevance | path

Searched refs:hsize (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/lib/libusbhid/
H A Ddata.c44 uint32_t hsize; in hid_get_data() local
58 if (hsize == 0) in hid_get_data()
60 if (hsize > 32) in hid_get_data()
61 hsize = 32; in hid_get_data()
64 end = (hpos + hsize) / 8 - offs; in hid_get_data()
71 hsize = 32 - hsize; in hid_get_data()
75 data = (int32_t)((int32_t)data << hsize) >> hsize; in hid_get_data()
77 data = (uint32_t)((uint32_t)data << hsize) >> hsize; in hid_get_data()
87 uint32_t hsize; in hid_set_data() local
102 if (hsize != 32) { in hid_set_data()
[all …]
/freebsd/stand/efi/libefi/
H A Defi_driver_utils.c41 UINTN nhandles, i, hsize; in connect_controllers() local
44 hsize = 0; in connect_controllers()
46 &hsize, NULL); in connect_controllers()
52 handles = malloc(hsize); in connect_controllers()
55 nhandles = hsize / sizeof(EFI_HANDLE); in connect_controllers()
58 &hsize, handles); in connect_controllers()
/freebsd/lib/libutil/
H A Drealhostname.c48 realhostname(char *host, size_t hsize, const struct in_addr *ip) in realhostname() argument
60 if (strlen(trimmed) <= hsize) { in realhostname()
73 strncpy(host, trimmed, hsize); in realhostname()
80 strncpy(host, inet_ntoa(*ip), hsize); in realhostname()
98 realhostname_sa(char *host, size_t hsize, struct sockaddr *addr, int addrlen) in realhostname_sa() argument
177 trimdomain(buf, hsize); in realhostname_sa()
178 if (strlen(buf) > hsize && in realhostname_sa()
183 strncpy(host, buf, hsize); in realhostname_sa()
193 strncpy(host, buf, hsize); in realhostname_sa()
/freebsd/contrib/tcpdump/
H A Dprint-tipc.c161 u_int hsize; in print_payload() local
175 hsize = TIPC_HSIZE(w0); in print_payload()
182 if (hsize <= 6) { in print_payload()
187 hsize*4, msize, in print_payload()
199 hsize*4, msize, in print_payload()
220 u_int hsize; in print_internal() local
239 hsize = TIPC_HSIZE(w0); in print_internal()
249 hsize*4, msize, in print_internal()
282 u_int hsize; in print_link_conf() local
293 hsize = TIPC_HSIZE(w0); in print_link_conf()
[all …]
/freebsd/usr.bin/posixshmcontrol/
H A Dposixshmcontrol.c228 bool hsize, jailed, uname; in list_shm() local
230 hsize = false; in list_shm()
237 hsize = true; in list_shm()
329 if (hsize) { in list_shm()
401 stat_one_shm(const char *path, bool hsize, bool uname) in stat_one_shm() argument
431 if (hsize) { in stat_one_shm()
462 bool hsize, uname; in stat_shm() local
464 hsize = false; in stat_shm()
470 hsize = true; in stat_shm()
490 ret1 = stat_one_shm(argv[i], hsize, uname); in stat_shm()
/freebsd/sbin/hastd/
H A Dhast_checksum.c90 size_t hsize; in checksum_send() local
96 hast_crc32_checksum(*datap, *sizep, hash, &hsize); in checksum_send()
99 hast_sha256_checksum(*datap, *sizep, hash, &hsize); in checksum_send()
105 nv_add_uint8_array(nv, hash, hsize, "hash"); in checksum_send()
H A Dhast_proto.c85 size_t hsize; in hast_proto_send() local
116 hptr = ebuf_data(eb, &hsize); in hast_proto_send()
117 if (proto_send(conn, hptr, hsize) == -1) in hast_proto_send()
/freebsd/stand/efi/boot1/
H A Dboot1.c178 UINTN i, hsize, nhandles; in efi_main() local
227 hsize = 0; in efi_main()
229 &hsize, NULL); in efi_main()
230 handles = malloc(hsize); in efi_main()
233 hsize); in efi_main()
235 NULL, &hsize, handles); in efi_main()
238 nhandles = hsize / sizeof(*handles); in efi_main()
/freebsd/sys/dev/hid/
H A Dhid.c703 uint32_t hsize = loc->size; in hid_get_data_sub() local
711 if (hsize == 0) in hid_get_data_sub()
713 if (hsize > 32) in hid_get_data_sub()
714 hsize = 32; in hid_get_data_sub()
719 n = (hsize + 7) / 8; in hid_get_data_sub()
729 n = 32 - hsize; in hid_get_data_sub()
762 uint32_t hsize = loc->size; in hid_put_udata() local
771 if (hsize == 0) in hid_put_udata()
773 if (hsize > 32) in hid_put_udata()
774 hsize = 32; in hid_put_udata()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_edid.c555 int hsize, int vsize, int fresh, in drm_mode_find_dmt() argument
562 if (hsize != ptr->hdisplay) in drm_mode_find_dmt()
745 int hsize, vsize; in drm_mode_std() local
757 hsize = t->hsize * 8 + 248; in drm_mode_std()
763 vsize = hsize; in drm_mode_std()
765 vsize = (hsize * 10) / 16; in drm_mode_std()
767 vsize = (hsize * 3) / 4; in drm_mode_std()
769 vsize = (hsize * 4) / 5; in drm_mode_std()
771 vsize = (hsize * 9) / 16; in drm_mode_std()
775 ((hsize == 1360 && vsize == 765) || in drm_mode_std()
[all …]
H A Ddrm_edid.h50 u8 hsize; /* need to multiply by 8 then add 248 */ member
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_table_algo.c956 int mask, int hsize);
958 int hsize);
1021 return (i % (hsize - 1)); in hash_ip6()
1031 return (i % (hsize - 1)); in hash_ip64()
1064 uint16_t hash, hsize; in ta_lookup_chash_slow() local
1109 uint16_t hash, hsize; in ta_lookup_chash_aligned() local
1158 uint16_t hash, hsize; in ta_lookup_chash_64() local
1281 uint32_t hsize; in ta_init_chash() local
1314 hsize; in ta_init_chash()
3198 uint32_t hsize; in ta_lookup_fhash() local
[all …]
/freebsd/stand/efi/loader/
H A Dframebuffer.c545 UINTN hsize; in efi_has_gop() local
547 hsize = 0; in efi_has_gop()
549 status = BS->LocateHandle(ByProtocol, &gop_guid, NULL, &hsize, hlist); in efi_has_gop()
559 UINTN nhandles, i, hsize; in efi_find_framebuffer() local
566 hsize = 0; in efi_find_framebuffer()
568 status = BS->LocateHandle(ByProtocol, &gop_guid, NULL, &hsize, hlist); in efi_find_framebuffer()
570 hlist = malloc(hsize); in efi_find_framebuffer()
573 status = BS->LocateHandle(ByProtocol, &gop_guid, NULL, &hsize, in efi_find_framebuffer()
581 nhandles = hsize / sizeof(*hlist); in efi_find_framebuffer()
/freebsd/usr.bin/compress/
H A Dzopen.c148 #define hsize zs->zs_hsize macro
273 for (fcode = (long)hsize; fcode < 65536L; fcode *= 2L) in zwrite()
277 hsize_reg = hsize; in zwrite()
648 cl_hash(zs, (count_int) hsize); in cl_block()
705 hsize = HSIZE; /* For dynamic table sizing. */ in zopen()
/freebsd/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_elf_init.c212 size_t hsize; in _dwarf_elf_decompress() local
231 hsize = e->eo_ehdr.e_ident[EI_CLASS] == ELFCLASS64 ? in _dwarf_elf_decompress()
233 if (uncompress(ed->ed_alloc, &csize, (char *)ed->ed_data->d_buf + hsize, in _dwarf_elf_decompress()
234 ed->ed_data->d_size - hsize) != Z_OK) { in _dwarf_elf_decompress()
/freebsd/contrib/sendmail/src/
H A Dcollect.c55 char hsize[16]; local
59 (void) sm_snprintf(hsize, sizeof(hsize), "%d", hdrslen);
62 hnum, hsize);
63 (void) rscheck("check_eoh", hnum, hsize, e, RSF_UNSTRUCTURED|RSF_COUNT,
/freebsd/contrib/lua/src/
H A Dlcode.h98 int ra, int asize, int hsize);
/freebsd/sys/arm64/broadcom/genet/
H A Dif_genet.c1243 int hsize = size; \ in gen_parse_tx()
1254 bcopy(p, copy_p, hsize); \ in gen_parse_tx()
1255 m0->m_len += hsize; \ in gen_parse_tx()
1256 m->m_len -= hsize; \ in gen_parse_tx()
1257 m->m_data += hsize; \ in gen_parse_tx()
1259 copy_p += hsize; \ in gen_parse_tx()
/freebsd/sys/net/
H A Dif_llatbl.c811 lltable_allocate_htbl(uint32_t hsize) in lltable_allocate_htbl() argument
817 llt->llt_hsize = hsize; in lltable_allocate_htbl()
818 llt->lle_head = malloc(sizeof(struct llentries) * hsize, in lltable_allocate_htbl()
H A Dif_llatbl.h226 struct lltable *lltable_allocate_htbl(uint32_t hsize);
/freebsd/sys/dev/fb/
H A Dsplash_pcx.c166 uint16_t hsize; member
/freebsd/sys/netinet/
H A Din.c1588 in_lltable_hash_dst(const struct in_addr dst, uint32_t hsize) in in_lltable_rtcheck()
1591 return (IN_LLTBL_HASH(dst.s_addr, hsize)); in in_lltable_hash_dst() argument
1595 in_lltable_hash(const struct llentry *lle, uint32_t hsize) in in_lltable_hash_dst()
1598 return (in_lltable_hash_dst(lle->r_l3addr.addr4, hsize)); in in_lltable_hash() argument
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64lsn.c948 int i, j, hsize;
955 hsize = h->states_hashsize * 2;
956 hash = malloc(sizeof(*hash)* hsize, M_NOWAIT);
959 for (j = 0; j < hsize; j++)
/freebsd/sys/netinet6/
H A Din6.c2318 in6_lltable_hash_dst(const struct in6_addr *dst, uint32_t hsize) in in6_lltable_hash_dst() argument
2321 return (IN6_LLTBL_HASH(dst->s6_addr32[3], hsize)); in in6_lltable_hash_dst()
2325 in6_lltable_hash(const struct llentry *lle, uint32_t hsize) in in6_lltable_hash() argument
2328 return (in6_lltable_hash_dst(&lle->r_l3addr.addr6, hsize)); in in6_lltable_hash()
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_taskdeps.cpp63 static inline size_t __kmp_dephash_hash(kmp_intptr_t addr, size_t hsize) { in __kmp_dephash_hash() argument
66 return ((addr >> 6) ^ (addr >> 2)) % hsize; in __kmp_dephash_hash()

12