/linux/fs/smb/server/ |
H A 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/sound/soc/intel/catpt/ |
H A 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/tools/perf/tests/shell/ |
H A D | stat+shadow_stat.sh | 3 # SPDX-License-Identifier: GPL-2.0 5 set -e 9 # skip if system-wide mode is forbidden 10 perf stat -a true > /dev/null 2>&1 || exit 2 13 perf stat -a -e cycles sleep 1 2>&1 | grep -e cpu_core && exit 2 17 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \ 18 grep -e cycles -e instructions | \ 19 while read num evt _ ipc rest 33 if [ -z "$cyc" ]; then 39 if [ "$ipc" != "$res" ]; then [all …]
|
/linux/drivers/misc/mei/ |
H A 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 …]
|
/linux/ipc/ |
H A 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 …]
|
H A D | util.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * linux/ipc/util.h 6 * ipc helper functions (c) 1999 Manfred Spraul <manfred@colorfullife.com> 20 * The IPC ID contains 2 separate numbers - index and sequence number. 22 * bits 0-14: index (32k, 15 bits) 23 * bits 15-30: sequence number (64k, 16 bits) 26 * bits 0-23: index (16M, 24 bits) 27 * bits 24-30: sequence number (128, 7 bits) 41 #define IPCMNI_IDX_MASK ((1 << ipc_mni_shift) - 1) 48 #define IPCMNI_IDX_MASK ((1 << IPCMNI_SHIFT) - 1) [all …]
|
/linux/drivers/platform/x86/ |
H A 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) 29 /* IPC defines the following message types */ 35 #define IPC_CMD_PCNTRL_M 2 /* Register read-modify-write */ 38 * IPC register summary [all …]
|
/linux/include/linux/firmware/imx/ |
H A D | ipc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Header file for the IPC implementation. 23 IMX_SC_RPC_SVC_RM = 3, 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); [all …]
|
/linux/sound/soc/sof/ |
H A 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 …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 snd-sof-y := core.o ops.o loader.o ipc.o pcm.o pm.o debug.o topology.o\ 4 control.o trace.o iomem-utils.o sof-audio.o stream-ipc.o\ 5 fw-file-profile.o 7 # IPC implementations 9 snd-sof-y += ipc3.o ipc3-loader.o ipc3-topology.o ipc3-control.o ipc3-pcm.o\ 10 ipc3-dtrace.o 13 snd-sof-y += ipc4.o ipc4-loader.o ipc4-topology.o ipc4-control.o ipc4-pcm.o\ 14 ipc4-mtrace.o ipc4-telemetry.o 19 snd-sof-y += sof-client.o [all …]
|
H A D | ipc4-topology.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 15 #define SOF_IPC4_FW_PAGE(x) ((((x) + BIT(12) - 1) & ~(BIT(12) - 1)) >> 12) 16 #define SOF_IPC4_FW_ROUNDUP(x) (((x) + BIT(6) - [all...] |
H A D | sof-priv.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 29 #define SOF_DBG_DYNAMIC_PIPELINES_OVERRIDE BIT(3) /* 0: use topology token 38 #define SOF_DBG_PRINT_ALL_DUMPS BIT(6) /* Print all ipc and dsp dumps */ 45 #define SOF_DBG_PRINT_IPC_SUCCESS_LOGS BIT(9) /* print IPC success 48 #define SOF_DBG_FORCE_NOCODEC BIT(10) /* ignore all codec-related 51 #define SOF_DBG_DUMP_IPC_MESSAGE_PAYLOAD BIT(11) /* On top of the IPC message header 60 #define SOF_DBG_DUMP_PCI BIT(3) 95 u32 substate; /* platform-specific */ 134 * struct snd_sof_platform_stream_params - platform dependent stream parameters 139 * @no_ipc_position: Disable position update IPC from firmware [all …]
|
H A D | ipc4.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 14 #include "sof-priv.h" 15 #include "sof-audio.h" 16 #include "ipc4-fw-reg.h" 17 #include "ipc4-priv.h" 18 #include "ipc4-telemetry.h" 28 {3, "Not enough space in the IPC reply buffer to complete the request"}, 30 {5, "Replaced ADSP IPC PENDING (unused)"}, 95 dev_err(sdev->dev, "FW reported error: %u - %s\n", in sof_ipc4_check_reply_status() 102 dev_err(sdev->dev, "FW reported error: %u - Unknown\n", status); in sof_ipc4_check_reply_status() [all …]
|
H A D | loader.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 14 #include "sof-priv.h" 19 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw() 25 if (sdev->basefw.fw) in snd_sof_load_firmware_raw() 29 plat_data->fw_filename_prefix, in snd_sof_load_firmware_raw() 30 plat_data->fw_filename); in snd_sof_load_firmware_raw() 32 return -ENOMEM; in snd_sof_load_firmware_raw() 34 ret = request_firmware(&sdev->basefw.fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw() 37 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 39 dev_err(sdev->dev, in snd_sof_load_firmware_raw() [all …]
|
H A D | sof-audio.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 22 #include "sof-priv.h" 24 #define SOF_AUDIO_PCM_DRV_NAME "sof-audio-component" 28 * per widget, because only 3 bits are used for queue(pin) ID 64 #define SOF_TLV_ITEMS 3 69 return volume_map[size - 1]; in mixer_to_ipc() 83 return i - 1; in ipc_to_mixer() 94 int dai_data; /* contains DAI-specific information */ 95 int dai_node_id; /* contains DAI-specific information for Gateway configuration */ 99 * struct sof_ipc_pcm_ops - IPC-specific PCM ops [all …]
|
/linux/net/qrtr/ |
H A D | af_qrtr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #define QRTR_PROTO_VER_2 3 20 /* auto-bind range */ 29 * struct qrtr_hdr_v1 - (I|R)PCrouter packet header version 1 34 * @confirm_rx: boolean; whether a resume-tx packet should be send in reply 51 * struct qrtr_hdr_v2 - (I|R)PCrouter packet header later versions 116 * struct qrtr_node - endpoint node 140 * struct qrtr_tx_flow - tx flow control 161 static void qrtr_port_put(struct qrtr_sock *ipc); 186 list_del(&node->item); in __qrtr_node_release() [all …]
|
/linux/drivers/firmware/imx/ |
H A 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 …]
|
/linux/include/linux/firmware/imx/svc/ |
H A D | misc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 34 IMX_SC_MISC_FUNC_SET_ARI = 3, 50 int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource, 53 int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource, 56 int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, 59 static inline int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, in imx_sc_misc_set_control() argument 62 return -ENOTSUPP; in imx_sc_misc_set_control() 65 static inline int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, in imx_sc_misc_get_control() argument 68 return -ENOTSUPP; in imx_sc_misc_get_control() 71 static inline int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_pm_cpu_start() argument [all …]
|
/linux/sound/soc/sof/intel/ |
H A D | cnl.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 21 #include "../ipc4-priv.h" 24 #include "hda-ipc.h" 25 #include "../sof-audio.h" 66 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc4_irq_thread() 67 struct sof_ipc4_msg *data = sdev->ipc->msg.reply_data; in cnl_ipc4_irq_thread() 69 data->primary = primary; in cnl_ipc4_irq_thread() 70 data->extension = extension; in cnl_ipc4_irq_thread() 72 spin_lock_irq(&sdev->ipc_lock); in cnl_ipc4_irq_thread() 76 snd_sof_ipc_reply(sdev, data->primary); in cnl_ipc4_irq_thread() [all …]
|
H A D | hda-ipc.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 16 * - DIPCTDR (HIPCIDR) in sideband IPC (cAVS 1.8+) 17 * - DIPCT in cAVS 1.5 IPC 20 * - DIPCTDD (HIPCIDD) in sideband IPC (cAVS 1.8+) 21 * - DIPCTE in cAVS 1.5 IPC 28 /* Target, 0 - normal message, 1 - compact message(cAVS compatible) */ 30 /* Direction, 0 - request, 1 - response */ 41 /* Disable DMA tracing (0 - keep tracing, 1 - to disable DMA trace) */ 43 /* Prevent clock gating (0 - cg allowed, 1 - DSP clock always on) */ 44 #define HDA_PM_PCG BIT(3) [all …]
|
H A D | mtl.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 16 #include "../ipc4-priv.h" 19 #include "hda-ipc.h" 20 #include "../sof-audio.h" 49 * set DONE bit - tell DSP we have received the reply msg from DSP, and processed it, in mtl_ipc_dsp_done() 60 /* Check if an IPC IRQ occurred */ 66 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq() 100 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in mtl_ipc_send_msg() 101 struct sof_ipc4_msg *msg_data = msg->msg_data; in mtl_ipc_send_msg() 104 hdev->delayed_ipc_tx_msg = msg; in mtl_ipc_send_msg() [all …]
|
/linux/drivers/leds/simple/ |
H A D | simatic-ipc-leds-gpio-f7188x.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Siemens SIMATIC IPC driver for GPIO based LEDs 16 #include <linux/platform_data/x86/simatic-ipc-base.h> 18 #include "simatic-ipc-leds-gpio.h" 26 .dev_id = "leds-gpio", 28 GPIO_LOOKUP_IDX("gpio-f7188x-2", 0, NULL, 0, GPIO_ACTIVE_LOW), 29 GPIO_LOOKUP_IDX("gpio-f7188x-2", 1, NULL, 1, GPIO_ACTIVE_LOW), 30 GPIO_LOOKUP_IDX("gpio-f7188x-2", 2, NULL, 2, GPIO_ACTIVE_LOW), 31 GPIO_LOOKUP_IDX("gpio-f7188x-2", 3, NULL, 3, GPIO_ACTIVE_LOW), 32 GPIO_LOOKUP_IDX("gpio-f7188x-2", 4, NULL, 4, GPIO_ACTIVE_LOW), [all …]
|
H A D | simatic-ipc-leds-gpio-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Siemens SIMATIC IPC driver for GPIO based LEDs 16 #include <linux/platform_data/x86/simatic-ipc-base.h> 18 #include "simatic-ipc-leds-gpio.h" 23 { .name = "red:" LED_FUNCTION_STATUS "-1" }, 24 { .name = "green:" LED_FUNCTION_STATUS "-1" }, 25 { .name = "red:" LED_FUNCTION_STATUS "-2" }, 26 { .name = "green:" LED_FUNCTION_STATUS "-2" }, 27 { .name = "red:" LED_FUNCTION_STATUS "-3" }, 28 { .name = "green:" LED_FUNCTION_STATUS "-3" }, [all …]
|
/linux/Documentation/devicetree/bindings/soc/qcom/ |
H A D | qcom,smsm.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 12 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 25 '#address-cells': 28 qcom,local-host: 42 (0-indexed). 44 '#size-cells': [all …]
|
/linux/drivers/platform/x86/intel/ |
H A D | punit_ipc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the Intel P-Unit Mailbox IPC mechanism 7 * The heart of the P-Unit is the Foxton microcontroller and its firmware, 22 /* IPC Mailbox registers */ 53 return readl(ipcdev->base[type][BASE_IFACE]); in ipc_read_status() 58 writel(cmd, ipcdev->base[type][BASE_IFACE]); in ipc_write_cmd() 63 return readl(ipcdev->base[type][BASE_DATA] + OFFSET_DATA_LOW); in ipc_read_data_low() 68 return readl(ipcdev->base[type][BASE_DATA] + OFFSET_DATA_HIGH); in ipc_read_data_high() 73 writel(data, ipcdev->base[type][BASE_DATA] + OFFSET_DATA_LOW); in ipc_write_data_low() 78 writel(data, ipcdev->base[type][BASE_DATA] + OFFSET_DATA_HIGH); in ipc_write_data_high() [all …]
|