/drivers/lguest/ |
D | page_tables.c | 83 static pgd_t *spgd_addr(struct lg_cpu *cpu, u32 i, unsigned long vaddr) in spgd_addr() 97 static pmd_t *spmd_addr(struct lg_cpu *cpu, pgd_t spgd, unsigned long vaddr) in spmd_addr() 115 static pte_t *spte_addr(struct lg_cpu *cpu, pgd_t spgd, unsigned long vaddr) in spte_addr() 136 static unsigned long gpgd_addr(struct lg_cpu *cpu, unsigned long vaddr) in gpgd_addr() 152 static unsigned long gpte_addr(struct lg_cpu *cpu, in gpte_addr() 162 static unsigned long gpte_addr(struct lg_cpu *cpu, in gpte_addr() 206 static pte_t gpte_to_spte(struct lg_cpu *cpu, pte_t gpte, int write) in gpte_to_spte() 253 static bool gpte_in_iomem(struct lg_cpu *cpu, pte_t gpte) in gpte_in_iomem() 263 static bool check_gpte(struct lg_cpu *cpu, pte_t gpte) in check_gpte() 273 static bool check_gpgd(struct lg_cpu *cpu, pgd_t gpgd) in check_gpgd() [all …]
|
D | interrupts_and_traps.c | 51 static void push_guest_stack(struct lg_cpu *cpu, unsigned long *gstack, u32 val) in push_guest_stack() 68 static void push_guest_interrupt_stack(struct lg_cpu *cpu, bool has_err) in push_guest_interrupt_stack() 141 static void guest_run_interrupt(struct lg_cpu *cpu, u32 lo, u32 hi) in guest_run_interrupt() 173 static void restore_eflags(struct lg_cpu *cpu) in restore_eflags() 197 unsigned int interrupt_pending(struct lg_cpu *cpu, bool *more) in interrupt_pending() 226 void try_deliver_interrupt(struct lg_cpu *cpu, unsigned int irq, bool more) in try_deliver_interrupt() 309 void set_interrupt(struct lg_cpu *cpu, unsigned int irq) in set_interrupt() 384 bool deliver_trap(struct lg_cpu *cpu, unsigned int num) in deliver_trap() 469 void pin_stack_pages(struct lg_cpu *cpu) in pin_stack_pages() 497 void guest_set_stack(struct lg_cpu *cpu, u32 seg, u32 esp, unsigned int pages) in guest_set_stack() [all …]
|
D | segments.c | 67 static void fixup_gdt_table(struct lg_cpu *cpu, unsigned start, unsigned end) in fixup_gdt_table() 136 void setup_guest_gdt(struct lg_cpu *cpu) in setup_guest_gdt() 152 void copy_gdt_tls(const struct lg_cpu *cpu, struct desc_struct *gdt) in copy_gdt_tls() 165 void copy_gdt(const struct lg_cpu *cpu, struct desc_struct *gdt) in copy_gdt() 182 void load_guest_gdt_entry(struct lg_cpu *cpu, u32 num, u32 lo, u32 hi) in load_guest_gdt_entry() 210 void guest_load_tls(struct lg_cpu *cpu, unsigned long gtls) in guest_load_tls()
|
D | hypercalls.c | 37 static void do_hcall(struct lg_cpu *cpu, struct hcall_args *args) in do_hcall() 136 static void do_async_hcalls(struct lg_cpu *cpu) in do_async_hcalls() 198 static void initialize(struct lg_cpu *cpu) in initialize() 256 void do_hypercalls(struct lg_cpu *cpu) in do_hypercalls() 301 void write_timestamp(struct lg_cpu *cpu) in write_timestamp()
|
D | lguest_user.c | 19 static int getreg_setup(struct lg_cpu *cpu, const unsigned long __user *input) in getreg_setup() 41 static int setreg(struct lg_cpu *cpu, const unsigned long __user *input) in setreg() 67 static int user_send_irq(struct lg_cpu *cpu, const unsigned long __user *input) in user_send_irq() 88 static int trap(struct lg_cpu *cpu, const unsigned long __user *input) in trap() 108 struct lg_cpu *cpu; in read() local 155 static int lg_cpu_start(struct lg_cpu *cpu, unsigned id, unsigned long start_ip) in lg_cpu_start()
|
/drivers/base/ |
D | cacheinfo.c | 34 #define ci_cacheinfo(cpu) (&per_cpu(ci_cpu_cacheinfo, cpu)) argument 35 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) argument 36 #define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list) argument 38 struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) in get_cpu_cacheinfo() 44 static int cache_setup_of_node(unsigned int cpu) in cache_setup_of_node() 90 static inline int cache_setup_of_node(unsigned int cpu) { return 0; } in cache_setup_of_node() 103 static int cache_shared_cpu_map_setup(unsigned int cpu) in cache_shared_cpu_map_setup() 146 static void cache_shared_cpu_map_remove(unsigned int cpu) in cache_shared_cpu_map_remove() 172 static void free_cache_attributes(unsigned int cpu) in free_cache_attributes() 183 int __weak init_cache_level(unsigned int cpu) in init_cache_level() [all …]
|
D | topology.c | 114 static int topology_add_dev(unsigned int cpu) in topology_add_dev() 121 static void topology_remove_dev(unsigned int cpu) in topology_remove_dev() 131 unsigned int cpu = (unsigned long)hcpu; in topology_cpu_callback() local 151 int cpu; in topology_sysfs_init() local
|
/drivers/lguest/x86/ |
D | core.c | 67 static struct lguest_pages *lguest_pages(unsigned int cpu) in lguest_pages() 85 static void copy_in_guest_info(struct lg_cpu *cpu, struct lguest_pages *pages) in copy_in_guest_info() 133 static void run_guest_once(struct lg_cpu *cpu, struct lguest_pages *pages) in run_guest_once() 185 unsigned long *lguest_arch_regptr(struct lg_cpu *cpu, size_t reg_off, bool any) in lguest_arch_regptr() 247 void lguest_arch_run_guest(struct lg_cpu *cpu) in lguest_arch_run_guest() 332 static void copy_from_guest(struct lg_cpu *cpu, in copy_from_guest() 359 static void setup_emulate_insn(struct lg_cpu *cpu) in setup_emulate_insn() 366 static void setup_iomem_insn(struct lg_cpu *cpu, unsigned long iomem_addr) in setup_iomem_insn() 375 void lguest_arch_handle_trap(struct lg_cpu *cpu) in lguest_arch_handle_trap() 635 int lguest_arch_do_hcall(struct lg_cpu *cpu, struct hcall_args *args) in lguest_arch_do_hcall() [all …]
|
/drivers/acpi/ |
D | processor_thermal.c | 53 #define reduction_pctg(cpu) \ argument 63 static int phys_package_first_cpu(int cpu) in phys_package_first_cpu() 74 static int cpu_has_cpufreq(unsigned int cpu) in cpu_has_cpufreq() 106 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() 114 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() 122 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() 165 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() 170 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() 175 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state()
|
/drivers/oprofile/ |
D | nmi_timer_int.c | 36 static int nmi_timer_start_cpu(int cpu) in nmi_timer_start_cpu() 54 static void nmi_timer_stop_cpu(int cpu) in nmi_timer_stop_cpu() 65 int cpu = (unsigned long)data; in nmi_timer_cpu_notifier() local 84 int cpu; in nmi_timer_start() local 97 int cpu; in nmi_timer_stop() local 109 int cpu; in nmi_timer_shutdown() local 127 int cpu, err; in nmi_timer_setup() local
|
D | oprofile_perf.c | 39 u32 cpu = smp_processor_id(); in op_overflow_handler() local 74 static int op_create_counter(int cpu, int event) in op_create_counter() 100 static void op_destroy_counter(int cpu, int event) in op_destroy_counter() 116 int cpu, event, ret = 0; in op_perf_start() local 134 int cpu, event; in op_perf_stop() local 256 int cpu, id; in oprofile_perf_exit() local 275 int cpu, ret = 0; in oprofile_perf_init() local
|
D | timer_int.c | 56 static void __oprofile_hrtimer_stop(int cpu) in __oprofile_hrtimer_stop() 68 int cpu; in oprofile_hrtimer_stop() local 77 static int oprofile_timer_online(unsigned int cpu) in oprofile_timer_online() 85 static int oprofile_timer_prep_down(unsigned int cpu) in oprofile_timer_prep_down()
|
/drivers/cpuidle/ |
D | coupled.c | 323 int cpu = (unsigned long)info; in cpuidle_coupled_handle_poke() local 340 static void cpuidle_coupled_poke(int cpu) in cpuidle_coupled_poke() 358 int cpu; in cpuidle_coupled_poke_others() local 374 static int cpuidle_coupled_set_waiting(int cpu, in cpuidle_coupled_set_waiting() 393 static void cpuidle_coupled_set_not_waiting(int cpu, in cpuidle_coupled_set_not_waiting() 416 static void cpuidle_coupled_set_done(int cpu, struct cpuidle_coupled *coupled) in cpuidle_coupled_set_done() 435 static int cpuidle_coupled_clear_pokes(int cpu) in cpuidle_coupled_clear_pokes() 652 int cpu; in cpuidle_coupled_register_device() local 720 int cpu = get_cpu(); in cpuidle_coupled_prevent_idle() local 739 int cpu = get_cpu(); in cpuidle_coupled_allow_idle() local [all …]
|
D | driver.c | 34 static struct cpuidle_driver *__cpuidle_get_cpu_driver(int cpu) in __cpuidle_get_cpu_driver() 49 int cpu; in __cpuidle_unset_driver() local 71 int cpu; in __cpuidle_set_driver() local 97 static inline struct cpuidle_driver *__cpuidle_get_cpu_driver(int cpu) in __cpuidle_get_cpu_driver() 322 int cpu; in cpuidle_get_driver() local
|
/drivers/xen/ |
D | cpu_hotplug.c | 11 static void enable_hotplug_cpu(int cpu) in enable_hotplug_cpu() 19 static void disable_hotplug_cpu(int cpu) in disable_hotplug_cpu() 32 static int vcpu_online(unsigned int cpu) in vcpu_online() 53 static void vcpu_hotplug(unsigned int cpu) in vcpu_hotplug() 73 unsigned int cpu; in handle_vcpu_hotplug_event() local 87 int cpu; in setup_cpu_watcher() local
|
/drivers/cpufreq/ |
D | cpufreq.c | 139 static inline u64 get_cpu_idle_time_jiffy(unsigned int cpu, u64 *wall) in get_cpu_idle_time_jiffy() 161 u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy) in get_cpu_idle_time() 205 struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) in cpufreq_cpu_get_raw() 213 unsigned int cpufreq_generic_get(unsigned int cpu) in cpufreq_generic_get() 240 struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu) in cpufreq_cpu_get() 328 int cpu; in scale_freq_capacity() local 339 unsigned long cpufreq_scale_freq_capacity(struct sched_domain *sd, int cpu) in cpufreq_scale_freq_capacity() 348 int cpu = cpumask_first(cpus); in scale_max_freq_capacity() local 367 unsigned long cpufreq_scale_max_freq_capacity(struct sched_domain *sd, int cpu) in cpufreq_scale_max_freq_capacity() 376 int cpu = cpumask_first(cpus); in scale_min_freq_capacity() local [all …]
|
D | intel_pstate.c | 203 int cpu; member 384 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits() local 452 struct cpudata *cpu; in intel_pstate_exit_perf_limits() local 531 static inline void intel_pstate_busy_pid_reset(struct cpudata *cpu) in intel_pstate_busy_pid_reset() 542 unsigned int cpu; in intel_pstate_reset_all_pid() local 553 struct cpudata *cpu; in update_turbo_state() local 564 int min, hw_min, max, hw_max, cpu, range, adj_range; in intel_pstate_hwp_set() local 670 struct cpudata *cpu; in show_turbo_pct() local 686 struct cpudata *cpu; in show_num_pstates() local 827 static void intel_pstate_disable_ee(int cpu) in intel_pstate_disable_ee() [all …]
|
D | cppc_cpufreq.c | 81 struct cppc_cpudata *cpu; in cppc_cpufreq_set_target() local 117 struct cppc_cpudata *cpu = all_cpu_data[cpu_num]; in cppc_cpufreq_stop_cpu() local 130 struct cppc_cpudata *cpu; in cppc_cpufreq_cpu_init() local 189 struct cppc_cpudata *cpu; in cppc_cpufreq_init() local 230 struct cppc_cpudata *cpu; in cppc_cpufreq_exit() local
|
/drivers/xen/events/ |
D | events_fifo.c | 102 static int init_control_block(int cpu, in init_control_block() 189 static void evtchn_fifo_bind_to_cpu(struct irq_info *info, unsigned cpu) in evtchn_fifo_bind_to_cpu() 282 static void consume_one_event(unsigned cpu, in consume_one_event() 327 static void __evtchn_fifo_handle_events(unsigned cpu, bool drop) in __evtchn_fifo_handle_events() 344 static void evtchn_fifo_handle_events(unsigned cpu) in evtchn_fifo_handle_events() 351 unsigned cpu; in evtchn_fifo_resume() local 399 static int evtchn_fifo_alloc_control_block(unsigned cpu) in evtchn_fifo_alloc_control_block() 421 static int xen_evtchn_cpu_prepare(unsigned int cpu) in xen_evtchn_cpu_prepare() 428 static int xen_evtchn_cpu_dead(unsigned int cpu) in xen_evtchn_cpu_dead() 436 int cpu = get_cpu(); in xen_evtchn_fifo_init() local
|
/drivers/watchdog/ |
D | octeon-wdt-main.c | 224 static int cpu2core(int cpu) in cpu2core() 253 int cpu = core2cpu(core); in octeon_wdt_poke_irq() local 377 static void octeon_wdt_disable_interrupt(int cpu) in octeon_wdt_disable_interrupt() 397 static void octeon_wdt_setup_interrupt(int cpu) in octeon_wdt_setup_interrupt() 432 unsigned int cpu = (unsigned long)hcpu; in octeon_wdt_cpu_callback() local 450 int cpu; in octeon_wdt_ping() local 498 int cpu; in octeon_wdt_set_timeout() local 565 int cpu; in octeon_wdt_init() local 628 int cpu; in octeon_wdt_cleanup() local
|
/drivers/soc/fsl/qbman/ |
D | qman_portal.c | 41 static void portal_set_cpu(struct qm_portal_config *pcfg, int cpu) in portal_set_cpu() 161 unsigned int cpu) in qman_portal_update_sdest() 182 static void qman_offline_cpu(unsigned int cpu) in qman_offline_cpu() 197 static void qman_online_cpu(unsigned int cpu) in qman_online_cpu() 215 unsigned int cpu = (unsigned long)hcpu; in qman_hotplug_cpu_callback() local 243 int irq, len, cpu; in qman_portal_probe() local
|
/drivers/hwmon/ |
D | coretemp.c | 61 #define TO_PHYS_ID(cpu) (cpu_data(cpu).phys_proc_id) argument 62 #define TO_CORE_ID(cpu) (cpu_data(cpu).cpu_core_id) argument 63 #define TO_ATTR_NO(cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) argument 66 #define for_each_sibling(i, cpu) \ argument 69 #define for_each_sibling(i, cpu) for (i = 0; false; ) argument 90 unsigned int cpu; member 420 static int chk_ucode_version(unsigned int cpu) in chk_ucode_version() 436 static struct platform_device *coretemp_get_pdev(unsigned int cpu) in coretemp_get_pdev() 453 static struct temp_data *init_temp_data(unsigned int cpu, int pkg_flag) in init_temp_data() 471 static int create_core_data(struct platform_device *pdev, unsigned int cpu, in create_core_data() [all …]
|
/drivers/ps3/ |
D | ps3-lpm.c | 210 u32 ps3_read_phys_ctr(u32 cpu, u32 phys_ctr) in ps3_read_phys_ctr() 254 void ps3_write_phys_ctr(u32 cpu, u32 phys_ctr, u32 val) in ps3_write_phys_ctr() 315 u32 ps3_read_ctr(u32 cpu, u32 ctr) in ps3_read_ctr() 336 void ps3_write_ctr(u32 cpu, u32 ctr, u32 val) in ps3_write_ctr() 362 u32 ps3_read_pm07_control(u32 cpu, u32 ctr) in ps3_read_pm07_control() 374 void ps3_write_pm07_control(u32 cpu, u32 ctr, u32 val) in ps3_write_pm07_control() 399 u32 ps3_read_pm(u32 cpu, enum pm_reg_name reg) in ps3_read_pm() 451 void ps3_write_pm(u32 cpu, enum pm_reg_name reg, u32 val) in ps3_write_pm() 521 u32 ps3_get_ctr_size(u32 cpu, u32 phys_ctr) in ps3_get_ctr_size() 540 void ps3_set_ctr_size(u32 cpu, u32 phys_ctr, u32 ctr_size) in ps3_set_ctr_size() [all …]
|
/drivers/thermal/ |
D | x86_pkg_temp_thermal.c | 120 *pkg_temp_thermal_get_phy_entry(unsigned int cpu) in pkg_temp_thermal_get_phy_entry() 142 static int get_tj_max(int cpu, u32 *tj_max) in get_tj_max() 319 int cpu = smp_processor_id(); in pkg_temp_thermal_threshold_work_fn() local 359 int cpu = smp_processor_id(); in pkg_temp_thermal_platform_thermal_notify() local 385 static int find_siblings_cpu(int cpu) in find_siblings_cpu() 397 static int pkg_temp_thermal_device_add(unsigned int cpu) in pkg_temp_thermal_device_add() 478 static int pkg_temp_thermal_device_remove(unsigned int cpu) in pkg_temp_thermal_device_remove() 518 static int get_core_online(unsigned int cpu) in get_core_online() 545 static void put_core_offline(unsigned int cpu) in put_core_offline() 557 unsigned int cpu = (unsigned long) hcpu; in pkg_temp_thermal_cpu_callback() local
|
/drivers/irqchip/ |
D | irq-bcm2836.c | 88 int cpu) in bcm2836_arm_irqchip_mask_per_cpu_irq() 97 int cpu) in bcm2836_arm_irqchip_unmask_per_cpu_irq() 166 int cpu = smp_processor_id(); in bcm2836_arm_irqchip_handle_irq() local 191 int cpu; in bcm2836_arm_irqchip_send_ipi() local 205 static int bcm2836_cpu_starting(unsigned int cpu) in bcm2836_cpu_starting() 212 static int bcm2836_cpu_dying(unsigned int cpu) in bcm2836_cpu_dying() 220 static int __init bcm2836_smp_boot_secondary(unsigned int cpu, in bcm2836_smp_boot_secondary()
|