Lines Matching refs:mv

171 	u32 inbound_head = readl(&hba->u.mv.mu->inbound_head);  in mv_inbound_write()
177 memcpy_toio(&hba->u.mv.mu->inbound_q[inbound_head], &p, 8); in mv_inbound_write()
178 writel(head, &hba->u.mv.mu->inbound_head); in mv_inbound_write()
180 &hba->u.mv.regs->inbound_doorbell); in mv_inbound_write()
216 status = readl(&hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
217 writel(~status, &hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
221 msg = readl(&hba->u.mv.mu->outbound_msg); in iop_intr_mv()
230 while ((tag = mv_outbound_read(hba->u.mv.mu))) in iop_intr_mv()
331 struct hpt_iop_request_header *reqhdr = hba->u.mv.internal_req; in iop_send_sync_request_mv()
336 mv_inbound_write(hba->u.mv.internal_req_phy | in iop_send_sync_request_mv()
376 writel(msg, &hba->u.mv.mu->inbound_msg); in hptiop_post_msg_mv()
377 writel(MVIOP_MU_INBOUND_INT_MSG, &hba->u.mv.regs->inbound_doorbell); in hptiop_post_msg_mv()
378 readl(&hba->u.mv.regs->inbound_doorbell); in hptiop_post_msg_mv()
439 struct hpt_iop_request_get_config *req = hba->u.mv.internal_req; in iop_get_config_mv()
515 struct hpt_iop_request_set_config *req = hba->u.mv.internal_req; in iop_set_config_mv()
566 &hba->u.mv.regs->outbound_intmask); in hptiop_enable_intr_mv()
645 hba->u.mv.regs = hptiop_map_pci_bar(hba, 0); in hptiop_map_pci_bar_mv()
646 if (hba->u.mv.regs == NULL) in hptiop_map_pci_bar_mv()
649 hba->u.mv.mu = hptiop_map_pci_bar(hba, 2); in hptiop_map_pci_bar_mv()
650 if (hba->u.mv.mu == NULL) { in hptiop_map_pci_bar_mv()
651 iounmap(hba->u.mv.regs); in hptiop_map_pci_bar_mv()
675 iounmap(hba->u.mv.regs); in hptiop_unmap_pci_bar_mv()
676 iounmap(hba->u.mv.mu); in hptiop_unmap_pci_bar_mv()
1201 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv()
1202 0x800, &hba->u.mv.internal_req_phy, GFP_KERNEL); in hptiop_internal_memalloc_mv()
1203 if (hba->u.mv.internal_req) in hptiop_internal_memalloc_mv()
1268 if (hba->u.mv.internal_req) { in hptiop_internal_memfree_mv()
1270 hba->u.mv.internal_req, hba->u.mv.internal_req_phy); in hptiop_internal_memfree_mv()
1544 writel(0, &hba->u.mv.regs->outbound_intmask); in hptiop_disable_intr_mv()
1545 readl(&hba->u.mv.regs->outbound_intmask); in hptiop_disable_intr_mv()