Home
last modified time | relevance | path

Searched refs:ch_ndrives (Results 1 – 17 of 17) sorted by relevance

/netbsd/sys/dev/ata/
H A Data.c246 if (chp->ch_ndrives >= 2) { in atabusconfig()
270 for (i = 0; i < chp->ch_ndrives; i++) in atabusconfig()
273 if (i == chp->ch_ndrives) in atabusconfig()
363 for (i = 0; i < chp->ch_ndrives; i++) { in atabusconfig_thread()
408 for (i = 0; i < chp->ch_ndrives; i++) { in atabusconfig_thread()
755 if (chp->ch_ndrives != ndrives) in atabus_alloc_drives()
775 chp->ch_ndrives = ndrives; in atabus_alloc_drives()
808 chp->ch_ndrives = 0; in atabus_free_drives()
1580 KASSERT(drive <= chp->ch_ndrives); in ata_thread_run()
1642 KASSERT(drive <= chp->ch_ndrives); in ata_thread_run()
[all …]
H A Dsatapmp_subr.c60 KASSERT(chp->ch_ndrives >= PMP_MAX_DRIVES); in satapmp_read_8()
129 KASSERT(chp->ch_ndrives >= PMP_MAX_DRIVES); in satapmp_write_8()
245 KASSERT(chp->ch_satapmp_nports <= chp->ch_ndrives); in satapmp_rescan()
H A Dsata_subr.c180 KASSERT(port < chp->ch_ndrives); in sata_interpret_sig()
H A Data_recovery.c175 KASSERT(drive < chp->ch_ndrives); in ata_recovery_resume()
H A Data_subr.c291 device_xname(chp->atabus), chp->ch_flags, chp->ch_ndrives); in atachannel_debug()
H A Datavar.h426 int ch_ndrives; /* number of entries in ch_drive[] */ member
/netbsd/sys/dev/ic/
H A Dwdc.c212 KASSERT(chp->ch_ndrives == 0 || chp->ch_drive != NULL); in wdc_sataprobe()
320 if (chp->ch_ndrives > 1 && in wdc_drvprobe()
343 (chp->ch_ndrives < 2 || in wdc_drvprobe()
359 if (chp->ch_ndrives > 1 && (st1 & WDCS_DRDY) == 0 && in wdc_drvprobe()
371 for (i = 0; i < chp->ch_ndrives; i++) { in wdc_drvprobe()
471 for (j = 0; j < chp->ch_ndrives; j++) { in wdc_drvprobe()
1043 if (chp->ch_ndrives > 1) in wdcreset()
H A Dninjaata32.c319 KASSERT(chp->ch_ndrives != 0); in njata32_setup_channel()
326 for (drive = 0; drive < chp->ch_ndrives; drive++) { in njata32_setup_channel()
H A Dsiisata.c635 if (chp->ch_ndrives > PMP_PORT_CTL) { in siisata_channel_recover()
1449 if (chp->ch_ndrives > 1) { in siisata_reinit_port()
1461 for (int i = 0; i < chp->ch_ndrives; i++) { in siisata_reinit_port()
1483 if (chp->ch_ndrives > 1) in siisata_reinit_port()
H A Dahcisata_core.c1106 if (chp->ch_ndrives > PMP_PORT_CTL && in ahci_probe_drive()
1678 if (chp->ch_ndrives > PMP_PORT_CTL && in ahci_channel_start()
1704 if (chp->ch_ndrives > PMP_PORT_CTL) { in ahci_channel_recover()
H A Dmvsata.c567 if (chp->ch_ndrives > PMP_PORT_CTL) { in mvsata_channel_recover()
897 for (drive = 0; drive < chp->ch_ndrives; drive++) { in mvsata_setup_channel()
960 for (drive = 0; drive < chp->ch_ndrives; drive++) { in mvsata_setup_channel()
/netbsd/sys/dev/pci/
H A Dpciide_common.c576 KASSERT(cp->ata_channel.ch_ndrives != 0); in pciide_channel_dma_setup()
578 for (drive = 0; drive < cp->ata_channel.ch_ndrives; drive++) { in pciide_channel_dma_setup()
1120 KASSERT(cp->ata_channel.ch_ndrives != 0); in sata_setup_channel()
1121 for (drive = 0; drive < cp->ata_channel.ch_ndrives; drive++) { in sata_setup_channel()
H A Dhptide.c338 for (drive = 0; drive < chp->ch_ndrives; drive++) { in hpt_setup_channel()
H A Dcmdide.c219 if (nchp->ch_ndrives == 0) in cmd064x_free_hw()
/netbsd/sys/arch/i386/pnpbios/
H A Dpciide_pnpbios.c178 for (drive = 0; drive < cp->ata_channel.ch_ndrives; drive++) { in pciide_pnpbios_attach()
/netbsd/sys/arch/playstation2/dev/
H A Dwdc_spd.c206 ch->ch_ndrives = 2; in wdc_spd_attach()
/netbsd/sys/dev/scsipi/
H A Datapi_wdc.c141 chan->chan_ntargets = chp->ch_ndrives; in wdc_atapibus_attach()