Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/ata/
Dlibata-core.c96 unsigned long xfer_mask; member
424 if (!fe->param.xfer_mask) in ata_force_xfermask()
427 ata_unpack_xfermask(fe->param.xfer_mask, in ata_force_xfermask()
818 void ata_unpack_xfermask(unsigned long xfer_mask, unsigned long *pio_mask, in ata_unpack_xfermask() argument
822 *pio_mask = (xfer_mask & ATA_MASK_PIO) >> ATA_SHIFT_PIO; in ata_unpack_xfermask()
824 *mwdma_mask = (xfer_mask & ATA_MASK_MWDMA) >> ATA_SHIFT_MWDMA; in ata_unpack_xfermask()
826 *udma_mask = (xfer_mask & ATA_MASK_UDMA) >> ATA_SHIFT_UDMA; in ata_unpack_xfermask()
852 u8 ata_xfer_mask2mode(unsigned long xfer_mask) in ata_xfer_mask2mode() argument
854 int highbit = fls(xfer_mask) - 1; in ata_xfer_mask2mode()
925 const char *ata_mode_string(unsigned long xfer_mask) in ata_mode_string() argument
[all …]
Data_generic.c72 unsigned int xfer_mask = ata_id_xfermask(dev->id); in generic_set_mode() local
75 if (xfer_mask & (ATA_MASK_MWDMA | ATA_MASK_UDMA)) in generic_set_mode()
76 name = ata_mode_string(xfer_mask); in generic_set_mode()
80 xfer_mask |= ata_xfer_mode2mask(XFER_MW_DMA_0); in generic_set_mode()
85 dev->xfer_mode = ata_xfer_mask2mode(xfer_mask); in generic_set_mode()
Dpata_acpi.c77 unsigned int xfer_mask; in pacpi_discover_modes() local
83 xfer_mask = ata_acpi_gtm_xfermask(adev, &probe); in pacpi_discover_modes()
85 if (xfer_mask & (0xF8 << ATA_SHIFT_UDMA)) in pacpi_discover_modes()
88 return xfer_mask; in pacpi_discover_modes()
Dlibata-acpi.c494 unsigned long xfer_mask = 0; in ata_acpi_gtm_xfermask() local
506 xfer_mask |= ata_xfer_mode2mask(mode); in ata_acpi_gtm_xfermask()
518 xfer_mask |= ata_xfer_mode2mask(mode); in ata_acpi_gtm_xfermask()
520 return xfer_mask; in ata_acpi_gtm_xfermask()
536 unsigned long xfer_mask, udma_mask; in ata_acpi_cbl_80wire() local
538 xfer_mask = ata_acpi_gtm_xfermask(dev, gtm); in ata_acpi_cbl_80wire()
539 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()
/kernel/linux/linux-5.10/include/linux/
Dlibata.h911 unsigned long (*mode_filter)(struct ata_device *dev, unsigned long xfer_mask);
1129 extern void ata_unpack_xfermask(unsigned long xfer_mask,
1132 extern u8 ata_xfer_mask2mode(unsigned long xfer_mask);
1135 extern const char *ata_mode_string(unsigned long xfer_mask);