HomeSort by: relevance | last modified time | path
    Searched refs:chp (Results 1 - 25 of 71) sorted by relevancy

1 2 3

  /src/sys/dev/ata/
sata_subr.c 82 sata_reset_interface(struct ata_channel *chp, bus_space_tag_t sata_t,
88 ata_channel_lock_owned(chp);
99 ata_delay(chp, 50, "sataup", flags);
103 ata_delay(chp, 50, "sataup", flags);
109 ata_delay(chp, 10, "sataup", flags);
117 ata_delay(chp, 10, "sataup", flags);
124 sata_interpret_det(chp, sstatus);
130 sata_interpret_det(struct ata_channel *chp, uint32_t sstatus)
140 device_xname(chp->ch_atac->atac_dev), chp->ch_channel)
    [all...]
ata.c 199 ata_channel_attach(struct ata_channel *chp)
201 if (chp->ch_flags & ATACH_DISABLED)
204 ata_channel_init(chp);
206 KASSERT(chp->ch_queue != NULL);
208 chp->atabus = config_found(chp->ch_atac->atac_dev, chp, atabusprint,
218 ata_channel_detach(struct ata_channel *chp)
220 if (chp->ch_flags & ATACH_DISABLED)
223 ata_channel_destroy(chp);
231 struct ata_channel *chp = atabus_sc->sc_chan; local in function:atabusconfig
312 struct ata_channel *chp = atabus_sc->sc_chan; local in function:atabusconfig_thread
441 struct ata_channel *chp = sc->sc_chan; local in function:atabus_thread
572 struct ata_channel *chp = aux; local in function:atabus_match
593 struct ata_channel *chp = aux; local in function:atabus_attach
635 struct ata_channel *chp = sc->sc_chan; local in function:atabus_detach
701 struct ata_channel *chp = sc->sc_chan; local in function:atabus_childdetached
818 struct ata_channel *chp = drvp->chnl_softc; local in function:ata_get_params
921 struct ata_channel *chp = drvp->chnl_softc; local in function:ata_set_mode
1233 struct ata_channel *chp = xfer->c_chp; local in function:ata_xfer_start
1408 struct ata_channel *chp = xfer->c_chp; local in function:ata_timo_xfer_check
1470 struct ata_channel * const chp = drvp->chnl_softc; local in function:ata_kill_pending
1782 struct ata_channel *chp = drvp->chnl_softc; local in function:ata_downgrade_mode
1839 struct ata_channel *chp = drvp->chnl_softc; local in function:ata_probe_caps
2163 struct ata_channel *chp = sc->sc_chan; local in function:atabusioctl
2237 struct ata_channel *chp = sc->sc_chan; local in function:atabus_suspend
2248 struct ata_channel *chp = sc->sc_chan; local in function:atabus_resume
2277 struct ata_channel *chp = sc->sc_chan; local in function:atabus_rescan
    [all...]
satapmp_subr.c 51 satapmp_read_8(struct ata_channel *chp, int port, int reg, uint64_t *value,
54 struct atac_softc *atac = chp->ch_atac;
60 KASSERT(chp->ch_ndrives >= PMP_MAX_DRIVES);
61 drvp = &chp->ch_drive[PMP_PORT_CTL];
63 ata_channel_lock_owned(chp);
74 ata_channel_unlock(chp);
77 ata_wait_cmd(chp, xfer);
80 aprint_error_dev(chp->atabus,
87 aprint_verbose_dev(chp->atabus,
100 ata_channel_lock(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 in function:ata_timeout
    [all...]
ata_recovery.c 71 struct ata_channel *chp = drvp->chnl_softc; local in function:ata_read_log_ext_ncq
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_wdc.c 148 struct ata_channel *chp = drvp->chnl_softc; local in function:wdc_ata_bio
149 struct atac_softc *atac = chp->ch_atac;
172 ata_exec_xfer(chp, xfer);
176 wdc_ata_bio_start(struct ata_channel *chp, struct ata_xfer *xfer)
178 struct atac_softc *atac = chp->ch_atac;
179 struct wdc_softc *wdc = CHAN_TO_WDC(chp);
180 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel];
182 struct ata_drive_datas *drvp = &chp->ch_drive[xfer->c_drive];
193 device_xname(atac->atac_dev), chp->ch_channel, xfer->c_drive,
194 drvp->state, drvp->drive_flags, xfer->c_flags, chp->ch_flags)
885 struct ata_channel *chp = drvp->chnl_softc; local in function:wdc_ata_addref
893 struct ata_channel *chp = drvp->chnl_softc; local in function:wdc_ata_delref
    [all...]
  /src/sys/arch/cobalt/stand/boot/
pciide.c 39 pciide_init(struct wdc_channel *chp, u_int *unit)
63 chp->c_cmdbase = (uint8_t *)cmdreg;
64 chp->c_data = (uint16_t *)(cmdreg + wd_data);
66 chp->c_cmdreg[i] = chp->c_cmdbase + i;
68 chp->c_cmdreg[wd_status] = chp->c_cmdreg[wd_command];
69 chp->c_cmdreg[wd_features] = chp->c_cmdreg[wd_precomp];
71 chp->c_ctlbase = (uint8_t *)ctlreg
    [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 in function:wdc_read_block
222 struct wdc_channel *chp = &sc->sc_channel; local in function:wdccommand
258 struct wdc_channel *chp = &wd->sc_channel; local in function:wdccommandext
    [all...]
wdvar.h 60 #define WDC_READ_REG(chp, reg) *(chp)->c_cmdreg[(reg)]
61 #define WDC_WRITE_REG(chp, reg, val) *(chp)->c_cmdreg[(reg)] = (val)
62 #define WDC_READ_CTLREG(chp, reg) (chp)->c_ctlbase[(reg)]
63 #define WDC_WRITE_CTLREG(chp, reg, val) (chp)->c_ctlbase[(reg)] = (val)
64 #define WDC_READ_DATA(chp) *(chp)->c_dat
    [all...]
  /src/sys/arch/mmeye/stand/boot/
wdvar.h 60 #define WDC_READ_REG(chp, reg) *(chp)->c_cmdreg[(reg)]
61 #define WDC_WRITE_REG(chp, reg, val) *(chp)->c_cmdreg[(reg)] = (val)
62 #define WDC_READ_CTLREG(chp, reg) (chp)->c_ctlbase[(reg)]
63 #define WDC_WRITE_CTLREG(chp, reg, val) (chp)->c_ctlbase[(reg)] = (val)
64 #define WDC_READ_DATA(chp) *(chp)->c_dat
    [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 in function:wdc_init
237 struct wdc_channel *chp = &sc->sc_channel; local in function:wdc_read_block
259 struct wdc_channel *chp = &sc->sc_channel; local in function:wdccommand
295 struct wdc_channel *chp = &wd->sc_channel; local in function:wdccommandext
    [all...]
  /src/sys/arch/bebox/stand/boot/
wdvar.h 53 #define WDC_READ_REG(chp, reg) inb((chp)->c_cmdreg[(reg)])
54 #define WDC_WRITE_REG(chp, reg, val) outb((chp)->c_cmdreg[(reg)], (val))
55 #define WDC_READ_CTLREG(chp, reg) inb((chp)->c_ctlbase)
56 #define WDC_WRITE_CTLREG(chp, reg, val) outb((chp)->c_ctlbase, (val))
57 #define WDC_READ_DATA_STREAM(chp) inw((chp)->c_data
    [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 in function:wdc_exec_identify
422 struct wdc_channel *chp; local in function:wdc_exec_read
    [all...]
  /src/sys/dev/ic/
siisata.c 244 siisata_disable_port_interrupt(struct ata_channel *chp)
246 struct siisata_softc *sc = (struct siisata_softc *)chp->ch_atac;
248 PRWRITE(sc, PRX(chp->ch_channel, PRO_PIEC), 0xffffffff);
252 siisata_enable_port_interrupt(struct ata_channel *chp)
254 struct siisata_softc *sc = (struct siisata_softc *)chp->ch_atac;
257 (void)PRREAD(sc, PRX(chp->ch_channel, PRO_PSS));
258 PRWRITE(sc, PRX(chp->ch_channel, PRO_PIS), 0xffffffff);
260 PRWRITE(sc, PRX(chp->ch_channel, PRO_PIES),
268 struct ata_channel *chp; local in function:siisata_init_port
272 chp = (struct ata_channel *)schp
298 struct ata_channel *chp; local in function:siisata_attach_port
414 struct ata_channel *chp; local in function:siisata_childdetached
430 struct ata_channel *chp; local in function:siisata_detach
481 struct ata_channel *chp = (struct ata_channel *)schp; local in function:siisata_resume
512 struct ata_channel *chp = &schp->ata_channel; local in function:siisata_intr_port
667 struct ata_channel *chp = drvp->chnl_softc; local in function:siisata_reset_drive
935 struct ata_channel *chp = drvp->chnl_softc; local in function:siisata_exec_command
1179 struct ata_channel *chp = drvp->chnl_softc; local in function:siisata_ata_bio
1524 struct ata_channel *chp = ata_sc->sc_chan; local in function:siisata_atapibus_attach
1574 struct ata_channel *chp = local in function:siisata_atapi_kill_pending
1626 struct ata_channel *chp = atac->atac_channels[chan->chan_channel]; local in function:siisata_atapi_probe_device
    [all...]
ahcisata_core.c 123 #define AHCISATA_DO_EXTRA_DELAY(sc, chp, msg, flags) \
124 ata_delay(chp, AHCISATA_EXTRA_DELAY_MS, msg, flags)
126 #define AHCISATA_DO_EXTRA_DELAY(sc, chp, msg, flags) do { } while (0)
212 struct ata_channel *chp; local in function:ahci_reprobe_drives
223 chp = &achp->ata_channel;
225 ahci_probe_drive(chp);
259 struct ata_channel *chp; local in function:ahci_attach
408 chp = &achp->ata_channel;
409 sc->sc_chanarray[i] = chp;
410 chp->ch_channel = i
521 struct ata_channel *chp; local in function:ahci_childdetached
540 struct ata_channel *chp; local in function:ahci_detach
632 struct ata_channel *chp = &achp->ata_channel; local in function:ahci_intr_port
767 struct ata_channel *chp = drvp->chnl_softc; local in function:ahci_reset_drive
1150 struct ata_channel *chp = drvp->chnl_softc; local in function:ahci_exec_command
1406 struct ata_channel *chp = drvp->chnl_softc; local in function:ahci_ata_bio
1801 struct ata_channel *chp = ata_sc->sc_chan; local in function:ahci_atapibus_attach
1848 struct ata_channel *chp = local in function:ahci_atapi_kill_pending
2109 struct ata_channel *chp = atac->atac_channels[chan->chan_channel]; local in function:ahci_atapi_probe_device
    [all...]
wdc.c 205 wdc_sataprobe(struct ata_channel *chp)
207 struct wdc_softc *wdc = CHAN_TO_WDC(chp);
208 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
212 KASSERT(chp->ch_ndrives == 0 || chp->ch_drive != NULL);
216 ata_channel_lock(chp);
219 switch (sata_reset_interface(chp, wdr->sata_iot, wdr->sata_control,
231 ata_delay(chp, 1, "sataprb", AT_WAIT);
234 aprint_error_dev(chp->ch_atac->atac_dev,
246 device_xname(chp->ch_atac->atac_dev), chp->ch_channel
826 struct ata_channel *chp; local in function:wdc_childdetached
842 struct ata_channel *chp; local in function:wdcdetach
866 struct ata_channel *chp = v; local in function:wdcrestart
884 struct ata_channel *chp = arg; local in function:wdcintr
948 struct ata_channel *chp = drvp->chnl_softc; local in function:wdc_reset_drive
1342 struct ata_channel *chp = arg; local in function:wdctimeout
1404 struct ata_channel *chp = drvp->chnl_softc; local in function:wdc_exec_command
    [all...]
wdcvar.h 134 #define CHAN_TO_WDC(chp) ((struct wdc_softc *)(chp)->ch_atac)
137 #define CHAN_TO_WDC_REGS(chp) (&CHAN_TO_WDC(chp)->regs[(chp)->ch_channel])
184 #define wdc_wait_for_drq(chp, timeout, flags, tfd) \
185 wdcwait((chp), WDCS_DRQ, WDCS_DRQ, (timeout), (flags), (tfd))
186 #define wdc_wait_for_unbusy(chp, timeout, flags, tfd) \
187 wdcwait((chp), 0, 0, (timeout), (flags), (tfd))
188 #define wdc_wait_for_ready(chp, timeout, flags, tfd)
    [all...]
mvsata.c 446 struct ata_channel *chp = &mvport->port_ata_channel; local in function:mvsata_nondma_handle
455 xfer = ata_queue_get_active_xfer(chp);
460 device_xname(MVSATA_DEV2(mvport)), chp->ch_channel,
465 ret = xfer->ops->c_intr(chp, xfer, 1);
543 struct ata_channel *chp = &mvport->port_ata_channel; local in function:mvsata_error
549 ata_channel_lock(chp);
550 ata_thread_run(chp, 0, ATACH_TH_RECOVERY,
552 ata_channel_unlock(chp);
560 mvsata_channel_recover(struct ata_channel *chp, int flags, uint32_t tfd)
562 struct mvsata_port * const mvport = (struct mvsata_port *)chp;
620 struct ata_channel *chp = drvp->chnl_softc; local in function:mvsata_reset_drive
717 struct ata_channel *chp = ata_sc->sc_chan; local in function:mvsata_atapibus_attach
767 struct ata_channel *chp = atac->atac_channels[chan->chan_channel]; local in function:mvsata_atapi_probe_device
867 struct ata_channel *chp = local in function:mvsata_atapi_kill_pending
991 struct ata_channel *chp = drvp->chnl_softc; local in function:mvsata_bio
1485 struct ata_channel *chp = &mvport->port_ata_channel; local in function:mvsata_bio_ready
1602 struct ata_channel *chp = drvp->chnl_softc; local in function:mvsata_exec_command
1955 struct ata_channel *chp = atac->atac_channels[chan->chan_channel]; local in function:mvsata_atapi_scsipi_request
2498 struct ata_channel *chp = xfer->c_chp; local in function:mvsata_atapi_phase_complete
2619 struct ata_channel *chp = arg; local in function:mvsata_atapi_polldsc
2718 struct ata_channel *chp = &mvport->port_ata_channel; local in function:mvsata_edma_handle
2862 struct ata_channel *chp = &mvport->port_ata_channel; local in function:mvsata_edma_rqq_remove
2992 struct ata_channel *chp; local in function:mvsata_port_init
3350 struct ata_channel *chp = &mvport->port_ata_channel; local in function:mvsata_softreset
3413 struct ata_channel *chp = &mvport->port_ata_channel; local in function:mvsata_edma_disable
    [all...]
  /src/sys/dev/scsipi/
atapi_wdc.c 115 struct ata_channel *chp = ata_sc->sc_chan; local in function:wdc_atapibus_attach
116 struct atac_softc *atac = chp->ch_atac;
118 struct scsipi_channel *chan = &chp->ch_atapi_channel;
137 chan->chan_channel = chp->ch_channel;
141 chan->chan_ntargets = chp->ch_ndrives;
144 chp->atapibus = config_found(ata_sc->sc_dev, chan, atapiprint,
167 struct ata_channel *chp = local in function:wdc_atapi_kill_pending
170 ata_kill_pending(&chp->ch_drive[periph->periph_target]);
174 wdc_atapi_kill_xfer(struct ata_channel *chp, struct ata_xfer *xfer, int reason)
197 ata_deactivate_xfer(chp, xfer)
210 struct ata_channel *chp = atac->atac_channels[chan->chan_channel]; local in function:wdc_atapi_get_params
271 struct ata_channel *chp = atac->atac_channels[chan->chan_channel]; local in function:wdc_atapi_probe_device
1056 struct ata_channel *chp = xfer->c_chp; local in function:wdc_atapi_phase_complete
1194 struct ata_channel *chp = arg; local in function:wdc_atapi_polldsc
    [all...]
  /src/lib/libcurses/
addchnstr.c 135 const chtype *chp; local in function:waddchnstr
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 in function:wadd_wchnstr
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/dev/pci/
optiide.c 170 opti_setup_channel(struct ata_channel *chp)
173 struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
174 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
183 mr = opti_read_config(chp, OPTI_REG_MISC) & ~OPTI_MISC_INDEX_MASK;
189 opti_write_config(chp, OPTI_REG_CONTROL, OPTI_CONTROL_DISABLE);
192 spd = (int) opti_read_config(chp, OPTI_REG_STRAP);
199 drvp = &chp->ch_drive[drive];
234 chp->ch_drive[d].PIO_mode = chp->ch_drive[1-d].PIO_mode;
235 chp->ch_drive[d].DMA_mode = 0
    [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 in function:pdc20262_dma_finish
    [all...]
rdcide.c 201 rdcide_setup_channel(struct ata_channel *chp)
205 struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
206 struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
219 psd1atr &= ~RDCIDE_PSD1ATR_SETUP_MASK(chp->ch_channel);
220 psd1atr &= ~RDCIDE_PSD1ATR_HOLD_MASK(chp->ch_channel);
222 udccr &= ~RDCIDE_UDCCR_EN(chp->ch_channel, drive);
223 udccr &= ~RDCIDE_UDCCR_TIM_MASK(chp->ch_channel, drive);
224 iiocr &= ~RDCIDE_IIOCR_CLK_MASK(chp->ch_channel, drive);
231 patr |= RDCIDE_PATR_ATA(chp->ch_channel, drive);
235 chp->ch_channel)
    [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 in function:wdc_extio_attach
    [all...]

Completed in 58 milliseconds

1 2 3