Lines Matching defs:link
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)
114 struct ata_port *ap = link->ap;
135 if (link->pmp)
141 static u32 sis_scr_cfg_read(struct ata_link *link,
144 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
145 unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg);
154 static int sis_scr_cfg_write(struct ata_link *link,
157 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
158 unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg);
164 static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
166 struct ata_port *ap = link->ap;
167 void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10;
173 return sis_scr_cfg_read(link, sc_reg, val);
179 static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
181 struct ata_port *ap = link->ap;
182 void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10;
188 return sis_scr_cfg_write(link, sc_reg, val);