Home
last modified time | relevance | path

Searched +full:ipi +full:- +full:id (Results 1 – 25 of 144) sorted by relevance

123456

/Linux-v6.1/drivers/remoteproc/
Dmtk_scp_ipi.c1 // SPDX-License-Identifier: GPL-2.0
17 * scp_ipi_register() - register an ipi function
20 * @id: IPI ID
21 * @handler: IPI handler
22 * @priv: private data for IPI handler
24 * Register an ipi function to receive ipi interrupt from SCP.
26 * Return: 0 if ipi registers successfully, -error on error.
29 u32 id, in scp_ipi_register() argument
34 return -EPROBE_DEFER; in scp_ipi_register()
36 if (WARN_ON(id >= SCP_IPI_MAX) || WARN_ON(handler == NULL)) in scp_ipi_register()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/mailbox/
Dxlnx,zynqmp-ipi-mailbox.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: "http://devicetree.org/schemas/mailbox/xlnx,zynqmp-ipi-mailbox.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Xilinx IPI(Inter Processor Interrupt) mailbox controller
10 The Xilinx IPI(Inter Processor Interrupt) mailbox controller is to manage
11 messaging between two Xilinx Zynq UltraScale+ MPSoC IPI agents. Each IPI
14 +-------------------------------------+
15 | Xilinx ZynqMP IPI Controller |
16 +-------------------------------------+
[all …]
/Linux-v6.1/arch/mips/kvm/
Dloongson_ipi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loongson-3 Virtual IPI interrupt support.
51 static int loongson_vipi_read(struct loongson_kvm_ipi *ipi, in loongson_vipi_read() argument
56 uint32_t id = core + node * 4; in loongson_vipi_read() local
59 struct ipi_state *s = &(ipi->ipistate[id]); in loongson_vipi_read()
61 BUG_ON(offset & (len - 1)); in loongson_vipi_read()
65 *(uint64_t *)val = s->status; in loongson_vipi_read()
69 *(uint64_t *)val = s->en; in loongson_vipi_read()
81 pbuf = (void *)s->buf + (offset - 0x20); in loongson_vipi_read()
96 static int loongson_vipi_write(struct loongson_kvm_ipi *ipi, in loongson_vipi_write() argument
[all …]
/Linux-v6.1/drivers/mailbox/
Dzynqmp-ipi-mailbox.c1 // SPDX-License-Identifier: GPL-2.0
3 * Xilinx Inter Processor Interrupt(IPI) Mailbox Driver
8 #include <linux/arm-smccc.h>
15 #include <linux/mailbox/zynqmp-ipi-message.h>
23 /* IPI agent ID any */
26 /* indicate if ZynqMP IPI mailbox driver uses SMC calls or HVC calls */
30 /* Default IPI SMC function IDs */
39 /* IPI SMC Macros */
49 /* IPI mailbox status */
54 #define IPI_MB_CHNL_TX 0 /* IPI mailbox TX channel */
[all …]
/Linux-v6.1/include/linux/rpmsg/
Dmtk_rpmsg.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 * struct mtk_rpmsg_info - IPI functions tied to the rpmsg device.
16 * @register_ipi: register IPI handler for an IPI id.
17 * @unregister_ipi: unregister IPI handler for a registered IPI id.
18 * @send_ipi: send IPI to an IPI id. wait is the timeout (in msecs) to wait
20 * @ns_ipi_id: the IPI id used for name service, or -1 if name service isn't
24 int (*register_ipi)(struct platform_device *pdev, u32 id,
26 void (*unregister_ipi)(struct platform_device *pdev, u32 id);
27 int (*send_ipi)(struct platform_device *pdev, u32 id,
/Linux-v6.1/drivers/media/platform/mediatek/vpu/
Dmtk_vpu.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Author: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
25 * enum ipi_id - the id of inter-processor interrupt
32 * For other IPI below, AP should send the request
52 * @IPI_MAX: The maximum IPI number
67 * enum rst_id - reset id to register reset function for VPU watchdog timeout
69 * @VPU_RST_ENC: encoder reset id
70 * @VPU_RST_DEC: decoder reset id
71 * @VPU_RST_MDP: MDP (Media Data Path) reset id
72 * @VPU_RST_MAX: maximum reset id
[all …]
Dmtk_vpu.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
18 #include <linux/dma-mapping.h>
33 /* maximum program/data TCM (Tightly-Coupled Memory) size */
68 /* vpu inter-processor communication interrupt */
74 * enum vpu_fw_type - VPU firmware type
86 * struct vpu_mem - VPU extended program/data memory information
98 * struct vpu_regs - VPU TCM and configuration registers
100 * @tcm: the register for VPU Tightly-Coupled Memory
111 * struct vpu_wdt_handler - VPU watchdog reset handler
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/
Dxapic_ipi_test.c1 // SPDX-License-Identifier: GPL-2.0
9 * Test that when the APIC is in xAPIC mode, a vCPU can send an IPI to wake
15 * has reentered HLT before sending the next IPI. While the vCPUs are running,
19 * Migration is a command line option. When used on non-numa machines will
20 * exit with error. Test is still usefull on non-numa for testing IPIs.
43 * Vector for IPI from sender vCPU to halting vCPU.
50 * Incremented in the IPI handler. Provides evidence to the sender that the IPI
69 * Record local version register as a cross-check that APIC access
96 data->halter_apic_id = GET_APIC_ID_FIELD(xapic_read_reg(APIC_ID)); in halter_guest_code()
97 data->halter_lvr = xapic_read_reg(APIC_LVR); in halter_guest_code()
[all …]
/Linux-v6.1/arch/arc/kernel/
Dsmp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
6 * -- Added support for Inter Processor Interrupts
9 * -- Initial Write (Borrowed heavily from ARM)
53 return -EINVAL; in arc_get_cpu_map()
56 return -EINVAL; in arc_get_cpu_map()
63 * "possible-cpus" property in DeviceTree pretend all [0..NR_CPUS-1] exist.
69 if (arc_get_cpu_map("possible-cpus", &cpumask)) { in arc_init_cpu_possible()
70 pr_warn("Failed to get possible-cpus from dtb, pretending all %u cpus exist\n", in arc_init_cpu_possible()
85 * - Initialise the CPU possible map early - this describes the CPUs
[all …]
/Linux-v6.1/drivers/irqchip/
Dirq-apple-aic.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Based on irq-lpc32xx:
6 * Copyright 2015-2016 Vladimir Zapolskiy <vz@mleia.com>
7 * Based on irq-bcm2836:
14 * - 896 level-triggered hardware IRQs
15 * - Single mask bit per IRQ
16 * - Per-IRQ affinity setting
17 * - Automatic masking on event delivery (auto-ack)
18 * - Software triggering (ORed with hw line)
19 * - 2 per-CPU IPIs (meant as "self" and "other", but they are
[all …]
/Linux-v6.1/arch/riscv/include/asm/
Dsmp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
30 /* print IPI stats */
36 /* Called from C code, this handles an IPI. */
47 /* Set custom IPI operations */
50 /* Clear IPI for current CPU */
60 * Obtains the hart ID of the currently executing task. This relies on
63 #define raw_smp_processor_id() (current_thread_info()->cpu)
81 return -1; in riscv_hartid_to_cpuid()
/Linux-v6.1/drivers/media/platform/mediatek/vcodec/
Dvdec_vpu_if.c1 // SPDX-License-Identifier: GPL-2.0
17 (unsigned long)msg->ap_inst_addr; in handle_init_ack_msg()
19 mtk_vcodec_debug(vpu, "+ ap_inst_addr = 0x%llx", msg->ap_inst_addr); in handle_init_ack_msg()
23 vpu->vsi = mtk_vcodec_fw_map_dm_addr(vpu->ctx->dev->fw_handler, in handle_init_ack_msg()
24 msg->vpu_inst_addr); in handle_init_ack_msg()
25 vpu->inst_addr = msg->vpu_inst_addr; in handle_init_ack_msg()
27 mtk_vcodec_debug(vpu, "- vpu_inst_addr = 0x%x", vpu->inst_addr); in handle_init_ack_msg()
30 vpu->fw_abi_version = 0; in handle_init_ack_msg()
32 * Instance ID is only used if ABI version >= 2. Initialize it with in handle_init_ack_msg()
35 vpu->inst_id = 0xdeadbeef; in handle_init_ack_msg()
[all …]
Dvdec_ipi_msg.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * enum vdec_ipi_msgid - message id between AP and VPU
12 * @AP_IPIMSG_XXX : AP to VPU cmd message id
13 * @VPU_IPIMSG_XXX_ACK : VPU ack AP cmd message id
36 * struct vdec_ap_ipi_cmd - generic AP to VPU ipi command format
39 * @inst_id : instance ID. Used if the ABI version >= 2.
54 * struct vdec_vpu_ipi_ack - generic VPU to AP ipi command format
66 * struct vdec_ap_ipi_init - for AP_IPIMSG_DEC_INIT
78 * struct vdec_ap_ipi_dec_start - for AP_IPIMSG_DEC_START
81 * @inst_id : instance ID. Used if the ABI version >= 2.
[all …]
Dvdec_vpu_if.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 * struct vdec_vpu_inst - VPU instance for video codec
16 * @id : ipi msg id for each decoder
17 * @core_id : core id used to separate different hardware
23 * @inst_id : if fw_abi_version >= 2, contains the instance ID to be given
25 * @signaled : 1 - Host has received ack message from VPU, 0 - not received
29 * @handler : ipi handler for each decoder
35 int id; member
52 * vpu_dec_init - init decoder instance and allocate required resource in VPU.
59 * vpu_dec_start - start decoding, basically the function will be invoked once
[all …]
/Linux-v6.1/include/linux/remoteproc/
Dmtk_scp.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 * enum ipi_id - the id of inter-processor interrupt
24 * For other IPI below, AP should send the request
26 * @SCP_IPI_MAX: The maximum IPI number
56 int scp_ipi_register(struct mtk_scp *scp, u32 id, scp_ipi_handler_t handler,
58 void scp_ipi_unregister(struct mtk_scp *scp, u32 id);
60 int scp_ipi_send(struct mtk_scp *scp, u32 id, void *buf, unsigned int len,
/Linux-v6.1/arch/powerpc/include/asm/
Dmpic.h1 /* SPDX-License-Identifier: GPL-2.0 */
71 * Per-Processor registers
92 * Per-source registers
149 * Per-Processor registers
162 * Per-source registers
284 /* vector numbers used for internal sources (ipi/timers) */
344 * The top 4 bits contain an MPIC bhw id that is used to index the
346 * Note setting any ID (leaving those bits to 0) means standard MPIC
355 /* Set this for a big-endian MPIC */
359 /* Broken IPI registers (autodetected) */
[all …]
/Linux-v6.1/arch/x86/hyperv/
Dhv_apic.c1 // SPDX-License-Identifier: GPL-2.0
4 * Hyper-V specific APIC code.
45 static void hv_apic_icr_write(u32 low, u32 id) in hv_apic_icr_write() argument
49 reg_val = SET_XAPIC_DEST_FIELD(id); in hv_apic_icr_write()
93 if (hvp && (xchg(&hvp->apic_assist, 0) & 0x1)) in hv_apic_eoi_write()
100 * IPI implementation on Hyper-V.
121 ipi_arg->vector = vector; in __send_ipi_mask_ex()
122 ipi_arg->reserved = 0; in __send_ipi_mask_ex()
123 ipi_arg->vp_set.valid_bank_mask = 0; in __send_ipi_mask_ex()
127 * when the IPI is sent to all currently present CPUs. in __send_ipi_mask_ex()
[all …]
/Linux-v6.1/arch/x86/kernel/apic/
Dlocal.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 * (c) 1998-99, 2000 Ingo Molnar <mingo@redhat.com>
23 unsigned int x2apic_get_apic_id(unsigned long id);
24 u32 x2apic_set_apic_id(unsigned int id);
29 /* IPI */
52 * This is used to send an IPI with no shorthand notation (the destination is
Dipi.c1 // SPDX-License-Identifier: GPL-2.0
23 pr_info("IPI shorthand broadcast: %s\n", in print_ipi_mode()
33 * - Disabled on the command line in apic_smt_update()
34 * - Only a single CPU is online in apic_smt_update()
35 * - Not all present CPUs have been at least booted once in apic_smt_update()
55 apic->send_IPI_allbutself(vector); in apic_send_IPI_allbutself()
57 apic->send_IPI_mask_allbutself(cpu_online_mask, vector); in apic_send_IPI_allbutself()
61 * Send a 'reschedule' IPI to another CPU. It goes straight through and
71 apic->send_IPI(cpu, RESCHEDULE_VECTOR); in native_smp_send_reschedule()
76 apic->send_IPI(cpu, CALL_FUNCTION_SINGLE_VECTOR); in native_send_call_func_single_ipi()
[all …]
/Linux-v6.1/arch/powerpc/kvm/
Dbook3s_xive.h1 /* SPDX-License-Identifier: GPL-2.0-only */
24 * pass-through but it's easier to keep around as the same
25 * guest interrupt can alternatively be emulated or pass-through
36 u32 ipi_number; /* XIVE IPI HW number */
37 struct xive_irq_data ipi_data; /* XIVE IPI associated data */
38 u32 pt_number; /* XIVE Pass-through number if any */
39 struct xive_irq_data *pt_data; /* XIVE Pass-through associated data */
53 bool lsi; /* level-sensitive interrupt */
66 /* Select the "right" interrupt (IPI vs. passthrough) */
71 if (state->pt_number) { in kvmppc_xive_select_irq()
[all …]
/Linux-v6.1/Documentation/virt/kvm/x86/
Dhypercalls.rst1 .. SPDX-License-Identifier: GPL-2.0
8 KVM Hypercalls have a three-byte sequence of either the vmcall or the vmmcall
18 R2-R7 are used for parameters 1-6. In addition, R1 is used for hypercall
25 refer to Documentation/virt/kvm/s390/s390-diag.rst.
28 It uses R3-R10 and hypercall number in R11. R4-R11 are used as output registers.
31 KVM hypercalls uses 4 byte opcode, that are patched with 'hypercall-instructions'
33 For more information refer to Documentation/virt/kvm/ppc-pv.rst
37 number in $2 (v0). Up to four arguments may be placed in $4-$7 (a0-a3) and
50 ------------------------
58 ----------------
[all …]
/Linux-v6.1/Documentation/virt/kvm/devices/
Dxics.rst1 .. SPDX-License-Identifier: GPL-2.0
20 interrupt server numbers (ie, highest possible vcpu id plus one).
25 -EINVAL Value greater than KVM_MAX_VCPU_IDS.
26 -EFAULT Invalid user pointer for attr->addr.
27 -EBUSY A vcpu is already connected to the device.
32 sources, each identified by a 20-bit source number, and a set of
43 least-significant end of the word:
50 * Pending IPI (inter-processor interrupt) priority, 8 bits
51 Zero is the highest priority, 255 means no IPI is pending.
54 Zero means no interrupt pending, 2 means an IPI is pending
[all …]
/Linux-v6.1/arch/mips/loongson64/
Dsmp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
37 /* read a 32bit value from ipi register */
39 /* read a 64bit value from ipi register */
41 /* write a 32bit value to ipi register */
47 /* write a 64bit value to ipi register */
84 /* Load the ipi register to figure out what we're supposed to do */ in csr_ipi_read_clear()
86 /* Clear the ipi register to clear the interrupt */ in csr_ipi_read_clear()
98 val |= (irq - 1); in csr_ipi_write_action()
101 action &= ~BIT(irq - 1); in csr_ipi_write_action()
138 /* Load the ipi register to figure out what we're supposed to do */ in legacy_ipi_read_clear()
[all …]
/Linux-v6.1/arch/xtensa/include/asm/
Dmxregs.h8 * Copyright (C) 2008 - 2013 Tensilica Inc.
21 * 01pp 0...0d..d 16 bits (d) 'ored' as single IPI to processor p
24 * 0190 0...0x..x 8-bit IPI partition register
26 * V (10-bit) Release/Version
27 * P ( 4-bit) Number of cores - 1
28 * U (18-bit) ID
29 * 01a0 i.......i 32-bit ConfigID
/Linux-v6.1/arch/sparc/kernel/
Dsmp_32.c1 // SPDX-License-Identifier: GPL-2.0
56 void smp_store_cpu_info(int id) in smp_store_cpu_info() argument
61 cpu_data(id).udelay_val = loops_per_jiffy; in smp_store_cpu_info()
63 cpu_find_by_mid(id, &cpu_node); in smp_store_cpu_info()
64 cpu_data(id).clock_tick = prom_getintdefault(cpu_node, in smp_store_cpu_info()
65 "clock-frequency", 0); in smp_store_cpu_info()
66 cpu_data(id).prom_node = cpu_node; in smp_store_cpu_info()
70 printk(KERN_NOTICE "No MID found for CPU%d at node 0x%08x", id, cpu_node); in smp_store_cpu_info()
73 cpu_data(id).mid = mid; in smp_store_cpu_info()
126 * CPU model dependent way of implementing IPI generation targeting in smp_send_reschedule()
[all …]

123456