Home
last modified time | relevance | path

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

1234

/freebsd/bin/pax/
H A Dtar.c557 hd->name[sizeof(hd->name) - 1] = '\0'; in tar_wr()
567 memset(hd->linkname, 0, sizeof(hd->linkname)); in tar_wr()
577 hd->linkname[sizeof(hd->linkname) - 1] = '\0'; in tar_wr()
586 hd->linkname[sizeof(hd->linkname) - 1] = '\0'; in tar_wr()
594 memset(hd->linkname, 0, sizeof(hd->linkname)); in tar_wr()
767 hd->gname[sizeof(hd->gname) - 1] = '\0'; in ustar_rd()
770 hd->uname[sizeof(hd->uname) - 1] = '\0'; in ustar_rd()
917 memset(hd->prefix, 0, sizeof(hd->prefix)); in ustar_wr()
923 l_strncpy(hd->name, pt, sizeof(hd->name)); in ustar_wr()
931 memset(hd->linkname, 0, sizeof(hd->linkname)); in ustar_wr()
[all …]
H A Dcpio.c270 HD_CPIO *hd; in cpio_rd() local
368 HD_CPIO *hd; in cpio_wr() local
380 hd = &hdblk; in cpio_wr()
541 HD_VCPIO *hd; in vcpio_rd() local
574 devmajor = (dev_t)asc_ul(hd->c_maj, sizeof(hd->c_maj), HEX); in vcpio_rd()
575 devminor = (dev_t)asc_ul(hd->c_min, sizeof(hd->c_min), HEX); in vcpio_rd()
665 HD_VCPIO *hd; in vcpio_wr() local
676 hd = &hdblk; in vcpio_wr()
845 HD_BCPIO *hd; in bcpio_rd() local
960 HD_BCPIO *hd; in bcpio_wr() local
[all …]
/freebsd/stand/kboot/kboot/
H A Dhostdisk.c88 #define hd_name(hd) ((hd->hd_dev + 5)) argument
179 if ((hd = calloc(1, sizeof(*hd))) == NULL) in hostdisk_add_drive()
183 free(hd); in hostdisk_add_drive()
192 hd->hd_size = hd->hd_sectors * hd->hd_sectorsize; in hostdisk_add_drive()
198 drv, hd->hd_size, hd->hd_sectors, hd->hd_sectorsize); in hostdisk_add_drive()
204 free(hd); in hostdisk_add_drive()
261 if ((hd = calloc(1, sizeof(*hd))) == NULL) in hostdisk_fake_one_disk()
267 hd->hd_sectors = hd->hd_size / hd->hd_sectorsize; in hostdisk_fake_one_disk()
273 hd->hd_dev, hd->hd_size, hd->hd_sectors, hd->hd_sectorsize); in hostdisk_fake_one_disk()
278 free(hd); in hostdisk_fake_one_disk()
[all …]
/freebsd/usr.sbin/bluetooth/bthidcontrol/
H A Dhid.c52 struct hid_device *hd = NULL; in hid_dump() local
57 hid_dump_descriptor(hd->desc); in hid_dump()
70 struct hid_device *hd = NULL; in hid_forget() local
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()
102 if (hd->new_device) in hid_known()
106 sizeof(hd->bdaddr), in hid_known()
[all …]
H A Dsdp.c130 if (hd == 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()
233 if (hd->desc == NULL) in hid_sdp_query()
476 struct hid_device hd; in hid_query() local
479 memcpy(&hd.bdaddr, bdaddr, sizeof(hd.bdaddr)); in hid_query()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.c159 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()
181 &hd)); in hash_find_iter()
189 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_first_cb()
190 hd->hd_ret = node; in hash_find_first_cb()
203 hd.hd_hash = hash; in hash_find()
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_gnutls.c23 gcry_md_hd_t hd; in gnutls_digest_vector() local
37 gcry_md_close(hd); in gnutls_digest_vector()
50 gcry_cipher_hd_t hd; in des_encrypt() local
66 gcry_cipher_close(hd); in des_encrypt()
105 gcry_md_hd_t hd; in gnutls_hmac_vector() local
115 gcry_md_close(hd); in gnutls_hmac_vector()
123 gcry_md_close(hd); in gnutls_hmac_vector()
217 gcry_cipher_hd_t hd; in aes_encrypt_init() local
233 return hd; in aes_encrypt_init()
254 gcry_cipher_hd_t hd; in aes_decrypt_init() local
[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
145 LIST_FOREACH(h, hd, link) { in pshared_insert()
181 LIST_INSERT_HEAD(hd, h, link); in pshared_insert()
188 struct pshared_hash_head *hd; in pshared_remove() local
[all …]
/freebsd/stand/efi/libefi/
H A Defipart.c621 parent = hd->pd_parent; in efipart_hdinfo_add_node()
632 hd->pd_unit = 0; in efipart_hdinfo_add_node()
658 hd->pd_unit = 0; in efipart_hdinfo_add_filepath()
664 free(hd); in efipart_hdinfo_add_filepath()
687 free(hd); in efipart_hdinfo_add_filepath()
700 free(hd); in efipart_hdinfo_add_filepath()
704 hd->pd_parent = last; in efipart_hdinfo_add_filepath()
716 if (hd == NULL) in efipart_hdinfo_add()
719 parent = hd->pd_parent; in efipart_hdinfo_add()
753 hd->pd_unit = 0; in efipart_hdinfo_add()
[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()
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()
374 hd->PartitionNumber, 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/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/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()
727 bytes += hd->cffolder; in cab_read_header()
751 used += hd->cffolder; in cab_read_header()
866 if (hd->cabinet != 0 || hd->flags & (PREV_CABINET | NEXT_CABINET)) { in cab_read_header()
887 struct cfheader *hd; in archive_read_format_cab_read_header() local
901 hd = &cab->cfheader; in archive_read_format_cab_read_header()
903 if (hd->file_index >= hd->file_count) { in archive_read_format_cab_read_header()
907 file = &hd->file_array[hd->file_index++]; in archive_read_format_cab_read_header()
926 cab->entry_cffolder = &hd->folder_array[hd->folder_count-1]; in archive_read_format_cab_read_header()
[all …]
/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/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/sys/netinet/cc/
H A Dcc_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/sys/dev/sec/
H A Dsec.c1325 hd->shd_eu_sel1 = SEC_EU_NONE; in sec_build_common_ns_desc()
1326 hd->shd_mode1 = 0; in sec_build_common_ns_desc()
1381 hd->shd_eu_sel1 = eu; in sec_build_common_s_desc()
1382 hd->shd_mode1 = mode; in sec_build_common_s_desc()
1444 hd->shd_eu_sel0 = SEC_EU_AESU; in sec_aesu_make_desc()
1449 hd->shd_dir = 0; in sec_aesu_make_desc()
1451 hd->shd_dir = 1; in sec_aesu_make_desc()
1538 hd->shd_eu_sel0 = eu; in sec_mdeu_make_desc()
1539 hd->shd_mode0 = mode; in sec_mdeu_make_desc()
1540 hd->shd_eu_sel1 = SEC_EU_NONE; in sec_mdeu_make_desc()
[all …]
/freebsd/usr.bin/hexdump/
H A DMakefile7 MLINKS= hexdump.1 hd.1
9 LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
/freebsd/usr.bin/mkimg/
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()
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()
/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.c797 struct hid_data *hd; in hid_is_collection() local
801 hd = hid_start_parse(desc, size, 0); in hid_is_collection()
802 if (hd == NULL) in hid_is_collection()
805 while ((err = hid_get_item(hd, &hi))) { in hid_is_collection()
810 hid_end_parse(hd); in hid_is_collection()
901 struct hid_data *hd; in hid_is_mouse() local
906 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in hid_is_mouse()
907 if (hd == NULL) in hid_is_mouse()
913 while (hid_get_item(hd, &hi)) { in hid_is_mouse()
943 hid_end_parse(hd); in hid_is_mouse()
/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 ' ')

1234