/src/sys/dev/ata/ |
satafis_subr.c | 104 struct ata_drive_datas *drvp = &xfer->c_chp->ch_drive[xfer->c_drive]; local in function:satafis_rhd_construct_bio 108 count = xfer->c_bcount / drvp->lp->d_secsize;
|
satapmp_subr.c | 55 struct ata_drive_datas *drvp; local in function:satapmp_read_8 61 drvp = &chp->ch_drive[PMP_PORT_CTL]; 62 KASSERT(drvp->drive == PMP_PORT_CTL); 76 (*atac->atac_bustype_ata->ata_exec_command)(drvp, xfer); 124 struct ata_drive_datas *drvp; local in function:satapmp_write_8 130 drvp = &chp->ch_drive[PMP_PORT_CTL]; 131 KASSERT(drvp->drive == PMP_PORT_CTL); 149 (*atac->atac_bustype_ata->ata_exec_command)(drvp, xfer);
|
ata_recovery.c | 67 ata_read_log_ext_ncq(struct ata_drive_datas *drvp, uint8_t flags, 71 struct ata_channel *chp = drvp->chnl_softc; 79 if (drvp->drive_type != ATA_DRIVET_ATA || 80 (drvp->drive_flags & ATA_DRIVE_NCQ) == 0) 106 (*atac->atac_bustype_ata->ata_exec_command)(drvp, xfer); 118 device_printf(drvp->drv_softc, 142 device_printf(drvp->drv_softc, 162 struct ata_drive_datas *drvp; local in function:ata_recovery_resume 176 drvp = &chp->ch_drive[drive]; 185 error = ata_read_log_ext_ncq(drvp, flags, &eslot, &st, &err) [all...] |
wdvar.h | 56 struct ata_drive_datas *drvp; /* Our controller's infos */ member in struct:wd_softc 96 ((wd)->drv_ncq && ((wd)->drvp->drive_flags & ATA_DRIVE_NCQ)) 99 ((wd)->drv_ncq_prio && ((wd)->drvp->drive_flags & ATA_DRIVE_NCQ_PRIO))
|
ata_wdc.c | 146 wdc_ata_bio(struct ata_drive_datas *drvp, struct ata_xfer *xfer) 148 struct ata_channel *chp = drvp->chnl_softc; 157 if ((drvp->drive_flags & (ATA_DRIVE_DMA | ATA_DRIVE_UDMA)) && 168 xfer->c_drive = drvp->drive; 182 struct ata_drive_datas *drvp = &chp->ch_drive[xfer->c_drive]; local in function:wdc_ata_bio_start 194 drvp->state, drvp->drive_flags, xfer->c_flags, chp->ch_flags), 200 if (__predict_false(drvp->state < READY)) { 239 if ((drvp->drive_flags & ATA_DRIVE_MODE) == 0) 241 wdccommand(chp, drvp->drive, SET_FEATURES, 0, 0, 0 340 struct ata_drive_datas *drvp = &chp->ch_drive[xfer->c_drive]; local in function:_wdc_ata_bio_start 633 struct ata_drive_datas *drvp = &chp->ch_drive[xfer->c_drive]; local in function:wdc_ata_bio_intr [all...] |
/src/sys/dev/pci/ |
cypide.c | 171 struct ata_drive_datas *drvp; local in function:cy693_setup_channel 188 drvp = &chp->ch_drive[drive]; 190 if (drvp->drive_type == ATA_DRIVET_NONE) 193 if (drvp->drive_flags & ATA_DRIVE_DMA) { 196 if (dma_mode == -1 || dma_mode > drvp->DMA_mode) 197 dma_mode = drvp->DMA_mode; 199 cy_cmd_ctrl |= (cy_pio_pulse[drvp->PIO_mode] << 201 cy_cmd_ctrl |= (cy_pio_rec[drvp->PIO_mode] << 203 cy_cmd_ctrl |= (cy_pio_pulse[drvp->PIO_mode] << 205 cy_cmd_ctrl |= (cy_pio_rec[drvp->PIO_mode] < [all...] |
acardide.c | 183 struct ata_drive_datas *drvp; local in function:acard_setup_channel 222 drvp = &chp->ch_drive[drive]; 224 if (drvp->drive_type == ATA_DRIVET_NONE) 228 (drvp->drive_flags & ATA_DRIVE_UDMA)) { 232 acard_act_udma[drvp->UDMA_mode], 233 acard_rec_udma[drvp->UDMA_mode]); 235 acard_udma_conf[drvp->UDMA_mode]); 238 acard_act_udma[drvp->UDMA_mode], 239 acard_rec_udma[drvp->UDMA_mode]); 241 acard_udma_conf[drvp->UDMA_mode]) [all...] |
geodeide.c | 171 struct ata_drive_datas *drvp; local in function:geodeide_setup_channel 205 drvp = &chp->ch_drive[drive]; 207 if (drvp->drive_type == ATA_DRIVET_NONE) 226 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 228 dma_timing |= geode_udma[drvp->UDMA_mode]; 230 } else if (drvp->drive_flags & ATA_DRIVE_DMA) { 232 dma_timing |= geode_dma[drvp->DMA_mode]; 237 drvp->drive_flags &= ~(ATA_DRIVE_UDMA | ATA_DRIVE_DMA); 246 piooff, geode_pio[drvp->PIO_mode]); 253 geode_pio[drvp->PIO_mode]) [all...] |
iteide.c | 165 struct ata_drive_datas *drvp; local in function:ite_setup_channel 189 drvp = &chp->ch_drive[drive]; 192 if (drvp->drive_type == ATA_DRIVET_NONE) 196 (drvp->drive_flags & ATA_DRIVE_UDMA) != 0) { 198 drvp->drive_flags &= ~ATA_DRIVE_DMA; 203 if (drvp->UDMA_mode > 2 && 209 drvp->UDMA_mode = 2; 213 if (drvp->UDMA_mode >= 5) 218 mode = drvp->PIO_mode; 220 (drvp->drive_flags & ATA_DRIVE_DMA) != 0) [all...] |
optiide.c | 172 struct ata_drive_datas *drvp; local in function:opti_setup_channel 199 drvp = &chp->ch_drive[drive]; 201 if (drvp->drive_type == ATA_DRIVET_NONE) { 206 if ((drvp->drive_flags & ATA_DRIVE_DMA)) { 211 if (drvp->PIO_mode > (drvp->DMA_mode + 2)) 212 drvp->PIO_mode = drvp->DMA_mode + 2; 213 if (drvp->DMA_mode + 2 > (drvp->PIO_mode) [all...] |
rdcide.c | 207 struct ata_drive_datas *drvp = cp->ata_channel.ch_drive; local in function:rdcide_setup_channel 228 if (drvp[drive].drive_type == ATA_DRIVET_NONE) 230 if (drvp[drive].drive_type == ATA_DRIVET_ATAPI) 234 rdcide_setup[drvp[drive].PIO_mode], 237 rdcide_hold[drvp[drive].PIO_mode], 242 rdcide_setup[drvp[drive].PIO_mode], 245 rdcide_hold[drvp[drive].PIO_mode], 248 if (drvp[drive].PIO_mode > 0) { 252 if (drvp[drive].drive_flags & ATA_DRIVE_DMA) { 255 if ((drvp[drive].drive_flags & ATA_DRIVE_UDMA) == 0 [all...] |
schide.c | 172 struct ata_drive_datas *drvp; local in function:sch_setup_channel 186 drvp = &chp->ch_drive[drive]; 188 if (drvp->drive_type == ATA_DRIVET_NONE) 195 if (((drvp->drive_flags & ATA_DRIVE_DMA) == 0 && 196 (drvp->drive_flags & ATA_DRIVE_UDMA) == 0)) 201 (drvp->drive_flags & ATA_DRIVE_UDMA)) { 203 tim |= (drvp->UDMA_mode << 16) | SCH_TIM_SYNCDMA; 207 drvp->drive_flags &= ~ATA_DRIVE_UDMA; 215 tim |= (drvp->DMA_mode << 8) | (drvp->PIO_mode) [all...] |
slide.c | 190 struct ata_drive_datas *drvp; local in function:sl82c105_setup_channel 209 drvp = &chp->ch_drive[drive]; 211 if (drvp->drive_type == ATA_DRIVET_NONE) { 216 if (drvp->drive_flags & ATA_DRIVE_DMA) { 221 if (drvp->PIO_mode >= 3) { 222 if ((drvp->DMA_mode + 2) > drvp->PIO_mode) 223 drvp->DMA_mode = drvp->PIO_mode - 2; 224 if (drvp->DMA_mode < 1) [all...] |
stpcide.c | 148 struct ata_drive_datas *drvp; local in function:stpc_setup_channel 160 drvp = &chp->ch_drive[drive]; 162 if (drvp->drive_type == ATA_DRIVET_NONE) 166 (drvp->drive_flags & ATA_DRIVE_DMA)) { 169 drvp->drive_flags &= ~ATA_DRIVE_UDMA; 177 drvp->drive_flags &= ~(ATA_DRIVE_UDMA | ATA_DRIVE_DMA); 181 bits[drive] |= dmatbl[drvp->DMA_mode] | piotbl[drvp->PIO_mode];
|
toshide.c | 168 struct ata_drive_datas *drvp; local in function:piccolo_setup_channel 185 drvp = &chp->ch_drive[drive]; 187 if (drvp->drive_type == ATA_DRIVET_NONE) 190 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 193 drvp->drive_flags &= ~ATA_DRIVE_DMA; 218 else if (drvp->drive_flags & ATA_DRIVE_DMA) { 222 if (drvp->PIO_mode > (drvp->DMA_mode + 2)) 223 drvp->PIO_mode = drvp->DMA_mode + 2 [all...] |
hptide.c | 281 struct ata_drive_datas *drvp; local in function:hpt_setup_channel 339 drvp = &chp->ch_drive[drive]; 341 if (drvp->drive_type == ATA_DRIVET_NONE) 347 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 350 drvp->drive_flags &= ~ATA_DRIVE_DMA; 353 drvp->UDMA_mode > 2) 354 drvp->UDMA_mode = 2; 355 after = tim_udma[drvp->UDMA_mode]; 357 } else if (drvp->drive_flags & ATA_DRIVE_DMA) { 363 if (drvp->PIO_mode >= 3 & [all...] |
ixpide.c | 180 struct ata_drive_datas *drvp; local in function:ixp_setup_channel 191 drvp = &chp->ch_drive[drive]; 192 if (drvp->drive_type == ATA_DRIVET_NONE) 194 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 196 drvp->drive_flags &= ~ATA_DRIVE_DMA; 199 IXP_SET_MODE(udma, chp->ch_channel, drive, drvp->UDMA_mode); 200 } else if (drvp->drive_flags & ATA_DRIVE_DMA) { 203 ixp_mdma_timings[drvp->DMA_mode]); 211 if (drvp->PIO_mode == 1) 212 drvp->PIO_mode = 0 [all...] |
nside.c | 158 struct ata_drive_datas *drvp; local in function:natsemi_setup_channel 169 drvp = &chp->ch_drive[drive]; 171 if (drvp->drive_type == ATA_DRIVET_NONE) 175 if ((drvp->drive_flags & ATA_DRIVE_DMA) == 0) { 176 tim = natsemi_pio_pulse[drvp->PIO_mode] | 177 (natsemi_pio_recover[drvp->PIO_mode] << 4); 184 if (drvp->PIO_mode >= 3 && 185 (drvp->DMA_mode + 2) > drvp->PIO_mode) { 186 drvp->DMA_mode = drvp->PIO_mode - 2 [all...] |
aceride.c | 262 struct ata_drive_datas *drvp; local in function:acer_setup_channel 288 drvp = &chp->ch_drive[drive]; 290 if (drvp->drive_type == ATA_DRIVET_NONE) 302 if (drvp->drive_type == ATA_DRIVET_ATAPI) { 304 drvp->drive_flags &= ~(ATA_DRIVE_DMA|ATA_DRIVE_UDMA); 309 if ((drvp->drive_flags & ATA_DRIVE_DMA) == 0 && 310 (drvp->drive_flags & ATA_DRIVE_UDMA) == 0) { 317 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 320 drvp->drive_flags &= ~ATA_DRIVE_DMA; 325 acer_udma[drvp->UDMA_mode]) [all...] |
pdcide.c | 329 struct ata_drive_datas *drvp; local in function:pdc202xx_setup_channel 392 drvp = &chp->ch_drive[drive]; 394 if (drvp->drive_type == ATA_DRIVET_NONE) 397 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 400 drvp->drive_flags &= ~ATA_DRIVE_DMA; 403 pdc2xx_udma_mb[drvp->UDMA_mode]); 405 pdc2xx_udma_mc[drvp->UDMA_mode]); 407 } else if (drvp->drive_flags & ATA_DRIVE_DMA) { 409 pdc2xx_dma_mb[drvp->DMA_mode]); 411 pdc2xx_dma_mc[drvp->DMA_mode]) 446 struct ata_drive_datas *drvp; local in function:pdc20268_setup_channel [all...] |
piixide.c | 600 struct ata_drive_datas *drvp = cp->ata_channel.ch_drive; local in function:piix_setup_channel 620 if ((drvp[0].drive_flags & ATA_DRIVE_DMA) && 621 (drvp[1].drive_flags & ATA_DRIVE_DMA)) { 623 uimin(drvp[0].DMA_mode, drvp[1].DMA_mode); 624 drvp[0].DMA_mode = mode[0]; 625 drvp[1].DMA_mode = mode[1]; 632 if (drvp[0].drive_flags & ATA_DRIVE_DMA) { 633 mode[0] = drvp[0].DMA_mode; 634 mode[1] = drvp[1].PIO_mode 702 struct ata_drive_datas *drvp; local in function:piix3_4_setup_channel [all...] |
rccide.c | 184 struct ata_drive_datas *drvp; local in function:serverworks_setup_channel 213 drvp = &chp->ch_drive[drive]; 215 if (drvp->drive_type == ATA_DRIVET_NONE) 219 pio_time |= pio_modes[drvp->PIO_mode] << (8 * (unit^1)); 220 pio_mode |= drvp->PIO_mode << (4 * unit + 16); 222 (drvp->drive_flags & ATA_DRIVE_UDMA)) { 224 if (drvp->UDMA_mode > 2 && 228 drvp->UDMA_mode = 2; 229 dma_time |= dma_modes[drvp->DMA_mode] << (8 * (unit^1)); 230 udma_mode |= drvp->UDMA_mode << (4 * unit + 16) [all...] |
cmdide.c | 393 struct ata_drive_datas *drvp; local in function:cmd0643_9_setup_channel 405 drvp = &chp->ch_drive[drive]; 407 if (drvp->drive_type == ATA_DRIVET_NONE) 410 tim = cmd0643_9_data_tim_pio[drvp->PIO_mode]; 411 if (drvp->drive_flags & (ATA_DRIVE_DMA | ATA_DRIVE_UDMA)) { 412 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 415 drvp->drive_flags &= ~ATA_DRIVE_DMA; 419 if (drvp->UDMA_mode > 2 && 423 drvp->UDMA_mode = 2; 424 if (drvp->UDMA_mode > 2 567 struct ata_drive_datas *drvp; local in function:cmd680_setup_channel [all...] |
/src/sys/arch/i386/pci/ |
gcscide.c | 194 struct ata_drive_datas *drvp; local in function:gcscide_setup_channel 201 drvp = &chp->ch_drive[drive]; 202 if (drvp->drive_type == ATA_DRIVET_NONE) 208 if (drvp->drive_flags & ATA_DRIVE_UDMA) { 210 drvp->drive_flags &= ~ATA_DRIVE_DMA; 215 reg |= gcscide_udma_timings[drvp->UDMA_mode]; 220 } else if (drvp->drive_flags & ATA_DRIVE_DMA) { 224 reg |= gcscide_mdma_timings[drvp->DMA_mode]; 236 gcscide_pio_timings[drvp->PIO_mode]);
|
/src/sys/dev/ic/ |
ninjaata32.c | 315 struct ata_drive_datas *drvp; local in function:njata32_setup_channel 327 drvp = &chp->ch_drive[drive]; 328 if (drvp->drive_type == ATA_DRIVET_NONE) 332 if ((drvp->drive_flags & ATA_DRIVE_DMA) != 0) { 336 if ((mode = drvp->DMA_mode) > NJATA32_MODE_MAX_DMA) 345 if ((mode = drvp->PIO_mode) > NJATA32_MODE_MAX_PIO)
|