Home
last modified time | relevance | path

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

12345

/netbsd-src/sys/arch/hp300/stand/common/
H A Dnhpib.c52 struct nhpibdevice *hd = (void *)hs->sc_addr; in nhpibinit() local
54 if ((int)hd == internalhpib) { in nhpibinit()
58 else if (hd->hpib_cid == HPIBB) { in nhpibinit()
60 hs->sc_ba = hd->hpib_csa & CSA_BA; in nhpibinit()
72 struct nhpibdevice *hd; in nhpibreset() local
74 hd = (void *)hs->sc_addr; in nhpibreset()
75 hd->hpib_acr = AUX_SSWRST; in nhpibreset()
76 hd->hpib_ar = hs->sc_ba; in nhpibreset()
77 hd->hpib_lim = 0; in nhpibreset()
78 hd->hpib_mim = 0; in nhpibreset()
[all …]
H A Dfhpib.c51 struct fhpibdevice *hd = (void *)hs->sc_addr; in fhpibinit() local
53 if (hd->hpib_cid != HPIBC) in fhpibinit()
65 struct fhpibdevice *hd; in fhpibreset() local
67 hd = (void *)hs->sc_addr; in fhpibreset()
68 hd->hpib_cid = 0xFF; in fhpibreset()
70 hd->hpib_cmd = CT_8BIT; in fhpibreset()
71 hd->hpib_ar = AR_ARONC; in fhpibreset()
72 hd->hpib_cmd |= CT_IFC; in fhpibreset()
73 hd->hpib_cmd |= CT_INITFIFO; in fhpibreset()
75 hd->hpib_cmd &= ~CT_IFC; in fhpibreset()
[all …]
H A Dscsi.c65 static int wait_for_select(volatile struct scsidevice *hd);
68 static int ixfer_in(volatile struct scsidevice *hd, int, uint8_t *);
121 volatile struct scsidevice *hd; in scsireset() local
126 hd = (void *)hs->sc_addr; in scsireset()
127 hd->scsi_id = 0xFF; in scsireset()
132 hd->scsi_csr = 0; in scsireset()
133 hd->scsi_sctl = SCTL_DISABLE | SCTL_CTRLRST; in scsireset()
134 hd->scsi_scmd = 0; in scsireset()
135 hd->scsi_tmod = 0; in scsireset()
136 hd->scsi_pctl = 0; in scsireset()
[all …]
/netbsd-src/bin/pax/
H A Dcpio.c286 HD_CPIO *hd; in cpio_rd() local
293 hd = (HD_CPIO *)buf; in cpio_rd()
300 arcn->sb.st_dev = (dev_t)asc_u32(hd->c_dev, sizeof(hd->c_dev), OCT); in cpio_rd()
301 arcn->sb.st_ino = (ino_t)asc_u32(hd->c_ino, sizeof(hd->c_ino), OCT); in cpio_rd()
302 arcn->sb.st_mode = (mode_t)asc_u32(hd->c_mode, sizeof(hd->c_mode), OCT); in cpio_rd()
303 arcn->sb.st_uid = (uid_t)asc_u32(hd->c_uid, sizeof(hd->c_uid), OCT); in cpio_rd()
304 arcn->sb.st_gid = (gid_t)asc_u32(hd->c_gid, sizeof(hd->c_gid), OCT); in cpio_rd()
305 arcn->sb.st_nlink = (nlink_t)asc_u32(hd->c_nlink, sizeof(hd->c_nlink), in cpio_rd()
307 arcn->sb.st_rdev = (dev_t)asc_u32(hd->c_rdev, sizeof(hd->c_rdev), OCT); in cpio_rd()
308 arcn->sb.st_mtime = (time_t)(int32_t)asc_u32(hd->c_mtime, sizeof(hd->c_mtime), in cpio_rd()
[all …]
/netbsd-src/sys/arch/hp300/dev/
H A Dfhpib.c92 #define FHPIBWAIT(hd, m) while (((hd)->hpib_intr & (m)) == 0) DELAY(1) argument
196 struct fhpibdevice *hd = sc->sc_regs; in fhpibreset() local
198 hd->hpib_cid = 0xFF; in fhpibreset()
200 hd->hpib_cmd = CT_8BIT; in fhpibreset()
201 hd->hpib_ar = AR_ARONC; in fhpibreset()
202 fhpibifc(hd); in fhpibreset()
203 hd->hpib_ie = IDS_IE; in fhpibreset()
204 hd->hpib_data = C_DCL; in fhpibreset()
210 hd->hpib_ie |= IDS_WDMA; in fhpibreset()
211 if (hd->hpib_ie & IDS_WDMA) { in fhpibreset()
[all …]
H A Dnhpib.c262 struct nhpibdevice *hd = sc->sc_regs; in nhpibreset() local
264 hd->hpib_acr = AUX_SSWRST; in nhpibreset()
265 hd->hpib_ar = hs->sc_ba; in nhpibreset()
266 hd->hpib_lim = LIS_ERR; in nhpibreset()
267 hd->hpib_mim = 0; in nhpibreset()
268 hd->hpib_acr = AUX_CDAI; in nhpibreset()
269 hd->hpib_acr = AUX_CSHDW; in nhpibreset()
270 hd->hpib_acr = AUX_SSTD1; in nhpibreset()
271 hd->hpib_acr = AUX_SVSTD1; in nhpibreset()
272 hd->hpib_acr = AUX_CPP; in nhpibreset()
[all …]
/netbsd-src/sys/arch/luna68k/stand/boot/
H A Dsc.c141 struct scsidevice *hd = hs->sc_spc; in screset() local
149 hd->scsi_sctl = SCTL_DISABLE | SCTL_CTRLRST; in screset()
150 hd->scsi_scmd = 0; in screset()
151 hd->scsi_pctl = 0; in screset()
152 hd->scsi_temp = 0; in screset()
153 hd->scsi_tch = 0; in screset()
154 hd->scsi_tcm = 0; in screset()
155 hd->scsi_tcl = 0; in screset()
156 hd->scsi_ints = 0; in screset()
165 hd in screset()
278 issue_select(struct scsidevice * hd,uint8_t target) issue_select() argument
307 ixfer_start(struct scsidevice * hd,int len,uint8_t phase,int wait) ixfer_start() argument
318 ixfer_out(struct scsidevice * hd,int len,uint8_t * buf) ixfer_out() argument
330 ixfer_in(struct scsidevice * hd,int len,uint8_t * buf) ixfer_in() argument
351 struct scsidevice *hd; scrun() local
408 struct scsidevice *hd = hs->sc_spc; scabort() local
641 struct scsidevice *hd; scintr() local
[all...]
/netbsd-src/sys/kern/
H A Dkern_hook.c96 struct hook_desc *hd; in hook_establish() local
100 hd = malloc(sizeof(*hd), M_DEVBUF, M_NOWAIT); in hook_establish()
101 if (hd != NULL) { in hook_establish()
104 hd->hk_fn = fn; in hook_establish()
105 hd->hk_arg = arg; in hook_establish()
106 LIST_INSERT_HEAD(list, hd, hk_list); in hook_establish()
111 return (hd); in hook_establish()
121 struct hook_desc *hd; in hook_disestablish() local
123 LIST_FOREACH(hd, list, hk_list) { in hook_disestablish()
124 if (hd == vhook) in hook_disestablish()
[all …]
/netbsd-src/external/cddl/osnet/dist/tools/ctf/cvt/
H A Dhash.c160 struct hash_data *hd = arg; in hash_find_list_cb() local
164 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_list_cb()
165 if ((cbrc = hd->hd_fun(node, hd->hd_private)) < 0) in hash_find_list_cb()
178 struct hash_data hd; in hash_find_iter() local
180 hd.hd_hash = hash; in hash_find_iter()
181 hd.hd_fun = fun; in hash_find_iter()
182 hd.hd_key = key; in hash_find_iter()
183 hd.hd_private = private; in hash_find_iter()
186 &hd)); in hash_find_iter()
193 struct hash_data *hd = arg; in hash_find_first_cb() local
[all …]
/netbsd-src/external/mpl/dhcp/dist/server/
H A Dmdb.c225 isc_result_t enter_host (hd, dynamicp, commit) in enter_host() argument
226 struct host_decl *hd; in enter_host()
239 (unsigned char *)hd -> name,
240 strlen (hd -> name), hd, MDL);
243 (unsigned char *)hd -> name,
244 strlen (hd -> name), MDL);
249 (unsigned char *)hd -> name,
250 strlen (hd -> name), MDL);
254 hd -> flags |= HOST_DECL_STATIC;
261 if (hp && hp == hd) {
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Dsrconv.c316 struct IT_hd hd; in wr_hd() local
318 hd.spare1 = 0; in wr_hd()
319 hd.spare2 = 0; in wr_hd()
321 hd.mt = MTYPE_ABS_LM; in wr_hd()
323 hd.mt = MTYPE_OMS_OR_LMS; in wr_hd()
325 hd.cd = DATE; in wr_hd()
327 hd.nu = p->nsources; /* Always one unit */ in wr_hd()
328 hd.code = 0; /* Always ASCII */ in wr_hd()
329 hd.ver = "0200"; /* Version 2.00 */ in wr_hd()
334 hd.au = 8; in wr_hd()
[all …]
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Dsrconv.c316 struct IT_hd hd; in wr_hd() local
318 hd.spare1 = 0; in wr_hd()
319 hd.spare2 = 0; in wr_hd()
321 hd.mt = MTYPE_ABS_LM; in wr_hd()
323 hd.mt = MTYPE_OMS_OR_LMS; in wr_hd()
325 hd.cd = DATE; in wr_hd()
327 hd.nu = p->nsources; /* Always one unit */ in wr_hd()
328 hd.code = 0; /* Always ASCII */ in wr_hd()
329 hd.ver = "0200"; /* Version 2.00 */ in wr_hd()
334 hd.au = 8; in wr_hd()
[all …]
/netbsd-src/sys/arch/cobalt/dev/
H A Dlcdpanel.c220 lcdpanel_cbt_hdwritereg(struct hd44780_chip *hd, uint32_t en, uint32_t rs, in lcdpanel_cbt_hdwritereg() argument
225 bus_space_write_4(hd->sc_iot, hd->sc_iodr, 0x00, dat << 24); in lcdpanel_cbt_hdwritereg()
227 bus_space_write_4(hd->sc_iot, hd->sc_ioir, 0x00, dat << 24); in lcdpanel_cbt_hdwritereg()
232 lcdpanel_cbt_hdreadreg(struct hd44780_chip *hd, uint32_t en, uint32_t rs) in lcdpanel_cbt_hdreadreg() argument
237 return (bus_space_read_4(hd->sc_iot, hd->sc_iodr, 0x00) >> 24) in lcdpanel_cbt_hdreadreg()
240 return (bus_space_read_4(hd->sc_iot, hd->sc_ioir, 0x00) >> 24) in lcdpanel_cbt_hdreadreg()
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_modes.h137 #define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \ argument
139 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \
154 #define DRM_SIMPLE_MODE(hd, vd, hd_mm, vd_mm) \ argument
156 .hdisplay = (hd), .hsync_start = (hd), .hsync_end = (hd), \
157 .htotal = (hd), .vdisplay = (vd), .vsync_start = (vd), \
/netbsd-src/sys/arch/sgimips/hpc/
H A Dhpc.c399 const struct hpc_device *hd; in hpc_attach() local
515 hd = (hpctype == 3) ? hpc3_devices : hpc1_devices; in hpc_attach()
516 for (; hd->hd_name != NULL; hd++) { in hpc_attach()
517 if (!(hd->hd_sysmask & sysmask) || hd->hd_base != sc->sc_base) in hpc_attach()
520 ha.ha_name = hd->hd_name; in hpc_attach()
521 ha.ha_devoff = hd->hd_devoff; in hpc_attach()
522 ha.ha_dmaoff = hd->hd_dmaoff; in hpc_attach()
523 ha.ha_irq = hd->hd_irq; in hpc_attach()
/netbsd-src/sys/arch/evbarm/tsarm/
H A Dtslcd.c172 tslcd_writereg(struct hd44780_chip *hd, uint32_t en, uint32_t rs, uint8_t cmd) in tslcd_writereg() argument
174 struct tslcd_softc *sc = device_private(hd->sc_dev); in tslcd_writereg()
177 if (hd->sc_dev_ok == 0) in tslcd_writereg()
218 tslcd_readreg(struct hd44780_chip *hd, uint32_t en, uint32_t rs) in tslcd_readreg() argument
220 struct tslcd_softc *sc = device_private(hd->sc_dev); in tslcd_readreg()
223 if (hd->sc_dev_ok == 0) in tslcd_readreg()
/netbsd-src/sys/dev/usb/
H A Duhub.c207 usbd_get_hub_desc(struct usbd_device *dev, usb_hub_descriptor_t *hd, int speed) in usbd_get_hub_desc() argument
232 nports = hd->bNbrPorts = UHD_SS_NPORTS_MAX; in usbd_get_hub_desc()
235 hd->bDescLength = USB_HUB_DESCRIPTOR_SIZE + in usbd_get_hub_desc()
237 memcpy(hd->DeviceRemovable, hssd.DeviceRemovable, rmvlen); in usbd_get_hub_desc()
238 hd->bDescriptorType = hssd.bDescriptorType; in usbd_get_hub_desc()
239 hd->bNbrPorts = hssd.bNbrPorts; in usbd_get_hub_desc()
240 hd->wHubCharacteristics[0] = hssd.wHubCharacteristics[0]; in usbd_get_hub_desc()
241 hd->wHubCharacteristics[1] = hssd.wHubCharacteristics[1]; in usbd_get_hub_desc()
242 hd->bPwrOn2PwrGood = hssd.bPwrOn2PwrGood; in usbd_get_hub_desc()
243 hd->bHubContrCurrent = hssd.bHubContrCurrent; in usbd_get_hub_desc()
[all …]
H A Dusbdi_util.c591 usb_hid_descriptor_t *hd; in usbd_get_hid_descriptor() local
602 for (; end - p >= sizeof(*hd); p += hd->bLength) { in usbd_get_hid_descriptor()
603 hd = (usb_hid_descriptor_t *)p; in usbd_get_hid_descriptor()
604 if (hd->bLength < sizeof(*hd) || hd->bLength > end - p) in usbd_get_hid_descriptor()
606 if (hd->bLength >= USB_HID_DESCRIPTOR_SIZE(0) && in usbd_get_hid_descriptor()
607 hd->bDescriptorType == UDESC_HID) in usbd_get_hid_descriptor()
608 return hd; in usbd_get_hid_descriptor()
609 if (hd->bDescriptorType == UDESC_INTERFACE) in usbd_get_hid_descriptor()
/netbsd-src/sys/dev/hil/
H A Dhil.c515 const struct hildevice *hd; in hilconfig() local
533 for (hd = hildevs; hd->minid >= 0; hd++) in hilconfig()
534 if (sc->sc_cmdbuf[0] >= hd->minid && in hilconfig()
535 sc->sc_cmdbuf[0] <= hd->maxid) { in hilconfig()
539 ha.ha_type = hd->type; in hilconfig()
540 ha.ha_descr = hd->descr; in hilconfig()
/netbsd-src/sys/dev/hid/
H A Dhid.c507 struct hid_data *hd; in hid_is_collection() local
511 hd = hid_start_parse(desc, size, hid_input); in hid_is_collection()
512 if (hd == NULL) in hid_is_collection()
516 while (hid_get_item(hd, &hi)) { in hid_is_collection()
532 hid_end_parse(hd); in hid_is_collection()
540 hid_end_parse(hd); in hid_is_collection()
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/arm/
H A DChangeLog-202188 * thumb/adc.cgs, thumb/add-hd-hs.cgs,
89 thumb/add-hd-rs.cgs, thumb/add-rd-hs.cgs,
103 thumb/cmp-hd-hs.cgs, thumb/cmp-hd-rs.cgs,
113 thumb/mov-hd-hs.cgs, thumb/mov-hd-rs.cgs,
/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_uvd.c859 unsigned *sd, unsigned *hd) in radeon_uvd_count_handles() argument
864 *hd = 0; in radeon_uvd_count_handles()
871 ++(*hd); in radeon_uvd_count_handles()
885 &rdev->pm.dpm.hd); in radeon_uvd_idle_work_handler()
904 unsigned hd = 0, sd = 0; in radeon_uvd_note_usage() local
905 radeon_uvd_count_handles(rdev, &sd, &hd); in radeon_uvd_note_usage()
907 (rdev->pm.dpm.hd != hd)) { in radeon_uvd_note_usage()
909 rdev->pm.dpm.hd = hd; in radeon_uvd_note_usage()
/netbsd-src/external/bsd/unbound/dist/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()
/netbsd-src/etc/
H A Dbootptab21 # hd Bootfile home directory
55 # :hd=/home/nfsclient:bf=null:\
81 #timesink:hd=/home/nfsclient/timesink:\
/netbsd-src/sys/dev/ic/
H A Dhpet.c208 uint32_t hd0, hd; in hpet_tsc_freq() local
240 hd = bus_space_read_4(sc->sc_memt, sc->sc_memh, HPET_MCOUNT_LO); in hpet_tsc_freq()
244 val = (uint64_t)(hd - hd0) * sc->sc_period / 100000000; in hpet_tsc_freq()

12345