Lines Matching refs:sc_reg
61 static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
62 static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
104 static unsigned int get_scr_cfg_addr(struct ata_port *ap, unsigned int sc_reg) in get_scr_cfg_addr() argument
107 return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg); in get_scr_cfg_addr()
110 static u32 uli_scr_cfg_read(struct ata_link *link, unsigned int sc_reg) in uli_scr_cfg_read() argument
113 unsigned int cfg_addr = get_scr_cfg_addr(link->ap, sc_reg); in uli_scr_cfg_read()
128 static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in uli_scr_read() argument
130 if (sc_reg > SCR_CONTROL) in uli_scr_read()
133 *val = uli_scr_cfg_read(link, sc_reg); in uli_scr_read()
137 static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in uli_scr_write() argument
139 if (sc_reg > SCR_CONTROL) //SCR_CONTROL=2, SCR_ERROR=1, SCR_STATUS=0 in uli_scr_write()
142 uli_scr_cfg_write(link, sc_reg, val); in uli_scr_write()