/drivers/infiniband/hw/ipath/ |
D | ipath_mad.c | 793 static int recv_pma_get_classportinfo(struct ib_pma_mad *pmp) in recv_pma_get_classportinfo() argument 796 (struct ib_class_port_info *)pmp->data; in recv_pma_get_classportinfo() 798 memset(pmp->data, 0, sizeof(pmp->data)); in recv_pma_get_classportinfo() 800 if (pmp->mad_hdr.attr_mod != 0) in recv_pma_get_classportinfo() 801 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_classportinfo() 813 return reply((struct ib_smp *) pmp); in recv_pma_get_classportinfo() 828 static int recv_pma_get_portsamplescontrol(struct ib_pma_mad *pmp, in recv_pma_get_portsamplescontrol() argument 832 (struct ib_pma_portsamplescontrol *)pmp->data; in recv_pma_get_portsamplescontrol() 838 memset(pmp->data, 0, sizeof(pmp->data)); in recv_pma_get_portsamplescontrol() 841 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_get_portsamplescontrol() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 1149 static int pma_get_classportinfo(struct ib_pma_mad *pmp, in pma_get_classportinfo() argument 1153 (struct ib_class_port_info *)pmp->data; in pma_get_classportinfo() 1156 memset(pmp->data, 0, sizeof(pmp->data)); in pma_get_classportinfo() 1158 if (pmp->mad_hdr.attr_mod != 0) in pma_get_classportinfo() 1159 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_classportinfo() 1175 return reply((struct ib_smp *) pmp); in pma_get_classportinfo() 1178 static int pma_get_portsamplescontrol(struct ib_pma_mad *pmp, in pma_get_portsamplescontrol() argument 1182 (struct ib_pma_portsamplescontrol *)pmp->data; in pma_get_portsamplescontrol() 1190 memset(pmp->data, 0, sizeof(pmp->data)); in pma_get_portsamplescontrol() 1193 if (pmp->mad_hdr.attr_mod != 0 || port_select != port) { in pma_get_portsamplescontrol() [all …]
|
/drivers/ata/ |
D | libata-pmp.c | 51 tf.device = link->pmp; in sata_pmp_read() 87 tf.device = link->pmp; in sata_pmp_write() 393 if (link->pmp < 5) in sata_pmp_quirks() 397 if (link->pmp == 5) in sata_pmp_quirks() 408 if (link->pmp < 2) in sata_pmp_quirks() 412 if (link->pmp == 2) in sata_pmp_quirks() 427 if (link->pmp <= 5) in sata_pmp_quirks() 434 if (link->pmp == 6) in sata_pmp_quirks() 499 WARN_ON(link->pmp != 0); in sata_pmp_attach() 500 link->pmp = SATA_PMP_CTRL_PORT; in sata_pmp_attach() [all …]
|
D | libahci.c | 773 emp = &pp->em_priv[link->pmp]; in ahci_start_port() 867 struct ahci_em_priv *emp = &pp->em_priv[link->pmp]; in ahci_sw_activity() 882 struct ahci_em_priv *emp = &pp->em_priv[link->pmp]; in ahci_sw_activity_blink() 888 led_message |= ap->port_no | (link->pmp << 8); in ahci_sw_activity_blink() 925 struct ahci_em_priv *emp = &pp->em_priv[link->pmp]; in ahci_init_sw_activity() 960 int pmp; in ahci_transmit_led_message() local 964 pmp = (state & EM_MSG_LED_PMP_SLOT) >> 8; in ahci_transmit_led_message() 965 if (pmp < EM_MAX_SLOTS) in ahci_transmit_led_message() 966 emp = &pp->em_priv[pmp]; in ahci_transmit_led_message() 1017 emp = &pp->em_priv[link->pmp]; in ahci_led_show() [all …]
|
D | sata_sis.c | 135 if (link->pmp) in get_scr_cfg_addr() 167 void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10; in sis_scr_read() 182 void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10; in sis_scr_write()
|
D | sata_sil24.c | 601 static int sil24_exec_polled_cmd(struct ata_port *ap, int pmp, in sil24_exec_polled_cmd() argument 614 ata_tf_to_fis(tf, pmp, is_cmd, prb->fis); in sil24_exec_polled_cmd() 657 int pmp = sata_srst_pmp(link); in sil24_softreset() local 676 rc = sil24_exec_polled_cmd(ap, pmp, &tf, 0, PRB_CTRL_SRST, in sil24_softreset() 880 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, prb->fis); in sil24_qc_prep() 1021 int pmp; in sil24_error_intr() local 1041 pmp = (context >> 5) & 0xf; in sil24_error_intr() 1043 if (pmp < ap->nr_pmp_links) { in sil24_error_intr() 1044 link = &ap->pmp_link[pmp]; in sil24_error_intr()
|
D | sata_fsl.c | 528 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *) &cd->cfis); in sata_fsl_qc_prep() 572 iowrite32(qc->dev->link->pmp, CQPMP + hcr_base); in sata_fsl_qc_issue() 956 int pmp = sata_srst_pmp(link); in sata_fsl_softreset() local 988 ata_tf_to_fis(&tf, pmp, 0, cfis); in sata_fsl_softreset() 1003 if (pmp != SATA_PMP_CTRL_PORT) in sata_fsl_softreset() 1004 iowrite32(pmp, CQPMP + hcr_base); in sata_fsl_softreset() 1037 ata_tf_to_fis(&tf, pmp, 0, cfis); in sata_fsl_softreset() 1039 if (pmp != SATA_PMP_CTRL_PORT) in sata_fsl_softreset() 1040 iowrite32(pmp, CQPMP + hcr_base); in sata_fsl_softreset()
|
D | acard-ahci.c | 277 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); in acard_ahci_qc_prep() 292 opts = cmd_fis_len | (qc->dev->link->pmp << 12); in acard_ahci_qc_prep() 307 rx_fis += qc->dev->link->pmp * ACARD_AHCI_RX_FIS_SZ; in acard_ahci_qc_fill_rtf()
|
D | sata_mv.c | 634 static void mv_pmp_select(struct ata_port *ap, int pmp); 2039 flags |= (qc->dev->link->pmp & 0xf) << CRQB_PMP_SHIFT; in mv_qc_prep() 2133 flags |= (qc->dev->link->pmp & 0xf) << CRQB_PMP_SHIFT; in mv_qc_prep_iie() 2265 ata_tf_to_fis(&qc->tf, link->pmp, 1, (void *)fis); in mv_qc_issue_fis() 2374 mv_pmp_select(ap, qc->dev->link->pmp); in mv_qc_issue() 2410 unsigned int pmp, pmp_map; in mv_pmp_error_handler() local 2422 for (pmp = 0; pmp_map != 0; pmp++) { in mv_pmp_error_handler() 2423 unsigned int this_pmp = (1 << pmp); in mv_pmp_error_handler() 2425 struct ata_link *link = &ap->pmp_link[pmp]; in mv_pmp_error_handler() 2445 unsigned int pmp; in mv_pmp_eh_prep() local [all …]
|
D | libata-acpi.c | 30 #define SATA_ADR(root, pmp) (((root) << 16) | (pmp)) argument 87 adr = SATA_ADR(ap->port_no, dev->link->pmp); in ata_dev_acpi_handle()
|
D | sata_via.c | 208 int slot = 2 * link->ap->port_no + link->pmp; in vt8251_scr_read() 256 int slot = 2 * link->ap->port_no + link->pmp; in vt8251_scr_write()
|
D | Makefile | 109 libata-$(CONFIG_SATA_PMP) += libata-pmp.o
|
D | libata-transport.c | 415 dev_set_name(dev, "link%d.%d", ap->print_id, link->pmp); in ata_tlink_add() 643 dev_set_name(dev, "dev%d.%d.0", ap->print_id, link->pmp); in ata_tdev_add()
|
D | ahci.h | 353 int pmp, unsigned long deadline,
|
D | libata.h | 101 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
|
D | libata-core.c | 366 int linkno = link->pmp; in ata_force_link_limits() 412 int devno = dev->link->pmp + dev->devno; in ata_force_xfermask() 466 int devno = dev->link->pmp + dev->devno; in ata_force_horkage() 547 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) in ata_tf_to_fis() argument 550 fis[1] = pmp & 0xf; /* Port multiplier number*/ in ata_tf_to_fis() 5561 void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp) in ata_link_init() argument 5570 link->pmp = pmp; in ata_link_init() 6809 level, link->ap->print_id, link->pmp, &vaf); in ata_link_printk() 6833 level, dev->link->ap->print_id, dev->link->pmp + dev->devno, in ata_dev_printk()
|
D | ata_piix.c | 787 iowrite32(((ap->port_no * 2 + link->pmp) << 8) | piix_sidx_map[reg], in piix_sidpr_sel()
|
D | libata-scsi.c | 3664 channel = link->pmp; in ata_scsi_scan_host()
|
D | libata-eh.c | 1214 if (!(sntf & (1 << link->pmp))) in sata_async_notification()
|