/linux-2.6.39/drivers/ata/ |
D | sata_sis.c | 67 static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 68 static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 112 static unsigned int get_scr_cfg_addr(struct ata_link *link, unsigned int sc_reg) in get_scr_cfg_addr() argument 116 unsigned int addr = SIS_SCR_BASE + (4 * sc_reg); in get_scr_cfg_addr() 142 unsigned int sc_reg, u32 *val) in sis_scr_cfg_read() argument 145 unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg); in sis_scr_cfg_read() 147 if (sc_reg == SCR_ERROR) /* doesn't exist in PCI cfg space */ in sis_scr_cfg_read() 155 unsigned int sc_reg, u32 val) in sis_scr_cfg_write() argument 158 unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg); in sis_scr_cfg_write() 164 static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sis_scr_read() argument [all …]
|
D | sata_uli.c | 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 [all …]
|
D | sata_via.c | 78 static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 79 static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 188 static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in svia_scr_read() argument 190 if (sc_reg > SCR_CONTROL) in svia_scr_read() 192 *val = ioread32(link->ap->ioaddr.scr_addr + (4 * sc_reg)); in svia_scr_read() 196 static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in svia_scr_write() argument 198 if (sc_reg > SCR_CONTROL) in svia_scr_write() 200 iowrite32(val, link->ap->ioaddr.scr_addr + (4 * sc_reg)); in svia_scr_write()
|
D | sata_vsc.c | 102 unsigned int sc_reg, u32 *val) in vsc_sata_scr_read() argument 104 if (sc_reg > SCR_CONTROL) in vsc_sata_scr_read() 106 *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); in vsc_sata_scr_read() 112 unsigned int sc_reg, u32 val) in vsc_sata_scr_write() argument 114 if (sc_reg > SCR_CONTROL) in vsc_sata_scr_write() 116 writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); in vsc_sata_scr_write()
|
D | sata_qstor.c | 115 static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 116 static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 231 static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in qs_scr_read() argument 233 if (sc_reg > SCR_CONTROL) in qs_scr_read() 235 *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 8)); in qs_scr_read() 245 static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in qs_scr_write() argument 247 if (sc_reg > SCR_CONTROL) in qs_scr_write() 249 writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 8)); in qs_scr_write()
|
D | sata_svw.c | 127 unsigned int sc_reg, u32 *val) in k2_sata_scr_read() argument 129 if (sc_reg > SCR_CONTROL) in k2_sata_scr_read() 131 *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); in k2_sata_scr_read() 137 unsigned int sc_reg, u32 val) in k2_sata_scr_write() argument 139 if (sc_reg > SCR_CONTROL) in k2_sata_scr_write() 141 writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); in k2_sata_scr_write()
|
D | sata_sil.c | 120 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 121 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 393 unsigned int sc_reg) in sil_scr_addr() argument 397 switch (sc_reg) { in sil_scr_addr() 412 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sil_scr_read() argument 414 void __iomem *mmio = sil_scr_addr(link->ap, sc_reg); in sil_scr_read() 423 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in sil_scr_write() argument 425 void __iomem *mmio = sil_scr_addr(link->ap, sc_reg); in sil_scr_write()
|
D | sata_inic162x.c | 273 static int inic_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) in inic_scr_read() argument 278 if (unlikely(sc_reg >= ARRAY_SIZE(scr_map))) in inic_scr_read() 281 addr = scr_addr + scr_map[sc_reg] * 4; in inic_scr_read() 282 *val = readl(scr_addr + scr_map[sc_reg] * 4); in inic_scr_read() 285 if (sc_reg == SCR_ERROR) in inic_scr_read() 290 static int inic_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) in inic_scr_write() argument 294 if (unlikely(sc_reg >= ARRAY_SIZE(scr_map))) in inic_scr_write() 297 writel(val, scr_addr + scr_map[sc_reg] * 4); in inic_scr_write()
|
D | sata_sil24.c | 336 static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val); 337 static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val); 504 static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) in sil24_scr_read() argument 508 if (sc_reg < ARRAY_SIZE(sil24_scr_map)) { in sil24_scr_read() 510 addr = scr_addr + sil24_scr_map[sc_reg] * 4; in sil24_scr_read() 511 *val = readl(scr_addr + sil24_scr_map[sc_reg] * 4); in sil24_scr_read() 517 static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) in sil24_scr_write() argument 521 if (sc_reg < ARRAY_SIZE(sil24_scr_map)) { in sil24_scr_write() 523 addr = scr_addr + sil24_scr_map[sc_reg] * 4; in sil24_scr_write() 524 writel(val, scr_addr + sil24_scr_map[sc_reg] * 4); in sil24_scr_write()
|
D | sata_fsl.c | 487 unsigned int sc_reg; in sata_fsl_scr_write() local 494 sc_reg = sc_reg_in; in sata_fsl_scr_write() 500 VPRINTK("xx_scr_write, reg_in = %d\n", sc_reg); in sata_fsl_scr_write() 502 iowrite32(val, ssr_base + (sc_reg * 4)); in sata_fsl_scr_write() 511 unsigned int sc_reg; in sata_fsl_scr_read() local 518 sc_reg = sc_reg_in; in sata_fsl_scr_read() 524 VPRINTK("xx_scr_read, reg_in = %d\n", sc_reg); in sata_fsl_scr_read() 526 *val = ioread32(ssr_base + (sc_reg * 4)); in sata_fsl_scr_read()
|
D | sata_promise.c | 150 static int pdc_sata_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 151 static int pdc_sata_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 481 unsigned int sc_reg, u32 *val) in pdc_sata_scr_read() argument 483 if (sc_reg > SCR_CONTROL) in pdc_sata_scr_read() 485 *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); in pdc_sata_scr_read() 490 unsigned int sc_reg, u32 val) in pdc_sata_scr_write() argument 492 if (sc_reg > SCR_CONTROL) in pdc_sata_scr_write() 494 writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); in pdc_sata_scr_write()
|
D | libahci.c | 69 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 70 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 519 static unsigned ahci_scr_offset(struct ata_port *ap, unsigned int sc_reg) in ahci_scr_offset() argument 530 if (sc_reg < ARRAY_SIZE(offset) && in ahci_scr_offset() 531 (sc_reg != SCR_NOTIFICATION || (hpriv->cap & HOST_CAP_SNTF))) in ahci_scr_offset() 532 return offset[sc_reg]; in ahci_scr_offset() 536 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in ahci_scr_read() argument 539 int offset = ahci_scr_offset(link->ap, sc_reg); in ahci_scr_read() 548 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in ahci_scr_write() argument 551 int offset = ahci_scr_offset(link->ap, sc_reg); in ahci_scr_write()
|
D | sata_nv.c | 306 static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 307 static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 1549 static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in nv_scr_read() argument 1551 if (sc_reg > SCR_CONTROL) in nv_scr_read() 1554 *val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg * 4)); in nv_scr_read() 1558 static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in nv_scr_write() argument 1560 if (sc_reg > SCR_CONTROL) in nv_scr_write() 1563 iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); in nv_scr_write()
|
/linux-2.6.39/include/linux/ |
D | libata.h | 842 int (*scr_read)(struct ata_link *link, unsigned int sc_reg, u32 *val); 843 int (*scr_write)(struct ata_link *link, unsigned int sc_reg, u32 val);
|