Lines Matching refs:xfer_mode
880 unsigned long ata_xfer_mode2mask(u8 xfer_mode) in ata_xfer_mode2mask() argument
885 if (xfer_mode >= ent->base && xfer_mode < ent->base + ent->bits) in ata_xfer_mode2mask()
886 return ((2 << (ent->shift + xfer_mode - ent->base)) - 1) in ata_xfer_mode2mask()
904 int ata_xfer_mode2shift(unsigned long xfer_mode) in ata_xfer_mode2shift() argument
909 if (xfer_mode >= ent->base && xfer_mode < ent->base + ent->bits) in ata_xfer_mode2shift()
3366 if (dev->xfer_mode == ata_xfer_mask2mode(ata_id_xfermask(dev->id))) in ata_dev_set_mode()
3377 dev->xfer_shift, (int)dev->xfer_mode); in ata_dev_set_mode()
3382 ata_mode_string(ata_xfer_mode2mask(dev->xfer_mode)), in ata_dev_set_mode()
3455 dev->xfer_mode = dev->pio_mode; in ata_do_set_mode()
3466 dev->xfer_mode = dev->dma_mode; in ata_do_set_mode()
4339 tf.nsect = dev->xfer_mode; in ata_dev_set_xfermode()