sc_reg 55 drivers/ata/libahci.c static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 56 drivers/ata/libahci.c static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 576 drivers/ata/libahci.c static unsigned ahci_scr_offset(struct ata_port *ap, unsigned int sc_reg) sc_reg 587 drivers/ata/libahci.c if (sc_reg < ARRAY_SIZE(offset) && sc_reg 588 drivers/ata/libahci.c (sc_reg != SCR_NOTIFICATION || (hpriv->cap & HOST_CAP_SNTF))) sc_reg 589 drivers/ata/libahci.c return offset[sc_reg]; sc_reg 593 drivers/ata/libahci.c static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) sc_reg 596 drivers/ata/libahci.c int offset = ahci_scr_offset(link->ap, sc_reg); sc_reg 605 drivers/ata/libahci.c static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) sc_reg 608 drivers/ata/libahci.c int offset = ahci_scr_offset(link->ap, sc_reg); sc_reg 601 drivers/ata/sata_fsl.c unsigned int sc_reg; sc_reg 608 drivers/ata/sata_fsl.c sc_reg = sc_reg_in; sc_reg 614 drivers/ata/sata_fsl.c VPRINTK("xx_scr_write, reg_in = %d\n", sc_reg); sc_reg 616 drivers/ata/sata_fsl.c iowrite32(val, ssr_base + (sc_reg * 4)); sc_reg 625 drivers/ata/sata_fsl.c unsigned int sc_reg; sc_reg 632 drivers/ata/sata_fsl.c sc_reg = sc_reg_in; sc_reg 638 drivers/ata/sata_fsl.c VPRINTK("xx_scr_read, reg_in = %d\n", sc_reg); sc_reg 640 drivers/ata/sata_fsl.c *val = ioread32(ssr_base + (sc_reg * 4)); sc_reg 291 drivers/ata/sata_inic162x.c static int inic_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) sc_reg 295 drivers/ata/sata_inic162x.c if (unlikely(sc_reg >= ARRAY_SIZE(scr_map))) sc_reg 298 drivers/ata/sata_inic162x.c *val = readl(scr_addr + scr_map[sc_reg] * 4); sc_reg 301 drivers/ata/sata_inic162x.c if (sc_reg == SCR_ERROR) sc_reg 306 drivers/ata/sata_inic162x.c static int inic_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) sc_reg 310 drivers/ata/sata_inic162x.c if (unlikely(sc_reg >= ARRAY_SIZE(scr_map))) sc_reg 313 drivers/ata/sata_inic162x.c writel(val, scr_addr + scr_map[sc_reg] * 4); sc_reg 289 drivers/ata/sata_nv.c static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 290 drivers/ata/sata_nv.c static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 1508 drivers/ata/sata_nv.c static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) sc_reg 1510 drivers/ata/sata_nv.c if (sc_reg > SCR_CONTROL) sc_reg 1513 drivers/ata/sata_nv.c *val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 1517 drivers/ata/sata_nv.c static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) sc_reg 1519 drivers/ata/sata_nv.c if (sc_reg > SCR_CONTROL) sc_reg 1522 drivers/ata/sata_nv.c iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 137 drivers/ata/sata_promise.c static int pdc_sata_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 138 drivers/ata/sata_promise.c static int pdc_sata_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 468 drivers/ata/sata_promise.c unsigned int sc_reg, u32 *val) sc_reg 470 drivers/ata/sata_promise.c if (sc_reg > SCR_CONTROL) sc_reg 472 drivers/ata/sata_promise.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 477 drivers/ata/sata_promise.c unsigned int sc_reg, u32 val) sc_reg 479 drivers/ata/sata_promise.c if (sc_reg > SCR_CONTROL) sc_reg 481 drivers/ata/sata_promise.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 98 drivers/ata/sata_qstor.c static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 99 drivers/ata/sata_qstor.c static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 214 drivers/ata/sata_qstor.c static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) sc_reg 216 drivers/ata/sata_qstor.c if (sc_reg > SCR_CONTROL) sc_reg 218 drivers/ata/sata_qstor.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 8)); sc_reg 228 drivers/ata/sata_qstor.c static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) sc_reg 230 drivers/ata/sata_qstor.c if (sc_reg > SCR_CONTROL) sc_reg 232 drivers/ata/sata_qstor.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 8)); sc_reg 507 drivers/ata/sata_rcar.c static int sata_rcar_scr_read(struct ata_link *link, unsigned int sc_reg, sc_reg 510 drivers/ata/sata_rcar.c if (sc_reg > SCR_ACTIVE) sc_reg 513 drivers/ata/sata_rcar.c *val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg << 2)); sc_reg 517 drivers/ata/sata_rcar.c static int sata_rcar_scr_write(struct ata_link *link, unsigned int sc_reg, sc_reg 520 drivers/ata/sata_rcar.c if (sc_reg > SCR_ACTIVE) sc_reg 523 drivers/ata/sata_rcar.c iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg << 2)); sc_reg 103 drivers/ata/sata_sil.c static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 104 drivers/ata/sata_sil.c static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 377 drivers/ata/sata_sil.c unsigned int sc_reg) sc_reg 381 drivers/ata/sata_sil.c switch (sc_reg) { sc_reg 396 drivers/ata/sata_sil.c static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) sc_reg 398 drivers/ata/sata_sil.c void __iomem *mmio = sil_scr_addr(link->ap, sc_reg); sc_reg 407 drivers/ata/sata_sil.c static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) sc_reg 409 drivers/ata/sata_sil.c void __iomem *mmio = sil_scr_addr(link->ap, sc_reg); sc_reg 326 drivers/ata/sata_sil24.c static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val); sc_reg 327 drivers/ata/sata_sil24.c static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val); sc_reg 497 drivers/ata/sata_sil24.c static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) sc_reg 501 drivers/ata/sata_sil24.c if (sc_reg < ARRAY_SIZE(sil24_scr_map)) { sc_reg 502 drivers/ata/sata_sil24.c *val = readl(scr_addr + sil24_scr_map[sc_reg] * 4); sc_reg 508 drivers/ata/sata_sil24.c static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) sc_reg 512 drivers/ata/sata_sil24.c if (sc_reg < ARRAY_SIZE(sil24_scr_map)) { sc_reg 513 drivers/ata/sata_sil24.c writel(val, scr_addr + sil24_scr_map[sc_reg] * 4); sc_reg 50 drivers/ata/sata_sis.c static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 51 drivers/ata/sata_sis.c static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 99 drivers/ata/sata_sis.c static unsigned int get_scr_cfg_addr(struct ata_link *link, unsigned int sc_reg) sc_reg 103 drivers/ata/sata_sis.c unsigned int addr = SIS_SCR_BASE + (4 * sc_reg); sc_reg 129 drivers/ata/sata_sis.c unsigned int sc_reg, u32 *val) sc_reg 132 drivers/ata/sata_sis.c unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg); sc_reg 134 drivers/ata/sata_sis.c if (sc_reg == SCR_ERROR) /* doesn't exist in PCI cfg space */ sc_reg 142 drivers/ata/sata_sis.c unsigned int sc_reg, u32 val) sc_reg 145 drivers/ata/sata_sis.c unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg); sc_reg 151 drivers/ata/sata_sis.c static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) sc_reg 156 drivers/ata/sata_sis.c if (sc_reg > SCR_CONTROL) sc_reg 160 drivers/ata/sata_sis.c return sis_scr_cfg_read(link, sc_reg, val); sc_reg 162 drivers/ata/sata_sis.c *val = ioread32(base + sc_reg * 4); sc_reg 166 drivers/ata/sata_sis.c static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) sc_reg 171 drivers/ata/sata_sis.c if (sc_reg > SCR_CONTROL) sc_reg 175 drivers/ata/sata_sis.c return sis_scr_cfg_write(link, sc_reg, val); sc_reg 177 drivers/ata/sata_sis.c iowrite32(val, base + (sc_reg * 4)); sc_reg 106 drivers/ata/sata_svw.c unsigned int sc_reg, u32 *val) sc_reg 108 drivers/ata/sata_svw.c if (sc_reg > SCR_CONTROL) sc_reg 110 drivers/ata/sata_svw.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 116 drivers/ata/sata_svw.c unsigned int sc_reg, u32 val) sc_reg 118 drivers/ata/sata_svw.c if (sc_reg > SCR_CONTROL) sc_reg 120 drivers/ata/sata_svw.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 44 drivers/ata/sata_uli.c static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 45 drivers/ata/sata_uli.c static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 87 drivers/ata/sata_uli.c static unsigned int get_scr_cfg_addr(struct ata_port *ap, unsigned int sc_reg) sc_reg 90 drivers/ata/sata_uli.c return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg); sc_reg 93 drivers/ata/sata_uli.c static u32 uli_scr_cfg_read(struct ata_link *link, unsigned int sc_reg) sc_reg 96 drivers/ata/sata_uli.c unsigned int cfg_addr = get_scr_cfg_addr(link->ap, sc_reg); sc_reg 111 drivers/ata/sata_uli.c static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) sc_reg 113 drivers/ata/sata_uli.c if (sc_reg > SCR_CONTROL) sc_reg 116 drivers/ata/sata_uli.c *val = uli_scr_cfg_read(link, sc_reg); sc_reg 120 drivers/ata/sata_uli.c static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) sc_reg 122 drivers/ata/sata_uli.c if (sc_reg > SCR_CONTROL) //SCR_CONTROL=2, SCR_ERROR=1, SCR_STATUS=0 sc_reg 125 drivers/ata/sata_uli.c uli_scr_cfg_write(link, sc_reg, val); sc_reg 73 drivers/ata/sata_via.c static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 74 drivers/ata/sata_via.c static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); sc_reg 185 drivers/ata/sata_via.c static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) sc_reg 187 drivers/ata/sata_via.c if (sc_reg > SCR_CONTROL) sc_reg 189 drivers/ata/sata_via.c *val = ioread32(link->ap->ioaddr.scr_addr + (4 * sc_reg)); sc_reg 193 drivers/ata/sata_via.c static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) sc_reg 195 drivers/ata/sata_via.c if (sc_reg > SCR_CONTROL) sc_reg 197 drivers/ata/sata_via.c iowrite32(val, link->ap->ioaddr.scr_addr + (4 * sc_reg)); sc_reg 85 drivers/ata/sata_vsc.c unsigned int sc_reg, u32 *val) sc_reg 87 drivers/ata/sata_vsc.c if (sc_reg > SCR_CONTROL) sc_reg 89 drivers/ata/sata_vsc.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 95 drivers/ata/sata_vsc.c unsigned int sc_reg, u32 val) sc_reg 97 drivers/ata/sata_vsc.c if (sc_reg > SCR_CONTROL) sc_reg 99 drivers/ata/sata_vsc.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); sc_reg 40 drivers/net/ethernet/hisilicon/hns_mdio.c struct hns_mdio_sc_reg sc_reg; sc_reg 353 drivers/net/ethernet/hisilicon/hns_mdio.c const struct hns_mdio_sc_reg *sc_reg; sc_reg 362 drivers/net/ethernet/hisilicon/hns_mdio.c sc_reg = &mdio_dev->sc_reg; sc_reg 364 drivers/net/ethernet/hisilicon/hns_mdio.c ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_reset_req, sc_reg 365 drivers/net/ethernet/hisilicon/hns_mdio.c 0x1, sc_reg->mdio_reset_st, 0x1, sc_reg 373 drivers/net/ethernet/hisilicon/hns_mdio.c ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_clk_dis, sc_reg 374 drivers/net/ethernet/hisilicon/hns_mdio.c 0x1, sc_reg->mdio_clk_st, 0x1, sc_reg 382 drivers/net/ethernet/hisilicon/hns_mdio.c ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_reset_dreq, sc_reg 383 drivers/net/ethernet/hisilicon/hns_mdio.c 0x1, sc_reg->mdio_reset_st, 0x1, sc_reg 391 drivers/net/ethernet/hisilicon/hns_mdio.c ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_clk_en, sc_reg 392 drivers/net/ethernet/hisilicon/hns_mdio.c 0x1, sc_reg->mdio_clk_st, 0x1, sc_reg 473 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_clk_en = sc_reg 475 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_clk_dis = sc_reg 477 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_reset_req = sc_reg 479 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_reset_dreq = sc_reg 481 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_clk_st = sc_reg 483 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_reset_st = sc_reg 487 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_clk_en = sc_reg 489 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_clk_dis = sc_reg 491 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_reset_req = sc_reg 493 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_reset_dreq = sc_reg 495 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_clk_st = sc_reg 497 drivers/net/ethernet/hisilicon/hns_mdio.c mdio_dev->sc_reg.mdio_reset_st = sc_reg 931 include/linux/libata.h int (*scr_read)(struct ata_link *link, unsigned int sc_reg, u32 *val); sc_reg 932 include/linux/libata.h int (*scr_write)(struct ata_link *link, unsigned int sc_reg, u32 val);