[libata irq-pio] reorganize ata_pio_sector() and __atapi_pio_bytes()