Lines Matching refs:pmp_link
338 struct ata_link *pmp_link = ap->pmp_link; in sata_pmp_init_links() local
341 if (!pmp_link) { in sata_pmp_init_links()
342 pmp_link = kcalloc(SATA_PMP_MAX_PORTS, sizeof(pmp_link[0]), in sata_pmp_init_links()
344 if (!pmp_link) in sata_pmp_init_links()
348 ata_link_init(ap, &pmp_link[i], i); in sata_pmp_init_links()
350 ap->pmp_link = pmp_link; in sata_pmp_init_links()
353 err = ata_tlink_add(&pmp_link[i]); in sata_pmp_init_links()
361 struct ata_link *link = &pmp_link[i]; in sata_pmp_init_links()
372 ata_tlink_delete(&pmp_link[i]); in sata_pmp_init_links()
373 kfree(pmp_link); in sata_pmp_init_links()
374 ap->pmp_link = NULL; in sata_pmp_init_links()
448 ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY; in sata_pmp_quirks()
919 struct ata_link *pmp_link = &ap->link; in sata_pmp_eh_recover() local
920 struct ata_device *pmp_dev = pmp_link->device; in sata_pmp_eh_recover()
921 struct ata_eh_context *pmp_ehc = &pmp_link->eh_context; in sata_pmp_eh_recover()
966 err_mask = sata_pmp_write(pmp_link, SATA_PMP_GSCR_FEAT_EN, in sata_pmp_eh_recover()
969 ata_link_warn(pmp_link, in sata_pmp_eh_recover()
1010 err_mask = sata_pmp_write(pmp_link, SATA_PMP_GSCR_FEAT_EN, in sata_pmp_eh_recover()
1022 err_mask = sata_pmp_read(pmp_link, SATA_PMP_GSCR_ERROR, &gscr_error); in sata_pmp_eh_recover()