| /src/sys/arch/evbmips/alchemy/ |
| autoconf.c | 135 struct ata_channel *chp = aux; local 138 chp->ch_atac->atac_cap &= ~ATAC_CAP_DATA32;
|
| autoconf.c | 135 struct ata_channel *chp = aux; local 138 chp->ch_atac->atac_cap &= ~ATAC_CAP_DATA32;
|
| /src/lib/libcurses/ |
| addchnstr.c | 135 const chtype *chp; local 147 for (chp = chstr, len = 0; n-- && *chp++; ++len); 149 for (chp = chstr, len = 0; *chp++; ++len); 157 chp = chstr; 161 attr = (*chp) & __ATTRIBUTES; 165 *cp = (*chp) & __CHARTEXT; 167 chp++; 170 if (((*chp) & __ATTRIBUTES) != attr) [all...] |
| addchnstr.c | 135 const chtype *chp; local 147 for (chp = chstr, len = 0; n-- && *chp++; ++len); 149 for (chp = chstr, len = 0; *chp++; ++len); 157 chp = chstr; 161 attr = (*chp) & __ATTRIBUTES; 165 *cp = (*chp) & __CHARTEXT; 167 chp++; 170 if (((*chp) & __ATTRIBUTES) != attr) [all...] |
| add_wchstr.c | 138 const cchar_t *chp; local 158 for (chp = wchstr, cnt = 0; n && chp->vals[0]; 159 n--, chp++, ++cnt); 161 for (chp = wchstr, cnt = 0; chp->vals[0]; chp++, ++cnt); 163 chp = wchstr; 173 if (wcwidth(chp->vals[0])) { 200 wc = chp->vals[0] [all...] |
| add_wchstr.c | 138 const cchar_t *chp; local 158 for (chp = wchstr, cnt = 0; n && chp->vals[0]; 159 n--, chp++, ++cnt); 161 for (chp = wchstr, cnt = 0; chp->vals[0]; chp++, ++cnt); 163 chp = wchstr; 173 if (wcwidth(chp->vals[0])) { 200 wc = chp->vals[0] [all...] |
| /src/sys/arch/cobalt/stand/boot/ |
| wdc.c | 46 static int wdcprobe(struct wdc_channel *chp); 47 static int wdc_wait_for_ready(struct wdc_channel *chp); 49 static int __wdcwait_reset(struct wdc_channel *chp, int drv_mask); 55 __wdcwait_reset(struct wdc_channel *chp, int drv_mask) 62 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); /* master */ 64 st0 = WDC_READ_REG(chp, wd_status); 65 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); /* slave */ 67 st1 = WDC_READ_REG(chp, wd_status); 113 wdcprobe(struct wdc_channel *chp) 122 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM) 204 struct wdc_channel *chp = &sc->sc_channel; local 222 struct wdc_channel *chp = &sc->sc_channel; local 258 struct wdc_channel *chp = &wd->sc_channel; local [all...] |
| wdc.c | 46 static int wdcprobe(struct wdc_channel *chp); 47 static int wdc_wait_for_ready(struct wdc_channel *chp); 49 static int __wdcwait_reset(struct wdc_channel *chp, int drv_mask); 55 __wdcwait_reset(struct wdc_channel *chp, int drv_mask) 62 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); /* master */ 64 st0 = WDC_READ_REG(chp, wd_status); 65 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); /* slave */ 67 st1 = WDC_READ_REG(chp, wd_status); 113 wdcprobe(struct wdc_channel *chp) 122 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM) 204 struct wdc_channel *chp = &sc->sc_channel; local 222 struct wdc_channel *chp = &sc->sc_channel; local 258 struct wdc_channel *chp = &wd->sc_channel; local [all...] |
| /src/sys/arch/mac68k/obio/ |
| wdc_obio.c | 139 struct ata_channel *chp = &sc->sc_channel; local 203 ch_sc = chp; 208 sc->sc_chanlist[0] = chp; 212 chp->ch_channel = 0; 213 chp->ch_atac = &sc->sc_wdcdev.sc_atac; 219 wdcattach(chp);
|
| wdc_obio.c | 139 struct ata_channel *chp = &sc->sc_channel; local 203 ch_sc = chp; 208 sc->sc_chanlist[0] = chp; 212 chp->ch_channel = 0; 213 chp->ch_atac = &sc->sc_wdcdev.sc_atac; 219 wdcattach(chp);
|
| /src/sys/arch/mmeye/stand/boot/ |
| wdc.c | 55 static int wdcprobe(struct wdc_channel *chp); 56 static int wdc_wait_for_ready(struct wdc_channel *chp); 58 static int __wdcwait_reset(struct wdc_channel *chp, int drv_mask); 64 __wdcwait_reset(struct wdc_channel *chp, int drv_mask) 71 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); /* master */ 73 st0 = WDC_READ_REG(chp, wd_status); 74 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); /* slave */ 76 st1 = WDC_READ_REG(chp, wd_status); 122 wdcprobe(struct wdc_channel *chp) 131 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM) 182 struct wdc_channel *chp = &sc->sc_channel; local 237 struct wdc_channel *chp = &sc->sc_channel; local 259 struct wdc_channel *chp = &sc->sc_channel; local 295 struct wdc_channel *chp = &wd->sc_channel; local [all...] |
| wdc.c | 55 static int wdcprobe(struct wdc_channel *chp); 56 static int wdc_wait_for_ready(struct wdc_channel *chp); 58 static int __wdcwait_reset(struct wdc_channel *chp, int drv_mask); 64 __wdcwait_reset(struct wdc_channel *chp, int drv_mask) 71 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); /* master */ 73 st0 = WDC_READ_REG(chp, wd_status); 74 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); /* slave */ 76 st1 = WDC_READ_REG(chp, wd_status); 122 wdcprobe(struct wdc_channel *chp) 131 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM) 182 struct wdc_channel *chp = &sc->sc_channel; local 237 struct wdc_channel *chp = &sc->sc_channel; local 259 struct wdc_channel *chp = &sc->sc_channel; local 295 struct wdc_channel *chp = &wd->sc_channel; local [all...] |
| /src/sys/dev/ata/ |
| ata_recovery.c | 71 struct ata_channel *chp = drvp->chnl_softc; local 72 struct ata_xfer *xfer = &chp->recovery_xfer; 73 struct atac_softc *atac = chp->ch_atac; 85 tb = chp->recovery_blk; 86 memset(tb, 0, sizeof(chp->recovery_blk)); 104 xfer->c_ata_c.bcount = sizeof(chp->recovery_blk); 107 ata_wait_cmd(chp, xfer); 115 for (int i = 0; i < sizeof(chp->recovery_blk); i++) 160 ata_recovery_resume(struct ata_channel *chp, int drive, int tfd, int flags) 166 const uint8_t ch_openings = ata_queue_openings(chp); [all...] |
| ata_recovery.c | 71 struct ata_channel *chp = drvp->chnl_softc; local 72 struct ata_xfer *xfer = &chp->recovery_xfer; 73 struct atac_softc *atac = chp->ch_atac; 85 tb = chp->recovery_blk; 86 memset(tb, 0, sizeof(chp->recovery_blk)); 104 xfer->c_ata_c.bcount = sizeof(chp->recovery_blk); 107 ata_wait_cmd(chp, xfer); 115 for (int i = 0; i < sizeof(chp->recovery_blk); i++) 160 ata_recovery_resume(struct ata_channel *chp, int drive, int tfd, int flags) 166 const uint8_t ch_openings = ata_queue_openings(chp); [all...] |
| ata_subr.c | 81 ata_queue_hwslot_to_xfer(struct ata_channel *chp, int hwslot) 83 struct ata_queue *chq = chp->ch_queue; 86 ata_channel_lock(chp); 99 ata_channel_unlock(chp); 109 ata_queue_get_active_xfer_locked(struct ata_channel *chp) 113 KASSERT(mutex_owned(&chp->ch_lock)); 114 xfer = TAILQ_FIRST(&chp->ch_queue->active_xfers); 131 ata_queue_get_active_xfer(struct ata_channel *chp) 135 ata_channel_lock(chp); 136 xfer = ata_queue_get_active_xfer_locked(chp); 229 struct ata_channel *chp = v; local [all...] |
| ata_subr.c | 81 ata_queue_hwslot_to_xfer(struct ata_channel *chp, int hwslot) 83 struct ata_queue *chq = chp->ch_queue; 86 ata_channel_lock(chp); 99 ata_channel_unlock(chp); 109 ata_queue_get_active_xfer_locked(struct ata_channel *chp) 113 KASSERT(mutex_owned(&chp->ch_lock)); 114 xfer = TAILQ_FIRST(&chp->ch_queue->active_xfers); 131 ata_queue_get_active_xfer(struct ata_channel *chp) 135 ata_channel_lock(chp); 136 xfer = ata_queue_get_active_xfer_locked(chp); 229 struct ata_channel *chp = v; local [all...] |
| /src/sys/arch/bebox/stand/boot/ |
| wdc.c | 61 __wdcwait_reset(struct wdc_channel *chp, int drv_mask) 68 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); /* master */ 70 st0 = WDC_READ_REG(chp, wd_status); 71 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); /* slave */ 73 st1 = WDC_READ_REG(chp, wd_status); 148 wdcprobe(struct wdc_channel *chp) 158 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); 160 st0 = WDC_READ_REG(chp, wd_status); 161 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); 163 st1 = WDC_READ_REG(chp, wd_status) 404 struct wdc_channel *chp; local 422 struct wdc_channel *chp; local [all...] |
| wdc.c | 61 __wdcwait_reset(struct wdc_channel *chp, int drv_mask) 68 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); /* master */ 70 st0 = WDC_READ_REG(chp, wd_status); 71 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); /* slave */ 73 st1 = WDC_READ_REG(chp, wd_status); 148 wdcprobe(struct wdc_channel *chp) 158 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM); 160 st0 = WDC_READ_REG(chp, wd_status); 161 WDC_WRITE_REG(chp, wd_sdh, WDSD_IBM | 0x10); 163 st1 = WDC_READ_REG(chp, wd_status) 404 struct wdc_channel *chp; local 422 struct wdc_channel *chp; local [all...] |
| /src/sys/arch/mips/adm5120/dev/ |
| wdc_extio.c | 116 wdc_extio_reset(struct ata_channel *chp, int poll) 118 struct wdc_softc *wdc = CHAN_TO_WDC(chp); 119 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; 126 wdc->select(chp,0); 150 wdc->irqack(chp); 215 wdc_extio_dataout(struct ata_channel *chp, int flags, void *bf, size_t len) 217 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); 224 wdc_extio_datain(struct ata_channel *chp, int flags, void *bf, size_t len) 226 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); 277 struct ata_channel *chp = &sc->sc_channel local [all...] |
| wdc_extio.c | 116 wdc_extio_reset(struct ata_channel *chp, int poll) 118 struct wdc_softc *wdc = CHAN_TO_WDC(chp); 119 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; 126 wdc->select(chp,0); 150 wdc->irqack(chp); 215 wdc_extio_dataout(struct ata_channel *chp, int flags, void *bf, size_t len) 217 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); 224 wdc_extio_datain(struct ata_channel *chp, int flags, void *bf, size_t len) 226 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); 277 struct ata_channel *chp = &sc->sc_channel local [all...] |
| /src/sys/dev/pci/ |
| pdcide.c | 327 pdc202xx_setup_channel(struct ata_channel *chp) 333 struct pciide_channel *cp = CHAN_TO_PCHAN(chp); 334 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp); 335 int channel = chp->ch_channel; 353 (chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA && 354 chp->ch_drive[0].UDMA_mode <= 2) || 355 (chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA && 356 chp->ch_drive[1].UDMA_mode <= 2)) { 357 if (chp->ch_drive[0].UDMA_mode > 2) 358 chp->ch_drive[0].UDMA_mode = 2 590 struct ata_channel *chp; local [all...] |
| piixide.c | 594 piix_setup_channel(struct ata_channel *chp) 598 struct pciide_channel *cp = CHAN_TO_PCHAN(chp); 599 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp); 603 idetim = PIIX_IDETIM_CLEAR(oidetim, 0xffff, chp->ch_channel); 608 chp->ch_channel); 668 mode[drive], 1, chp->ch_channel); 675 mode[0], 0, chp->ch_channel); 678 mode[1], 0, chp->ch_channel); 700 piix3_4_setup_channel(struct ata_channel *chp) 704 struct pciide_channel *cp = CHAN_TO_PCHAN(chp); 861 struct ata_channel *chp = drvp->chnl_softc; local [all...] |
| pdcide.c | 327 pdc202xx_setup_channel(struct ata_channel *chp) 333 struct pciide_channel *cp = CHAN_TO_PCHAN(chp); 334 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp); 335 int channel = chp->ch_channel; 353 (chp->ch_drive[0].drive_flags & ATA_DRIVE_UDMA && 354 chp->ch_drive[0].UDMA_mode <= 2) || 355 (chp->ch_drive[1].drive_flags & ATA_DRIVE_UDMA && 356 chp->ch_drive[1].UDMA_mode <= 2)) { 357 if (chp->ch_drive[0].UDMA_mode > 2) 358 chp->ch_drive[0].UDMA_mode = 2 590 struct ata_channel *chp; local [all...] |
| piixide.c | 594 piix_setup_channel(struct ata_channel *chp) 598 struct pciide_channel *cp = CHAN_TO_PCHAN(chp); 599 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp); 603 idetim = PIIX_IDETIM_CLEAR(oidetim, 0xffff, chp->ch_channel); 608 chp->ch_channel); 668 mode[drive], 1, chp->ch_channel); 675 mode[0], 0, chp->ch_channel); 678 mode[1], 0, chp->ch_channel); 700 piix3_4_setup_channel(struct ata_channel *chp) 704 struct pciide_channel *cp = CHAN_TO_PCHAN(chp); 861 struct ata_channel *chp = drvp->chnl_softc; local [all...] |
| /src/sys/arch/macppc/dev/ |
| kauai.c | 109 struct ata_channel *chp = &sc->sc_channel; local 189 if (pci_intr_establish_xname(pa->pa_pc, ih, IPL_BIO, wdcintr, chp, 201 sc->sc_chanptr = chp; 213 chp->ch_channel = 0; 214 chp->ch_atac = &sc->sc_wdcdev.sc_atac; 218 wdcattach(chp); 222 kauai_set_modes(struct ata_channel *chp) 224 struct kauai_softc *sc = (void *)chp->ch_atac; 225 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); 226 struct ata_drive_datas *drvp0 = &chp->ch_drive[0] 279 struct ata_channel *chp = &sc->sc_channel; local 307 struct ata_channel *chp = &sc->sc_channel; local [all...] |