Lines Matching refs:peer_shared
66 struct shared_mw __iomem *peer_shared; member
204 size = ioread64(&sndev->peer_shared->mw_sizes[widx]); in switchtec_ntb_mw_get_align()
498 u64 peer = ioread64(&sndev->peer_shared->magic); in switchtec_ntb_link_status_update()
767 if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) in switchtec_ntb_peer_spad_read()
770 if (!sndev->peer_shared) in switchtec_ntb_peer_spad_read()
773 return ioread32(&sndev->peer_shared->spad[sidx]); in switchtec_ntb_peer_spad_read()
784 if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) in switchtec_ntb_peer_spad_write()
787 if (!sndev->peer_shared) in switchtec_ntb_peer_spad_write()
790 iowrite32(val, &sndev->peer_shared->spad[sidx]); in switchtec_ntb_peer_spad_write()
804 offset = (unsigned long)&sndev->peer_shared->spad[sidx] - in switchtec_ntb_peer_spad_addr()
1345 sndev->peer_shared = pci_iomap(sndev->stdev->pdev, self_bar, LUT_SIZE); in switchtec_ntb_init_shared_mw()
1346 if (!sndev->peer_shared) { in switchtec_ntb_init_shared_mw()
1363 if (sndev->peer_shared) in switchtec_ntb_deinit_shared_mw()
1364 pci_iounmap(sndev->stdev->pdev, sndev->peer_shared); in switchtec_ntb_deinit_shared_mw()