Lines Matching refs:sc_reg
70 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
71 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
502 static unsigned ahci_scr_offset(struct ata_port *ap, unsigned int sc_reg)
513 if (sc_reg < ARRAY_SIZE(offset) &&
514 (sc_reg != SCR_NOTIFICATION || (hpriv->cap & HOST_CAP_SNTF)))
515 return offset[sc_reg];
519 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
522 int offset = ahci_scr_offset(link->ap, sc_reg);
531 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
534 int offset = ahci_scr_offset(link->ap, sc_reg);