Home
last modified time | relevance | path

Searched refs:xfer_mask (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/drivers/ata/
Dlibata-core.c103 unsigned long xfer_mask; member
429 if (!fe->param.xfer_mask) in ata_force_xfermask()
432 ata_unpack_xfermask(fe->param.xfer_mask, in ata_force_xfermask()
882 void ata_unpack_xfermask(unsigned long xfer_mask, unsigned long *pio_mask, in ata_unpack_xfermask() argument
886 *pio_mask = (xfer_mask & ATA_MASK_PIO) >> ATA_SHIFT_PIO; in ata_unpack_xfermask()
888 *mwdma_mask = (xfer_mask & ATA_MASK_MWDMA) >> ATA_SHIFT_MWDMA; in ata_unpack_xfermask()
890 *udma_mask = (xfer_mask & ATA_MASK_UDMA) >> ATA_SHIFT_UDMA; in ata_unpack_xfermask()
916 u8 ata_xfer_mask2mode(unsigned long xfer_mask) in ata_xfer_mask2mode() argument
918 int highbit = fls(xfer_mask) - 1; in ata_xfer_mask2mode()
986 const char *ata_mode_string(unsigned long xfer_mask) in ata_mode_string() argument
[all …]
Data_generic.c73 unsigned int xfer_mask = ata_id_xfermask(dev->id); in generic_set_mode() local
76 if (xfer_mask & (ATA_MASK_MWDMA | ATA_MASK_UDMA)) in generic_set_mode()
77 name = ata_mode_string(xfer_mask); in generic_set_mode()
81 xfer_mask |= ata_xfer_mode2mask(XFER_MW_DMA_0); in generic_set_mode()
87 dev->xfer_mode = ata_xfer_mask2mode(xfer_mask); in generic_set_mode()
Dpata_acpi.c78 unsigned int xfer_mask; in pacpi_discover_modes() local
84 xfer_mask = ata_acpi_gtm_xfermask(adev, &probe); in pacpi_discover_modes()
86 if (xfer_mask & (0xF8 << ATA_SHIFT_UDMA)) in pacpi_discover_modes()
89 return xfer_mask; in pacpi_discover_modes()
Dlibata-acpi.c529 unsigned long xfer_mask = 0; in ata_acpi_gtm_xfermask() local
541 xfer_mask |= ata_xfer_mode2mask(mode); in ata_acpi_gtm_xfermask()
553 xfer_mask |= ata_xfer_mode2mask(mode); in ata_acpi_gtm_xfermask()
555 return xfer_mask; in ata_acpi_gtm_xfermask()
571 unsigned long xfer_mask, udma_mask; in ata_acpi_cbl_80wire() local
573 xfer_mask = ata_acpi_gtm_xfermask(dev, gtm); in ata_acpi_cbl_80wire()
574 ata_unpack_xfermask(xfer_mask, NULL, NULL, &udma_mask); in ata_acpi_cbl_80wire()
Dpata_amd.c269 unsigned long xfer_mask) in nv_mode_filter() argument
316 xfer_mask, limit, xfer_mask & limit, bios_limit, in nv_mode_filter()
319 return xfer_mask & limit; in nv_mode_filter()
/linux-2.6.39/include/linux/
Dlibata.h817 unsigned long (*mode_filter)(struct ata_device *dev, unsigned long xfer_mask);
1014 extern void ata_unpack_xfermask(unsigned long xfer_mask,
1017 extern u8 ata_xfer_mask2mode(unsigned long xfer_mask);
1020 extern const char *ata_mode_string(unsigned long xfer_mask);