/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;
|
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);
|
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...] |
/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...] |
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...] |
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...] |