/openbmc/qemu/hw/ppc/ |
H A D | spapr_irq.c | 34 static void spapr_irq_msi_init(SpaprMachineState *spapr) in spapr_irq_msi_init() 45 int spapr_irq_msi_alloc(SpaprMachineState *spapr, uint32_t num, bool align, in spapr_irq_msi_alloc() 70 void spapr_irq_msi_free(SpaprMachineState *spapr, int irq, uint32_t num) in spapr_irq_msi_free() 142 static int spapr_irq_check(SpaprMachineState *spapr, Error **errp) in spapr_irq_check() 210 int spapr_irq_cpu_intc_create(SpaprMachineState *spapr, in spapr_irq_cpu_intc_create() 231 void spapr_irq_cpu_intc_reset(SpaprMachineState *spapr, PowerPCCPU *cpu) in spapr_irq_cpu_intc_reset() 245 void spapr_irq_cpu_intc_destroy(SpaprMachineState *spapr, PowerPCCPU *cpu) in spapr_irq_cpu_intc_destroy() 261 SpaprMachineState *spapr = SPAPR_MACHINE(opaque); in spapr_set_irq() local 268 void spapr_irq_print_info(SpaprMachineState *spapr, GString *buf) in spapr_irq_print_info() 276 void spapr_irq_dt(SpaprMachineState *spapr, uint32_t nr_servers, in spapr_irq_dt() [all …]
|
H A D | spapr_caps.c | 76 SpaprMachineState *spapr = SPAPR_MACHINE(obj); in spapr_cap_get_bool() local 86 SpaprMachineState *spapr = SPAPR_MACHINE(obj); in spapr_cap_set_bool() local 102 SpaprMachineState *spapr = SPAPR_MACHINE(obj); in spapr_cap_get_string() local 120 SpaprMachineState *spapr = SPAPR_MACHINE(obj); in spapr_cap_set_string() local 148 SpaprMachineState *spapr = SPAPR_MACHINE(obj); in spapr_cap_get_pagesize() local 159 SpaprMachineState *spapr = SPAPR_MACHINE(obj); in spapr_cap_set_pagesize() local 177 static void cap_htm_apply(SpaprMachineState *spapr, uint8_t val, Error **errp) in cap_htm_apply() 194 static void cap_vsx_apply(SpaprMachineState *spapr, uint8_t val, Error **errp) in cap_vsx_apply() 212 static void cap_dfp_apply(SpaprMachineState *spapr, uint8_t val, Error **errp) in cap_dfp_apply() 233 static void cap_safe_cache_apply(SpaprMachineState *spapr, uint8_t val, in cap_safe_cache_apply() [all …]
|
H A D | spapr_numa.c | 24 static int get_max_dist_ref_points(SpaprMachineState *spapr) in get_max_dist_ref_points() 36 static int get_numa_assoc_size(SpaprMachineState *spapr) in get_numa_assoc_size() 51 static int get_vcpu_assoc_size(SpaprMachineState *spapr) in get_vcpu_assoc_size() 60 static const uint32_t *get_associativity(SpaprMachineState *spapr, int node_id) in get_associativity() 143 static void spapr_numa_define_FORM1_domains(SpaprMachineState *spapr) in spapr_numa_define_FORM1_domains() 261 static void spapr_numa_FORM1_affinity_init(SpaprMachineState *spapr, in spapr_numa_FORM1_affinity_init() 311 static void spapr_numa_FORM2_affinity_init(SpaprMachineState *spapr) in spapr_numa_FORM2_affinity_init() 331 void spapr_numa_associativity_init(SpaprMachineState *spapr, in spapr_numa_associativity_init() 338 void spapr_numa_associativity_check(SpaprMachineState *spapr) in spapr_numa_associativity_check() 351 void spapr_numa_write_associativity_dt(SpaprMachineState *spapr, void *fdt, in spapr_numa_write_associativity_dt() [all …]
|
H A D | spapr.c | 119 static int spapr_vcpu_id(SpaprMachineState *spapr, int cpu_index) in spapr_vcpu_id() 128 static bool spapr_is_thread0_in_vcore(SpaprMachineState *spapr, in spapr_is_thread0_in_vcore() 135 int spapr_max_server_number(SpaprMachineState *spapr) in spapr_max_server_number() 176 static void spapr_dt_pa_features(SpaprMachineState *spapr, in spapr_dt_pa_features() 299 static void spapr_dt_pi_features(SpaprMachineState *spapr, in spapr_dt_pi_features() 344 static int spapr_dt_memory_node(SpaprMachineState *spapr, void *fdt, int nodeid, in spapr_dt_memory_node() 414 static int spapr_dt_dynamic_memory_v2(SpaprMachineState *spapr, void *fdt, in spapr_dt_dynamic_memory_v2() 507 static int spapr_dt_dynamic_memory(SpaprMachineState *spapr, void *fdt, in spapr_dt_dynamic_memory() 576 static int spapr_dt_dynamic_reconfiguration_memory(SpaprMachineState *spapr, in spapr_dt_dynamic_reconfiguration_memory() 627 static int spapr_dt_memory(SpaprMachineState *spapr, void *fdt) in spapr_dt_memory() [all …]
|
H A D | spapr_hcall.c | 27 bool is_ram_address(SpaprMachineState *spapr, hwaddr addr) in is_ram_address() 82 SpaprMachineState *spapr, in h_resize_hpt_prepare() 146 void push_sregs_to_kvm_pr(SpaprMachineState *spapr) in push_sregs_to_kvm_pr() 165 SpaprMachineState *spapr, in h_resize_hpt_commit() 205 static target_ulong h_set_sprg0(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_set_sprg0() 214 static target_ulong h_set_dabr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_set_dabr() 232 static target_ulong h_set_xdabr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_set_xdabr() 253 static target_ulong h_page_init(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_page_init() 447 static target_ulong h_register_vpa(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_register_vpa() 490 static target_ulong h_cede(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_cede() [all …]
|
H A D | spapr_rtas.c | 54 static void rtas_display_character(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_display_character() 70 static void rtas_power_off(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_power_off() 83 static void rtas_system_reboot(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_system_reboot() 97 SpaprMachineState *spapr, in rtas_query_cpu_stopped_state() 127 static void rtas_start_cpu(PowerPCCPU *callcpu, SpaprMachineState *spapr, in rtas_start_cpu() 203 static void rtas_stop_self(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_stop_self() 224 static void rtas_ibm_suspend_me(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_ibm_suspend_me() 268 SpaprMachineState *spapr, in rtas_ibm_get_system_parameter() 325 SpaprMachineState *spapr, in rtas_ibm_set_system_parameter() 345 SpaprMachineState *spapr, in rtas_ibm_os_term() [all …]
|
H A D | spapr_vof.c | 17 target_ulong spapr_h_vof_client(PowerPCCPU *cpu, SpaprMachineState *spapr, in spapr_h_vof_client() 29 void spapr_vof_client_dt_finalize(SpaprMachineState *spapr, void *fdt) in spapr_vof_client_dt_finalize() 57 void spapr_vof_reset(SpaprMachineState *spapr, void *fdt, Error **errp) in spapr_vof_reset() 106 SpaprMachineState *spapr = SPAPR_MACHINE(ms); in spapr_vof_quiesce() local 115 SpaprMachineState *spapr = SPAPR_MACHINE(ms); in spapr_vof_setprop() local
|
H A D | spapr_nested.c | 13 void spapr_nested_reset(SpaprMachineState *spapr) in spapr_nested_reset() 28 uint8_t spapr_nested_api(SpaprMachineState *spapr) in spapr_nested_api() 35 bool spapr_get_pate_nested_hv(SpaprMachineState *spapr, PowerPCCPU *cpu, in spapr_get_pate_nested_hv() 64 SpaprMachineStateNestedGuest *spapr_get_nested_guest(SpaprMachineState *spapr, in spapr_get_nested_guest() 73 bool spapr_get_pate_nested_papr(SpaprMachineState *spapr, PowerPCCPU *cpu, in spapr_get_pate_nested_papr() 91 SpaprMachineState *spapr, in h_set_ptbl() 111 SpaprMachineState *spapr, in h_tlb_invalidate() 125 SpaprMachineState *spapr, in h_copy_tofrom_guest() 139 SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); in nested_save_state() local 238 SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); in nested_load_state() local [all …]
|
H A D | spapr_vio.c | 159 static target_ulong h_reg_crq(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_reg_crq() 215 static target_ulong h_free_crq(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_free_crq() 229 static target_ulong h_send_crq(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_send_crq() 252 static target_ulong h_enable_crq(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_enable_crq() 330 static void rtas_set_tce_bypass(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_set_tce_bypass() 361 static void rtas_quiesce(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_quiesce() 472 SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); in spapr_vio_busdev_realize() local 545 static target_ulong h_vio_signal(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_vio_signal()
|
H A D | spapr_vhyp_mmu.c | 19 static target_ulong h_enter(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_enter() 130 static target_ulong h_remove(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_remove() 178 static target_ulong h_bulk_remove(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_bulk_remove() 230 static target_ulong h_protect(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_protect() 269 static target_ulong h_read(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_read() 348 static void cancel_hpt_prepare(SpaprMachineState *spapr) in cancel_hpt_prepare() 369 SpaprMachineState *spapr, in vhyp_mmu_resize_hpt_prepare() 553 SpaprMachineState *spapr, in vhyp_mmu_resize_hpt_commit()
|
H A D | spapr_pci.c | 66 SpaprPhbState *spapr_pci_find_phb(SpaprMachineState *spapr, uint64_t buid) in spapr_pci_find_phb() 80 PCIDevice *spapr_pci_find_dev(SpaprMachineState *spapr, uint64_t buid, in spapr_pci_find_dev() 101 static void finish_read_pci_config(SpaprMachineState *spapr, uint64_t buid, in finish_read_pci_config() 131 static void rtas_ibm_read_pci_config(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_ibm_read_pci_config() 151 static void rtas_read_pci_config(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_read_pci_config() 169 static void finish_write_pci_config(SpaprMachineState *spapr, uint64_t buid, in finish_write_pci_config() 197 static void rtas_ibm_write_pci_config(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_ibm_write_pci_config() 218 static void rtas_write_pci_config(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_write_pci_config() 267 static void rtas_ibm_change_msi(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_ibm_change_msi() 436 SpaprMachineState *spapr, in rtas_ibm_query_interrupt_source_number() [all …]
|
H A D | spapr_nvdimm.c | 142 static int spapr_dt_nvdimm(SpaprMachineState *spapr, void *fdt, in spapr_dt_nvdimm() 207 int spapr_pmem_dt_populate(SpaprDrc *drc, SpaprMachineState *spapr, in spapr_pmem_dt_populate() 217 void spapr_dt_persistent_memory(SpaprMachineState *spapr, void *fdt) in spapr_dt_persistent_memory() 243 SpaprMachineState *spapr, in h_scm_read_metadata() 298 SpaprMachineState *spapr, in h_scm_write_metadata() 360 static target_ulong h_scm_bind_mem(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_scm_bind_mem() 657 static target_ulong h_scm_flush(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_scm_flush() 715 static target_ulong h_scm_unbind_mem(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_scm_unbind_mem() 773 static target_ulong h_scm_unbind_all(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_scm_unbind_all() 823 static target_ulong h_scm_health(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_scm_health()
|
H A D | spapr_rtas_ddw.c | 94 SpaprMachineState *spapr, in rtas_ibm_query_pe_dma_window() 144 SpaprMachineState *spapr, in rtas_ibm_create_pe_dma_window() 221 SpaprMachineState *spapr, in rtas_ibm_remove_pe_dma_window() 271 SpaprMachineState *spapr, in rtas_ibm_reset_pe_dma_window()
|
H A D | spapr_events.c | 373 void spapr_dt_events(SpaprMachineState *spapr, void *fdt) in spapr_dt_events() 411 rtas_event_log_to_source(SpaprMachineState *spapr, int log_type) in rtas_event_log_to_source() 437 static int rtas_event_log_to_irq(SpaprMachineState *spapr, int log_type) in rtas_event_log_to_irq() 453 static void rtas_event_log_queue(SpaprMachineState *spapr, in rtas_event_log_queue() 459 static SpaprEventLogEntry *rtas_event_log_dequeue(SpaprMachineState *spapr, in rtas_event_log_dequeue() 482 static bool rtas_event_log_contains(SpaprMachineState *spapr, uint32_t event_mask) in rtas_event_log_contains() 510 static void spapr_init_maina(SpaprMachineState *spapr, in spapr_init_maina() 536 SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); in spapr_powerdown_req() local 588 SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); in spapr_hotplug_req_event() local 808 static void spapr_mce_dispatch_elog(SpaprMachineState *spapr, PowerPCCPU *cpu, in spapr_mce_dispatch_elog() [all …]
|
H A D | spapr_cpu_core.c | 36 SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); in spapr_reset_vcpu() local 260 static bool spapr_realize_vcpu(PowerPCCPU *cpu, SpaprMachineState *spapr, in spapr_realize_vcpu() 334 SpaprMachineState *spapr = in spapr_cpu_core_realize() local
|
H A D | spapr_rtc.c | 69 static void rtas_get_time_of_day(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_get_time_of_day() 94 static void rtas_set_time_of_day(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_set_time_of_day()
|
H A D | spapr_iommu.c | 477 SpaprMachineState *spapr, in h_put_tce_indirect() 522 static target_ulong h_stuff_tce(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_stuff_tce() 561 static target_ulong h_put_tce(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_put_tce() 602 static target_ulong h_get_tce(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_get_tce()
|
H A D | spapr_drc.c | 154 SpaprMachineState *spapr = NULL; in drc_unisolate_logical() local 950 void spapr_drc_reset_all(SpaprMachineState *spapr) in spapr_drc_reset_all() 1051 static void rtas_set_indicator(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_set_indicator() 1086 static void rtas_get_sensor_state(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_get_sensor_state() 1148 SpaprMachineState *spapr, in rtas_ibm_configure_connector()
|
H A D | spapr_tpm_proxy.c | 103 SpaprMachineState *spapr, in h_tpm_comm()
|
H A D | spapr_rng.c | 66 static target_ulong h_random(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_random()
|
/openbmc/qemu/hw/intc/ |
H A D | xics_spapr.c | 42 static bool check_emulated_xics(SpaprMachineState *spapr, const char *func) in check_emulated_xics() 54 #define CHECK_EMULATED_XICS_HCALL(spapr) \ argument 61 static target_ulong h_cppr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_cppr() 72 static target_ulong h_ipi(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_ipi() 88 static target_ulong h_xirr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_xirr() 99 static target_ulong h_xirr_x(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_xirr_x() 111 static target_ulong h_eoi(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_eoi() 122 static target_ulong h_ipoll(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_ipoll() 143 #define CHECK_EMULATED_XICS_RTAS(spapr, rets) \ argument 151 static void rtas_set_xive(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_set_xive() [all …]
|
H A D | spapr_xive.c | 935 SpaprMachineState *spapr, in h_int_get_source_info() 1047 SpaprMachineState *spapr, in h_int_set_source_config() 1156 SpaprMachineState *spapr, in h_int_get_source_config() 1231 SpaprMachineState *spapr, in h_int_get_queue_info() 1319 SpaprMachineState *spapr, in h_int_set_queue_config() 1490 SpaprMachineState *spapr, in h_int_get_queue_config() 1593 SpaprMachineState *spapr, in h_int_set_os_reporting_line() 1633 SpaprMachineState *spapr, in h_int_get_os_reporting_line() 1680 SpaprMachineState *spapr, in h_int_esb() 1756 SpaprMachineState *spapr, in h_int_sync() [all …]
|
/openbmc/qemu/hw/watchdog/ |
H A D | spapr_watchdog.c | 87 static target_ulong watchdog_stop_all(SpaprMachineState *spapr) in watchdog_stop_all() 107 SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); in watchdog_expired() local 131 SpaprMachineState *spapr, in h_watchdog() 200 void spapr_watchdog_init(SpaprMachineState *spapr) in spapr_watchdog_init()
|
/openbmc/qemu/hw/char/ |
H A D | spapr_vty.c | 104 static target_ulong h_put_term_char(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_put_term_char() 131 static target_ulong h_get_term_char(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_get_term_char() 244 SpaprVioDevice *vty_lookup(SpaprMachineState *spapr, target_ulong reg) in vty_lookup()
|
/openbmc/qemu/hw/net/ |
H A D | spapr_llan.c | 437 SpaprMachineState *spapr, in h_register_logical_lan() 503 SpaprMachineState *spapr, in h_free_logical_lan() 631 SpaprMachineState *spapr, in h_add_logical_lan_buffer() 681 SpaprMachineState *spapr, in h_send_logical_lan() 749 static target_ulong h_multicast_ctrl(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_multicast_ctrl() 763 SpaprMachineState *spapr, in h_change_logical_lan_mac()
|