Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 37) sorted by relevance

12

/arch/powerpc/platforms/powernv/
Dvas-debug.c32 struct pnv_vas_window *window = s->private; in info_show() local
37 if (!window->hvwc_map) in info_show()
40 seq_printf(s, "Type: %s, %s\n", cop_to_str(window->vas_win.cop), in info_show()
41 window->tx_win ? "Send" : "Receive"); in info_show()
42 seq_printf(s, "Pid : %d\n", vas_window_pid(&window->vas_win)); in info_show()
59 struct pnv_vas_window *window = s->private; in hvwc_show() local
64 if (!window->hvwc_map) in hvwc_show()
67 print_reg(s, window, VREG(LPID)); in hvwc_show()
68 print_reg(s, window, VREG(PID)); in hvwc_show()
69 print_reg(s, window, VREG(XLATE_MSR)); in hvwc_show()
[all …]
Dvas-window.c30 void vas_win_paste_addr(struct pnv_vas_window *window, u64 *addr, int *len) in vas_win_paste_addr() argument
35 base = window->vinst->paste_base_addr; in vas_win_paste_addr()
36 shift = window->vinst->paste_win_id_shift; in vas_win_paste_addr()
37 winid = window->vas_win.winid; in vas_win_paste_addr()
46 static inline void get_hvwc_mmio_bar(struct pnv_vas_window *window, in get_hvwc_mmio_bar() argument
51 pbaddr = window->vinst->hvwc_bar_start; in get_hvwc_mmio_bar()
52 *start = pbaddr + window->vas_win.winid * VAS_HVWC_SIZE; in get_hvwc_mmio_bar()
56 static inline void get_uwc_mmio_bar(struct pnv_vas_window *window, in get_uwc_mmio_bar() argument
61 pbaddr = window->vinst->uwc_bar_start; in get_uwc_mmio_bar()
62 *start = pbaddr + window->vas_win.winid * VAS_UWC_SIZE; in get_uwc_mmio_bar()
[all …]
Dvas-fault.c71 struct pnv_vas_window *window; in vas_fault_thread_fn() local
132 window = vas_pswid_to_window(vinst, in vas_fault_thread_fn()
135 if (IS_ERR(window)) { in vas_fault_thread_fn()
155 if (window->user_win) in vas_fault_thread_fn()
156 vas_update_csb(crb, &window->vas_win.task_ref); in vas_fault_thread_fn()
158 WARN_ON_ONCE(!window->user_win); in vas_fault_thread_fn()
164 vas_return_credit(window, true); in vas_fault_thread_fn()
Dvas.h430 extern void vas_return_credit(struct pnv_vas_window *window, bool tx);
433 extern void vas_win_paste_addr(struct pnv_vas_window *window, u64 *addr,
436 static inline int vas_window_pid(struct vas_window *window) in vas_window_pid() argument
438 return pid_vnr(window->task_ref.pid); in vas_window_pid()
DMakefile21 obj-$(CONFIG_PPC_VAS) += vas.o vas-window.o vas-debug.o vas-fault.o
/arch/sparc/kernel/
Dwindows.c64 int window; in synchronize_user_stack() local
71 for(window = tp->w_saved - 1; window >= 0; window--) { in synchronize_user_stack()
72 unsigned long sp = tp->rwbuf_stkptrs[window]; in synchronize_user_stack()
75 if (copy_to_user((char __user *) sp, &tp->reg_window[window], in synchronize_user_stack()
79 shift_window_buffer(window, tp->w_saved - 1, tp); in synchronize_user_stack()
116 int window; in try_to_clear_window_buffer() local
119 for(window = 0; window < tp->w_saved; window++) { in try_to_clear_window_buffer()
120 unsigned long sp = tp->rwbuf_stkptrs[window]; in try_to_clear_window_buffer()
123 copy_to_user((char __user *) sp, &tp->reg_window[window], in try_to_clear_window_buffer()
Dprocess_64.c491 unsigned long window; in synchronize_user_stack() local
494 if ((window = get_thread_wsaved()) != 0) { in synchronize_user_stack()
495 window -= 1; in synchronize_user_stack()
497 struct reg_window *rwin = &t->reg_window[window]; in synchronize_user_stack()
501 sp = t->rwbuf_stkptrs[window]; in synchronize_user_stack()
509 shift_window_buffer(window, get_thread_wsaved() - 1, t); in synchronize_user_stack()
512 } while (window--); in synchronize_user_stack()
529 unsigned long window; in fault_in_user_windows() local
532 window = get_thread_wsaved(); in fault_in_user_windows()
534 if (likely(window != 0)) { in fault_in_user_windows()
[all …]
Detrap_32.S95 bne trap_setup_kernel_spill ! in trap window, clean up
113 sll %t_wim, 0x7, %t_wim ! patched on 7 window Sparcs
116 and %g2, 0xff, %g2 ! patched on 7 window Sparcs
Dwof.S110 save %g0, %g0, %g0 ! save into the window to stash away
116 STORE_WINDOW(sp) ! stash the window
117 restore %g0, %g0, %g0 ! go back into trap window
Dptrace_64.c252 struct reg_window window; in genregs64_get() local
260 if (regwindow64_get(target, regs, &window)) in genregs64_get()
262 membuf_write(&to, &window, 16 * sizeof(u64)); in genregs64_get()
283 struct reg_window window; in genregs64_set() local
285 if (regwindow64_get(target, regs, &window)) in genregs64_set()
289 &window, in genregs64_set()
294 regwindow64_set(target, regs, &window)) in genregs64_set()
/arch/powerpc/platforms/cell/
Diommu.c160 struct iommu_window *window = in tce_build_cell() local
178 (window->ioid & CBE_IOPTE_IOID_Mask); in tce_build_cell()
181 CBE_IOPTE_SO_RW | (window->ioid & CBE_IOPTE_IOID_Mask); in tce_build_cell()
193 invalidate_tce_cache(window->iommu, io_pte, npages); in tce_build_cell()
205 struct iommu_window *window = in tce_free_cell() local
216 __pa(window->iommu->pad_page) | in tce_free_cell()
217 (window->ioid & CBE_IOPTE_IOID_Mask); in tce_free_cell()
227 invalidate_tce_cache(window->iommu, io_pte, npages); in tce_free_cell()
429 struct iommu_window *window;
433 list_for_each_entry(window, &(iommu->windows), list) {
[all …]
/arch/alpha/kernel/
Dcore_t2.c90 } window[2]; member
391 t2_saved_config.window[0].wbase = *(vulp)T2_WBASE1; in t2_save_configuration()
392 t2_saved_config.window[0].wmask = *(vulp)T2_WMASK1; in t2_save_configuration()
393 t2_saved_config.window[0].tbase = *(vulp)T2_TBASE1; in t2_save_configuration()
394 t2_saved_config.window[1].wbase = *(vulp)T2_WBASE2; in t2_save_configuration()
395 t2_saved_config.window[1].wmask = *(vulp)T2_WMASK2; in t2_save_configuration()
396 t2_saved_config.window[1].tbase = *(vulp)T2_TBASE2; in t2_save_configuration()
488 *(vulp)T2_WBASE1 = t2_saved_config.window[0].wbase; in t2_kill_arch()
489 *(vulp)T2_WMASK1 = t2_saved_config.window[0].wmask; in t2_kill_arch()
490 *(vulp)T2_TBASE1 = t2_saved_config.window[0].tbase; in t2_kill_arch()
[all …]
Dcore_cia.c328 cia_prepare_tbia_workaround(int window) in cia_prepare_tbia_workaround() argument
343 *(vip)CIA_IOC_PCI_Wn_BASE(window) = CIA_BROKEN_TBIA_BASE | 3; in cia_prepare_tbia_workaround()
344 *(vip)CIA_IOC_PCI_Wn_MASK(window) in cia_prepare_tbia_workaround()
346 *(vip)CIA_IOC_PCI_Tn_BASE(window) = virt_to_phys(ppte) >> 2; in cia_prepare_tbia_workaround()
576 } window[4]; member
598 saved_config.window[i].w_base = *(vip)CIA_IOC_PCI_Wn_BASE(i); in cia_save_srm_settings()
599 saved_config.window[i].w_mask = *(vip)CIA_IOC_PCI_Wn_MASK(i); in cia_save_srm_settings()
600 saved_config.window[i].t_base = *(vip)CIA_IOC_PCI_Tn_BASE(i); in cia_save_srm_settings()
611 *(vip)CIA_IOC_PCI_Wn_BASE(i) = saved_config.window[i].w_base; in cia_restore_srm_settings()
612 *(vip)CIA_IOC_PCI_Wn_MASK(i) = saved_config.window[i].w_mask; in cia_restore_srm_settings()
[all …]
/arch/powerpc/platforms/pseries/
Diommu.c896 struct dma_win *window; in find_existing_ddw() local
902 list_for_each_entry(window, &dma_win_list, list) { in find_existing_ddw()
903 if (window->device == pdn) { in find_existing_ddw()
904 dma64 = window->prop; in find_existing_ddw()
919 struct dma_win *window; in ddw_list_new_entry() local
921 window = kzalloc(sizeof(*window), GFP_KERNEL); in ddw_list_new_entry()
922 if (!window) in ddw_list_new_entry()
925 window->device = pdn; in ddw_list_new_entry()
926 window->prop = dma64; in ddw_list_new_entry()
928 return window; in ddw_list_new_entry()
[all …]
/arch/arm/mach-mv78xx0/
Dcommon.h26 void mv78xx0_setup_pcie_io_win(int window, u32 base, u32 size,
28 void mv78xx0_setup_pcie_mem_win(int window, u32 base, u32 size,
/arch/alpha/boot/
Dmisc.c46 static uch *window; /* Sliding window buffer */ variable
129 in = window; in flush_window()
167 window = malloc(WSIZE); in decompress_kernel()
/arch/x86/pci/
Dbus_numa.c35 struct resource_entry *window; in x86_pci_root_bus_resources() local
45 resource_list_for_each_entry(window, resources) in x86_pci_root_bus_resources()
46 if (window->res->flags & IORESOURCE_BUS) { in x86_pci_root_bus_resources()
/arch/mips/pci/
Dpci-vr41xx.c103 struct pci_target_address_window *window; in vr41xx_pciu_init() local
232 window = setup->target_window1; in vr41xx_pciu_init()
233 val = PMBA(window->base_address) | TYPE_32BITSPACE | in vr41xx_pciu_init()
239 window = setup->target_window2; in vr41xx_pciu_init()
240 val = PMBA(window->base_address) | TYPE_32BITSPACE | in vr41xx_pciu_init()
/arch/arm64/boot/dts/ti/
Dk3-am64.dtsi69 <0x00 0x01000000 0x00 0x01000000 0x00 0x02330400>, /* First peripheral window */
72 <0x00 0x0f000000 0x00 0x0f000000 0x00 0x00c44200>, /* Second peripheral window */
73 <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */
99 ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>; /* Peripheral window */
Dk3-j7200.dtsi155 <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */
160 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */
Dk3-j721e.dtsi167 <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */
172 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */
/arch/nios2/boot/compressed/
Dmisc.c36 static uch window[WSIZE]; /* Sliding window buffer */ variable
139 in = window; in flush_window()
/arch/arm/kernel/
Dhead-inflate-data.c54 WS(strm)->inflate_state.window = NULL; in __inflate_kernel_data()
Dbios32.c400 struct resource_entry *window; in pcibios_init_resource() local
407 resource_list_for_each_entry(window, &sys->resources) in pcibios_init_resource()
408 if (resource_type(window->res) == IORESOURCE_IO) in pcibios_init_resource()
/arch/arm/mach-ixp4xx/
DKconfig70 1) A direct mapped window from 0x48000000 to 0x4BFFFFFF (64MB).
84 case due to the indirect nature of the PCI window.

12