Lines Matching refs:outmw
734 struct tool_mw *outmw = filep->private_data;
739 if (outmw->io_base == NULL)
742 if (pos >= outmw->size || !size)
745 if (size > outmw->size - pos)
746 size = outmw->size - pos;
752 memcpy_fromio(buf, outmw->io_base + pos, size);
772 struct tool_mw *outmw = filep->private_data;
777 if (outmw->io_base == NULL)
780 if (pos >= outmw->size || !size)
782 if (size > outmw->size - pos)
783 size = outmw->size - pos;
799 memcpy_toio(outmw->io_base + pos, buf, size);
814 struct tool_mw *outmw = &tc->outmws[widx];
820 if (outmw->io_base != NULL)
831 outmw->io_base = ioremap_wc(map_base, map_size);
832 if (outmw->io_base == NULL) {
837 outmw->tr_base = req_addr;
838 outmw->size = req_size;
839 outmw->pidx = pidx;
842 outmw->dbgfs_file = debugfs_create_file(buf, 0600,
843 tc->peers[pidx].dbgfs_dir, outmw,
856 struct tool_mw *outmw = &tc->outmws[widx];
858 debugfs_remove(outmw->dbgfs_file);
860 if (outmw->io_base != NULL) {
862 ntb_peer_mw_clear_trans(tc->ntb, outmw->pidx, widx);
865 outmw->io_base = NULL;
866 outmw->tr_base = 0;
867 outmw->size = 0;
868 outmw->pidx = -1;
869 outmw->dbgfs_file = NULL;
876 struct tool_mw *outmw = outmw_wrap->mw;
884 ret = ntb_peer_mw_get_addr(outmw->tc->ntb, outmw->widx,
896 "Outbound MW: \t%d\n", outmw->widx);
898 if (outmw->io_base != NULL) {
901 ntb_peer_port_number(outmw->tc->ntb, outmw->pidx),
902 outmw->pidx);
909 "Virtual address \t0x%pK\n", outmw->io_base);
918 "Translation Address \t0x%016llx\n", outmw->tr_base);
921 "Window Size \t%pap\n", &outmw->size);
934 struct tool_mw *outmw = outmw_wrap->mw;
950 tool_free_peer_mw(outmw->tc, outmw->widx);
952 ret = tool_setup_peer_mw(outmw->tc, outmw_wrap->pidx,
953 outmw->widx, addr, wsize);