Home
last modified time | relevance | path

Searched refs:S390_lowcore (Results 1 – 25 of 53) sorted by relevance

123

/Linux-v5.4/arch/s390/include/asm/
Dpreempt.h17 return READ_ONCE(S390_lowcore.preempt_count) & ~PREEMPT_NEED_RESCHED; in preempt_count()
25 old = READ_ONCE(S390_lowcore.preempt_count); in preempt_count_set()
28 } while (__atomic_cmpxchg(&S390_lowcore.preempt_count, in preempt_count_set()
35 S390_lowcore.preempt_count = PREEMPT_ENABLED; \
40 __atomic_and(~PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); in set_preempt_need_resched()
45 __atomic_or(PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); in clear_preempt_need_resched()
50 return !(READ_ONCE(S390_lowcore.preempt_count) & PREEMPT_NEED_RESCHED); in test_preempt_need_resched()
56 __atomic_add_const(val, &S390_lowcore.preempt_count); in __preempt_count_add()
58 __atomic_add(val, &S390_lowcore.preempt_count); in __preempt_count_add()
68 return __atomic_add(-1, &S390_lowcore.preempt_count) == 1; in __preempt_count_dec_and_test()
[all …]
Dsetup.h90 #define MACHINE_IS_VM (S390_lowcore.machine_flags & MACHINE_FLAG_VM)
91 #define MACHINE_IS_KVM (S390_lowcore.machine_flags & MACHINE_FLAG_KVM)
92 #define MACHINE_IS_LPAR (S390_lowcore.machine_flags & MACHINE_FLAG_LPAR)
94 #define MACHINE_HAS_DIAG9C (S390_lowcore.machine_flags & MACHINE_FLAG_DIAG9C)
95 #define MACHINE_HAS_ESOP (S390_lowcore.machine_flags & MACHINE_FLAG_ESOP)
96 #define MACHINE_HAS_IDTE (S390_lowcore.machine_flags & MACHINE_FLAG_IDTE)
97 #define MACHINE_HAS_DIAG44 (S390_lowcore.machine_flags & MACHINE_FLAG_DIAG44)
98 #define MACHINE_HAS_EDAT1 (S390_lowcore.machine_flags & MACHINE_FLAG_EDAT1)
99 #define MACHINE_HAS_EDAT2 (S390_lowcore.machine_flags & MACHINE_FLAG_EDAT2)
100 #define MACHINE_HAS_TOPOLOGY (S390_lowcore.machine_flags & MACHINE_FLAG_TOPOLOGY)
[all …]
Dmmu_context.h73 S390_lowcore.user_asce = mm->context.asce; in set_user_asce()
74 __ctl_load(S390_lowcore.user_asce, 1, 1); in set_user_asce()
80 S390_lowcore.user_asce = S390_lowcore.kernel_asce; in clear_user_asce()
81 __ctl_load(S390_lowcore.kernel_asce, 1, 1); in clear_user_asce()
93 S390_lowcore.user_asce = next->context.asce; in switch_mm()
97 __ctl_load(S390_lowcore.kernel_asce, 1, 1); in switch_mm()
101 __ctl_load(S390_lowcore.vdso_asce, 7, 7); in switch_mm()
Dtimex.h131 old = S390_lowcore.clock_comparator; in local_tick_disable()
132 S390_lowcore.clock_comparator = clock_comparator_max; in local_tick_disable()
133 set_clock_comparator(S390_lowcore.clock_comparator); in local_tick_disable()
139 S390_lowcore.clock_comparator = comp; in local_tick_enable()
140 set_clock_comparator(S390_lowcore.clock_comparator); in local_tick_enable()
Dfacility.h59 return __test_facility(nr, &S390_lowcore.stfle_fac_list); in test_facility()
85 : "=m" (S390_lowcore.stfl_fac_list)); in __stfle()
87 memcpy(stfle_fac_list, &S390_lowcore.stfl_fac_list, 4); in __stfle()
88 if (S390_lowcore.stfl_fac_list & 0x01000000) { in __stfle()
Dhardirq.h16 #define local_softirq_pending() (S390_lowcore.softirq_pending)
17 #define set_softirq_pending(x) (S390_lowcore.softirq_pending = (x))
18 #define or_softirq_pending(x) (S390_lowcore.softirq_pending |= (x))
/Linux-v5.4/arch/s390/kernel/
Dearly.c47 S390_lowcore.last_update_clock = TOD_UNIX_EPOCH; in reset_tod_clock()
74 S390_lowcore.machine_flags |= MACHINE_FLAG_LPAR; in detect_machine_type()
83 S390_lowcore.machine_flags |= MACHINE_FLAG_KVM; in detect_machine_type()
85 S390_lowcore.machine_flags |= MACHINE_FLAG_VM; in detect_machine_type()
141 S390_lowcore.machine_flags |= MACHINE_FLAG_TOPOLOGY; in setup_topology()
155 addr = S390_lowcore.program_old_psw.addr; in early_pgm_check_handler()
163 S390_lowcore.program_old_psw.addr = extable_fixup(fixup); in early_pgm_check_handler()
173 S390_lowcore.external_new_psw = psw; in setup_lowcore_early()
175 S390_lowcore.program_new_psw = psw; in setup_lowcore_early()
177 S390_lowcore.preempt_count = INIT_PREEMPT_COUNT; in setup_lowcore_early()
[all …]
Dvtime.c52 S390_lowcore.system_timer += S390_lowcore.last_update_timer - timer; in set_vtimer()
53 S390_lowcore.last_update_timer = expires; in set_vtimer()
129 timer = S390_lowcore.last_update_timer; in do_account_vtime()
130 clock = S390_lowcore.last_update_clock; in do_account_vtime()
138 : "=Q" (S390_lowcore.last_update_timer), in do_account_vtime()
139 "=Q" (S390_lowcore.last_update_clock)); in do_account_vtime()
140 clock = S390_lowcore.last_update_clock - clock; in do_account_vtime()
141 timer -= S390_lowcore.last_update_timer; in do_account_vtime()
144 S390_lowcore.hardirq_timer += timer; in do_account_vtime()
146 S390_lowcore.system_timer += timer; in do_account_vtime()
[all …]
Dsuspend.c217 S390_lowcore.external_new_psw.mask &= ~PSW_MASK_MCHECK; in save_processor_state()
218 S390_lowcore.svc_new_psw.mask &= ~PSW_MASK_MCHECK; in save_processor_state()
219 S390_lowcore.io_new_psw.mask &= ~PSW_MASK_MCHECK; in save_processor_state()
220 S390_lowcore.program_new_psw.mask &= ~PSW_MASK_MCHECK; in save_processor_state()
225 S390_lowcore.external_new_psw.mask |= PSW_MASK_MCHECK; in restore_processor_state()
226 S390_lowcore.svc_new_psw.mask |= PSW_MASK_MCHECK; in restore_processor_state()
227 S390_lowcore.io_new_psw.mask |= PSW_MASK_MCHECK; in restore_processor_state()
228 S390_lowcore.program_new_psw.mask |= PSW_MASK_MCHECK; in restore_processor_state()
Dnmi.c97 S390_lowcore.mcesad = origin | mcesa_origin_lc; in nmi_init()
222 if (S390_lowcore.fpu_flags & KERNEL_VXR_V0V7) in s390_check_registers()
235 if (S390_lowcore.fpu_flags & KERNEL_FPC) in s390_check_registers()
249 if (S390_lowcore.fpu_flags & KERNEL_VXR) in s390_check_registers()
264 cr2.val = S390_lowcore.cregs_save_area[2]; in s390_check_registers()
317 mcck_backup->mcic = S390_lowcore.mcck_interruption_code & in s390_backup_mcck_info()
319 mcck_backup->ext_damage_code = S390_lowcore.external_damage_code; in s390_backup_mcck_info()
321 = S390_lowcore.failing_storage_address; in s390_backup_mcck_info()
348 mci.val = S390_lowcore.mcck_interruption_code; in s390_do_machine_check()
419 if (S390_lowcore.external_damage_code & (1U << ED_STP_SYNC)) in s390_do_machine_check()
[all …]
Dnospec-branch.c20 __set_facility(82, S390_lowcore.alt_stfle_fac_list); in nobp_setup_early()
24 __clear_facility(82, S390_lowcore.alt_stfle_fac_list); in nobp_setup_early()
32 __clear_facility(82, S390_lowcore.alt_stfle_fac_list); in nospec_setup_early()
43 if (__test_facility(82, S390_lowcore.alt_stfle_fac_list)) in nospec_report()
69 __clear_facility(82, S390_lowcore.alt_stfle_fac_list); in nospec_auto_detect()
76 __clear_facility(82, S390_lowcore.alt_stfle_fac_list); in nospec_auto_detect()
89 __clear_facility(82, S390_lowcore.alt_stfle_fac_list); in spectre_v2_setup_early()
Dsetup.c338 S390_lowcore.async_stack = stack + STACK_INIT_OFFSET; in arch_early_irq_init()
346 old = S390_lowcore.async_stack - STACK_INIT_OFFSET; in async_stack_realloc()
350 S390_lowcore.async_stack = new + STACK_INIT_OFFSET; in async_stack_realloc()
370 S390_lowcore.kernel_stack = stack; in arch_call_rest_init()
411 lc->machine_flags = S390_lowcore.machine_flags; in setup_lowcore_dat_off()
412 lc->preempt_count = S390_lowcore.preempt_count; in setup_lowcore_dat_off()
413 lc->stfl_fac_list = S390_lowcore.stfl_fac_list; in setup_lowcore_dat_off()
414 memcpy(lc->stfle_fac_list, S390_lowcore.stfle_fac_list, in setup_lowcore_dat_off()
416 memcpy(lc->alt_stfle_fac_list, S390_lowcore.alt_stfle_fac_list, in setup_lowcore_dat_off()
420 lc->sync_enter_timer = S390_lowcore.sync_enter_timer; in setup_lowcore_dat_off()
[all …]
Dsmp.c207 memcpy(lc, &S390_lowcore, 512); in pcpu_alloc_lowcore()
264 lc->kernel_asce = S390_lowcore.kernel_asce; in pcpu_prepare_secondary()
265 lc->machine_flags = S390_lowcore.machine_flags; in pcpu_prepare_secondary()
270 memcpy(lc->stfle_fac_list, S390_lowcore.stfle_fac_list, in pcpu_prepare_secondary()
272 memcpy(lc->alt_stfle_fac_list, S390_lowcore.alt_stfle_fac_list, in pcpu_prepare_secondary()
385 lc = &S390_lowcore; in smp_call_ipl_cpu()
817 S390_lowcore.last_update_clock = get_tod_clock(); in smp_init_secondary()
818 restore_access_regs(S390_lowcore.access_regs_save_area); in smp_init_secondary()
840 S390_lowcore.restart_stack = (unsigned long) restart_stack; in smp_start_secondary()
841 S390_lowcore.restart_fn = (unsigned long) do_restart; in smp_start_secondary()
[all …]
Dtime.c142 S390_lowcore.clock_comparator = clock_comparator_max; in clock_comparator_work()
150 S390_lowcore.clock_comparator = get_tod_clock() + delta; in s390_next_event()
151 set_clock_comparator(S390_lowcore.clock_comparator); in s390_next_event()
164 S390_lowcore.clock_comparator = clock_comparator_max; in init_cpu_timer()
165 set_clock_comparator(S390_lowcore.clock_comparator); in init_cpu_timer()
195 if (S390_lowcore.clock_comparator == clock_comparator_max) in clock_comparator_interrupt()
196 set_clock_comparator(S390_lowcore.clock_comparator); in clock_comparator_interrupt()
471 if (S390_lowcore.clock_comparator != clock_comparator_max) { in clock_sync_local()
472 S390_lowcore.clock_comparator += delta; in clock_sync_local()
473 set_clock_comparator(S390_lowcore.clock_comparator); in clock_sync_local()
[all …]
Dmachine_kexec.c81 prefix = (unsigned long) S390_lowcore.prefixreg_save_area; in __do_machine_kdump()
122 mcesa = (struct mcesa *)(S390_lowcore.mcesad & MCESA_ORIGIN_MASK); in __machine_kdump()
167 rc = CALL_ON_STACK(do_start_kdump, S390_lowcore.nodat_stack, 1, image); in kdump_csum_valid()
257 mem_assign_absolute(S390_lowcore.vmcore_info, paddr_vmcoreinfo_note()); in arch_crash_save_vmcoreinfo()
/Linux-v5.4/arch/s390/boot/
Dmem_detect.c73 psw_t old = S390_lowcore.program_new_psw; in __diag260()
86 [psw_pgm] "=Q" (S390_lowcore.program_new_psw), in __diag260()
90 S390_lowcore.program_new_psw = old; in __diag260()
117 psw_t old = S390_lowcore.program_new_psw; in tprot()
119 S390_lowcore.program_new_psw.mask = __extract_psw(); in tprot()
128 [psw_pgm_addr] "=Q"(S390_lowcore.program_new_psw.addr), in tprot()
132 S390_lowcore.program_new_psw = old; in tprot()
Dpgm_check_info.c28 struct psw_bits *psw = &psw_bits(S390_lowcore.psw_save_area); in print_pgm_check_info()
29 unsigned short ilc = S390_lowcore.pgm_ilc >> 1; in print_pgm_check_info()
39 p = add_val_as_hex(buf + strlen(buf), S390_lowcore.pgm_code); in print_pgm_check_info()
46 p = add_val_as_hex(p, S390_lowcore.psw_save_area.mask); in print_pgm_check_info()
48 p = add_val_as_hex(p, S390_lowcore.psw_save_area.addr); in print_pgm_check_info()
85 p = add_val_as_hex(p, S390_lowcore.gpregs_save_area[row * 4 + col]); in print_pgm_check_info()
Dals.c71 val = ~S390_lowcore.stfle_fac_list[i] & als[i]; in print_missing_facilities()
109 __stfle(S390_lowcore.stfle_fac_list, ARRAY_SIZE(S390_lowcore.stfle_fac_list)); in verify_facilities()
111 if ((S390_lowcore.stfle_fac_list[i] & als[i]) != als[i]) in verify_facilities()
Dipl_parm.c30 psw_t old = S390_lowcore.program_new_psw; in __diag308()
41 [psw_pgm] "=Q" (S390_lowcore.program_new_psw), in __diag308()
45 S390_lowcore.program_new_psw = old; in __diag308()
156 __clear_facility(nr, S390_lowcore.stfle_fac_list); in modify_facility()
158 __set_facility(nr, S390_lowcore.stfle_fac_list); in modify_facility()
167 if ((S390_lowcore.stfle_fac_list[i] & als[i]) != als[i]) { in check_cleared_facilities()
/Linux-v5.4/arch/s390/lib/
Duaccess.c47 __ctl_load(S390_lowcore.user_asce, 1, 1); in set_fs()
50 __ctl_load(S390_lowcore.kernel_asce, 1, 1); in set_fs()
55 __ctl_load(S390_lowcore.user_asce, 7, 7); in set_fs()
57 __ctl_load(S390_lowcore.kernel_asce, 7, 7); in set_fs()
72 asce = S390_lowcore.kernel_asce; in enable_sacf_uaccess()
75 if (cr != S390_lowcore.kernel_asce) { in enable_sacf_uaccess()
76 __ctl_load(S390_lowcore.kernel_asce, 1, 1); in enable_sacf_uaccess()
79 asce = S390_lowcore.user_asce; in enable_sacf_uaccess()
94 __ctl_load(S390_lowcore.user_asce, 1, 1); in disable_sacf_uaccess()
Ddelay.c50 set_clock_comparator(S390_lowcore.clock_comparator); in __udelay_disabled()
61 if (tod_after(S390_lowcore.clock_comparator, end)) { in __udelay_enabled()
/Linux-v5.4/arch/s390/mm/
Dinit.c103 S390_lowcore.kernel_asce = init_mm.context.asce; in paging_init()
104 S390_lowcore.user_asce = S390_lowcore.kernel_asce; in paging_init()
110 __ctl_load(S390_lowcore.kernel_asce, 1, 1); in paging_init()
111 __ctl_load(S390_lowcore.kernel_asce, 7, 7); in paging_init()
112 __ctl_load(S390_lowcore.kernel_asce, 13, 13); in paging_init()
Dkasan_init.c209 S390_lowcore.kernel_asce = (__pa(pgd) & PAGE_MASK) | asce_bits; in kasan_set_pgd()
210 S390_lowcore.user_asce = S390_lowcore.kernel_asce; in kasan_set_pgd()
212 __ctl_load(S390_lowcore.kernel_asce, 1, 1); in kasan_set_pgd()
213 __ctl_load(S390_lowcore.kernel_asce, 7, 7); in kasan_set_pgd()
214 __ctl_load(S390_lowcore.kernel_asce, 13, 13); in kasan_set_pgd()
/Linux-v5.4/arch/s390/include/asm/fpu/
Dapi.h97 state->mask = S390_lowcore.fpu_flags; in kernel_fpu_begin()
104 S390_lowcore.fpu_flags |= flags; in kernel_fpu_begin()
109 S390_lowcore.fpu_flags = state->mask; in kernel_fpu_end()
/Linux-v5.4/drivers/s390/char/
Dsclp_early_core.c39 psw_ext_save = S390_lowcore.external_new_psw; in sclp_early_wait_irq()
41 S390_lowcore.external_new_psw.mask = psw_mask; in sclp_early_wait_irq()
43 S390_lowcore.ext_int_code = 0; in sclp_early_wait_irq()
54 [psw_ext_addr] "=Q" (S390_lowcore.external_new_psw.addr) in sclp_early_wait_irq()
57 } while (S390_lowcore.ext_int_code != EXT_IRQ_SERVICE_SIG); in sclp_early_wait_irq()
59 S390_lowcore.external_new_psw = psw_ext_save; in sclp_early_wait_irq()

123