Home
last modified time | relevance | path

Searched refs:this_cpu_ptr (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/linux/arch/x86/kernel/cpu/mce/
H A Dintel.c166 machine_check_poll(MCP_TIMESTAMP, this_cpu_ptr(&mce_banks_owned)); in intel_threshold_interrupt()
178 unsigned long *owned = (void *)this_cpu_ptr(&mce_banks_owned); in cmci_skip_bank()
192 __clear_bit(bank, this_cpu_ptr(mce_poll_banks)); in cmci_skip_bank()
232 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc); in cmci_claim_bank()
240 WARN_ON(!test_bit(bank, this_cpu_ptr(mce_poll_banks))); in cmci_claim_bank()
246 set_bit(bank, (void *)this_cpu_ptr(&mce_banks_owned)); in cmci_claim_bank()
253 __clear_bit(bank, this_cpu_ptr(mce_poll_banks)); in cmci_claim_bank()
316 machine_check_poll(0, this_cpu_ptr(&mce_banks_owned)); in cmci_recheck()
325 if (!test_bit(bank, this_cpu_ptr(mce_banks_owned))) in __cmci_disable_bank()
330 __clear_bit(bank, this_cpu_ptr(mce_banks_owned)); in __cmci_disable_bank()
[all …]
H A Damd.c277 struct mce_amd_cpu_data *data = this_cpu_ptr(&mce_amd_data); in smca_configure()
278 u8 *bank_counts = this_cpu_ptr(smca_bank_counts); in smca_configure()
330 this_cpu_ptr(mce_banks_array)[bank].lsb_in_status = !!(low & BIT(8)); in smca_configure()
333 this_cpu_ptr(smca_banks)[bank].paddrv = 1; in smca_configure()
350 this_cpu_ptr(smca_banks)[bank].hwid = s_hwid; in smca_configure()
351 this_cpu_ptr(smca_banks)[bank].id = low; in smca_configure()
352 this_cpu_ptr(smca_banks)[bank].sysfs_id = bank_counts[s_hwid->bank_type]++; in smca_configure()
585 __set_bit(bank, this_cpu_ptr(&mce_amd_data)->thr_intr_banks); in prepare_threshold_block()
669 struct mce_bank *mce_banks = this_cpu_ptr(mce_banks_array); in amd_apply_cpu_quirks()
697 struct mce_amd_cpu_data *data = this_cpu_ptr(&mce_amd_data); in smca_enable_interrupt_vectors()
[all …]
/linux/arch/powerpc/include/asm/
H A Didle.h14 *this_cpu_ptr(&idle_entry_purr_snap) = mfspr(SPRN_PURR); in snapshot_purr_idle_entry()
19 *this_cpu_ptr(&idle_entry_spurr_snap) = mfspr(SPRN_SPURR); in snapshot_spurr_idle_entry()
25 u64 in_purr = *this_cpu_ptr(&idle_entry_purr_snap); in update_idle_purr_accounting()
34 u64 *idle_spurr_cycles_ptr = this_cpu_ptr(&idle_spurr_cycles); in update_idle_spurr_accounting()
35 u64 in_spurr = *this_cpu_ptr(&idle_entry_spurr_snap); in update_idle_spurr_accounting()
89 return *this_cpu_ptr(&idle_spurr_cycles); in read_this_idle_spurr()
/linux/Documentation/translations/zh_CN/core-api/
H A Dthis_cpu_ops.rst118 y = this_cpu_ptr(&x)
121 ``this_cpu_ptr`` 避免了通用 ``get_cpu``/``put_cpu`` 序列所需的多个步骤。没有可用
148 &x和p是每CPU变量的偏移量。 ``this_cpu_ptr()`` 使用每CPU变量的偏移量,这让它看起来
181 ``this_cpu_ptr()``::
185 pp = this_cpu_ptr(&p);
225 &this_cpu_ptr(pp)->n 对比 this_cpu_ptr(&pp->n)
259 struct data *p = this_cpu_ptr(&datap);
261 但是,将通过this_cpu_ptr计算的指针传递给其他cpu是不寻常的,应该避免。
/linux/drivers/hv/
H A Dmshv_root_hv_call.c61 input_page = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_withdraw_memory()
102 input = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_create_partition()
103 output = *this_cpu_ptr(hyperv_pcpu_output_arg); in hv_call_create_partition()
211 input_page = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_do_map_gpa_hcall()
313 input_page = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_unmap_gpa_pages()
350 input_page = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_get_gpa_access_states()
351 output_page = *this_cpu_ptr(hyperv_pcpu_output_arg); in hv_call_get_gpa_access_states()
386 input = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_assert_virtual_interrupt()
441 input = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_get_vp_state()
442 output = *this_cpu_ptr(hyperv_pcpu_output_arg); in hv_call_get_vp_state()
[all …]
H A Dmshv_common.c43 input_page = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_get_vp_registers()
44 output_page = *this_cpu_ptr(hyperv_pcpu_output_arg); in hv_call_get_vp_registers()
87 input_page = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_set_vp_registers()
126 input = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_get_partition_property()
127 output = *this_cpu_ptr(hyperv_pcpu_output_arg); in hv_call_get_partition_property()
173 in = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_initialize_sleep_states()
231 in = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_machine_power_off()
H A Dhv_proc.c77 input_page = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_deposit_pages()
173 input = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_add_logical_proc()
175 output = *this_cpu_ptr(hyperv_pcpu_output_arg); in hv_call_add_logical_proc()
217 input = *this_cpu_ptr(hyperv_pcpu_input_arg); in hv_call_create_vp()
/linux/arch/xtensa/kernel/
H A Dhw_breakpoint.c178 i = alloc_slot(this_cpu_ptr(bp_on_reg), XCHAL_NUM_IBREAK, bp); in arch_install_hw_breakpoint()
185 i = alloc_slot(this_cpu_ptr(wp_on_reg), XCHAL_NUM_DBREAK, bp); in arch_install_hw_breakpoint()
216 i = free_slot(this_cpu_ptr(bp_on_reg), XCHAL_NUM_IBREAK, bp); in arch_uninstall_hw_breakpoint()
224 i = free_slot(this_cpu_ptr(wp_on_reg), XCHAL_NUM_DBREAK, bp); in arch_uninstall_hw_breakpoint()
269 struct perf_event *bp = this_cpu_ptr(wp_on_reg)[i]; in restore_dbreak()
281 struct perf_event **bp = this_cpu_ptr(bp_on_reg); in check_hw_breakpoint()
290 struct perf_event **bp = this_cpu_ptr(wp_on_reg); in check_hw_breakpoint()
/linux/arch/x86/events/intel/
H A Dbts.c235 struct bts_ctx *bts = this_cpu_ptr(bts_ctx); in __bts_event_start()
263 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_start()
264 struct bts_ctx *bts = this_cpu_ptr(bts_ctx); in bts_event_start()
294 struct bts_ctx *bts = this_cpu_ptr(bts_ctx); in __bts_event_stop()
308 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_stop()
309 struct bts_ctx *bts = this_cpu_ptr(bts_ctx); in bts_event_stop()
348 bts = this_cpu_ptr(bts_ctx); in intel_bts_enable_local()
372 bts = this_cpu_ptr(bts_ctx); in intel_bts_disable_local()
463 struct debug_store *ds = this_cpu_ptr(&cpu_hw_events)->ds; in intel_bts_interrupt()
473 bts = this_cpu_ptr(bts_ctx); in intel_bts_interrupt()
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpsci-relay.c160 boot_args = this_cpu_ptr(&suspend_args); in psci_cpu_suspend()
161 init_params = this_cpu_ptr(&kvm_init_params); in psci_cpu_suspend()
187 boot_args = this_cpu_ptr(&suspend_args); in psci_system_suspend()
188 init_params = this_cpu_ptr(&kvm_init_params); in psci_system_suspend()
211 boot_args = this_cpu_ptr(&cpu_on_args); in __kvm_host_psci_cpu_entry()
213 boot_args = this_cpu_ptr(&suspend_args); in __kvm_host_psci_cpu_entry()
/linux/kernel/time/
H A Dtick-sched.c424 irq_work_queue(this_cpu_ptr(&nohz_full_kick_work)); in tick_nohz_full_kick()
615 ts = this_cpu_ptr(&tick_cpu_sched); in __tick_nohz_task_switch()
718 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); in tick_nohz_tick_stopped()
1237 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); in tick_nohz_idle_stop_tick()
1273 tick_nohz_retain_tick(this_cpu_ptr(&tick_cpu_sched)); in tick_nohz_idle_retain_tick()
1289 ts = this_cpu_ptr(&tick_cpu_sched); in tick_nohz_idle_enter()
1320 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); in tick_nohz_irq_exit()
1335 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); in tick_nohz_idle_got_tick()
1373 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); in tick_nohz_get_sleep_length()
1443 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); in tick_nohz_idle_restart_tick()
[all …]
H A Dtick-common.c263 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_install_replacement()
376 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_broadcast_oneshot_control()
421 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_shutdown()
442 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_suspend_local()
456 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_resume_local()
/linux/net/core/
H A Ddst_cache.c75 dst = dst_cache_per_cpu_get(dst_cache, this_cpu_ptr(dst_cache->cache)); in dst_cache_get()
90 idst = this_cpu_ptr(dst_cache->cache); in dst_cache_get_ip4()
112 idst = this_cpu_ptr(dst_cache->cache); in dst_cache_set_ip4()
130 idst = this_cpu_ptr(dst_cache->cache); in dst_cache_set_ip6()
149 idst = this_cpu_ptr(dst_cache->cache); in dst_cache_get_ip6()
/linux/kernel/irq/
H A Dipi-mux.c31 struct ipi_mux_cpu *icpu = this_cpu_ptr(ipi_mux_pcpu); in ipi_mux_mask()
38 struct ipi_mux_cpu *icpu = this_cpu_ptr(ipi_mux_pcpu); in ipi_mux_unmask()
56 struct ipi_mux_cpu *icpu = this_cpu_ptr(ipi_mux_pcpu); in ipi_mux_send_mask()
122 struct ipi_mux_cpu *icpu = this_cpu_ptr(ipi_mux_pcpu); in ipi_mux_process()
H A Dmatrix.c86 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_online()
107 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_offline()
190 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_assign_system()
330 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_assign()
458 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_available()
482 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_allocated()
/linux/arch/arm64/kvm/
H A Dvmid.c135 atomic64_set(this_cpu_ptr(&active_vmids), VMID_ACTIVE_INVALID); in kvm_arm_vmid_clear_active()
155 old_active_vmid = atomic64_read(this_cpu_ptr(&active_vmids)); in kvm_arm_vmid_update()
157 0 != atomic64_cmpxchg_relaxed(this_cpu_ptr(&active_vmids), in kvm_arm_vmid_update()
168 atomic64_set(this_cpu_ptr(&active_vmids), vmid); in kvm_arm_vmid_update()
/linux/net/netfilter/
H A Dnft_counter.c46 this_cpu = this_cpu_ptr(priv->counter); in nft_counter_do_eval()
47 nft_sync = this_cpu_ptr(&nft_counter_sync); in nft_counter_do_eval()
119 this_cpu = this_cpu_ptr(priv->counter); in nft_counter_reset()
120 nft_sync = this_cpu_ptr(&nft_counter_sync); in nft_counter_reset()
288 this_cpu = this_cpu_ptr(priv->counter); in nft_counter_offload_stats()
289 nft_sync = this_cpu_ptr(&nft_counter_sync); in nft_counter_offload_stats()
/linux/arch/arm64/kernel/
H A Dhw_breakpoint.c238 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control()
245 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control()
590 slots = this_cpu_ptr(bp_on_reg); in toggle_bp_registers()
594 slots = this_cpu_ptr(wp_on_reg); in toggle_bp_registers()
631 slots = this_cpu_ptr(bp_on_reg); in do_breakpoint()
681 kernel_step = this_cpu_ptr(&stepping_kernel_bp); in do_breakpoint()
763 slots = this_cpu_ptr(wp_on_reg); in do_watchpoint()
829 kernel_step = this_cpu_ptr(&stepping_kernel_bp); in do_watchpoint()
850 int *kernel_step = this_cpu_ptr(&stepping_kernel_bp); in try_step_suspended_breakpoints()
950 for (slots = this_cpu_ptr(bp_on_reg), i = 0; i < core_num_brps; ++i) { in hw_breakpoint_reset()
[all …]
/linux/include/linux/
H A Dlocal_lock_internal.h180 #define __local_lock_is_locked(lock) READ_ONCE(this_cpu_ptr(lock)->acquired)
314 (rt_mutex_owner(&this_cpu_ptr(__lock)->lock) == current)
328 return this_cpu_ptr(base); in __this_cpu_local_lock()
334 return this_cpu_ptr(base); in __this_cpu_local_lock()
338 #define __this_cpu_local_lock(base) this_cpu_ptr(base)
/linux/arch/x86/xen/
H A Dmulticalls.c68 return this_cpu_ptr(mc_debug_data_ptr); in get_mc_debug()
144 struct mc_buffer *b = this_cpu_ptr(&mc_buffer); in xen_mc_flush()
221 struct mc_buffer *b = this_cpu_ptr(&mc_buffer); in __xen_mc_entry()
256 struct mc_buffer *b = this_cpu_ptr(&mc_buffer); in xen_mc_extend_args()
286 struct mc_buffer *b = this_cpu_ptr(&mc_buffer); in xen_mc_callback()
/linux/kernel/
H A Dwatchdog.c183 new_interrupts = atomic_inc_return(this_cpu_ptr(&hrtimer_interrupts)); in watchdog_hardlockup_kick()
767 complete(this_cpu_ptr(&softlockup_completion)); in softlockup_fn()
796 if (completion_done(this_cpu_ptr(&softlockup_completion))) { in watchdog_timer_fn()
797 reinit_completion(this_cpu_ptr(&softlockup_completion)); in watchdog_timer_fn()
800 this_cpu_ptr(&softlockup_stop_work)); in watchdog_timer_fn()
822 period_ts = READ_ONCE(*this_cpu_ptr(&watchdog_report_ts)); in watchdog_timer_fn()
893 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_enable()
894 struct completion *done = this_cpu_ptr(&softlockup_completion); in watchdog_enable()
918 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_disable()
929 wait_for_completion(this_cpu_ptr(&softlockup_completion)); in watchdog_disable()
/linux/arch/sh/kernel/
H A Dkprobes.c97 struct kprobe *saved = this_cpu_ptr(&saved_next_opcode); in arch_remove_kprobe()
106 saved = this_cpu_ptr(&saved_next_opcode2); in arch_remove_kprobe()
148 op1 = this_cpu_ptr(&saved_next_opcode); in prepare_singlestep()
149 op2 = this_cpu_ptr(&saved_next_opcode2); in prepare_singlestep()
321 p = this_cpu_ptr(&saved_next_opcode); in post_kprobe_handler()
333 p = this_cpu_ptr(&saved_next_opcode2); in post_kprobe_handler()
/linux/mm/kasan/
H A Dquarantine.c209 q = this_cpu_ptr(&cpu_quarantine); in kasan_quarantine_put()
320 sq = this_cpu_ptr(&shrink_qlist); in __per_cpu_remove_cache()
330 q = this_cpu_ptr(&cpu_quarantine); in per_cpu_remove_cache()
385 this_cpu_ptr(&cpu_quarantine)->offline = false; in kasan_cpu_online()
393 q = this_cpu_ptr(&cpu_quarantine); in kasan_cpu_offline()
/linux/kernel/rcu/
H A Drefscale.c436 unsigned long *tap = this_cpu_ptr(&test_acqrel); in ref_incpercpu_section()
448 unsigned long *tap = this_cpu_ptr(&test_acqrel); in ref_incpercpu_delay_section()
471 tap = this_cpu_ptr(&test_acqrel); in ref_incpercpupreempt_section()
486 tap = this_cpu_ptr(&test_acqrel); in ref_incpercpupreempt_delay_section()
509 tap = this_cpu_ptr(&test_acqrel); in ref_incpercpubh_section()
524 tap = this_cpu_ptr(&test_acqrel); in ref_incpercpubh_delay_section()
549 tap = this_cpu_ptr(&test_acqrel); in ref_incpercpuirqsave_section()
565 tap = this_cpu_ptr(&test_acqrel); in ref_incpercpuirqsave_delay_section()
730 x = smp_load_acquire(this_cpu_ptr(&test_acqrel)); in ref_acqrel_section()
731 smp_store_release(this_cpu_ptr(&test_acqrel), x + 1); in ref_acqrel_section()
[all …]
/linux/lib/
H A Dirq_poll.c37 list_add_tail(&iop->list, this_cpu_ptr(&blk_cpu_iopoll)); in irq_poll_sched()
80 struct list_head *list = this_cpu_ptr(&blk_cpu_iopoll); in irq_poll_softirq()
199 this_cpu_ptr(&blk_cpu_iopoll)); in irq_poll_cpu_dead()

12345678910>>...14