Home
last modified time | relevance | path

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

1234

/freebsd-14-stable/stand/kboot/kboot/
HDhostdisk.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-14-stable/usr.sbin/bluetooth/bthidcontrol/
HDhid.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 …]
HDsdp.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->control_psm = control_psm; in hid_sdp_query()
228 hd->interrupt_psm = interrupt_psm; in hid_sdp_query()
[all …]
/freebsd-14-stable/contrib/wpa/src/crypto/
HDcrypto_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-14-stable/lib/libthr/thread/
HDthr_pshared.c105 struct pshared_hash_head *hd; in pshared_gc() local
111 hd = &pshared_hash[i]; in pshared_gc()
112 LIST_FOREACH_SAFE(h, hd, link, h1) { in pshared_gc()
128 struct pshared_hash_head *hd; in pshared_lookup() local
131 hd = &pshared_hash[PSHARED_KEY_HASH(key)]; in pshared_lookup()
132 LIST_FOREACH(h, hd, link) { in pshared_lookup()
142 struct pshared_hash_head *hd; in pshared_insert() local
145 hd = &pshared_hash[PSHARED_KEY_HASH(key)]; in pshared_insert()
146 LIST_FOREACH(h, hd, link) { in pshared_insert()
182 LIST_INSERT_HEAD(hd, h, link); in pshared_insert()
[all …]
/freebsd-14-stable/stand/efi/libefi/
HDefipart.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 …]
HDefizfs.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()
HDdevpath.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-14-stable/sys/fs/nullfs/
HDnull_subr.c97 struct null_node_hashhead *hd; in null_hashget_locked() local
110 hd = NULL_NHASH(lowervp); in null_hashget_locked()
111 LIST_FOREACH(a, hd, null_hash) { in null_hashget_locked()
130 struct null_node_hashhead *hd; in null_hashget() local
133 hd = NULL_NHASH(lowervp); in null_hashget()
134 if (LIST_EMPTY(hd)) in null_hashget()
147 struct null_node_hashhead *hd; in null_hashins() local
154 hd = NULL_NHASH(xp->null_lowervp); in null_hashins()
156 LIST_FOREACH(oxp, hd, null_hash) { in null_hashins()
164 LIST_INSERT_HEAD(hd, xp, null_hash); in null_hashins()
/freebsd-14-stable/crypto/heimdal/appl/login/
HDutmp_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-14-stable/contrib/libarchive/libarchive/
HDarchive_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-14-stable/usr.bin/hexdump/tests/
HDhexdump_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-14-stable/lib/libc/net/
HDgethostnamadr.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()
HDgethostbyht.c207 struct hostdata *hd; in gethostent() local
211 if ((hd = __hostdata_init()) == NULL) in gethostent()
213 if (gethostent_r(&hd->host, hd->data, sizeof(hd->data), &rval, in gethostent()
/freebsd-14-stable/sys/netinet/cc/
HDcc_hd.c240 SYSCTL_NODE(_net_inet_tcp_cc, OID_AUTO, hd, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL,
258 DECLARE_CC_MODULE(hd, &hd_cc_algo);
259 MODULE_VERSION(hd, 2);
260 MODULE_DEPEND(hd, ertt, 1, 1, 1);
/freebsd-14-stable/sys/dev/sec/
HDsec.c1322 struct sec_hw_desc *hd = desc->sd_desc; in sec_build_common_ns_desc() local
1325 hd->shd_desc_type = SEC_DT_COMMON_NONSNOOP; in sec_build_common_ns_desc()
1326 hd->shd_eu_sel1 = SEC_EU_NONE; in sec_build_common_ns_desc()
1327 hd->shd_mode1 = 0; in sec_build_common_ns_desc()
1373 struct sec_hw_desc *hd = desc->sd_desc; in sec_build_common_s_desc() local
1381 hd->shd_desc_type = SEC_DT_HMAC_SNOOP; in sec_build_common_s_desc()
1382 hd->shd_eu_sel1 = eu; in sec_build_common_s_desc()
1383 hd->shd_mode1 = mode; in sec_build_common_s_desc()
1442 struct sec_hw_desc *hd = desc->sd_desc; in sec_aesu_make_desc() local
1445 hd->shd_eu_sel0 = SEC_EU_AESU; in sec_aesu_make_desc()
[all …]
/freebsd-14-stable/usr.bin/mkimg/
HDebr.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()
HDmbr.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-14-stable/usr.bin/hexdump/
HDMakefile8 MLINKS= hexdump.1 hd.1
10 LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
/freebsd-14-stable/sys/net/
HDpfil.c586 u_int nheads, nhooks, hd, hk; in pfilioc_listheads() local
607 hd = hk = 0; in pfilioc_listheads()
610 if (hd + 1 > nheads || in pfilioc_listheads()
617 strlcpy(iohead[hd].pio_name, head->head_name, in pfilioc_listheads()
619 iohead[hd].pio_nhooksin = head->head_nhooksin; in pfilioc_listheads()
620 iohead[hd].pio_nhooksout = head->head_nhooksout; in pfilioc_listheads()
621 iohead[hd].pio_type = head->head_type; in pfilioc_listheads()
640 hd++; in pfilioc_listheads()
645 sizeof(*iohead) * min(hd, req->pio_nheads)); in pfilioc_listheads()
650 req->pio_nheads = hd; in pfilioc_listheads()
/freebsd-14-stable/sys/dev/hid/
HDhid.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()
/freebsd-14-stable/stand/powerpc/boot1.chrp/
HDgenerate-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-14-stable/contrib/unbound/util/
HDnetevent.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-14-stable/sys/fs/unionfs/
HDunion_subr.c151 struct unionfs_node_hashhead *hd; in unionfs_get_cached_vnode_locked() local
154 hd = unionfs_get_hashhead(dvp, lookup); in unionfs_get_cached_vnode_locked()
156 LIST_FOREACH(unp, hd, un_hash) { in unionfs_get_cached_vnode_locked()
205 struct unionfs_node_hashhead *hd; in unionfs_ins_cached_vnode() local
222 hd = unionfs_get_hashhead(dvp, (uncp->un_uppervp != NULLVP ? in unionfs_ins_cached_vnode()
224 LIST_INSERT_HEAD(hd, uncp, un_hash); in unionfs_ins_cached_vnode()
441 struct unionfs_node_hashhead *hd; in unionfs_noderem() local
484 hd = unp->un_hashtbl + count; in unionfs_noderem()
485 LIST_FOREACH_SAFE(unp_t1, hd, un_hash, unp_t2) { in unionfs_noderem()
815 struct unionfs_node_hashhead *hd; in unionfs_node_update() local
[all …]
/freebsd-14-stable/stand/efi/gptboot/
HDproto.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