Lines Matching full:scr
363 static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in sata_dwc_scr_read() argument
365 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_read()
366 dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n", in sata_dwc_scr_read()
367 __func__, scr); in sata_dwc_scr_read()
371 *val = sata_dwc_readl(link->ap->ioaddr.scr_addr + (scr * 4)); in sata_dwc_scr_read()
373 link->ap->print_id, scr, *val); in sata_dwc_scr_read()
378 static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val) in sata_dwc_scr_write() argument
381 link->ap->print_id, scr, val); in sata_dwc_scr_write()
382 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_write()
383 dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n", in sata_dwc_scr_write()
384 __func__, scr); in sata_dwc_scr_write()
387 sata_dwc_writel(link->ap->ioaddr.scr_addr + (scr * 4), val); in sata_dwc_scr_write()