Lines Matching refs:mv
163 u32 inbound_head = readl(&hba->u.mv.mu->inbound_head); in mv_inbound_write()
169 memcpy_toio(&hba->u.mv.mu->inbound_q[inbound_head], &p, 8); in mv_inbound_write()
170 writel(head, &hba->u.mv.mu->inbound_head); in mv_inbound_write()
172 &hba->u.mv.regs->inbound_doorbell); in mv_inbound_write()
208 status = readl(&hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
209 writel(~status, &hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
213 msg = readl(&hba->u.mv.mu->outbound_msg); in iop_intr_mv()
222 while ((tag = mv_outbound_read(hba->u.mv.mu))) in iop_intr_mv()
323 struct hpt_iop_request_header *reqhdr = hba->u.mv.internal_req; in iop_send_sync_request_mv()
328 mv_inbound_write(hba->u.mv.internal_req_phy | in iop_send_sync_request_mv()
368 writel(msg, &hba->u.mv.mu->inbound_msg); in hptiop_post_msg_mv()
369 writel(MVIOP_MU_INBOUND_INT_MSG, &hba->u.mv.regs->inbound_doorbell); in hptiop_post_msg_mv()
370 readl(&hba->u.mv.regs->inbound_doorbell); in hptiop_post_msg_mv()
431 struct hpt_iop_request_get_config *req = hba->u.mv.internal_req; in iop_get_config_mv()
507 struct hpt_iop_request_set_config *req = hba->u.mv.internal_req; in iop_set_config_mv()
558 &hba->u.mv.regs->outbound_intmask); in hptiop_enable_intr_mv()
637 hba->u.mv.regs = hptiop_map_pci_bar(hba, 0); in hptiop_map_pci_bar_mv()
638 if (hba->u.mv.regs == NULL) in hptiop_map_pci_bar_mv()
641 hba->u.mv.mu = hptiop_map_pci_bar(hba, 2); in hptiop_map_pci_bar_mv()
642 if (hba->u.mv.mu == NULL) { in hptiop_map_pci_bar_mv()
643 iounmap(hba->u.mv.regs); in hptiop_map_pci_bar_mv()
667 iounmap(hba->u.mv.regs); in hptiop_unmap_pci_bar_mv()
668 iounmap(hba->u.mv.mu); in hptiop_unmap_pci_bar_mv()
1184 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv()
1185 0x800, &hba->u.mv.internal_req_phy, GFP_KERNEL); in hptiop_internal_memalloc_mv()
1186 if (hba->u.mv.internal_req) in hptiop_internal_memalloc_mv()
1251 if (hba->u.mv.internal_req) { in hptiop_internal_memfree_mv()
1253 hba->u.mv.internal_req, hba->u.mv.internal_req_phy); in hptiop_internal_memfree_mv()
1531 writel(0, &hba->u.mv.regs->outbound_intmask); in hptiop_disable_intr_mv()
1532 readl(&hba->u.mv.regs->outbound_intmask); in hptiop_disable_intr_mv()