| /netbsd-src/sys/dev/hpc/ |
| H A D | hpckbd.c | 200 hpckbd_initcore(struct hpckbd_core *hc, struct hpckbd_ic_if *ic, int console) in hpckbd_initcore() argument 202 hc->hc_polling = 0; in hpckbd_initcore() 203 hc->hc_console = console; in hpckbd_initcore() 204 hc->hc_ic = ic; in hpckbd_initcore() 207 hc->hc_head = hc->hc_tail = hc->hc_eventq; in hpckbd_initcore() 208 hc->hc_nevents = 0; in hpckbd_initcore() 210 hpckbd_keymap_lookup(hc); in hpckbd_initcore() 214 hpckbd_initif(struct hpckbd_core *hc) in hpckbd_initif() argument 216 struct hpckbd_if *kbdif = &hc->hc_if; in hpckbd_initif() 218 kbdif->hi_ctx = hc; in hpckbd_initif() [all …]
|
| H A D | hpciovar.h | 62 #define hpcio_portread(hc, port) \ argument 63 ((*(hc)->hc_portread)((hc), (port))) 64 #define hpcio_portwrite(hc, port, data) \ argument 65 ((*(hc)->hc_portwrite)((hc), (port), (data))) 66 #define hpcio_intr_establish(hc, port, mode, func, arg) \ argument 67 ((*(hc)->hc_intr_establish)((hc),(port),(mode),(func),(arg))) 68 #define hpcio_intr_disestablish(hc, handle) \ argument 69 ((*(hc)->hc_intr_disestablish)((hc), (handle))) 70 #define hpcio_intr_clear(hc, handle) \ argument 71 ((*(hc)->hc_intr_clear)((hc), (handle))) [all …]
|
| /netbsd-src/sys/arch/hpcmips/dev/ |
| H A D | ucbio.c | 99 struct hpcio_chip *hc = &sc->sc_hc; in ucbio_attach() local 105 hc->hc_sc = sc; in ucbio_attach() 106 hc->hc_chipid = 2; in ucbio_attach() 107 hc->hc_name = "UCB1200"; in ucbio_attach() 108 hc->hc_portread = betty_in; in ucbio_attach() 109 hc->hc_portwrite = betty_out; in ucbio_attach() 110 hc->hc_intr_establish = betty_intr_establish; in ucbio_attach() 111 hc->hc_intr_disestablish = betty_intr_disestablish; in ucbio_attach() 112 hc->hc_update = betty_update; in ucbio_attach() 113 hc->hc_dump = betty_dump; in ucbio_attach() [all …]
|
| H A D | optpoint.c | 202 struct hpcio_chip *hc = sc->sc_hc; in optpoint_enable() local 218 (*hc->hc_portwrite)(hc, TELIOS_MFIO_OPTP_C_REQ, 1); in optpoint_enable() 219 (*hc->hc_portwrite)(hc, TELIOS_MFIO_OPTP_T_RDY, 1); in optpoint_enable() 233 struct hpcio_chip *hc = sc->sc_hc; in optpoint_disable() local 239 (*hc->hc_portwrite)(hc, TELIOS_MFIO_OPTP_C_REQ, 0); in optpoint_disable() 240 (*hc->hc_portwrite)(hc, TELIOS_MFIO_OPTP_T_RDY, 0); in optpoint_disable() 266 struct hpcio_chip *hc = sc->sc_hc; in optpoint_initialize() local 271 (*hc->hc_portwrite)(hc, TELIOS_MFIO_OPTP_C_REQ, 1); in optpoint_initialize() 272 (*hc->hc_portwrite)(hc, TELIOS_MFIO_OPTP_T_RDY, 1); in optpoint_initialize() 281 (*hc->hc_portwrite)(hc, TELIOS_MFIO_OPTP_C_REQ, 0); in optpoint_initialize() [all …]
|
| /netbsd-src/external/gpl2/groff/dist/src/libs/libgroff/ |
| H A D | symbol.cpp | 58 unsigned int hc = 0, g; in hash_string() local 60 hc = *p++; in hash_string() 62 hc <<= 7; in hash_string() 63 hc += *p++; in hash_string() 65 hc <<= 4; in hash_string() 66 hc += *p; in hash_string() 67 if ((g = (hc & 0xf0000000)) == 0) { in hash_string() 68 hc ^= g >> 24; in hash_string() 69 hc ^= g; in hash_string() 74 return hc; in hash_string() [all …]
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | umac.c | 558 static void nh_transform(nh_ctx *hc, const UINT8 *buf, UINT32 nbytes) in nh_transform() argument 567 key = hc->nh_key + hc->bytes_hashed; in nh_transform() 568 nh_aux(key, buf, hc->state, nbytes); in nh_transform() 603 static void nh_reset(nh_ctx *hc) in nh_reset() argument 606 hc->bytes_hashed = 0; in nh_reset() 607 hc->next_data_empty = 0; in nh_reset() 608 hc->state[0] = 0; in nh_reset() 610 hc->state[1] = 0; in nh_reset() 613 hc->state[2] = 0; in nh_reset() 616 hc->state[3] = 0; in nh_reset() [all …]
|
| /netbsd-src/sys/dev/pci/ |
| H A D | mvsata_pci.c | 70 #define MVSATA_PCI_MAINIRQ_SATAERR(hc, port) \ argument 71 (1 << (((port) << 1) + (hc) * 9)) 72 #define MVSATA_PCI_MAINIRQ_SATADONE(hc, port) \ argument 73 (1 << (((port) << 1) + (hc) * 9 + 1)) 74 #define MVSATA_PCI_MAINIRQ_SATACOALDONE(hc) (1 << ((hc) * 9 + 8)) argument 157 int read_pre_amps, hc, port, rv, i; in mvsata_pci_attach() local 229 for (hc = 0; hc < sc->sc_hc; hc++) in mvsata_pci_attach() 232 MVSATA_PCI_MAINIRQ_SATAERR(hc, port) | in mvsata_pci_attach() 233 MVSATA_PCI_MAINIRQ_SATADONE(hc, port); in mvsata_pci_attach() 259 int hc, port, handled = 0; in mvsata_pci_intr() local [all …]
|
| /netbsd-src/external/gpl2/lvm2/dist/libdm/datastruct/ |
| H A D | hash.c | 95 struct dm_hash_table *hc = dm_malloc(sizeof(*hc)); in dm_hash_create() local 97 if (!hc) { in dm_hash_create() 102 memset(hc, 0, sizeof(*hc)); in dm_hash_create() 108 hc->num_slots = new_size; in dm_hash_create() 109 len = sizeof(*(hc->slots)) * new_size; in dm_hash_create() 110 if (!(hc->slots = dm_malloc(len))) { in dm_hash_create() 114 memset(hc->slots, 0, len); in dm_hash_create() 115 return hc; in dm_hash_create() 118 dm_free(hc->slots); in dm_hash_create() 119 dm_free(hc); in dm_hash_create()
|
| /netbsd-src/sys/arch/hpcmips/vr/ |
| H A D | vr4181giu.c | 184 vr4181giu_port_read(hpcio_chip_t hc, int port) in vr4181giu_port_read() argument 186 struct vr4181giu_softc *sc = hc->hc_sc; in vr4181giu_port_read() 205 vr4181giu_port_write(hpcio_chip_t hc, int port, int onoff) in vr4181giu_port_write() argument 207 struct vr4181giu_softc *sc = hc->hc_sc; in vr4181giu_port_write() 237 vr4181giu_update(hpcio_chip_t hc) in vr4181giu_update() argument 242 vr4181giu_dump(hpcio_chip_t hc) in vr4181giu_dump() argument 256 hpcio_chip_t hc, in vr4181giu_intr_establish() argument 262 struct vr4181giu_softc *sc = hc->hc_sc; in vr4181giu_intr_establish() 381 vr4181giu_intr_disestablish(hpcio_chip_t hc, void *arg) in vr4181giu_intr_disestablish() argument 386 vr4181giu_intr_clear(hpcio_chip_t hc, void *arg) in vr4181giu_intr_clear() argument [all …]
|
| H A D | vrc4172gpio.c | 355 vrc4172gpio_port_read(hpcio_chip_t hc, int port) in vrc4172gpio_port_read() argument 357 struct vrc4172gpio_softc *sc = hc->hc_sc; in vrc4172gpio_port_read() 369 vrc4172gpio_port_write(hpcio_chip_t hc, int port, int onoff) in vrc4172gpio_port_write() argument 371 struct vrc4172gpio_softc *sc = hc->hc_sc; in vrc4172gpio_port_write() 385 vrc4172gpio_update(hpcio_chip_t hc) in vrc4172gpio_update() argument 459 vrc4172gpio_dump(hpcio_chip_t hc) in vrc4172gpio_dump() argument 476 hpcio_chip_t hc, in vrc4172gpio_intr_establish() argument 482 struct vrc4172gpio_softc *sc = hc->hc_sc; in vrc4172gpio_intr_establish() 580 vrc4172gpio_intr_disestablish(hpcio_chip_t hc, void *arg) in vrc4172gpio_intr_disestablish() argument 583 struct vrc4172gpio_softc *sc = hc->hc_sc; in vrc4172gpio_intr_disestablish() [all …]
|
| H A D | vrgiu.c | 455 vrgiu_port_read(hpcio_chip_t hc, int port) in vrgiu_port_read() argument 457 struct vrgiu_softc *sc = hc->hc_sc; in vrgiu_port_read() 472 vrgiu_port_write(hpcio_chip_t hc, int port, int onoff) in vrgiu_port_write() argument 474 struct vrgiu_softc *sc = hc->hc_sc; in vrgiu_port_write() 496 vrgiu_update(hpcio_chip_t hc) in vrgiu_update() argument 501 vrgiu_dump(hpcio_chip_t hc) in vrgiu_dump() argument 518 hpcio_chip_t hc, in vrgiu_intr_establish() argument 524 struct vrgiu_softc *sc = hc->hc_sc; in vrgiu_intr_establish() 618 vrgiu_intr_disestablish(hpcio_chip_t hc, void *arg) in vrgiu_intr_disestablish() argument 621 struct vrgiu_softc *sc = hc->hc_sc; in vrgiu_intr_disestablish() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/src/ |
| H A D | debug.cpp | 155 size_t hc = hash<const void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); in __insert_ic() local 156 __c_node* c = __cbeg_[hc]; in __insert_ic() 199 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); in __insert_c() local 200 __c_node* p = __cbeg_[hc]; in __insert_c() 204 __cbeg_[hc] = __fn(buf, __c, p); in __insert_c() 250 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); in __invalidate_all() local 251 __c_node* p = __cbeg_[hc]; in __invalidate_all() 281 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); in __find_c_and_lock() local 282 __c_node* p = __cbeg_[hc]; in __find_c_and_lock() 307 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); in __find_c() local [all …]
|
| /netbsd-src/sys/arch/hpcmips/tx/ |
| H A D | txioman.c | 88 tx_conf_register_ioman(tx_chipset_tag_t t, struct hpcio_chip *hc) in tx_conf_register_ioman() argument 91 KASSERT(hc); in tx_conf_register_ioman() 93 t->tc_iochip[hc->hc_chipid] = hc; in tx_conf_register_ioman()
|
| /netbsd-src/usr.sbin/bta2dpd/bta2dpd/ |
| H A D | bta2dpd.c | 214 static int hc; /* avdtp control/command channel */ variable 272 sc = hc = -1; in main() 674 sc = hc = -1; in do_ctlreq() 742 avdtpSendCommand(hc, AVDTP_DISCOVER, 0, in do_ctlreq() 965 if ((hc = accept(orighc,(struct sockaddr*)&addr, &len)) < 0) in init_server() 969 avdtpSendCommand(hc, AVDTP_DISCOVER, 0, NULL, 0); in init_server() 971 event_set(&ctl_ev, hc, EV_READ | EV_PERSIST, do_ctlreq, NULL); in init_server() 1061 hc = orighc; in init_client() 1062 avdtpSendCommand(hc, AVDTP_DISCOVER, 0, NULL, 0); in init_client() 1064 event_set(&ctl_ev, hc, EV_READ | EV_PERSIST, do_ctlreq, NULL); in init_client() [all …]
|
| /netbsd-src/sys/dev/ic/ |
| H A D | mvsata.c | 77 #define MVSATA_HC_READ_4(hc, reg) \ argument 78 bus_space_read_4((hc)->hc_iot, (hc)->hc_ioh, (reg)) 79 #define MVSATA_HC_WRITE_4(hc, reg, val) \ argument 80 bus_space_write_4((hc)->hc_iot, (hc)->hc_ioh, (reg), (val)) 280 int hc, port, channel; in mvsata_attach() local 285 product->hc, product->port); in mvsata_attach() 318 sc->sc_hc = product->hc; in mvsata_attach() 350 malloc(sizeof(struct wdc_regs) * product->hc * product->port, in mvsata_attach() 354 for (hc = 0; hc < sc->sc_hc; hc++) { in mvsata_attach() 355 mvhc = &sc->sc_hcs[hc]; in mvsata_attach() [all …]
|
| H A D | mvsatavar.h | 34 int hc; member 100 int hc; member
|
| H A D | mvsatareg.h | 35 #define SATAHC(hc) ((hc) * SATAHC_REGISTER_SIZE) argument
|
| /netbsd-src/sys/arch/x86/x86/ |
| H A D | hyperv.c | 620 uint64_t hc; in hyperv_detach() local 623 hc = rdmsr(MSR_HV_HYPERCALL); in hyperv_detach() 624 wrmsr(MSR_HV_HYPERCALL, hc & MSR_HV_HYPERCALL_RSVD_MASK); in hyperv_detach() 693 uint64_t hc, hc_orig; in hyperv_init_hypercall() local 707 hc = (atop(hyperv_hypercall_ctx.hc_paddr) << MSR_HV_HYPERCALL_PGSHIFT) | in hyperv_init_hypercall() 710 wrmsr(MSR_HV_HYPERCALL, hc); in hyperv_init_hypercall() 715 hc = rdmsr(MSR_HV_HYPERCALL); in hyperv_init_hypercall() 716 if (!(hc & MSR_HV_HYPERCALL_ENABLE)) { in hyperv_init_hypercall()
|
| /netbsd-src/sys/arch/xen/xen/ |
| H A D | privcmd.c | 814 privcmd_hypercall_t *hc = ap->a_data; in privcmd_ioctl() local 815 if (hc->op >= (PAGE_SIZE >> 5)) in privcmd_ioctl() 849 : "0" ((unsigned int)hc->op), in privcmd_ioctl() 850 "1" (hc->arg[0]), in privcmd_ioctl() 851 "2" (hc->arg[1]), in privcmd_ioctl() 852 "3" (hc->arg[2]), in privcmd_ioctl() 853 "g" (hc->arg[3]), in privcmd_ioctl() 854 "g" (hc->arg[4]) in privcmd_ioctl() 863 hc->retval = error; in privcmd_ioctl() 868 hc->retval = 0; in privcmd_ioctl()
|
| /netbsd-src/usr.sbin/iopctl/ |
| H A D | iopctl.c | 425 int hc, lc, i, nit; in i2ostrvis() local 429 hc = 0; in i2ostrvis() 443 if (hc) in i2ostrvis() 446 hc = 1; in i2ostrvis()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gas/config/ |
| H A D | tc-msp430.c | 4275 struct hcodes_s hc = msp430_hcodes[opcode->insn_opnumb]; in msp430_operands() local 4278 hc = msp430x_hcodes[opcode->insn_opnumb]; in msp430_operands() 4283 bfd_putl16 ((bfd_vma) hc.op0, frag); in msp430_operands() 4284 bfd_putl16 ((bfd_vma) hc.op1, frag+2); in msp430_operands() 4823 struct hcodes_s * hc = NULL; in md_convert_frag() local 4901 for (i = 0; i < 4 && !hc; i++) in md_convert_frag() 4903 hc = msp430x_hcodes + i; in md_convert_frag() 4907 for (i = 0; i < 4 && !hc; i++) in md_convert_frag() 4909 hc = &msp430_hcodes[i]; in md_convert_frag() 4911 if (!hc || !hc->name) in md_convert_frag() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gas/config/ |
| H A D | tc-msp430.c | 4277 struct hcodes_s hc = msp430_hcodes[opcode->insn_opnumb]; in msp430_operands() local 4280 hc = msp430x_hcodes[opcode->insn_opnumb]; in msp430_operands() 4285 bfd_putl16 ((bfd_vma) hc.op0, frag); in msp430_operands() 4286 bfd_putl16 ((bfd_vma) hc.op1, frag+2); in msp430_operands() 4825 struct hcodes_s * hc = NULL; in md_convert_frag() local 4903 for (i = 0; i < 4 && !hc; i++) in md_convert_frag() 4905 hc = msp430x_hcodes + i; in md_convert_frag() 4909 for (i = 0; i < 4 && !hc; i++) in md_convert_frag() 4911 hc = &msp430_hcodes[i]; in md_convert_frag() 4913 if (!hc || !hc->name) in md_convert_frag() [all …]
|
| /netbsd-src/sys/external/bsd/dwc2/dist/ |
| H A D | dwc2_hcd.h | 517 static inline bool dbg_hc(struct dwc2_host_chan *hc) { return true; } in dbg_hc() argument 521 static inline bool dbg_hc(struct dwc2_host_chan *hc) in dbg_hc() argument 523 return hc->ep_type == USB_ENDPOINT_XFER_BULK || in dbg_hc() 524 hc->ep_type == USB_ENDPOINT_XFER_CONTROL; in dbg_hc()
|
| /netbsd-src/sys/dev/marvell/ |
| H A D | mvsdio.c | 528 uint32_t tm, c, hc, aacc, nisie, wait; in mvsdio_exec_command() local 590 hc = bus_space_read_4(sc->sc_iot, sc->sc_ioh, MVSDIO_HC); in mvsdio_exec_command() 591 hc |= (HC_TIMEOUTVALUE_MAX | HC_TIMEOUTEN); in mvsdio_exec_command() 592 bus_space_write_4(sc->sc_iot, sc->sc_ioh, MVSDIO_HC, hc); in mvsdio_exec_command() 648 DPRINTF(2, ("%s: TM=0x%x, C=0x%x, HC=0x%x\n", __func__, tm, c, hc)); in mvsdio_exec_command()
|
| /netbsd-src/external/bsd/am-utils/dist/m4/ |
| H A D | amdgrep | 4 conf/*/*.[hc] \
|