Lines Matching refs:pmp

921 			emp = &pp->em_priv[link->pmp];  in ahci_start_port()
1024 struct ahci_em_priv *emp = &pp->em_priv[link->pmp]; in ahci_sw_activity()
1045 led_message |= ap->port_no | (link->pmp << 8); in ahci_sw_activity_blink()
1082 struct ahci_em_priv *emp = &pp->em_priv[link->pmp]; in ahci_init_sw_activity()
1118 int pmp; in ahci_transmit_led_message() local
1122 pmp = (state & EM_MSG_LED_PMP_SLOT) >> 8; in ahci_transmit_led_message()
1123 if (pmp < EM_MAX_SLOTS) in ahci_transmit_led_message()
1124 emp = &pp->em_priv[pmp]; in ahci_transmit_led_message()
1179 emp = &pp->em_priv[link->pmp]; in ahci_led_show()
1189 int pmp; in ahci_led_store() local
1197 pmp = (state & EM_MSG_LED_PMP_SLOT) >> 8; in ahci_led_store()
1198 if (pmp < EM_MAX_SLOTS) { in ahci_led_store()
1199 pmp = array_index_nospec(pmp, EM_MAX_SLOTS); in ahci_led_store()
1200 emp = &pp->em_priv[pmp]; in ahci_led_store()
1220 struct ahci_em_priv *emp = &pp->em_priv[link->pmp]; in ahci_activity_store()
1230 port_led_state |= (ap->port_no | (link->pmp << 8)); in ahci_activity_store()
1237 port_led_state |= (ap->port_no | (link->pmp << 8)); in ahci_activity_store()
1251 struct ahci_em_priv *emp = &pp->em_priv[link->pmp]; in ahci_activity_show()
1406 static int ahci_exec_polled_cmd(struct ata_port *ap, int pmp, in ahci_exec_polled_cmd() argument
1417 ata_tf_to_fis(tf, pmp, is_cmd, fis); in ahci_exec_polled_cmd()
1418 ahci_fill_cmd_slot(pp, 0, cmd_fis_len | flags | (pmp << 12)); in ahci_exec_polled_cmd()
1421 if (pp->fbs_enabled && pp->fbs_last_dev != pmp) { in ahci_exec_polled_cmd()
1424 tmp |= pmp << PORT_FBS_DEV_OFFSET; in ahci_exec_polled_cmd()
1426 pp->fbs_last_dev = pmp; in ahci_exec_polled_cmd()
1446 int pmp, unsigned long deadline, in ahci_do_softreset() argument
1483 if (ahci_exec_polled_cmd(ap, pmp, &tf, 0, in ahci_do_softreset()
1495 ahci_exec_polled_cmd(ap, pmp, &tf, 0, 0, 0); in ahci_do_softreset()
1537 int pmp = sata_srst_pmp(link); in ahci_softreset() local
1539 return ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready); in ahci_softreset()
1564 int pmp = sata_srst_pmp(link); in ahci_pmp_retry_softreset() local
1568 rc = ahci_do_softreset(link, class, pmp, deadline, in ahci_pmp_retry_softreset()
1698 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); in ahci_qc_prep()
1711 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
1760 int pmp = fbs >> PORT_FBS_DWE_OFFSET; in ahci_error_intr() local
1762 if ((fbs & PORT_FBS_SDE) && (pmp < ap->nr_pmp_links)) { in ahci_error_intr()
1763 link = &ap->pmp_link[pmp]; in ahci_error_intr()
2057 if (pp->fbs_enabled && pp->fbs_last_dev != qc->dev->link->pmp) { in ahci_qc_issue()
2060 fbs |= qc->dev->link->pmp << PORT_FBS_DEV_OFFSET; in ahci_qc_issue()
2062 pp->fbs_last_dev = qc->dev->link->pmp; in ahci_qc_issue()
2079 rx_fis += qc->dev->link->pmp * AHCI_RX_FIS_SZ; in ahci_qc_fill_rtf()
2172 fis += qc->dev->link->pmp * AHCI_RX_FIS_SZ; in ahci_qc_ncq_fill_rtf()