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

1 2

  /src/sys/arch/evbmips/alchemy/
autoconf.c 138 struct ata_channel *chp = aux; local in function:device_register
141 chp->ch_atac->atac_cap &= ~ATAC_CAP_DATA32;
  /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/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 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...]
  /src/sys/arch/mac68k/obio/
wdc_obio.c 139 struct ata_channel *chp = &sc->sc_channel; local in function:wdc_obio_attach
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 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/dev/ata/
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_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_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...]
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...]
  /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 in function:wdc_exec_identify
422 struct wdc_channel *chp; local in function:wdc_exec_read
    [all...]
  /src/sys/dev/ic/
ninjaata32.c 272 njata32_irqack(struct ata_channel *chp)
274 struct njata32_softc *sc = (void *)chp->ch_atac;
282 njata32_clearirq(struct ata_channel *chp, int irq)
284 struct njata32_softc *sc = (void *)chp->ch_atac;
292 njata32_irqack(chp);
312 njata32_setup_channel(struct ata_channel *chp)
314 struct njata32_softc *sc = (void *)chp->ch_atac;
319 KASSERT(chp->ch_ndrives != 0);
326 for (drive = 0; drive < chp->ch_ndrives; drive++) {
327 drvp = &chp->ch_drive[drive]
660 struct ata_channel *chp; local in function:njata32_intr
    [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...]
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...]
  /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 in function:pdc20262_dma_finish
    [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 in function:piix_setup_idetim_drvs
    [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...]
  /src/sys/arch/macppc/dev/
kauai.c 109 struct ata_channel *chp = &sc->sc_channel; local in function:kauai_attach
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 in function:calc_timing_kauai
307 struct ata_channel *chp = &sc->sc_channel; local in function:kauai_dma_init
    [all...]
wdc_obio.c 122 struct ata_channel *chp = &sc->sc_channel; local in function:wdc_obio_attach
181 sc->sc_ih = intr_establish_xname(intr, type, IPL_BIO, wdcintr, chp,
232 sc->sc_chanptr = chp;
241 chp->ch_channel = 0;
242 chp->ch_atac = &sc->sc_wdcdev.sc_atac;
259 wdcattach(chp);
301 wdc_obio_select(struct ata_channel *chp, int drive)
303 struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->ch_atac;
304 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
311 adjust_timing(struct ata_channel *chp)
    [all...]
  /src/sys/dev/gpio/
gpioirq.c 306 struct gpioirq_read_q *chp; local in function:gpioirq_read
324 chp = SIMPLEQ_FIRST(&sc->sc_read_queue);
325 if (chp != NULL) {
344 obuf[0] = (uint8_t)chp->parentunit;
345 obuf[1] = (uint8_t)chp->thepin;
346 obuf[2] = (uint8_t)chp->theval;
347 pool_cache_put(sc->sc_readpool,chp);
  /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/bin/ls/
ls.c 422 FTSENT *p, *chp; local in function:traverse
472 chp = fts_children(ftsp, ch_options);
473 display(p, chp);
475 if (!f_recursive && chp != NULL)
  /src/sys/arch/sparc64/dev/
pcf8591_envctrl.c 300 struct ecadc_channel *chp = &sc->sc_channels[i]; local in function:ecadc_detach
302 if (chp->chan_type == PCF8591_SYS_FAN_CTRL) {
305 chp->chan_speed = sc->sc_cpu_fan_spd[0];
306 if (!ecadc_set_fan_speed(sc, chp->chan_num,
307 chp->chan_speed))
312 device_xname(sc->sc_dev), chp->chan_num);
348 struct ecadc_channel *chp = &sc->sc_channels[i]; local in function:ecadc_refresh
350 if (chp->chan_type == PCF8591_TEMP_SENS) {
353 if (chp->chan_xlate) {
357 chp->chan_xlate[data[1 + chp->chan_num]]
467 struct ecadc_channel *chp; local in function:ecadc_fan_adjust
    [all...]
  /src/sys/arch/atari/dev/
ite.c 2002 char *chp; local in function:iteputchar
2007 for (chp = sc->argbuf; chp < sc->ap; )
2009 switch (*chp)
2014 chp++;
2019 chp++;
2023 switch (chp[1])
2027 chp += 2;
2032 chp += 2;
2037 chp += 2
    [all...]
  /src/usr.sbin/installboot/
evboards.c 830 FTSENT *chp, *p; local in function:evb_db_load_overlays
841 (chp = fts_children(fts, 0)) == NULL) {
848 chp = fts_children(fts, 0);

Completed in 26 milliseconds

1 2