/Linux-v6.1/sound/soc/intel/common/ |
D | sst-ipc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Intel SST generic IPC Support 22 #include "sst-dsp.h" 23 #include "sst-dsp-priv.h" 24 #include "sst-ipc.h" 26 /* IPC message timeout (msecs) */ 32 static struct ipc_message *msg_get_empty(struct sst_generic_ipc *ipc) in msg_get_empty() argument 36 if (!list_empty(&ipc->empty_list)) { in msg_get_empty() 37 msg = list_first_entry(&ipc->empty_list, struct ipc_message, in msg_get_empty() 39 list_del(&msg->list); in msg_get_empty() [all …]
|
D | sst-ipc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Intel SST generic IPC Support 48 /* SST generic IPC data */ 53 /* IPC messaging */ 68 int sst_ipc_tx_message_wait(struct sst_generic_ipc *ipc, 71 int sst_ipc_tx_message_nowait(struct sst_generic_ipc *ipc, 74 int sst_ipc_tx_message_nopm(struct sst_generic_ipc *ipc, 77 struct ipc_message *sst_ipc_reply_find_msg(struct sst_generic_ipc *ipc, 80 void sst_ipc_tx_msg_reply_complete(struct sst_generic_ipc *ipc, 83 int sst_ipc_init(struct sst_generic_ipc *ipc); [all …]
|
/Linux-v6.1/drivers/net/wireless/quantenna/qtnfmac/ |
D | shm_ipc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */ 12 static bool qtnf_shm_ipc_has_new_data(struct qtnf_shm_ipc *ipc) in qtnf_shm_ipc_has_new_data() argument 14 const u32 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_has_new_data() 19 static void qtnf_shm_handle_new_data(struct qtnf_shm_ipc *ipc) in qtnf_shm_handle_new_data() argument 25 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_handle_new_data() 27 size = readw(&shm_reg_hdr->data_len); in qtnf_shm_handle_new_data() 35 ipc->rx_packet_count++; in qtnf_shm_handle_new_data() 36 ipc->rx_callback.fn(ipc->rx_callback.arg, in qtnf_shm_handle_new_data() 37 ipc->shm_region->data, size); in qtnf_shm_handle_new_data() [all …]
|
/Linux-v6.1/sound/soc/intel/avs/ |
D | ipc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 9 #include <linux/io-64-nonatomic-lo-hi.h> 23 struct avs_ipc *ipc = adev->ipc; in avs_dsp_set_d0ix() local 27 if (ipc->in_d0ix == enable) in avs_dsp_set_d0ix() 32 /* Prevent further d0ix attempts on conscious IPC failure. */ in avs_dsp_set_d0ix() 33 if (ret == -AVS_EIPC) in avs_dsp_set_d0ix() 34 atomic_inc(&ipc->d0ix_disable_depth); in avs_dsp_set_d0ix() 36 ipc->in_d0ix = false; in avs_dsp_set_d0ix() 40 ipc->in_d0ix = enable; in avs_dsp_set_d0ix() [all …]
|
/Linux-v6.1/sound/soc/intel/catpt/ |
D | ipc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 void catpt_ipc_init(struct catpt_ipc *ipc, struct device *dev) in catpt_ipc_init() argument 18 ipc->dev = dev; in catpt_ipc_init() 19 ipc->ready = false; in catpt_ipc_init() 20 ipc->default_timeout = CATPT_IPC_TIMEOUT_MS; in catpt_ipc_init() 21 init_completion(&ipc->done_completion); in catpt_ipc_init() 22 init_completion(&ipc->busy_completion); in catpt_ipc_init() 23 spin_lock_init(&ipc->lock); in catpt_ipc_init() 24 mutex_init(&ipc->mutex); in catpt_ipc_init() 27 static int catpt_ipc_arm(struct catpt_ipc *ipc, struct catpt_fw_ready *config) in catpt_ipc_arm() argument [all …]
|
/Linux-v6.1/sound/soc/intel/skylake/ |
D | skl-sst-ipc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * skl-sst-ipc.c - Intel skl IPC Support 5 * Copyright (C) 2014-15, Intel Corporation. 9 #include "../common/sst-dsp.h" 10 #include "../common/sst-dsp-priv.h" 12 #include "skl-sst-dsp.h" 13 #include "skl-sst-ipc.h" 19 /* Global Message - Generic */ 24 /* Global Message - Reply */ 26 #define IPC_GLB_REPLY_STATUS_MASK ((0x1 << IPC_GLB_REPLY_STATUS_SHIFT) - 1) [all …]
|
D | skl-sst-ipc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Intel SKL IPC Support 5 * Copyright (C) 2014-15, Intel Corporation. 12 #include "../common/sst-ipc.h" 13 #include "skl-sst-dsp.h" 49 * @non_streaming: Count of usecases that can attempt non-streaming D0i3 110 int skl_ipc_create_pipeline(struct sst_generic_ipc *ipc, 113 int skl_ipc_delete_pipeline(struct sst_generic_ipc *ipc, u8 instance_id); 115 int skl_ipc_set_pipeline_state(struct sst_generic_ipc *ipc, 118 int skl_ipc_save_pipeline(struct sst_generic_ipc *ipc, [all …]
|
D | cnl-sst.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cnl-sst.c - DSP library functions for CNL platform 5 * Copyright (C) 2016-17, Intel Corporation. 11 * Copyright (C) 2014-15, Intel Corporation. 23 #include "../common/sst-dsp.h" 24 #include "../common/sst-dsp-priv.h" 25 #include "../common/sst-ipc.h" 26 #include "cnl-sst-dsp.h" 51 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, fwsize, &ctx->dmab); in cnl_prepare_fw() 53 dev_err(ctx->dev, "dma prepare failed: 0%#x\n", stream_tag); in cnl_prepare_fw() [all …]
|
D | skl-ssp-clk.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2015-17 Intel Corporation 5 * skl-ssp-clk.c - ASoC skylake ssp clock driver 12 #include <linux/clk-provider.h> 14 #include <sound/intel-nhlt.h> 16 #include "skl-ssp-clk.h" 17 #include "skl-topology.h" 43 case 0 ... (SKL_SCLK_OFS - 1): in skl_get_clk_type() 46 case SKL_SCLK_OFS ... (SKL_SCLKFS_OFS - 1): in skl_get_clk_type() 49 case SKL_SCLKFS_OFS ... (SKL_MAX_CLK_CNT - 1): in skl_get_clk_type() [all …]
|
/Linux-v6.1/sound/soc/sof/ |
D | ipc.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 10 // Generic IPC layer that can work over MMIO and SPI/I2C. PHY layer provided 17 #include "sof-priv.h" 18 #include "sof-audio.h" 22 * sof_ipc_send_msg - generic function to prepare and send one IPC message 33 * Note: higher level sdev->ipc->tx_mutex must be held to make sure that 39 struct snd_sof_ipc *ipc = sdev->ipc; in sof_ipc_send_msg() local 43 if (ipc->disable_ipc_tx || sdev->fw_state != SOF_FW_BOOT_COMPLETE) in sof_ipc_send_msg() 44 return -ENODEV; in sof_ipc_send_msg() 47 * The spin-lock is needed to protect message objects against other in sof_ipc_send_msg() [all …]
|
D | ipc4.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 13 #include "sof-priv.h" 14 #include "sof-audio.h" 15 #include "ipc4-priv.h" 34 {3, "Not enough space in the IPC reply buffer to complete the request"}, 36 {5, "Replaced ADSP IPC PENDING (unused)"}, 98 dev_err(sdev->dev, "FW reported error: %u - %s\n", in sof_ipc4_check_reply_status() 105 dev_err(sdev->dev, "FW reported error: %u - Unknown\n", status); in sof_ipc4_check_reply_status() 115 ret = -ENOENT; in sof_ipc4_check_reply_status() 120 ret = -EBUSY; in sof_ipc4_check_reply_status() [all …]
|
D | trace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include "sof-priv.h" 9 if (!sdev->ipc->ops->fw_tracing) { in sof_fw_trace_init() 10 dev_info(sdev->dev, "Firmware tracing is not available\n"); in sof_fw_trace_init() 11 sdev->fw_trace_is_supported = false; in sof_fw_trace_init() 16 return sdev->ipc->ops->fw_tracing->init(sdev); in sof_fw_trace_init() 21 if (!sdev->fw_trace_is_supported || !sdev->ipc->ops->fw_tracing) in sof_fw_trace_free() 24 if (sdev->ipc->ops->fw_tracing->free) in sof_fw_trace_free() 25 sdev->ipc->ops->fw_tracing->free(sdev); in sof_fw_trace_free() 30 if (!sdev->fw_trace_is_supported) in sof_fw_trace_fw_crashed() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 21 For backwards-compatibility with previous configurations the selection will 22 be used as default for platform-specific drivers. 32 For backwards-compatibility with previous configurations the selection will 33 be used as default for platform-specific drivers. 62 This option is not user-selectable but automagically handled by 69 This option is not user-selectable but automagically handled by 121 during topology creation or run-time usage if new functionality 160 bool "SOF verbose IPC logs" 162 This option enables more verbose IPC logs, with command types in [all …]
|
/Linux-v6.1/ipc/ |
D | util.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/ipc/util.c 6 * Sep 1997 - Call suser() last after "normal" permission checks so we 8 * Occurs in several places in the IPC code. 10 * Nov 1999 - ipc helper functions, unified SMP locking 12 * Oct 2002 - One lock per IPC id. RCU ipc_free for lock-free grow_ary(). 14 * Mar 2006 - support for audit of ipc object properties 16 * Jun 2006 - namespaces ssupport 20 * General sysv ipc locking scheme: 22 * obtain the ipc object (kern_ipc_perm) by looking up the id in an idr [all …]
|
/Linux-v6.1/drivers/platform/x86/ |
D | intel_scu_ipc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the Intel SCU IPC mechanism 5 * (C) Copyright 2008-2010,2015 Intel Corporation 9 * core through IPC mechanism which in turn messaging between IA core ad SCU. 10 * SCU has two IPC mechanism IPC-1 and IPC-2. IPC-1 is used between IA32 and 11 * SCU where IPC-2 is used between P-Unit and SCU. This driver delas with 12 * IPC-1 Driver provides an API for power control unit registers (e.g. MSIC) 27 /* IPC defines the following message types */ 33 #define IPC_CMD_PCNTRL_M 2 /* Register read-modify-write */ 36 * IPC register summary [all …]
|
/Linux-v6.1/include/linux/firmware/imx/ |
D | dsp.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Header file for the DSP IPC implementation 18 struct imx_dsp_ipc *ipc; member 26 void (*handle_reply)(struct imx_dsp_ipc *ipc); 27 void (*handle_request)(struct imx_dsp_ipc *ipc); 31 /* Host <-> DSP communication uses 2 txdb and 2 rxdb channels */ 38 static inline void imx_dsp_set_data(struct imx_dsp_ipc *ipc, void *data) in imx_dsp_set_data() argument 40 if (!ipc) in imx_dsp_set_data() 43 ipc->private_data = data; in imx_dsp_set_data() 46 static inline void *imx_dsp_get_data(struct imx_dsp_ipc *ipc) in imx_dsp_get_data() argument [all …]
|
D | ipc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Header file for the IPC implementation. 39 * This is an function to send an RPC message over an IPC channel. 40 * It is called by client-side SCFW API function shims. 42 * @param[in] ipc IPC handle 49 int imx_scu_call_rpc(struct imx_sc_ipc *ipc, void *msg, bool have_resp); 52 * This function gets the default ipc handle used by SCU 54 * @param[out] ipc sc ipc handle 58 int imx_scu_get_handle(struct imx_sc_ipc **ipc); 60 static inline int imx_scu_call_rpc(struct imx_sc_ipc *ipc, void *msg, in imx_scu_call_rpc() argument [all …]
|
/Linux-v6.1/drivers/media/platform/st/sti/delta/ |
D | delta-ipc.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "delta-ipc.h" 11 #include "delta-mem.h" 38 #define msg_to_ctx(msg) ((struct delta_ipc_ctx *)(msg)->header.host_hdl) 39 #define msg_to_copro_hdl(msg) ((msg)->header.copro_hdl) 43 return (ctx->ipc_buf->paddr + (vaddr - ctx->ipc_buf->vaddr)); in to_paddr() 49 return ((data >= ctx->ipc_buf->vaddr) && in is_valid_data() 50 ((data + size) <= (ctx->ipc_buf->vaddr + ctx->ipc_buf->size))); in is_valid_data() 54 * IPC shared memory (@ipc_buf_size, @ipc_buf_paddr) is sent to copro 55 * at each instance opening. This memory is allocated by IPC client [all …]
|
/Linux-v6.1/drivers/firmware/ |
D | mtk-adsp-ipc.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Author: Allen-KH Cheng <allen-kh.cheng@mediatek.com> 7 #include <linux/firmware/mediatek/mtk-adsp-ipc.h> 18 * mtk_adsp_ipc_send - send ipc cmd to MTK ADSP 20 * @ipc: ADSP IPC handle 22 * @msg: IPC cmd (reply or request) 27 int mtk_adsp_ipc_send(struct mtk_adsp_ipc *ipc, unsigned int idx, uint32_t msg) in mtk_adsp_ipc_send() argument 33 return -EINVAL; in mtk_adsp_ipc_send() 35 adsp_chan = &ipc->chans[idx]; in mtk_adsp_ipc_send() 36 ret = mbox_send_message(adsp_chan->ch, &msg); in mtk_adsp_ipc_send() [all …]
|
/Linux-v6.1/net/qrtr/ |
D | af_qrtr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 /* auto-bind range */ 27 * struct qrtr_hdr_v1 - (I|R)PCrouter packet header version 1 32 * @confirm_rx: boolean; whether a resume-tx packet should be send in reply 49 * struct qrtr_hdr_v2 - (I|R)PCrouter packet header later versions 114 * struct qrtr_node - endpoint node 138 * struct qrtr_tx_flow - tx flow control 159 static void qrtr_port_put(struct qrtr_sock *ipc); 184 list_del(&node->item); in __qrtr_node_release() 187 skb_queue_purge(&node->rx_queue); in __qrtr_node_release() [all …]
|
/Linux-v6.1/include/linux/firmware/mediatek/ |
D | mtk-adsp-ipc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 void (*handle_reply)(struct mtk_adsp_ipc *ipc); 29 void (*handle_request)(struct mtk_adsp_ipc *ipc); 33 struct mtk_adsp_ipc *ipc; member 47 static inline void mtk_adsp_ipc_set_data(struct mtk_adsp_ipc *ipc, void *data) in mtk_adsp_ipc_set_data() argument 49 if (!ipc) in mtk_adsp_ipc_set_data() 52 ipc->private_data = data; in mtk_adsp_ipc_set_data() 55 static inline void *mtk_adsp_ipc_get_data(struct mtk_adsp_ipc *ipc) in mtk_adsp_ipc_get_data() argument 57 if (!ipc) in mtk_adsp_ipc_get_data() 60 return ipc->private_data; in mtk_adsp_ipc_get_data() [all …]
|
/Linux-v6.1/fs/ksmbd/ |
D | ksmbd_netlink.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * linux-ksmbd-devel@lists.sourceforge.net 14 * This is a userspace ABI to communicate data between ksmbd and user IPC 18 * - KSMBD_EVENT_HEARTBEAT_REQUEST(ksmbd_heartbeat) 19 * This event is to check whether user IPC daemon is alive. If user IPC 23 * - KSMBD_EVENT_STARTING_UP(ksmbd_startup_request) 25 * server from the user IPC daemon and to start the server. The global 29 * - KSMBD_EVENT_SHUTTING_DOWN(ksmbd_shutdown_request) 32 * - KSMBD_EVENT_LOGIN_REQUEST/RESPONSE(ksmbd_login_request/response) 33 * This event is to get user account info to user IPC daemon. [all …]
|
/Linux-v6.1/drivers/firmware/imx/ |
D | misc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * File containing client-side RPC functions for the MISC service. These 43 * @param[in] ipc IPC handle 51 int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_misc_set_control() argument 57 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_misc_set_control() 58 hdr->svc = (uint8_t)IMX_SC_RPC_SVC_MISC; in imx_sc_misc_set_control() 59 hdr->func = (uint8_t)IMX_SC_MISC_FUNC_SET_CONTROL; in imx_sc_misc_set_control() 60 hdr->size = 4; in imx_sc_misc_set_control() 66 return imx_scu_call_rpc(ipc, &msg, true); in imx_sc_misc_set_control() 73 * @param[in] ipc IPC handle [all …]
|
D | imx-dsp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Implementation of the DSP IPC interface (host side) 18 * imx_dsp_ring_doorbell - triggers an interrupt on the other side (DSP) 20 * @dsp: DSP IPC handle 23 * Returns non-negative value for success, negative value for error 25 int imx_dsp_ring_doorbell(struct imx_dsp_ipc *ipc, unsigned int idx) in imx_dsp_ring_doorbell() argument 31 return -EINVAL; in imx_dsp_ring_doorbell() 33 dsp_chan = &ipc->chans[idx]; in imx_dsp_ring_doorbell() 34 ret = mbox_send_message(dsp_chan->ch, NULL); in imx_dsp_ring_doorbell() 43 * imx_dsp_handle_rx - rx callback used by imx mailbox [all …]
|
/Linux-v6.1/drivers/misc/mei/ |
D | hw-txe-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (c) 2013-2014, Intel Corporation. All rights reserved. 28 * This register resides in PCI-E config space. 39 #define IPC_BASE_ADDR 0x80400 /* SeC IPC Base Address */ 41 /* IPC Input Doorbell Register */ 44 /* IPC Input Status Register 53 /* IPC Host Interrupt Status Register */ 68 /* IPC Host Interrupt Mask Register */ 74 /* IPC Input Payload RAM */ 76 /* IPC Shared Payload RAM */ [all …]
|