Lines Matching refs:outmw
727 struct tool_mw *outmw = filep->private_data;
732 if (outmw->io_base == NULL)
735 if (pos >= outmw->size || !size)
738 if (size > outmw->size - pos)
739 size = outmw->size - pos;
745 memcpy_fromio(buf, outmw->io_base + pos, size);
765 struct tool_mw *outmw = filep->private_data;
770 if (outmw->io_base == NULL)
773 if (pos >= outmw->size || !size)
775 if (size > outmw->size - pos)
776 size = outmw->size - pos;
792 memcpy_toio(outmw->io_base + pos, buf, size);
807 struct tool_mw *outmw = &tc->outmws[widx];
813 if (outmw->io_base != NULL)
824 outmw->io_base = ioremap_wc(map_base, map_size);
825 if (outmw->io_base == NULL) {
830 outmw->tr_base = req_addr;
831 outmw->size = req_size;
832 outmw->pidx = pidx;
835 outmw->dbgfs_file = debugfs_create_file(buf, 0600,
836 tc->peers[pidx].dbgfs_dir, outmw,
849 struct tool_mw *outmw = &tc->outmws[widx];
851 debugfs_remove(outmw->dbgfs_file);
853 if (outmw->io_base != NULL) {
855 ntb_peer_mw_clear_trans(tc->ntb, outmw->pidx, widx);
858 outmw->io_base = NULL;
859 outmw->tr_base = 0;
860 outmw->size = 0;
861 outmw->pidx = -1;
862 outmw->dbgfs_file = NULL;
869 struct tool_mw *outmw = outmw_wrap->mw;
877 ret = ntb_peer_mw_get_addr(outmw->tc->ntb, outmw->widx,
889 "Outbound MW: \t%d\n", outmw->widx);
891 if (outmw->io_base != NULL) {
894 ntb_peer_port_number(outmw->tc->ntb, outmw->pidx),
895 outmw->pidx);
902 "Virtual address \t0x%pK\n", outmw->io_base);
911 "Translation Address \t0x%016llx\n", outmw->tr_base);
914 "Window Size \t%pap\n", &outmw->size);
927 struct tool_mw *outmw = outmw_wrap->mw;
943 tool_free_peer_mw(outmw->tc, outmw->widx);
945 ret = tool_setup_peer_mw(outmw->tc, outmw_wrap->pidx,
946 outmw->widx, addr, wsize);