/openbsd/sys/dev/ic/ |
H A D | wdc.c | 641 chp->wdc ? chp->wdc->sc_dev.dv_xname : "wdcprobe", chp->channel, in wdcprobe() 764 chp->ch_drive[i].chnl_softc = chp; in wdcattach() 769 chp->wdc->drv_probe(chp); in wdcattach() 887 chp = xfer->chp; in wdcstart() 956 (*chp->wdc->dma_finish)(chp->wdc->dma_arg, chp->channel, in wdcintr() 998 chp->wdc->reset(chp); in wdcreset() 1076 chp->wdc ? chp->wdc->sc_dev.dv_xname : "wdcprobe", chp->channel, in __wdcwait_reset() 1168 chp->wdc->dma_status = (*chp->wdc->dma_finish)(chp->wdc->dma_arg, in wdc_dmawait() 1758 chp->wdc->irqack(chp); in __wdccommand_intr() 1910 xfer->chp = chp; in wdc_exec_xfer() [all …]
|
H A D | wdcevent.h | 52 if (chp->ch_prev_log_status == status) in WDC_LOG_STATUS() 55 chp->ch_prev_log_status = status; in WDC_LOG_STATUS() 56 wdc_log(chp, WDCEVENT_STATUS, 1, &status); in WDC_LOG_STATUS() 61 wdc_log(chp, WDCEVENT_ERROR, 1, &error); in WDC_LOG_ERROR() 82 wdc_log(chp, WDCEVENT_ATA_SHORT, 1, &cmd); in WDC_LOG_ATA_CMDSHORT() 108 wdc_log(chp, WDCEVENT_REG, 3, record); in WDC_LOG_REG() 121 #define WDC_LOG_STATUS(chp, status) argument 122 #define WDC_LOG_ERROR(chp, error) argument 125 #define WDC_LOG_ATA_CMDSHORT(chp, cmd) argument 128 #define WDC_LOG_SET_DRIVE(chp, drive) argument [all …]
|
H A D | wdcvar.h | 136 #define CHP_READ_REG(chp, a) ((chp)->_vtbl->read_reg)(chp, a) argument 137 #define CHP_WRITE_REG(chp, a, b) ((chp)->_vtbl->write_reg)(chp, a, b) argument 139 ((chp)->_vtbl->lba48_write_reg)(chp, a, b) 142 ((chp)->_vtbl->read_raw_multi_2)(chp, a, b) 144 ((chp)->_vtbl->write_raw_multi_2)(chp, a, b) 146 ((chp)->_vtbl->read_raw_multi_4)(chp, a, b) 148 ((chp)->_vtbl->write_raw_multi_4)(chp, a, b) 230 struct channel_softc *chp; member 295 #define wait_for_drq(chp, timeout) wdcwait((chp), WDCS_DRQ, WDCS_DRQ, (timeout)) argument 296 #define wait_for_unbusy(chp, timeout) wdcwait((chp), 0, 0, (timeout)) argument [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/mi/ |
H A D | mi-parse.c | 43 chp++; in mi_parse_argv() 59 while (*chp != '\0' && *chp != '"') in mi_parse_argv() 72 chp++; in mi_parse_argv() 82 if (chp[1] != '\0' && !isspace (chp[1])) in mi_parse_argv() 92 while (*chp != '\0' && *chp != '"') in mi_parse_argv() 113 while (*chp != '\0' && !isspace (*chp)) in mi_parse_argv() 115 chp++; in mi_parse_argv() 161 for (chp = cmd; *chp >= '0' && *chp <= '9'; chp++) in mi_parse() 171 chp++; in mi_parse() 180 for (; *chp && !isspace (*chp); chp++) in mi_parse() [all …]
|
H A D | mi-cmds.c | 201 const char *chp; in lookup_table() local 204 for (chp = command; *chp; chp++) in lookup_table() 207 index = ((index << 6) + (unsigned int) *chp) % MI_TABLE_SIZE; in lookup_table()
|
/openbsd/sys/dev/ata/ |
H A D | ata_wdc.c | 122 struct channel_softc *chp = &my->chp; in wd_hibernate_io() local 153 chp->ch_drive[0].chnl_softc = chp; in wd_hibernate_io() 154 chp->ch_drive[1].chnl_softc = chp; in wd_hibernate_io() 344 (*chp->wdc->dma_start)(chp->wdc->dma_arg, in _wdc_ata_bio_start() 357 (*chp->wdc->dma_start)(chp->wdc->dma_arg, in _wdc_ata_bio_start() 489 chp->wdc->irqack(chp); in wdc_ata_bio_intr() 634 chp->wdc->irqack(chp); in wdc_ata_ctrl_intr() 659 chp->wdc->irqack(chp); in wdc_ata_ctrl_intr() 681 chp->wdc->irqack(chp); in wdc_ata_ctrl_intr() 701 chp->wdc->irqack(chp); in wdc_ata_ctrl_intr() [all …]
|
/openbsd/sys/dev/atapiscsi/ |
H A D | atapiscsi.c | 208 as->chp = chp; in atapiscsi_attach() 280 struct channel_softc *chp = as->chp; in atapiscsi_activate() local 312 struct channel_softc *chp = as->chp; in wdc_atapi_send_cmd() local 415 struct channel_softc *chp = as->chp; in wdc_atapi_ioctl() local 667 WDC_LOG_STATUS(chp, chp->ch_status); in wdc_atapi_update_status() 678 WDC_LOG_ERROR(chp, chp->ch_error); in wdc_atapi_update_status() 819 chp->wdc->irqack(chp); in wdc_atapi_intr_command() 1195 chp->wdc->irqack(chp); in wdc_atapi_pio_intr() 1406 chp->wdc->irqack(chp); in wdc_atapi_ctrl() 1410 chp->wdc->set_modes(chp); in wdc_atapi_ctrl() [all …]
|
/openbsd/sys/arch/landisk/dev/ |
H A D | wdc_obio.c | 114 chp->cmd_iot = chp->ctl_iot = oa->oa_iot; in wdc_obio_attach() 115 chp->_vtbl = &wdc_obio_vtbl; in wdc_obio_attach() 127 chp, self->dv_xname); in wdc_obio_attach() 131 sc->sc_chanptr = chp; in wdc_obio_attach() 134 chp->channel = 0; in wdc_obio_attach() 135 chp->wdc = &sc->sc_wdcdev; in wdc_obio_attach() 145 wdcattach(chp); in wdc_obio_attach() 153 return (bus_space_read_1(chp->ctl_iot, chp->ctl_ioh, in wdc_obio_read_reg() 156 return (bus_space_read_1(chp->cmd_iot, chp->cmd_ioh, in wdc_obio_read_reg() 164 bus_space_write_1(chp->ctl_iot, chp->ctl_ioh, in wdc_obio_write_reg() [all …]
|
/openbsd/sys/arch/macppc/dev/ |
H A D | wdc_obio.c | 166 chp->cmd_iot = chp->ctl_iot = ca->ca_iot; in wdc_obio_attach() 173 &chp->cmd_ioh) || bus_space_subregion(chp->cmd_iot, chp->cmd_ioh, in wdc_obio_attach() 179 chp->data32iot = chp->cmd_iot; in wdc_obio_attach() 180 chp->data32ioh = chp->cmd_ioh; in wdc_obio_attach() 227 wdcattach(chp); in wdc_obio_attach() 250 bus_space_unmap(chp->cmd_iot, chp->cmd_ioh, sc->sc_cmdsize); in wdc_obio_detach() 517 conf1 = bus_space_read_4(chp->cmd_iot, chp->cmd_ioh, in wdc_obio_ata6_adjust_timing() 600 return (bus_space_read_1(chp->ctl_iot, chp->ctl_ioh, in wdc_obio_read_reg() 603 return (bus_space_read_1(chp->cmd_iot, chp->cmd_ioh, in wdc_obio_read_reg() 618 bus_space_write_1(chp->ctl_iot, chp->ctl_ioh, in wdc_obio_write_reg() [all …]
|
/openbsd/sys/arch/sparc64/dev/ |
H A D | pcf8591_envctrl.c | 214 if (chp->chan_xlate) in ecadc_refresh() 216 chp->chan_xlate[data[1 + chp->chan_num]]; in ecadc_refresh() 218 chp->chan_sensor.value = 273150000 + in ecadc_refresh() 219 chp->chan_factor * data[1 + chp->chan_num]; in ecadc_refresh() 221 chp->chan_sensor.status = SENSOR_S_OK; in ecadc_refresh() 222 if (chp->chan_sensor.value < chp->chan_min) in ecadc_refresh() 223 chp->chan_sensor.status = SENSOR_S_UNKNOWN; in ecadc_refresh() 224 if (chp->chan_sensor.value > chp->chan_warn) in ecadc_refresh() 225 chp->chan_sensor.status = SENSOR_S_WARN; in ecadc_refresh() 226 if (chp->chan_sensor.value > chp->chan_crit) in ecadc_refresh() [all …]
|
H A D | pcf8591_ofw.c | 126 struct pcfadc_channel *chp = &sc->sc_channels[i]; in pcfadc_attach() local 128 chp->chan_sensor.type = SENSOR_TEMP; in pcfadc_attach() 134 strlcpy(chp->chan_sensor.desc, cp, in pcfadc_attach() 135 sizeof(chp->chan_sensor.desc)); in pcfadc_attach() 154 chp->chan_num = chanuse[(i * 4)]; in pcfadc_attach() 208 struct pcfadc_channel *chp = &sc->sc_channels[i]; in pcfadc_refresh() local 210 chp->chan_sensor.value = 273150000 + 1000000 * in pcfadc_refresh() 211 sc->sc_xlate[data[1 + chp->chan_num]]; in pcfadc_refresh()
|
/openbsd/sys/dev/pci/ |
H A D | pciide.c | 2922 chp->channel); in piix_setup_channel() 4480 bus_space_write_1(chp->cmd_iot, chp->cmd_ioh, in sii3112_drv_probe() 7725 bus_space_write_1(chp->cmd_iot, chp->cmd_ioh, in svwsata_drv_probe() 7783 return (bus_space_read_4(chp->ctl_iot, chp->ctl_ioh, in svwsata_read_reg() 7786 return (bus_space_read_4(chp->cmd_iot, chp->cmd_ioh, in svwsata_read_reg() 7795 bus_space_write_4(chp->ctl_iot, chp->ctl_ioh, in svwsata_write_reg() 7798 bus_space_write_4(chp->cmd_iot, chp->cmd_ioh, in svwsata_write_reg() 7807 bus_space_write_4(chp->ctl_iot, chp->ctl_ioh, in svwsata_lba48_write_reg() 7810 bus_space_write_4(chp->cmd_iot, chp->cmd_ioh, in svwsata_lba48_write_reg() 9034 chp->channel); in rdc_setup_channel() [all …]
|
/openbsd/gnu/usr.bin/binutils/gas/ |
H A D | debug.c | 28 frchainS *chp; in dmp_frags() local 31 for (chp = frchain_root; chp; chp = chp->frch_next) in dmp_frags() 33 switch (chp->frch_seg) in dmp_frags() 45 printf ("\nSEGMENT %s %d\n", p, chp->frch_subseg); in dmp_frags() 46 dmp_frag (chp->frch_root, "\t"); in dmp_frags()
|
/openbsd/gnu/usr.bin/binutils-2.17/gas/ |
H A D | debug.c | 28 frchainS *chp; in dmp_frags() local 31 for (chp = frchain_root; chp; chp = chp->frch_next) in dmp_frags() 33 switch (chp->frch_seg) in dmp_frags() 45 printf ("\nSEGMENT %s %d\n", p, chp->frch_subseg); in dmp_frags() 46 dmp_frag (chp->frch_root, "\t"); in dmp_frags()
|
/openbsd/usr.bin/vi/common/ |
H A D | key.c | 229 CHAR_T *chp, mask; in v_key_name() local 234 if ((chp = O_STR(sp, O_PRINT)) != NULL) in v_key_name() 235 for (; *chp != '\0'; ++chp) in v_key_name() 236 if (*chp == ch) in v_key_name() 238 if ((chp = O_STR(sp, O_NOPRINT)) != NULL) in v_key_name() 239 for (; *chp != '\0'; ++chp) in v_key_name() 240 if (*chp == ch) in v_key_name() 284 for (len = 2, chp = (u_int8_t *)&ch, in v_key_name() 285 cnt = sizeof(CHAR_T); cnt-- > 0; ++chp) { in v_key_name() 286 sp->cname[len++] = hexdigit[(*chp & 0xf0) >> 4]; in v_key_name() [all …]
|
/openbsd/sys/dev/pv/ |
H A D | hvs.c | 167 struct hvs_cmd_chp chp; member 710 struct hvs_chp *chp; in hvs_connect() local 797 chp = &ccb->ccb_rsp.chp.cmd_chp; in hvs_connect() 800 chp->chp_proto, chp->chp_path, chp->chp_target, in hvs_connect() 801 chp->chp_maxchan); in hvs_connect() 803 chp->chp_port, chp->chp_chflags, chp->chp_maxfer, in hvs_connect() 804 chp->chp_chanid); in hvs_connect() 807 sc->sc_bus = chp->chp_path; in hvs_connect() 808 sc->sc_initiator = chp->chp_target; in hvs_connect()
|
/openbsd/gnu/usr.bin/binutils/gdb/rdi-share/ |
H A D | msgbuild.c | 199 char *chp = NULL; in unpack_message() local 256 chp = va_arg(args, char*); in unpack_message() 268 *chp = (unsigned char)*buffer++; in unpack_message()
|
/openbsd/bin/ls/ |
H A D | ls.c | 351 FTSENT *p, *chp; in traverse() local 362 chp = fts_children(ftsp, 0); in traverse() 363 if (chp != NULL) in traverse() 364 display(NULL, chp); in traverse() 395 chp = fts_children(ftsp, ch_options); in traverse() 397 display(p, chp); in traverse() 403 if (!f_recursive && !(chp == NULL && saved_errno != 0)) in traverse()
|
/openbsd/usr.sbin/amd/amd/ |
H A D | util.c | 206 host_normalize(char **chp) in host_normalize() argument 216 hp = gethostbyname(*chp); in host_normalize() 219 dlog("Hostname %s normalized to %s", *chp, hp->h_name); in host_normalize() 221 *chp = strealloc(*chp, hp->h_name); in host_normalize() 224 domain_strip(*chp, hostd); in host_normalize()
|
/openbsd/usr.bin/vi/cl/ |
H A D | cl_funcs.c | 376 cl_keyval(SCR *sp, scr_keyval_t val, CHAR_T *chp, int *dnep) in cl_keyval() argument 387 *dnep = (*chp = clp->orig.c_cc[VEOF]) == _POSIX_VDISABLE; in cl_keyval() 390 *dnep = (*chp = clp->orig.c_cc[VERASE]) == _POSIX_VDISABLE; in cl_keyval() 393 *dnep = (*chp = clp->orig.c_cc[VKILL]) == _POSIX_VDISABLE; in cl_keyval() 396 *dnep = (*chp = clp->orig.c_cc[VWERASE]) == _POSIX_VDISABLE; in cl_keyval()
|
/openbsd/sys/arch/i386/pci/ |
H A D | pciide_machdep.c | 154 gcsc_setup_channel(struct channel_softc *chp) in gcsc_setup_channel() argument 156 struct pciide_channel *cp = (struct pciide_channel *)chp; in gcsc_setup_channel() 164 drvp = &chp->ch_drive[drive]; in gcsc_setup_channel()
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | arch-utils.c | 610 const char *chp; in initialize_current_architecture() local 611 chp = strchr (target_name, '-'); in initialize_current_architecture() 612 if (chp != NULL in initialize_current_architecture() 613 && chp - 2 >= target_name in initialize_current_architecture() 614 && strncmp (chp - 2, "el", 2) == 0) in initialize_current_architecture()
|
H A D | varobj.c | 564 const char *chp; in varobj_get_handle() local 568 for (chp = objname; *chp; chp++) in varobj_get_handle() 570 index = (index + (i++ * (unsigned int) *chp)) % VAROBJ_TABLE_SIZE; in varobj_get_handle() 1167 const char *chp; in install_variable() local 1171 for (chp = var->obj_name; *chp; chp++) in install_variable() 1173 index = (index + (i++ * (unsigned int) *chp)) % VAROBJ_TABLE_SIZE; in install_variable() 1212 const char *chp; in uninstall_variable() local 1217 for (chp = var->obj_name; *chp; chp++) in uninstall_variable() 1219 index = (index + (i++ * (unsigned int) *chp)) % VAROBJ_TABLE_SIZE; in uninstall_variable()
|
/openbsd/gnu/usr.bin/binutils/gdb/cli/ |
H A D | cli-dump.c | 40 skip_spaces (char *chp) in skip_spaces() argument 42 if (chp == NULL) in skip_spaces() 44 while (isspace (*chp)) in skip_spaces() 45 chp++; in skip_spaces() 46 return chp; in skip_spaces()
|
/openbsd/usr.bin/vi/docs/interp/ |
H A D | spell.ok | 12 chp
|