Home
last modified time | relevance | path

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

123

/openbsd/src/bin/pax/
Dcpio.c273 HD_CPIO *hd; in cpio_rd() local
280 hd = (HD_CPIO *)buf; in cpio_rd()
287 arcn->sb.st_dev = (dev_t)asc_ul(hd->c_dev, sizeof(hd->c_dev), OCT); in cpio_rd()
288 arcn->sb.st_ino = (ino_t)asc_ul(hd->c_ino, sizeof(hd->c_ino), OCT); in cpio_rd()
289 arcn->sb.st_mode = (mode_t)asc_ul(hd->c_mode, sizeof(hd->c_mode), OCT); in cpio_rd()
290 arcn->sb.st_uid = (uid_t)asc_ul(hd->c_uid, sizeof(hd->c_uid), OCT); in cpio_rd()
291 arcn->sb.st_gid = (gid_t)asc_ul(hd->c_gid, sizeof(hd->c_gid), OCT); in cpio_rd()
292 arcn->sb.st_nlink = (nlink_t)asc_ul(hd->c_nlink, sizeof(hd->c_nlink), in cpio_rd()
294 arcn->sb.st_rdev = (dev_t)asc_ul(hd->c_rdev, sizeof(hd->c_rdev), OCT); in cpio_rd()
295 val = asc_ull(hd->c_mtime, sizeof(hd->c_mtime), OCT); in cpio_rd()
[all …]
Dtar.c325 HD_TAR *hd; in tar_id() local
330 hd = (HD_TAR *)blk; in tar_id()
340 if (hd->name[0] == '\0') in tar_id()
344 if (asc_ul(hd->chksum,sizeof(hd->chksum),OCT) != tar_chksm(blk,BLKMULT)) in tar_id()
397 HD_TAR *hd; in tar_rd() local
413 hd = (HD_TAR *)buf; in tar_rd()
414 if (hd->linkflag != LONGLINKTYPE && hd->linkflag != LONGNAMETYPE) { in tar_rd()
416 &gnu_name_string, hd->name, sizeof(hd->name)); in tar_rd()
418 &gnu_link_string, hd->linkname, sizeof(hd->linkname)); in tar_rd()
420 arcn->sb.st_mode = (mode_t)(asc_ul(hd->mode,sizeof(hd->mode),OCT) & in tar_rd()
[all …]
/openbsd/src/sys/arch/luna88k/stand/boot/
Dsc.c144 struct scsidevice *hd = hs->sc_sd; in screset() local
154 hd->scsi_sctl = SCTL_DISABLE | SCTL_CTRLRST; in screset()
155 hd->scsi_scmd = 0; in screset()
156 hd->scsi_pctl = 0; in screset()
157 hd->scsi_temp = 0; in screset()
158 hd->scsi_tch = 0; in screset()
159 hd->scsi_tcm = 0; in screset()
160 hd->scsi_tcl = 0; in screset()
161 hd->scsi_ints = 0; in screset()
172 hd->scsi_bdid = SCSI_ID; in screset()
[all …]
/openbsd/src/regress/usr.sbin/snmpd/
Dsnmp.c136 struct headerdata hd = { in snmp_v3_usm_noauthpriv() local
160 requestid = snmpv3_get(snmp_s, 1000, &hd, &params, 0, &varbind, 1); in snmp_v3_usm_noauthpriv()
167 snmpv3_response_validate(snmp_s, 1000, &hd, &params, requestid, 0, 0, in snmp_v3_usm_noauthpriv()
350 snmpv3_get(int s, int timeout, struct headerdata *hd, in snmpv3_get() argument
354 return snmpv3_send(s, timeout, hd, params, REQUEST_GET, requestid, in snmpv3_get()
359 snmpv3_send(int s, int timeout, struct headerdata *hd, in snmpv3_send() argument
367 if (hd->msgid == 0) in snmpv3_send()
368 hd->msgid = arc4random(); in snmpv3_send()
369 if (hd->msgmaxsize == 0) in snmpv3_send()
370 hd->msgmaxsize = 484; in snmpv3_send()
[all …]
/openbsd/src/sys/dev/usb/
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()
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()
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()
171 ttthink = UGETW(hd.hs.wHubCharacteristics) & UHD_TT_THINK; in uhub_attach()
173 usbd_get_hub_descriptor(dev, &hd.hs, nports); in uhub_attach()
[all …]
/openbsd/src/sys/dev/pci/drm/include/drm/
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/src/gnu/usr.bin/binutils-2.17/binutils/
Dsrconv.c350 struct IT_hd hd; in wr_hd() local
352 hd.spare1 = 0; in wr_hd()
354 hd.mt = MTYPE_ABS_LM; in wr_hd()
356 hd.mt = MTYPE_OMS_OR_LMS; in wr_hd()
358 hd.cd = DATE; in wr_hd()
360 hd.nu = p->nsources; /* Always one unit */ in wr_hd()
361 hd.code = 0; /* Always ASCII */ in wr_hd()
362 hd.ver = "0200"; /* Version 2.00 */ in wr_hd()
367 hd.au = 8; in wr_hd()
368 hd.si = 0; in wr_hd()
[all …]
/openbsd/src/gnu/usr.bin/binutils/binutils/
Dsrconv.c354 struct IT_hd hd; in wr_hd() local
356 hd.spare1 = 0; in wr_hd()
358 hd.mt = MTYPE_ABS_LM; in wr_hd()
360 hd.mt = MTYPE_OMS_OR_LMS; in wr_hd()
362 hd.cd = DATE; in wr_hd()
364 hd.nu = p->nsources; /* Always one unit */ in wr_hd()
365 hd.code = 0; /* Always ASCII */ in wr_hd()
366 hd.ver = "0200"; /* Version 2.00 */ in wr_hd()
371 hd.au = 8; in wr_hd()
372 hd.si = 0; in wr_hd()
[all …]
/openbsd/src/sys/dev/hid/
Dhid.c636 struct hid_data *hd; in hid_is_collection() local
640 hd = hid_start_parse(desc, size, hid_all); in hid_is_collection()
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
668 hd = hid_start_parse(desc, size, hid_all); in hid_get_collection_data()
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()
[all …]
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 …]
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()
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/src/usr.sbin/dhcpd/
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()
117 hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]->value, in enter_host()
[all …]
/openbsd/src/sys/dev/hil/
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/src/sys/dev/ofw/
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/src/usr.bin/file/magdir/
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
387 >4 leshort x bounding box [%hd,
388 >6 leshort x %hd] -
[all …]
/openbsd/src/sys/dev/pci/drm/radeon/
Dradeon_uvd.c841 unsigned *sd, unsigned *hd) in radeon_uvd_count_handles() argument
846 *hd = 0; in radeon_uvd_count_handles()
853 ++(*hd); in radeon_uvd_count_handles()
867 &rdev->pm.dpm.hd); in radeon_uvd_idle_work_handler()
886 unsigned hd = 0, sd = 0; in radeon_uvd_note_usage() local
887 radeon_uvd_count_handles(rdev, &sd, &hd); in radeon_uvd_note_usage()
889 (rdev->pm.dpm.hd != hd)) { in radeon_uvd_note_usage()
891 rdev->pm.dpm.hd = hd; in radeon_uvd_note_usage()
/openbsd/src/usr.bin/cvs/
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/src/gnu/usr.bin/cvs/windows-NT/
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/src/usr.sbin/unbound/testcode/
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/src/gnu/usr.sbin/mkhybrid/src/
Dmagic20 >6 leshort >0 %hd x
21 >8 leshort >0 %hd,
/openbsd/src/games/hack/
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/src/regress/lib/libcrypto/x509/bettertls/certificates/
D1999.crt18 hd/srtZ594iPmtAzp+Qsj99fWUcgVBD7SeMJtITvkNh19+EYkcg0JS9Vb5uI0bfm

123