Lines Matching defs:link

289 static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
290 static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
292 static int nv_hardreset(struct ata_link *link, unsigned int *class,
399 * bko11195 reports that link doesn't come online after hardreset on
414 * bko12176 reports that hardreset fails to bring up the link during
439 * - Hardreset during boot sometimes fails to bring up the link on
446 * hardreset might bring down the link) but using hardreset for
677 if (ap->link.device[sdev->id].class == ATA_DEV_ATAPI) {
811 struct ata_eh_info *ehi = &ap->link.eh_info;
847 struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag);
899 if (ata_tag_valid(ap->link.active_tag))
938 struct ata_eh_info *ehi = &ap->link.eh_info;
969 if (ata_tag_valid(ap->link.active_tag))
971 ap->link.active_tag;
973 check_commands = ap->link.sactive;
1453 qc = ata_qc_from_tag(ap, ap->link.active_tag);
1510 static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
1515 *val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg * 4));
1519 static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
1524 iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg * 4));
1528 static int nv_hardreset(struct ata_link *link, unsigned int *class,
1531 struct ata_eh_context *ehc = &link->eh_context;
1536 if (!(link->ap->pflags & ATA_PFLAG_LOADING) &&
1537 !ata_dev_enabled(link->device))
1538 sata_link_hardreset(link, sata_deb_timing_hotplug, deadline,
1545 ata_link_info(link,
1548 /* make sure the link is online */
1549 rc = sata_link_resume(link, timing, deadline);
1552 ata_link_warn(link, "failed to resume link (errno=%d)\n",
1642 if (ata_tag_valid(ap->link.active_tag) || ap->link.sactive) {
1659 if ((ata_tag_valid(ap->link.active_tag) && i == ap->link.active_tag) ||
1660 ap->link.sactive & (1 << i))
1764 ap->qc_active, ap->link.sactive);
1805 struct ata_eh_context *ehc = &ap->link.eh_context;
1807 if (ap->link.sactive) {
1895 dev = &ap->link.device[sdev->id];
2051 struct ata_eh_info *ehi = &ap->link.eh_info;
2056 sata_scr_read(&ap->link, SCR_ERROR, &serror);
2057 sata_scr_write(&ap->link, SCR_ERROR, serror);
2077 struct ata_eh_info *ehi = &ap->link.eh_info;
2191 struct ata_eh_info *ehi = &ap->link.eh_info;
2211 if (ap->ops->scr_read(&ap->link, SCR_ERROR, &serror))
2213 ap->ops->scr_write(&ap->link, SCR_ERROR, serror);
2301 if (ap->link.sactive) {