Home
last modified time | relevance | path

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

123

/openbsd/bin/pax/
H A Dcpio.c273 HD_CPIO *hd; in cpio_rd() local
295 val = asc_ull(hd->c_mtime, sizeof(hd->c_mtime), OCT); in cpio_rd()
375 HD_CPIO *hd; in cpio_wr() local
425 if (ul_asc(MAGIC, hd->c_magic, sizeof(hd->c_magic), OCT) || in cpio_wr()
539 HD_VCPIO *hd; in vcpio_rd() local
664 HD_VCPIO *hd; in vcpio_wr() local
689 ul_asc(0, hd->c_chksum, sizeof(hd->c_chksum),HEX)) in vcpio_wr()
830 HD_BCPIO *hd; in bcpio_rd() local
946 HD_BCPIO *hd; in bcpio_wr() local
1055 hd->h_mtime_1[0] = hd->h_mtime_1[1] = 0; in bcpio_wr()
[all …]
H A Dtar.c610 if (ul_oct(0, hd->size, sizeof(hd->size), 1)) in tar_wr()
619 if (ul_oct(0, hd->size, sizeof(hd->size), 1)) in tar_wr()
628 if (ul_oct(0, hd->size, sizeof(hd->size), 1)) in tar_wr()
769 hd->prefix, sizeof(hd->prefix)); in ustar_rd()
780 hd->name, sizeof(hd->name)); in ustar_rd()
820 hd->gname[sizeof(hd->gname) - 1] = '\0'; in ustar_rd()
823 hd->uname[sizeof(hd->uname) - 1] = '\0'; in ustar_rd()
1191 fieldcpy(hd->name, sizeof(hd->name), pt, in wr_ustar_or_pax()
1200 if (ul_oct(0, hd->size, sizeof(hd->size), 3)) in wr_ustar_or_pax()
1213 ul_oct(0, hd->size, sizeof(hd->size), 3)) in wr_ustar_or_pax()
[all …]
/openbsd/sys/arch/luna88k/stand/boot/
H A Dsc.c200 hd->scsi_tch = 2; in issue_select()
202 hd->scsi_tcl = 3; in issue_select()
264 hd = hs->sc_sd; in scrun()
319 hs->sc_unit, hd->scsi_psns, hd->scsi_ssts, hd->scsi_ints); in scabort()
322 hd->scsi_ints = hd->scsi_ints; in scabort()
324 if (hd->scsi_psns == 0 || (hd->scsi_ssts & SSTS_INITIATOR) == 0) in scabort()
329 len = (hd->scsi_tch << 16) | (hd->scsi_tcm << 8) | hd->scsi_tcl; in scabort()
343 hd->scsi_pctl = hs->sc_phase = hd->scsi_psns & PHASE; in scabort()
369 hs->sc_unit, hd->scsi_psns, hd->scsi_ssts); in scabort()
505 hd = hs->sc_sd; in scintr()
[all …]
/openbsd/regress/usr.sbin/snmpd/
H A Dsnmp.c136 struct headerdata hd = { in snmp_v3_usm_noauthpriv() local
367 if (hd->msgid == 0) in snmpv3_send()
369 if (hd->msgmaxsize == 0) in snmpv3_send()
370 hd->msgmaxsize = 484; in snmpv3_send()
374 if (hd->msgsm == SM_USM) in snmpv3_send()
413 hdd = *hd; in snmpv3_usm_discovery()
461 switch (hd->msgsm) { in snmpv3_encode()
472 hd->msgid, hd->msgmaxsize, &hd->msgflags, sizeof(hd->msgflags), in snmpv3_encode()
473 hd->msgsm, sp, splen, hd->engineid, hd->engineidlen, in snmpv3_encode()
526 if (msgid != hd->msgid) in snmpv3_decode()
[all …]
/openbsd/sys/dev/usb/
H A Dusbdi_util.c86 usbd_get_hub_descriptor(struct usbd_device *dev, usb_hub_descriptor_t *hd, in usbd_get_hub_descriptor() argument
97 return (usbd_do_request(dev, &req, hd)); in usbd_get_hub_descriptor()
101 usbd_get_hub_ss_descriptor(struct usbd_device *dev, usb_hub_ss_descriptor_t *hd, in usbd_get_hub_ss_descriptor() argument
112 return (usbd_do_request(dev, &req, hd)); in usbd_get_hub_ss_descriptor()
212 struct usb_hid_descriptor *hd; in usbd_get_hid_descriptor() local
218 for (; p < end; p += hd->bLength) { in usbd_get_hid_descriptor()
219 hd = (struct usb_hid_descriptor *)p; in usbd_get_hid_descriptor()
220 if (p + hd->bLength <= end && hd->bDescriptorType == UDESC_HID) in usbd_get_hid_descriptor()
221 return (hd); in usbd_get_hid_descriptor()
222 if (hd->bDescriptorType == UDESC_INTERFACE) in usbd_get_hid_descriptor()
H A Dujoy.c62 struct hid_data *hd; in ujoy_hid_is_collection() local
66 hd = hid_start_parse(desc, size, hid_input); in ujoy_hid_is_collection()
67 if (hd == NULL) in ujoy_hid_is_collection()
70 while (hid_get_item(hd, &hi)) { in ujoy_hid_is_collection()
81 hid_end_parse(hd); in ujoy_hid_is_collection()
85 hid_end_parse(hd); in ujoy_hid_is_collection()
H A Duhub.c126 } hd; in uhub_attach() local
162 err = usbd_get_hub_ss_descriptor(dev, &hd.ss, 1); in uhub_attach()
163 nports = hd.ss.bNbrPorts; in uhub_attach()
164 powerdelay = (hd.ss.bPwrOn2PwrGood * UHD_PWRON_FACTOR); in uhub_attach()
166 usbd_get_hub_ss_descriptor(dev, &hd.ss, nports); in uhub_attach()
168 err = usbd_get_hub_descriptor(dev, &hd.hs, 1); in uhub_attach()
169 nports = hd.hs.bNbrPorts; in uhub_attach()
170 powerdelay = (hd.hs.bPwrOn2PwrGood * UHD_PWRON_FACTOR); in uhub_attach()
173 usbd_get_hub_descriptor(dev, &hd.hs, nports); in uhub_attach()
185 if (!UHD_NOT_REMOV(&hd.ss, port)) in uhub_attach()
[all …]
/openbsd/sys/dev/pci/drm/include/drm/
H A Ddrm_modes.h134 #define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \ argument
136 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \
149 #define __DRM_MODE_INIT(pix, hd, vd, hd_mm, vd_mm) \ argument
151 .hdisplay = (hd), .hsync_start = (hd), .hsync_end = (hd), \
152 .htotal = (hd), .vdisplay = (vd), .vsync_start = (vd), \
167 #define DRM_MODE_INIT(hz, hd, vd, hd_mm, vd_mm) \ argument
168 __DRM_MODE_INIT((hd) * (vd) * (hz) / 1000 /* kHz */, hd, vd, hd_mm, vd_mm)
180 #define DRM_SIMPLE_MODE(hd, vd, hd_mm, vd_mm) \ argument
181 __DRM_MODE_INIT(1 /* pass validation */, hd, vd, hd_mm, vd_mm)
/openbsd/gnu/usr.bin/binutils-2.17/binutils/
H A Dsrconv.c352 hd.spare1 = 0; in wr_hd()
358 hd.cd = DATE; in wr_hd()
367 hd.au = 8; in wr_hd()
368 hd.si = 0; in wr_hd()
376 hd.afl = 2; in wr_hd()
382 hd.afl = 4; in wr_hd()
388 hd.afl = 4; in wr_hd()
398 hd.au = 8; in wr_hd()
399 hd.si = 0; in wr_hd()
426 hd.os = ""; in wr_hd()
[all …]
/openbsd/gnu/usr.bin/binutils/binutils/
H A Dsrconv.c356 hd.spare1 = 0; in wr_hd()
362 hd.cd = DATE; in wr_hd()
371 hd.au = 8; in wr_hd()
372 hd.si = 0; in wr_hd()
380 hd.afl = 2; in wr_hd()
386 hd.afl = 4; in wr_hd()
392 hd.afl = 4; in wr_hd()
402 hd.au = 8; in wr_hd()
403 hd.si = 0; in wr_hd()
430 hd.os = ""; in wr_hd()
[all …]
/openbsd/sys/dev/hid/
H A Dhid.c636 struct hid_data *hd; in hid_is_collection() local
643 while (hid_get_item(hd, &hi)) { in hid_is_collection()
652 hid_end_parse(hd); in hid_is_collection()
657 hid_end_parse(hd); in hid_is_collection()
665 struct hid_data *hd; in hid_get_collection_data() local
671 while (hid_get_item(hd, &hi)) { in hid_get_collection_data()
677 return hd; in hid_get_collection_data()
681 hid_end_parse(hd); in hid_get_collection_data()
689 struct hid_data *hd; in hid_get_id_of_collection() local
701 hid_end_parse(hd); in hid_get_id_of_collection()
[all …]
H A Dhidms.c176 struct hid_data *hd; in hidms_wacom_setup() local
189 if ((hd = hid_get_collection_data(desc, dlen, in hidms_wacom_setup()
193 hid_end_parse(hd); in hidms_wacom_setup()
194 if ((hd = hid_get_collection_data(desc, dlen, in hidms_wacom_setup()
198 hidms_stylus_hid_parse(ms, hd, loc_stylus_btn); in hidms_wacom_setup()
199 hid_end_parse(hd); in hidms_wacom_setup()
201 if ((hd = hid_get_collection_data(desc, dlen, in hidms_wacom_setup()
205 hidms_pad_buttons_hid_parse(ms, hd, loc_pad_btn); in hidms_wacom_setup()
206 hid_end_parse(hd); in hidms_wacom_setup()
209 if ((hd = hid_get_collection_data(desc, dlen, in hidms_wacom_setup()
[all …]
H A Dhidcc.c624 struct hid_data *hd; in hidcc_match() local
627 hd = hid_start_parse(desc, descsiz, hid_input); in hidcc_match()
628 while (hid_get_item(hd, &hi)) { in hidcc_match()
638 hid_end_parse(hd); in hidcc_match()
831 struct hid_data *hd; in hidcc_parse() local
868 hd = hid_start_parse(desc, descsiz, hid_input); in hidcc_parse()
869 while (hid_get_item(hd, &hi)) { in hidcc_parse()
916 hid_end_parse(hd); in hidcc_parse()
H A Dhidmt.c117 struct hid_data *hd; in hidmt_setup() local
172 hd = hid_start_parse(desc, dlen, hid_input); in hidmt_setup()
173 while (hid_get_item(hd, &h)) { in hidmt_setup()
219 hid_end_parse(hd); in hidmt_setup()
/openbsd/usr.sbin/dhcpd/
H A Dmemory.c74 enter_host(struct host_decl *hd) in enter_host() argument
78 hd->n_ipaddr = NULL; in enter_host()
79 if (hd->interface.hlen) { in enter_host()
84 hd->interface.haddr, hd->interface.hlen); in enter_host()
91 add_hash(host_hw_addr_hash, hd->interface.haddr, in enter_host()
92 hd->interface.hlen, (unsigned char *)hd); in enter_host()
102 np->n_ipaddr = hd; in enter_host()
105 if (hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]) { in enter_host()
107 hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER])) in enter_host()
131 np->n_ipaddr = hd; in enter_host()
[all …]
/openbsd/sys/dev/hil/
H A Dhil.c518 const struct hildevice *hd; in hilconfig() local
536 for (hd = hildevs; hd->minid >= 0; hd++) in hilconfig()
537 if (sc->sc_cmdbuf[0] >= hd->minid && in hilconfig()
538 sc->sc_cmdbuf[0] <= hd->maxid) { in hilconfig()
542 ha.ha_type = hd->type; in hilconfig()
543 ha.ha_descr = hd->descr; in hilconfig()
/openbsd/sys/dev/ofw/
H A Dofw_misc.c1354 hwlock_register(struct hwlock_device *hd) in hwlock_register() argument
1356 hd->hd_cells = OF_getpropint(hd->hd_node, "#hwlock-cells", 0); in hwlock_register()
1357 hd->hd_phandle = OF_getpropint(hd->hd_node, "phandle", 0); in hwlock_register()
1358 if (hd->hd_phandle == 0) in hwlock_register()
1361 LIST_INSERT_HEAD(&hwlock_devices, hd, hd_list); in hwlock_register()
1367 struct hwlock_device *hd; in hwlock_lock_cells() local
1370 LIST_FOREACH(hd, &hwlock_devices, hd_list) { in hwlock_lock_cells()
1371 if (hd->hd_phandle == phandle) in hwlock_lock_cells()
1375 if (hd && hd->hd_lock) in hwlock_lock_cells()
1376 return hd->hd_lock(hd->hd_cookie, &cells[1], lock); in hwlock_lock_cells()
/openbsd/usr.bin/file/magdir/
H A Dimages22 >12 leshort >0 %hd x
23 >14 leshort >0 %hd
26 >12 leshort >0 %hd x
27 >14 leshort >0 %hd
30 >12 leshort >0 %hd x
31 >14 leshort >0 %hd
120 >6 leshort >0 %hd x
121 >8 leshort >0 %hd
398 >12 leshort >0 %hd x
534 >0 leshort >0 %hd x
[all …]
/openbsd/sys/dev/pci/drm/radeon/
H A Dradeon_uvd.c842 unsigned *sd, unsigned *hd) in radeon_uvd_count_handles() argument
847 *hd = 0; in radeon_uvd_count_handles()
854 ++(*hd); in radeon_uvd_count_handles()
868 &rdev->pm.dpm.hd); in radeon_uvd_idle_work_handler()
887 unsigned hd = 0, sd = 0; in radeon_uvd_note_usage() local
888 radeon_uvd_count_handles(rdev, &sd, &hd); in radeon_uvd_note_usage()
890 (rdev->pm.dpm.hd != hd)) { in radeon_uvd_note_usage()
892 rdev->pm.dpm.hd = hd; in radeon_uvd_note_usage()
/openbsd/usr.bin/cvs/
H A Dutil.c504 struct hash_data *hdata, hd; in cvs_mkadmin() local
510 hd.h_key = xstrdup(path); in cvs_mkadmin()
511 hd.h_data = NULL; in cvs_mkadmin()
512 hash_table_enter(&created_cvs_directories, &hd); in cvs_mkadmin()
566 struct hash_data *hdata, hd; in cvs_mkpath() local
573 hd.h_key = xstrdup(path); in cvs_mkpath()
574 hd.h_data = NULL; in cvs_mkpath()
575 hash_table_enter(&created_directories, &hd); in cvs_mkpath()
/openbsd/gnu/usr.bin/cvs/windows-NT/
H A Dfilesubr.c792 char *hd, *hp; in get_homedir() local
796 else if ((hd = getenv ("HOME"))) in get_homedir()
797 return hd; in get_homedir()
798 else if ((hd = getenv ("HOMEDRIVE")) && (hp = getenv ("HOMEPATH"))) in get_homedir()
800 pathbuf = xmalloc (strlen (hd) + strlen (hp) + 5); in get_homedir()
801 strcpy (pathbuf, hd); in get_homedir()
/openbsd/usr.sbin/unbound/testcode/
H A Ddohclient.c383 session, frame->hd.stream_id))) in http2_frame_recv_cb()
385 if(frame->hd.type == NGHTTP2_HEADERS && in http2_frame_recv_cb()
389 if(((frame->hd.type != NGHTTP2_DATA && in http2_frame_recv_cb()
390 frame->hd.type != NGHTTP2_HEADERS) || in http2_frame_recv_cb()
391 frame->hd.flags & NGHTTP2_FLAG_END_STREAM) && in http2_frame_recv_cb()
414 h2_session->session, frame->hd.stream_id))) { in http2_header_cb()
/openbsd/gnu/usr.sbin/mkhybrid/src/
H A Dmagic20 >6 leshort >0 %hd x
21 >8 leshort >0 %hd,
/openbsd/games/hack/
H A Dhack.mkshop.c269 int i = rn2(100), hd = rn2(dlevel); in morguemon() local
271 if(hd > 10 && i < 10) return(PM_DEMON); in morguemon()
272 if(hd > 8 && i > 85) return(PM_VAMPIRE); in morguemon()
/openbsd/regress/lib/libcrypto/x509/bettertls/certificates/
H A D1999.crt18 hd/srtZ594iPmtAzp+Qsj99fWUcgVBD7SeMJtITvkNh19+EYkcg0JS9Vb5uI0bfm

123