Home
last modified time | relevance | path

Searched refs:xive (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dbook3s_xive.c6 #define pr_fmt(fmt) "xive-kvm: " fmt
22 #include <asm/xive.h>
23 #include <asm/xive-regs.h>
390 static void xive_vm_scan_for_rerouted_irqs(struct kvmppc_xive *xive, in xive_vm_scan_for_rerouted_irqs() argument
423 sb = kvmppc_xive_find_source(xive, irq, &src); in xive_vm_scan_for_rerouted_irqs()
459 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; in xive_vm_h_cppr() local
500 * interrupt away, which flushes the xive, followed by the in xive_vm_h_cppr()
505 xive_vm_scan_for_rerouted_irqs(xive, xc); in xive_vm_h_cppr()
517 struct kvmppc_xive *xive in xive_vm_h_eoi() local
674 struct kvmppc_xive *xive = xc->xive; kvmppc_xive_check_save_restore() local
939 struct kvmppc_xive *xive = xc->xive; xive_provision_queue() local
974 struct kvmppc_xive *xive = kvm->arch.xive; xive_check_provisioning() local
1084 xive_lock_and_mask(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, struct kvmppc_xive_irq_state *state) xive_lock_and_mask() argument
1143 xive_finish_unmask(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, struct kvmppc_xive_irq_state *state, u8 prio) xive_finish_unmask() argument
1187 struct kvmppc_xive *xive = kvm->arch.xive; xive_target_interrupt() local
1271 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_set_xive() local
1372 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_get_xive() local
1394 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_int_on() local
1433 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_int_off() local
1457 xive_restore_pending_irq(struct kvmppc_xive *xive, u32 irq) xive_restore_pending_irq() argument
1495 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; kvmppc_xive_set_icp() local
1554 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_set_mapped() local
1652 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_clr_mapped() local
1733 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_disable_vcpu_interrupts() local
1807 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; kvmppc_xive_cleanup_vcpu() local
1867 kvmppc_xive_vcpu_id_valid(struct kvmppc_xive *xive, u32 cpu) kvmppc_xive_vcpu_id_valid() argument
1875 kvmppc_xive_compute_vp_id(struct kvmppc_xive *xive, u32 cpu, u32 *vp) kvmppc_xive_compute_vp_id() argument
1906 struct kvmppc_xive *xive = dev->private; kvmppc_xive_connect_vcpu() local
2037 xive_pre_save_set_queued(struct kvmppc_xive *xive, u32 irq) xive_pre_save_set_queued() argument
2067 xive_pre_save_mask_irq(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, u32 irq) xive_pre_save_mask_irq() argument
2087 xive_pre_save_unmask_irq(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, u32 irq) xive_pre_save_unmask_irq() argument
2111 xive_pre_save_queue(struct kvmppc_xive *xive, struct xive_q *q) xive_pre_save_queue() argument
2124 xive_pre_save_scan(struct kvmppc_xive *xive) xive_pre_save_scan() argument
2163 xive_post_save_scan(struct kvmppc_xive *xive) xive_post_save_scan() argument
2183 xive_get_source(struct kvmppc_xive *xive, long irq, u64 addr) xive_get_source() argument
2266 kvmppc_xive_create_src_block( struct kvmppc_xive *xive, int irq) kvmppc_xive_create_src_block() argument
2305 xive_check_delayed_irq(struct kvmppc_xive *xive, u32 irq) xive_check_delayed_irq() argument
2326 xive_set_source(struct kvmppc_xive *xive, long irq, u64 addr) xive_set_source() argument
2492 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_set_irq() local
2526 kvmppc_xive_set_nr_servers(struct kvmppc_xive *xive, u64 addr) kvmppc_xive_set_nr_servers() argument
2565 struct kvmppc_xive *xive = dev->private; xive_set_attr() local
2582 struct kvmppc_xive *xive = dev->private; xive_get_attr() local
2643 struct kvmppc_xive *xive = dev->private; kvmppc_xive_release() local
2721 struct kvmppc_xive *xive = *kvm_xive_device; kvmppc_xive_get_device() local
2738 struct kvmppc_xive *xive; kvmppc_xive_create() local
2887 struct kvmppc_xive *xive = m->private; xive_debug_show() local
2958 xive_debugfs_init(struct kvmppc_xive *xive) xive_debugfs_init() argument
2968 struct kvmppc_xive *xive = dev->private; kvmppc_xive_init() local
[all...]
H A Dbook3s_xive_native.c6 #define pr_fmt(fmt) "xive-kvm: " fmt
20 #include <asm/xive.h>
21 #include <asm/xive-regs.h>
95 if (kvmppc_xive_has_single_escalation(xc->xive)) in kvmppc_xive_native_cleanup_vcpu()
126 struct kvmppc_xive *xive = dev->private; in kvmppc_xive_native_connect_vcpu() local
137 if (xive->kvm != vcpu->kvm) in kvmppc_xive_native_connect_vcpu()
142 mutex_lock(&xive->lock); in kvmppc_xive_native_connect_vcpu()
144 rc = kvmppc_xive_compute_vp_id(xive, server_num, &vp_id); in kvmppc_xive_native_connect_vcpu()
155 xc->xive = xive; in kvmppc_xive_native_connect_vcpu()
203 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_native_reset_mapped() local
232 struct kvmppc_xive *xive = dev->private; xive_native_esb_fault() local
312 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_mmap() local
339 kvmppc_xive_native_set_source(struct kvmppc_xive *xive, long irq, u64 addr) kvmppc_xive_native_set_source() argument
416 kvmppc_xive_native_update_source_config(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, struct kvmppc_xive_irq_state *state, u32 server, u8 priority, bool masked, u32 eisn) kvmppc_xive_native_update_source_config() argument
463 kvmppc_xive_native_set_source_config(struct kvmppc_xive *xive, long irq, u64 addr) kvmppc_xive_native_set_source_config() argument
509 kvmppc_xive_native_sync_source(struct kvmppc_xive *xive, long irq, u64 addr) kvmppc_xive_native_sync_source() argument
559 kvmppc_xive_native_set_queue_config(struct kvmppc_xive *xive, long eq_idx, u64 addr) kvmppc_xive_native_set_queue_config() argument
707 kvmppc_xive_native_get_queue_config(struct kvmppc_xive *xive, long eq_idx, u64 addr) kvmppc_xive_native_get_queue_config() argument
805 kvmppc_xive_reset(struct kvmppc_xive *xive) kvmppc_xive_reset() argument
914 kvmppc_xive_native_eq_sync(struct kvmppc_xive *xive) kvmppc_xive_native_eq_sync() argument
944 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_set_attr() local
976 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_get_attr() local
1016 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_release() local
1093 struct kvmppc_xive *xive; kvmppc_xive_native_create() local
1177 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; kvmppc_xive_native_set_vp() local
1213 struct kvmppc_xive *xive = m->private; xive_native_debug_show() local
1259 xive_native_debugfs_init(struct kvmppc_xive *xive) xive_native_debugfs_init() argument
1269 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_init() local
[all...]
H A Dbook3s_xive.h153 struct kvmppc_xive *xive; member
211 static inline struct kvmppc_xive_src_block *kvmppc_xive_find_source(struct kvmppc_xive *xive, in kvmppc_xive_find_source() argument
221 return xive->src_blocks[bid]; in kvmppc_xive_find_source()
235 static inline u32 kvmppc_xive_vp(struct kvmppc_xive *xive, u32 server) in kvmppc_xive_vp() argument
237 return xive->vp_base + kvmppc_pack_vcpu_id(xive->kvm, server); in kvmppc_xive_vp()
296 struct kvmppc_xive *xive, int irq);
303 int kvmppc_xive_compute_vp_id(struct kvmppc_xive *xive, u32 cpu, u32 *vp);
304 int kvmppc_xive_set_nr_servers(struct kvmppc_xive *xive, u64 addr);
307 static inline bool kvmppc_xive_has_single_escalation(struct kvmppc_xive *xive) in kvmppc_xive_has_single_escalation() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dbook3s_xive.c6 #define pr_fmt(fmt) "xive-kvm: " fmt
21 #include <asm/xive.h>
22 #include <asm/xive-regs.h>
248 struct kvmppc_xive *xive = xc->xive; in xive_provision_queue() local
257 qpage = (__be32 *)__get_free_pages(GFP_KERNEL, xive->q_page_order); in xive_provision_queue()
263 memset(qpage, 0, 1 << xive->q_order); in xive_provision_queue()
273 xive->q_order, true); in xive_provision_queue()
280 /* Called with xive->lock held */
283 struct kvmppc_xive *xive in xive_check_provisioning() local
391 xive_lock_and_mask(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, struct kvmppc_xive_irq_state *state) xive_lock_and_mask() argument
471 xive_finish_unmask(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, struct kvmppc_xive_irq_state *state, u8 prio) xive_finish_unmask() argument
532 struct kvmppc_xive *xive = kvm->arch.xive; xive_target_interrupt() local
616 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_set_xive() local
717 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_get_xive() local
739 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_int_on() local
778 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_int_off() local
802 xive_restore_pending_irq(struct kvmppc_xive *xive, u32 irq) xive_restore_pending_irq() argument
840 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; kvmppc_xive_set_icp() local
899 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_set_mapped() local
996 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_clr_mapped() local
1078 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_disable_vcpu_interrupts() local
1153 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; kvmppc_xive_cleanup_vcpu() local
1214 kvmppc_xive_vcpu_id_valid(struct kvmppc_xive *xive, u32 cpu) kvmppc_xive_vcpu_id_valid() argument
1222 kvmppc_xive_compute_vp_id(struct kvmppc_xive *xive, u32 cpu, u32 *vp) kvmppc_xive_compute_vp_id() argument
1253 struct kvmppc_xive *xive = dev->private; kvmppc_xive_connect_vcpu() local
1378 xive_pre_save_set_queued(struct kvmppc_xive *xive, u32 irq) xive_pre_save_set_queued() argument
1408 xive_pre_save_mask_irq(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, u32 irq) xive_pre_save_mask_irq() argument
1428 xive_pre_save_unmask_irq(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, u32 irq) xive_pre_save_unmask_irq() argument
1452 xive_pre_save_queue(struct kvmppc_xive *xive, struct xive_q *q) xive_pre_save_queue() argument
1465 xive_pre_save_scan(struct kvmppc_xive *xive) xive_pre_save_scan() argument
1503 xive_post_save_scan(struct kvmppc_xive *xive) xive_post_save_scan() argument
1523 xive_get_source(struct kvmppc_xive *xive, long irq, u64 addr) xive_get_source() argument
1606 kvmppc_xive_create_src_block( struct kvmppc_xive *xive, int irq) kvmppc_xive_create_src_block() argument
1645 xive_check_delayed_irq(struct kvmppc_xive *xive, u32 irq) xive_check_delayed_irq() argument
1666 xive_set_source(struct kvmppc_xive *xive, long irq, u64 addr) xive_set_source() argument
1832 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_set_irq() local
1866 kvmppc_xive_set_nr_servers(struct kvmppc_xive *xive, u64 addr) kvmppc_xive_set_nr_servers() argument
1905 struct kvmppc_xive *xive = dev->private; xive_set_attr() local
1922 struct kvmppc_xive *xive = dev->private; xive_get_attr() local
1983 struct kvmppc_xive *xive = dev->private; kvmppc_xive_release() local
2061 struct kvmppc_xive *xive = *kvm_xive_device; kvmppc_xive_get_device() local
2078 struct kvmppc_xive *xive; kvmppc_xive_create() local
2156 struct kvmppc_xive *xive = m->private; xive_debug_show() local
2214 xive_debugfs_init(struct kvmppc_xive *xive) xive_debugfs_init() argument
2233 struct kvmppc_xive *xive = (struct kvmppc_xive *)dev->private; kvmppc_xive_init() local
[all...]
H A Dbook3s_xive_native.c6 #define pr_fmt(fmt) "xive-kvm: " fmt
19 #include <asm/xive.h>
20 #include <asm/xive-regs.h>
98 if (xc->xive->single_escalation) in kvmppc_xive_native_cleanup_vcpu()
130 struct kvmppc_xive *xive = dev->private; in kvmppc_xive_native_connect_vcpu() local
141 if (xive->kvm != vcpu->kvm) in kvmppc_xive_native_connect_vcpu()
146 mutex_lock(&xive->lock); in kvmppc_xive_native_connect_vcpu()
148 rc = kvmppc_xive_compute_vp_id(xive, server_num, &vp_id); in kvmppc_xive_native_connect_vcpu()
159 xc->xive = xive; in kvmppc_xive_native_connect_vcpu()
201 struct kvmppc_xive *xive = kvm->arch.xive; kvmppc_xive_native_reset_mapped() local
230 struct kvmppc_xive *xive = dev->private; xive_native_esb_fault() local
310 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_mmap() local
337 kvmppc_xive_native_set_source(struct kvmppc_xive *xive, long irq, u64 addr) kvmppc_xive_native_set_source() argument
414 kvmppc_xive_native_update_source_config(struct kvmppc_xive *xive, struct kvmppc_xive_src_block *sb, struct kvmppc_xive_irq_state *state, u32 server, u8 priority, bool masked, u32 eisn) kvmppc_xive_native_update_source_config() argument
461 kvmppc_xive_native_set_source_config(struct kvmppc_xive *xive, long irq, u64 addr) kvmppc_xive_native_set_source_config() argument
507 kvmppc_xive_native_sync_source(struct kvmppc_xive *xive, long irq, u64 addr) kvmppc_xive_native_sync_source() argument
557 kvmppc_xive_native_set_queue_config(struct kvmppc_xive *xive, long eq_idx, u64 addr) kvmppc_xive_native_set_queue_config() argument
705 kvmppc_xive_native_get_queue_config(struct kvmppc_xive *xive, long eq_idx, u64 addr) kvmppc_xive_native_get_queue_config() argument
803 kvmppc_xive_reset(struct kvmppc_xive *xive) kvmppc_xive_reset() argument
912 kvmppc_xive_native_eq_sync(struct kvmppc_xive *xive) kvmppc_xive_native_eq_sync() argument
942 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_set_attr() local
974 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_get_attr() local
1014 struct kvmppc_xive *xive = dev->private; kvmppc_xive_native_release() local
1091 struct kvmppc_xive *xive; kvmppc_xive_native_create() local
1170 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; kvmppc_xive_native_set_vp() local
1206 struct kvmppc_xive *xive = m->private; xive_native_debug_show() local
1239 xive_native_debugfs_init(struct kvmppc_xive *xive) xive_native_debugfs_init() argument
1258 struct kvmppc_xive *xive = (struct kvmppc_xive *)dev->private; kvmppc_xive_native_init() local
[all...]
H A Dbook3s_xive.h150 struct kvmppc_xive *xive; member
208 static inline struct kvmppc_xive_src_block *kvmppc_xive_find_source(struct kvmppc_xive *xive, in kvmppc_xive_find_source() argument
218 return xive->src_blocks[bid]; in kvmppc_xive_find_source()
221 static inline u32 kvmppc_xive_vp(struct kvmppc_xive *xive, u32 server) in kvmppc_xive_vp() argument
223 return xive->vp_base + kvmppc_pack_vcpu_id(xive->kvm, server); in kvmppc_xive_vp()
294 struct kvmppc_xive *xive, int irq);
302 int kvmppc_xive_compute_vp_id(struct kvmppc_xive *xive, u32 cpu, u32 *vp);
303 int kvmppc_xive_set_nr_servers(struct kvmppc_xive *xive, u64 addr);
H A Dbook3s_xive_template.c376 static void GLUE(X_PFX,scan_for_rerouted_irqs)(struct kvmppc_xive *xive, in GLUE()
409 sb = kvmppc_xive_find_source(xive, irq, &src); in GLUE()
445 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; in GLUE() local
486 * interrupt away, which flushes the xive, followed by the in GLUE()
491 GLUE(X_PFX,scan_for_rerouted_irqs)(xive, xc); in GLUE()
503 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; in GLUE() local
536 sb = kvmppc_xive_find_source(xive, irq, &src); in GLUE()
H A Dbook3s_hv_rm_xive.c20 #include <asm/xive.h>
21 #include <asm/xive-regs.h>
H A Dirq.h16 ret = ret || (kvm->arch.xive != NULL); in irqchip_in_kernel()
/kernel/linux/linux-6.6/arch/powerpc/sysdev/xics/
H A Dics-native.c104 u32 xive; in ics_native_set_affinity() local
116 xive = in_be32(ics_native_xive(in, vec)); in ics_native_set_affinity()
117 xive = (xive & 0xff) | (server << 8); in ics_native_set_affinity()
118 out_be32(ics_native_xive(in, vec), xive); in ics_native_set_affinity() local
159 u32 xive; in ics_native_get_server() local
164 xive = in_be32(ics_native_xive(in, vec)); in ics_native_get_server()
165 return (xive >> 8) & 0xfff; in ics_native_get_server()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dkexec.c14 #include <asm/xive.h>
H A Dsmp.c40 #include <asm/xive.h>
163 /* Cause IPI as setup by the interrupt controller (xics or xive) */
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dkexec.c14 #include <asm/xive.h>
H A Dsmp.c39 #include <asm/xive.h>
162 /* Cause IPI as setup by the interrupt controller (xics or xive) */
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dvas.c20 #include <asm/xive.h>
H A Dsmp.c28 #include <asm/xive.h>
319 /* Cause IPI as setup by the interrupt controller (xics or xive) */
H A Dsetup.c32 #include <asm/xive.h>
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Dvas.c20 #include <asm/xive.h>
H A Dsmp.c28 #include <asm/xive.h>
319 /* Cause IPI as setup by the interrupt controller (xics or xive) */
/kernel/linux/linux-5.10/drivers/misc/ocxl/
H A Dafu_irq.c5 #include <asm/xive.h>
/kernel/linux/linux-6.6/drivers/misc/ocxl/
H A Dafu_irq.c6 #include <asm/xive.h>
/kernel/linux/linux-5.10/arch/powerpc/sysdev/xive/
H A Dnative.c6 #define pr_fmt(fmt) "xive: " fmt
29 #include <asm/xive.h>
30 #include <asm/xive-regs.h>
34 #include "xive-internal.h"
247 return of_device_is_compatible(node, "ibm,opal-xive-vc"); in xive_native_match()
493 if (of_property_read_u32(np, "ibm,xive-provision-page-size", in xive_parse_provisioning()
496 rc = of_property_count_elems_of_size(np, "ibm,xive-provision-chips", 4); in xive_parse_provisioning()
510 rc = of_property_read_u32_array(np, "ibm,xive-provision-chips", in xive_parse_provisioning()
518 xive_provision_cache = kmem_cache_create("xive-provision", in xive_parse_provisioning()
566 np = of_find_compatible_node(NULL, NULL, "ibm,opal-xive in xive_native_init()
[all...]
H A Dspapr.c6 #define pr_fmt(fmt) "xive: " fmt
27 #include <asm/xive.h>
28 #include <asm/xive-regs.h>
33 #include "xive-internal.h"
792 pr_warn("WARNING: Ignoring cmdline option xive=off\n"); in xive_spapr_disabled()
795 pr_warn("%s: Unknown xive support option: 0x%x\n", in xive_spapr_disabled()
842 reg = of_get_property(np, "ibm,xive-lisn-ranges", &len); in xive_spapr_init()
844 pr_err("Failed to read 'ibm,xive-lisn-ranges' property\n"); in xive_spapr_init()
849 pr_err("invalid 'ibm,xive-lisn-ranges' property\n"); in xive_spapr_init()
858 of_property_for_each_u32(np, "ibm,xive in xive_spapr_init()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/sysdev/xive/
H A Dnative.c6 #define pr_fmt(fmt) "xive: " fmt
29 #include <asm/xive.h>
30 #include <asm/xive-regs.h>
34 #include "xive-internal.h"
246 return of_device_is_compatible(node, "ibm,opal-xive-vc"); in xive_native_match()
499 if (of_property_read_u32(np, "ibm,xive-provision-page-size", in xive_parse_provisioning()
502 rc = of_property_count_elems_of_size(np, "ibm,xive-provision-chips", 4); in xive_parse_provisioning()
516 rc = of_property_read_u32_array(np, "ibm,xive-provision-chips", in xive_parse_provisioning()
524 xive_provision_cache = kmem_cache_create("xive-provision", in xive_parse_provisioning()
572 np = of_find_compatible_node(NULL, NULL, "ibm,opal-xive in xive_native_init()
[all...]
H A Dspapr.c6 #define pr_fmt(fmt) "xive: " fmt
30 #include <asm/xive.h>
31 #include <asm/xive-regs.h>
36 #include "xive-internal.h"
800 pr_warn("WARNING: Ignoring cmdline option xive=off\n"); in xive_spapr_disabled()
803 pr_warn("%s: Unknown xive support option: 0x%x\n", in xive_spapr_disabled()
850 reg = of_get_property(np, "ibm,xive-lisn-ranges", &len); in xive_spapr_init()
852 pr_err("Failed to read 'ibm,xive-lisn-ranges' property\n"); in xive_spapr_init()
857 pr_err("invalid 'ibm,xive-lisn-ranges' property\n"); in xive_spapr_init()
869 of_property_for_each_u32(np, "ibm,xive in xive_spapr_init()
[all...]

Completed in 21 milliseconds

123