Lines Matching refs:window
31 struct vas_window *window = s->private;
35 /* ensure window is not unmapped */
36 if (!window->hvwc_map)
39 seq_printf(s, "Type: %s, %s\n", cop_to_str(window->cop),
40 window->tx_win ? "Send" : "Receive");
41 seq_printf(s, "Pid : %d\n", vas_window_pid(window));
58 struct vas_window *window = s->private;
62 /* ensure window is not unmapped */
63 if (!window->hvwc_map)
66 print_reg(s, window, VREG(LPID));
67 print_reg(s, window, VREG(PID));
68 print_reg(s, window, VREG(XLATE_MSR));
69 print_reg(s, window, VREG(XLATE_LPCR));
70 print_reg(s, window, VREG(XLATE_CTL));
71 print_reg(s, window, VREG(AMR));
72 print_reg(s, window, VREG(SEIDR));
73 print_reg(s, window, VREG(FAULT_TX_WIN));
74 print_reg(s, window, VREG(OSU_INTR_SRC_RA));
75 print_reg(s, window, VREG(HV_INTR_SRC_RA));
76 print_reg(s, window, VREG(PSWID));
77 print_reg(s, window, VREG(LFIFO_BAR));
78 print_reg(s, window, VREG(LDATA_STAMP_CTL));
79 print_reg(s, window, VREG(LDMA_CACHE_CTL));
80 print_reg(s, window, VREG(LRFIFO_PUSH));
81 print_reg(s, window, VREG(CURR_MSG_COUNT));
82 print_reg(s, window, VREG(LNOTIFY_AFTER_COUNT));
83 print_reg(s, window, VREG(LRX_WCRED));
84 print_reg(s, window, VREG(LRX_WCRED_ADDER));
85 print_reg(s, window, VREG(TX_WCRED));
86 print_reg(s, window, VREG(TX_WCRED_ADDER));
87 print_reg(s, window, VREG(LFIFO_SIZE));
88 print_reg(s, window, VREG(WINCTL));
89 print_reg(s, window, VREG(WIN_STATUS));
90 print_reg(s, window, VREG(WIN_CTX_CACHING_CTL));
91 print_reg(s, window, VREG(TX_RSVD_BUF_COUNT));
92 print_reg(s, window, VREG(LRFIFO_WIN_PTR));
93 print_reg(s, window, VREG(LNOTIFY_CTL));
94 print_reg(s, window, VREG(LNOTIFY_PID));
95 print_reg(s, window, VREG(LNOTIFY_LPID));
96 print_reg(s, window, VREG(LNOTIFY_TID));
97 print_reg(s, window, VREG(LNOTIFY_SCOPE));
98 print_reg(s, window, VREG(NX_UTIL_ADDER));
106 void vas_window_free_dbgdir(struct vas_window *window)
108 if (window->dbgdir) {
109 debugfs_remove_recursive(window->dbgdir);
110 kfree(window->dbgname);
111 window->dbgdir = NULL;
112 window->dbgname = NULL;
116 void vas_window_init_dbgdir(struct vas_window *window)
120 if (!window->vinst->dbgdir)
123 window->dbgname = kzalloc(16, GFP_KERNEL);
124 if (!window->dbgname)
127 snprintf(window->dbgname, 16, "w%d", window->winid);
129 d = debugfs_create_dir(window->dbgname, window->vinst->dbgdir);
130 window->dbgdir = d;
132 debugfs_create_file("info", 0444, d, window, &info_fops);
133 debugfs_create_file("hvwc", 0444, d, window, &hvwc_fops);