Home
last modified time | relevance | path

Searched refs:hd (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/stand/kboot/kboot/
H A Dhostdisk.c88 #define hd_name(hd) ((hd->hd_dev + 5)) argument
123 hostdisk_add_part(hdinfo_t *hd, const char *drv, uint64_t secs) in hostdisk_add_part() argument
128 printf("hd %s adding %s %ju\n", hd->hd_dev, drv, (uintmax_t)secs); in hostdisk_add_part()
138 md->hd_sectorsize = hd->hd_sectorsize; in hostdisk_add_part()
140 md->hd_parent = hd; in hostdisk_add_part()
141 STAILQ_INSERT_TAIL(&hd->hd_children, md, hd_link); in hostdisk_add_part()
147 hdinfo_t *hd = argp; in hostdisk_one_part() local
152 if (strncmp(dent->d_name, hd_name(hd), strlen(hd_name(hd))) != 0) in hostdisk_one_part()
156 hd_name(hd), dent->d_name); in hostdisk_one_part()
159 hostdisk_add_part(hd, dent->d_name, sz); in hostdisk_one_part()
[all …]
/freebsd/usr.sbin/bluetooth/bthidcontrol/
H A Dhid.c52 struct hid_device *hd = NULL; in hid_dump() local
56 if ((hd = get_hid_device(bdaddr)) != NULL) { in hid_dump()
57 hid_dump_descriptor(hd->desc); in hid_dump()
70 struct hid_device *hd = NULL; in hid_forget() local
75 if ((hd = get_hid_device(bdaddr)) != NULL) { in hid_forget()
76 hd->new_device = 1; in hid_forget()
91 struct hid_device *hd = NULL; in hid_known() local
99 for (hd = get_next_hid_device(hd); in hid_known()
100 hd != NULL; in hid_known()
101 hd = get_next_hid_device(hd)) { in hid_known()
[all …]
H A Dsdp.c48 static int32_t hid_sdp_query (bdaddr_t const *local, struct hid_device *hd, int32_t *error);
116 hid_sdp_query(bdaddr_t const *local, struct hid_device *hd, int32_t *error) in hid_sdp_query() argument
130 if (hd == NULL) in hid_sdp_query()
135 if ((ss = sdp_open(local, &hd->bdaddr)) == NULL) in hid_sdp_query()
223 hd->name = bt_devremote_name_gen(devname, &hd->bdaddr); in hid_sdp_query()
224 hd->vendor_id = vendor_id; in hid_sdp_query()
225 hd->product_id = product_id; in hid_sdp_query()
226 hd->version = version; in hid_sdp_query()
227 hd in hid_sdp_query()
476 struct hid_device hd; hid_query() local
[all...]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.c155 struct hash_data *hd = arg; in hash_find_list_cb() local
159 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_list_cb()
160 if ((cbrc = hd->hd_fun(node, hd->hd_private)) < 0) in hash_find_list_cb()
173 struct hash_data hd; in hash_find_iter() local
175 hd.hd_hash = hash; in hash_find_iter()
176 hd.hd_fun = fun; in hash_find_iter()
177 hd.hd_key = key; in hash_find_iter()
178 hd.hd_private = private; in hash_find_iter()
181 &hd)); in hash_find_iter()
188 struct hash_data *hd = arg; in hash_find_first_cb() local
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_gnutls.c23 gcry_md_hd_t hd; in gnutls_digest_vector() local
30 if (gcry_md_open(&hd, algo, 0) != GPG_ERR_NO_ERROR) in gnutls_digest_vector()
33 gcry_md_write(hd, addr[i], len[i]); in gnutls_digest_vector()
34 p = gcry_md_read(hd, algo); in gnutls_digest_vector()
37 gcry_md_close(hd); in gnutls_digest_vector()
50 gcry_cipher_hd_t hd; in des_encrypt() local
63 gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0); in des_encrypt()
64 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8)); in des_encrypt()
65 gcry_cipher_encrypt(hd, cypher, 8, clear, 8); in des_encrypt()
66 gcry_cipher_close(hd); in des_encrypt()
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_pshared.c104 struct pshared_hash_head *hd; in pshared_gc() local
110 hd = &pshared_hash[i]; in pshared_gc()
111 LIST_FOREACH_SAFE(h, hd, link, h1) { in pshared_gc()
127 struct pshared_hash_head *hd; in pshared_lookup() local
130 hd = &pshared_hash[PSHARED_KEY_HASH(key)]; in pshared_lookup()
131 LIST_FOREACH(h, hd, link) { in pshared_lookup()
141 struct pshared_hash_head *hd; in pshared_insert() local
144 hd = &pshared_hash[PSHARED_KEY_HASH(key)]; in pshared_insert()
145 LIST_FOREACH(h, hd, link) { in pshared_insert()
181 LIST_INSERT_HEAD(hd, h, link); in pshared_insert()
[all …]
/freebsd/stand/efi/libefi/
H A Defipart.c614 efipart_hdinfo_add_node(pdinfo_t *hd, EFI_DEVICE_PATH *node) in efipart_hdinfo_add_node() argument
621 parent = hd->pd_parent; in efipart_hdinfo_add_node()
630 hd->pd_unit = ptr->pd_unit + 1; in efipart_hdinfo_add_node()
632 hd->pd_unit = 0; in efipart_hdinfo_add_node()
634 hd->pd_unit = ((HARDDRIVE_DEVICE_PATH *)node)->PartitionNumber; in efipart_hdinfo_add_node()
637 hd->pd_devsw = &efipart_hddev; in efipart_hdinfo_add_node()
638 STAILQ_INSERT_TAIL(&parent->pd_part, hd, pd_link); in efipart_hdinfo_add_node()
648 efipart_hdinfo_add_filepath(pdinfo_t *hd, FILEPATH_DEVICE_PATH *node) in efipart_hdinfo_add_filepath() argument
656 hd->pd_unit = last->pd_unit + 1; in efipart_hdinfo_add_filepath()
658 hd->pd_unit = 0; in efipart_hdinfo_add_filepath()
[all …]
H A Defizfs.c97 pdinfo_t *hd, *pd = NULL; in efi_zfs_probe() local
110 STAILQ_FOREACH(hd, hdi, pd_link) { in efi_zfs_probe()
111 STAILQ_FOREACH(pd, &hd->pd_part, pd_link) { in efi_zfs_probe()
113 efipart_hddev.dv_name, hd->pd_unit, pd->pd_unit); in efi_zfs_probe()
H A Ddevpath.c339 HARDDRIVE_DEVICE_PATH *hd; in efi_media_dev_path() local
349 hd = (HARDDRIVE_DEVICE_PATH *)node; in efi_media_dev_path()
350 switch (hd->SignatureType) { in efi_media_dev_path()
354 hd->PartitionNumber, in efi_media_dev_path()
355 *((uint32_t *)(uintptr_t)&hd->Signature[0]), in efi_media_dev_path()
356 hd->PartitionStart, in efi_media_dev_path()
357 hd->PartitionSize, tail) < 0) in efi_media_dev_path()
363 &hd->Signature[0], &str, &rv); in efi_media_dev_path()
368 hd->PartitionNumber, str, in efi_media_dev_path()
369 hd->PartitionStart, hd->PartitionSize, tail); in efi_media_dev_path()
[all …]
/freebsd/sys/fs/nullfs/
H A Dnull_subr.c95 struct null_node_hashhead *hd; in null_hashget_locked() local
108 hd = NULL_NHASH(lowervp); in null_hashget_locked()
109 LIST_FOREACH(a, hd, null_hash) { in null_hashget_locked()
128 struct null_node_hashhead *hd; in null_hashget() local
131 hd = NULL_NHASH(lowervp); in null_hashget()
132 if (LIST_EMPTY(hd)) in null_hashget()
145 struct null_node_hashhead *hd; in null_hashins() local
152 hd = NULL_NHASH(xp->null_lowervp); in null_hashins()
154 LIST_FOREACH(oxp, hd, null_hash) { in null_hashins()
162 LIST_INSERT_HEAD(hd, xp, null_hash); in null_hashins()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_cab.c621 struct cfheader *hd; in cab_read_header() local
653 hd = &cab->cfheader; in cab_read_header()
660 hd->total_bytes = archive_le32dec(p + CFHEADER_cbCabinet); in cab_read_header()
661 hd->files_offset = archive_le32dec(p + CFHEADER_coffFiles); in cab_read_header()
662 hd->minor = p[CFHEADER_versionMinor]; in cab_read_header()
663 hd->major = p[CFHEADER_versionMajor]; in cab_read_header()
664 hd->folder_count = archive_le16dec(p + CFHEADER_cFolders); in cab_read_header()
665 if (hd->folder_count == 0) in cab_read_header()
667 hd->file_count = archive_le16dec(p + CFHEADER_cFiles); in cab_read_header()
668 if (hd->file_count == 0) in cab_read_header()
[all …]
/freebsd/crypto/heimdal/appl/login/
H A Dutmp_login.c46 char *ld, *hd; in shrink_hostname() local
55 hd = strchr (hostname, '.'); in shrink_hostname()
57 if (hd != NULL && ld != NULL && strcmp(hd, ld) == 0 in shrink_hostname()
58 && hd - hostname < dst_sz) { in shrink_hostname()
60 dst[hd - hostname] = '\0'; in shrink_hostname()
/freebsd/lib/libc/net/
H A Dgethostnamadr.c664 struct hostdata *hd; in gethostbyname() local
668 if ((hd = __hostdata_init()) == NULL) in gethostbyname()
670 if (gethostbyname_r(name, &hd->host, hd->data, sizeof(hd->data), &rval, in gethostbyname()
679 struct hostdata *hd; in gethostbyname2() local
683 if ((hd = __hostdata_init()) == NULL) in gethostbyname2()
685 if (gethostbyname2_r(name, af, &hd->host, hd->data, sizeof(hd->data), in gethostbyname2()
694 struct hostdata *hd; in gethostbyaddr() local
698 if ((hd = __hostdata_init()) == NULL) in gethostbyaddr()
700 if (gethostbyaddr_r(addr, len, af, &hd->host, hd->data, in gethostbyaddr()
701 sizeof(hd->data), &rval, &ret_h_errno) != 0) in gethostbyaddr()
H A Dgethostbyht.c204 struct hostdata *hd; in gethostent() local
208 if ((hd = __hostdata_init()) == NULL) in gethostent()
210 if (gethostent_r(&hd->host, hd->data, sizeof(hd->data), &rval, in gethostent()
/freebsd/usr.bin/hexdump/tests/
H A Dhexdump_test.sh91 hd "$(atf_get_srcdir)/d_hexdump_a.in"
93 hd "$(atf_get_srcdir)/d_hexdump_b.in"
95 hd "$(atf_get_srcdir)/d_hexdump_c.in"
97 hd "$(atf_get_srcdir)/d_hexdump_bug118723.in"
99 hd -v "$(atf_get_srcdir)/d_hexdump_bug118723.in"
/freebsd/sys/dev/sec/
H A Dsec.c1321 struct sec_hw_desc *hd = desc->sd_desc; in sec_build_common_ns_desc() local
1324 hd->shd_desc_type = SEC_DT_COMMON_NONSNOOP; in sec_build_common_ns_desc()
1325 hd->shd_eu_sel1 = SEC_EU_NONE; in sec_build_common_ns_desc()
1326 hd->shd_mode1 = 0; in sec_build_common_ns_desc()
1372 struct sec_hw_desc *hd = desc->sd_desc; in sec_build_common_s_desc() local
1380 hd->shd_desc_type = SEC_DT_HMAC_SNOOP; in sec_build_common_s_desc()
1381 hd->shd_eu_sel1 = eu; in sec_build_common_s_desc()
1382 hd->shd_mode1 = mode; in sec_build_common_s_desc()
1441 struct sec_hw_desc *hd = desc->sd_desc; in sec_aesu_make_desc() local
1444 hd->shd_eu_sel0 = SEC_EU_AESU; in sec_aesu_make_desc()
[all …]
/freebsd/usr.bin/mkimg/
H A Debr.c59 u_int cyl, hd, sec; in ebr_chs() local
61 mkimg_chs(lba, 1023, &cyl, &hd, &sec); in ebr_chs()
63 *hdp = hd; in ebr_chs()
H A Dmbr.c63 u_int cyl, hd, sec; in mbr_chs() local
65 mkimg_chs(lba, 1023, &cyl, &hd, &sec); in mbr_chs()
67 *hdp = hd; in mbr_chs()
/freebsd/usr.bin/hexdump/
H A DMakefile6 MLINKS= hexdump.1 hd.1
8 LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
/freebsd/sys/net/
H A Dpfil.c591 u_int nheads, nhooks, hd, hk; in pfilioc_listheads() local
612 hd = hk = 0; in pfilioc_listheads()
615 if (hd + 1 > nheads || in pfilioc_listheads()
622 strlcpy(iohead[hd].pio_name, head->head_name, in pfilioc_listheads()
624 iohead[hd].pio_nhooksin = head->head_nhooksin; in pfilioc_listheads()
625 iohead[hd].pio_nhooksout = head->head_nhooksout; in pfilioc_listheads()
626 iohead[hd].pio_type = head->head_type; in pfilioc_listheads()
645 hd++; in pfilioc_listheads()
650 sizeof(*iohead) * min(hd, req->pio_nheads)); in pfilioc_listheads()
655 req->pio_nheads = hd; in pfilioc_listheads()
/freebsd/sys/dev/hid/
H A Dhid.c802 struct hid_data *hd; in hid_is_collection() local
806 hd = hid_start_parse(desc, size, 0); in hid_is_collection()
807 if (hd == NULL) in hid_is_collection()
810 while ((err = hid_get_item(hd, &hi))) { in hid_is_collection()
815 hid_end_parse(hd); in hid_is_collection()
906 struct hid_data *hd; in hid_is_mouse() local
911 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in hid_is_mouse()
912 if (hd == NULL) in hid_is_mouse()
918 while (hid_get_item(hd, &hi)) { in hid_is_mouse()
948 hid_end_parse(hd); in hid_is_mouse()
H A Dhidmap.c446 struct hid_data *hd; in hidmap_probe_hid_descr() local
459 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in hidmap_probe_hid_descr()
460 HIDBUS_FOREACH_ITEM(hd, &hi, tlc_index) { in hidmap_probe_hid_descr()
469 hid_end_parse(hd); in hidmap_probe_hid_descr()
661 struct hid_data *hd; in hidmap_parse_hid_descr() local
674 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in hidmap_parse_hid_descr()
675 HIDBUS_FOREACH_ITEM(hd, &hi, tlc_index) { in hidmap_parse_hid_descr()
686 hid_end_parse(hd); in hidmap_parse_hid_descr()
/freebsd/stand/powerpc/boot1.chrp/
H A Dgenerate-hfs.sh43 BOOTINFO_OFFSET=$(hd $OUTPUT_FILE | grep 'Bootinfo START' | cut -f 1 -d ' ')
44 BOOT1_OFFSET=$(hd $OUTPUT_FILE | grep 'Boot1 START' | cut -f 1 -d ' ')
/freebsd/contrib/unbound/util/
H A Dnetevent.c1794 struct ngtcp2_pkt_hd* hd) argument
1817 hd->version, (void*)&paddr->addr, paddr->addrlen, &scid,
1818 &hd->dcid, ts);
1827 sldns_buffer_capacity(c->doq_socket->pkt_buf), hd->version,
1828 &hd->scid, &scid, &hd->dcid, token, tokenlen);
1842 struct doq_pkt_addr* paddr, struct ngtcp2_pkt_hd* hd, argument
1849 sldns_buffer_capacity(c->doq_socket->pkt_buf), hd->version, &hd->scid,
1850 &hd->dcid, error_code, NULL, 0);
1864 struct ngtcp2_cid* ocid, struct ngtcp2_pkt_hd* hd) argument
1878 hd->token, hd->tokenlen,
[all …]
/freebsd/stand/efi/gptboot/
H A Dproto.c123 HARDDRIVE_DEVICE_PATH *hd; in partition_number() local
130 hd = (HARDDRIVE_DEVICE_PATH *)md; in partition_number()
131 return (hd->PartitionNumber); in partition_number()

1234