Lines Matching full:ctrl_reg
86 void __iomem *ctrl_reg; member
108 writel(argument, ndev->ctrl_reg + NTB_EPF_ARGUMENT); in ntb_epf_send_command()
109 writel(command, ndev->ctrl_reg + NTB_EPF_COMMAND); in ntb_epf_send_command()
114 status = readw(ndev->ctrl_reg + NTB_EPF_CMD_STATUS); in ntb_epf_send_command()
132 writew(0, ndev->ctrl_reg + NTB_EPF_CMD_STATUS); in ntb_epf_send_command()
200 status = readw(ndev->ctrl_reg + NTB_EPF_LINK_STATUS); in ntb_epf_link_is_up()
216 offset = readl(ndev->ctrl_reg + NTB_EPF_SPAD_OFFSET); in ntb_epf_spad_read()
219 return readl(ndev->ctrl_reg + offset); in ntb_epf_spad_read()
234 offset = readl(ndev->ctrl_reg + NTB_EPF_SPAD_OFFSET); in ntb_epf_spad_write()
236 writel(val, ndev->ctrl_reg + offset); in ntb_epf_spad_write()
428 writel(lower_32_bits(addr), ndev->ctrl_reg + NTB_EPF_LOWER_ADDR); in ntb_epf_mw_set_trans()
429 writel(upper_32_bits(addr), ndev->ctrl_reg + NTB_EPF_UPPER_ADDR); in ntb_epf_mw_set_trans()
430 writel(lower_32_bits(size), ndev->ctrl_reg + NTB_EPF_LOWER_SIZE); in ntb_epf_mw_set_trans()
431 writel(upper_32_bits(size), ndev->ctrl_reg + NTB_EPF_UPPER_SIZE); in ntb_epf_mw_set_trans()
458 offset = readl(ndev->ctrl_reg + NTB_EPF_MW1_OFFSET); in ntb_epf_peer_mw_get_addr()
488 db_entry_size = readl(ndev->ctrl_reg + NTB_EPF_DB_ENTRY_SIZE); in ntb_epf_peer_db_set()
490 db_data = readl(ndev->ctrl_reg + NTB_EPF_DB_DATA(interrupt_num)); in ntb_epf_peer_db_set()
491 db_offset = readl(ndev->ctrl_reg + NTB_EPF_DB_OFFSET(interrupt_num)); in ntb_epf_peer_db_set()
564 ndev->mw_count = readl(ndev->ctrl_reg + NTB_EPF_MW_COUNT); in ntb_epf_init_dev()
565 ndev->spad_count = readl(ndev->ctrl_reg + NTB_EPF_SPAD_COUNT); in ntb_epf_init_dev()
608 ndev->ctrl_reg = pci_iomap(pdev, ndev->barno_map[BAR_CONFIG], 0); in ntb_epf_init_pci()
609 if (!ndev->ctrl_reg) { in ntb_epf_init_pci()
622 spad_sz = 4 * readl(ndev->ctrl_reg + NTB_EPF_SPAD_COUNT); in ntb_epf_init_pci()
623 spad_off = readl(ndev->ctrl_reg + NTB_EPF_SPAD_OFFSET); in ntb_epf_init_pci()
624 ndev->peer_spad_reg = ndev->ctrl_reg + spad_off + spad_sz; in ntb_epf_init_pci()
648 pci_iounmap(pdev, ndev->ctrl_reg); in ntb_epf_deinit_pci()