| /kernel/linux/linux-6.6/drivers/mailbox/ |
| D | mailbox-sti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 #define MBOX_BASE(mdev, inst) ((mdev)->base + ((inst) * 4)) 39 * struct sti_mbox_device - STi Mailbox device data 42 * @mbox: Representation of a communication channel controller 44 * @name: Name of the mailbox 55 struct mbox_controller *mbox; member 57 const char *name; member 63 * struct sti_mbox_pdata - STi Mailbox platform specific configuration 74 * struct sti_channel - STi Mailbox allocated channel information 88 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_channel_is_enabled() [all …]
|
| D | omap-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2006-2009 Nokia Corporation. All rights reserved. 6 * Copyright (C) 2013-2021 Texas Instruments Incorporated - https://www.ti.com 9 * Suman Anna <s-anna@ti.com> 22 #include <linux/omap-mailbox.h> 68 struct omap_mbox *mbox; member 98 const char *name; member 103 const char *name; member 125 if (!chan || !chan->con_priv) in mbox_chan_to_omap_mbox() 128 return (struct omap_mbox *)chan->con_priv; in mbox_chan_to_omap_mbox() [all …]
|
| D | zynqmp-ipi-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/arm-smccc.h> 15 #include <linux/mailbox/zynqmp-ipi-message.h> 56 * struct zynqmp_ipi_mchan - Description of a Xilinx ZynqMP IPI mailbox channel 76 * struct zynqmp_ipi_mbox - Description of a ZynqMP IPI mailbox 82 * @mbox: mailbox Controller 90 struct mbox_controller mbox; member 95 * struct zynqmp_ipi_pdata - Description of z ZynqMP IPI agent platform data. 116 .name = "zynqmp-ipi-mbox", 123 struct zynqmp_ipi_pdata *pdata = ipi_mbox->pdata; in zynqmp_ipi_fw_call() [all …]
|
| D | qcom-ipcc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 14 #include <dt-bindings/mailbox/qcom-ipcc.h> 30 * struct qcom_ipcc_chan_info - Per-mailbox-channel info 31 * @client_id: The client-id to which the interrupt has to be triggered 32 * @signal_id: The signal-id to which the interrupt has to be triggered 40 * struct qcom_ipcc - Holder for the mailbox driver 45 * @mchan: The per-mailbox channel info array 46 * @mbox: The mailbox controller 56 struct mbox_controller mbox; member [all …]
|
| D | mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013-2014 Linaro Ltd. 32 spin_lock_irqsave(&chan->lock, flags); in add_to_rbuf() 35 if (chan->msg_count == MBOX_TX_QUEUE_LEN) { in add_to_rbuf() 36 spin_unlock_irqrestore(&chan->lock, flags); in add_to_rbuf() 37 return -ENOBUFS; in add_to_rbuf() 40 idx = chan->msg_free; in add_to_rbuf() 41 chan->msg_data[idx] = mssg; in add_to_rbuf() 42 chan->msg_count++; in add_to_rbuf() 44 if (idx == MBOX_TX_QUEUE_LEN - 1) in add_to_rbuf() [all …]
|
| /kernel/linux/linux-5.10/drivers/mailbox/ |
| D | mailbox-sti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 #define MBOX_BASE(mdev, inst) ((mdev)->base + ((inst) * 4)) 47 * @mbox: Representation of a communication channel controller 49 * @name: Name of the mailbox 55 struct mbox_controller *mbox; member 57 const char *name; member 88 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_channel_is_enabled() 89 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_channel_is_enabled() 90 unsigned int instance = chan_info->instance; in sti_mbox_channel_is_enabled() 91 unsigned int channel = chan_info->channel; in sti_mbox_channel_is_enabled() [all …]
|
| D | omap-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2006-2009 Nokia Corporation. All rights reserved. 6 * Copyright (C) 2013-2019 Texas Instruments Incorporated - https://www.ti.com 9 * Suman Anna <s-anna@ti.com> 22 #include <linux/omap-mailbox.h> 68 struct omap_mbox *mbox; member 98 const char *name; member 103 const char *name; member 125 if (!chan || !chan->con_priv) in mbox_chan_to_omap_mbox() 128 return (struct omap_mbox *)chan->con_priv; in mbox_chan_to_omap_mbox() [all …]
|
| D | zynqmp-ipi-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/arm-smccc.h> 15 #include <linux/mailbox/zynqmp-ipi-message.h> 58 * struct zynqmp_ipi_mchan - Description of a Xilinx ZynqMP IPI mailbox channel 78 * struct zynqmp_ipi_mbox - Description of a ZynqMP IPI mailbox 84 * @mbox: mailbox Controller 92 struct mbox_controller mbox; member 97 * struct zynqmp_ipi_pdata - Description of z ZynqMP IPI agent platform data. 118 .name = "zynqmp-ipi-mbox", 125 struct zynqmp_ipi_pdata *pdata = ipi_mbox->pdata; in zynqmp_ipi_fw_call() [all …]
|
| D | mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013-2014 Linaro Ltd. 31 spin_lock_irqsave(&chan->lock, flags); in add_to_rbuf() 34 if (chan->msg_count == MBOX_TX_QUEUE_LEN) { in add_to_rbuf() 35 spin_unlock_irqrestore(&chan->lock, flags); in add_to_rbuf() 36 return -ENOBUFS; in add_to_rbuf() 39 idx = chan->msg_free; in add_to_rbuf() 40 chan->msg_data[idx] = mssg; in add_to_rbuf() 41 chan->msg_count++; in add_to_rbuf() 43 if (idx == MBOX_TX_QUEUE_LEN - 1) in add_to_rbuf() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/amphion/ |
| D | vpu_mbox.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2020-2021 NXP 25 static int vpu_mbox_request_channel(struct device *dev, struct vpu_mbox *mbox) in vpu_mbox_request_channel() argument 30 if (!dev || !mbox) in vpu_mbox_request_channel() 31 return -EINVAL; in vpu_mbox_request_channel() 32 if (mbox->ch) in vpu_mbox_request_channel() 35 cl = &mbox->cl; in vpu_mbox_request_channel() 36 cl->dev = dev; in vpu_mbox_request_channel() 37 if (mbox->block) { in vpu_mbox_request_channel() 38 cl->tx_block = true; in vpu_mbox_request_channel() [all …]
|
| /kernel/uniproton/src/net/lwip-2.1/src/ |
| D | sys_arch.c | 2 * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved. 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 12 * Create: 2022-09-21 37 #define ROUND_UP_DIV(val, div) ((U64)(((U64)(val) + (U64)(div) - 1) / (U64)(div))) 42 sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int … in sys_thread_new() argument 48 if (name == NULL || (strlen(name) == 0)) { in sys_thread_new() 49 LWIP_DEBUGF(SYS_DEBUG, ("sys_thread_new: name is null")); in sys_thread_new() 50 return -1; in sys_thread_new() 56 task.name = (char *)name; in sys_thread_new() 90 /* Note that we are using spinlock instead of mutex for LiteOS-SMP here: in sys_arch_protect() [all …]
|
| /kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
| D | sys_arch.c | 2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 3 * Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved. 15 * 3. Neither the name of the copyright holder nor the names of its contributors may be used 51 #define ROUND_UP_DIV(val, div) (((val) + (div) - 1) / (div)) 57 sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int … in sys_thread_new() argument 63 if (name == NULL || (strlen(name) == 0)) { in sys_thread_new() 64 LWIP_DEBUGF(SYS_DEBUG, ("sys_thread_new: name is null")); in sys_thread_new() 65 return -1; in sys_thread_new() 71 task.pcName = (char *)name; in sys_thread_new() 78 return -1; in sys_thread_new() [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| D | myrs.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * This driver supports the newer, SCSI-based firmware interface only. 10 * Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com> 32 char *name; member 54 return entry[i].name; in myrs_devstate_name() 61 char *name; member 85 return entry[i].name; in myrs_raid_level_name() 91 * myrs_reset_cmd - clears critical fields in struct myrs_cmdblk 95 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_reset_cmd() local 97 memset(mbox, 0, sizeof(union myrs_cmd_mbox)); in myrs_reset_cmd() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
| D | otx2_vf.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #define DRV_NAME "octeontx2-nicvf" 33 if (msg->id >= MBOX_MSG_MAX) { in otx2vf_process_vfaf_mbox_msg() 34 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 35 "Mbox msg with unknown ID %d\n", msg->id); in otx2vf_process_vfaf_mbox_msg() 39 if (msg->sig != OTX2_MBOX_RSP_SIG) { in otx2vf_process_vfaf_mbox_msg() 40 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 41 "Mbox msg with wrong signature %x, ID %d\n", in otx2vf_process_vfaf_mbox_msg() 42 msg->sig, msg->id); in otx2vf_process_vfaf_mbox_msg() 46 if (msg->rc == MBOX_MSG_INVALID) { in otx2vf_process_vfaf_mbox_msg() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mailbox/ |
| D | sti-mailbox.txt | 7 ---------- 10 - compatible : Should be "st,stih407-mailbox" 11 - reg : Offset and length of the device's register set 12 - mbox-name : Name of the mailbox 13 - #mbox-cells: : Must be 2 15 phandle : Label name of controller 20 - interrupts : Contains the IRQ line for a Rx mailbox 25 compatible = "st,stih407-mailbox"; 28 #mbox-cells = <2>; 29 mbox-name = "a9"; [all …]
|
| D | omap-mailbox.txt | 25 routed to different processor sub-systems on DRA7xx as they are routed through 35 a SoC. The sub-mailboxes are represented as child nodes of this parent node. 38 -------------------- 39 - compatible: Should be one of the following, 40 "ti,omap2-mailbox" for OMAP2420, OMAP2430 SoCs 41 "ti,omap3-mailbox" for OMAP3430, OMAP3630 SoCs 42 "ti,omap4-mailbox" for OMAP44xx, OMAP54xx, AM33xx, 44 "ti,am654-mailbox" for K3 AM65x and J721E SoCs 45 - reg: Contains the mailbox register address range (base 47 - interrupts: Contains the interrupt information for the mailbox [all …]
|
| D | hisilicon,hi6220-mailbox.txt | 13 -------------------- 14 - compatible: Shall be "hisilicon,hi6220-mbox" 15 - reg: Contains the mailbox register address range (base 19 - #mbox-cells: Common mailbox binding property to identify the number 22 phandle: Label name of mailbox controller 28 - interrupts: Contains the interrupt information for the mailbox 33 -------------------- 34 - hi6220,mbox-tx-noirq: Property of MCU firmware's feature, so mailbox driver 40 -------- 43 compatible = "hisilicon,hi6220-mbox"; [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mailbox/ |
| D | ti,omap-mailbox.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mailbox/ti,omap-mailbox.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 35 lines can also be routed to different processor sub-systems on DRA7xx as they 49 within a SoC. The sub-mailboxes (actual communication channels) are 56 "mbox-names" (please see Documentation/devicetree/bindings/mailbox/mailbox.txt 59 phandle to the intended sub-mailbox child node to be used for communication. 60 The equivalent "mbox-names" property value can be used to give a name to the [all …]
|
| D | hisilicon,hi6220-mailbox.txt | 13 -------------------- 14 - compatible: Shall be "hisilicon,hi6220-mbox" 15 - reg: Contains the mailbox register address range (base 19 - #mbox-cells: Common mailbox binding property to identify the number 22 phandle: Label name of mailbox controller 28 - interrupts: Contains the interrupt information for the mailbox 33 -------------------- 34 - hi6220,mbox-tx-noirq: Property of MCU firmware's feature, so mailbox driver 40 -------- 43 compatible = "hisilicon,hi6220-mbox"; [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| D | myrs.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * This driver supports the newer, SCSI-based firmware interface only. 10 * Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com> 32 char *name; member 54 return entry[i].name; in myrs_devstate_name() 61 char *name; member 85 return entry[i].name; in myrs_raid_level_name() 91 * myrs_reset_cmd - clears critical fields in struct myrs_cmdblk 95 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_reset_cmd() local 97 memset(mbox, 0, sizeof(union myrs_cmd_mbox)); in myrs_reset_cmd() [all …]
|
| D | myrb.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com> 34 return shost->max_channel - 1; in myrb_logical_channel() 39 const char *name; member 56 return entry[i].name; in myrb_devstate_name() 63 const char *name; member 80 return entry[i].name; in myrb_raidlevel_name() 86 * myrb_create_mempools - allocates auxiliary data structures 95 elem_size = cb->host->sg_tablesize * elem_align; in myrb_create_mempools() 96 cb->sg_pool = dma_pool_create("myrb_sg", &pdev->dev, in myrb_create_mempools() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
| D | otx2_vf.c | 1 // SPDX-License-Identifier: GPL-2.0 40 if (msg->id >= MBOX_MSG_MAX) { in otx2vf_process_vfaf_mbox_msg() 41 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 42 "Mbox msg with unknown ID %d\n", msg->id); in otx2vf_process_vfaf_mbox_msg() 46 if (msg->sig != OTX2_MBOX_RSP_SIG) { in otx2vf_process_vfaf_mbox_msg() 47 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 48 "Mbox msg with wrong signature %x, ID %d\n", in otx2vf_process_vfaf_mbox_msg() 49 msg->sig, msg->id); in otx2vf_process_vfaf_mbox_msg() 53 if (msg->rc == MBOX_MSG_INVALID) { in otx2vf_process_vfaf_mbox_msg() 54 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() [all …]
|
| D | otx2_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 19 if (!ptp->nic) in is_tstmp_atomic_update_supported() 22 mutex_lock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 23 req = otx2_mbox_alloc_msg_ptp_get_cap(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 25 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 29 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 31 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 34 rsp = (struct ptp_get_cap_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in is_tstmp_atomic_update_supported() 35 &req->hdr); in is_tstmp_atomic_update_supported() 36 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/ivtv/ |
| D | ivtv-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 6 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 10 #include "ivtv-driver.h" 11 #include "ivtv-mailbox.h" 33 const char *name; /* The name of the command */ member 133 u32 flags = readl(&mbdata->mbox[mb].flags); in try_mailbox() 137 if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { in try_mailbox() 138 write_sync(IVTV_MBOX_DRIVER_BUSY, &mbdata->mbox[mb].flags); in try_mailbox() 150 int max_mbox = mbdata->max_mbox; in get_mailbox() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/pci/ivtv/ |
| D | ivtv-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 6 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 10 #include "ivtv-driver.h" 11 #include "ivtv-mailbox.h" 33 const char *name; /* The name of the command */ member 133 u32 flags = readl(&mbdata->mbox[mb].flags); in try_mailbox() 137 if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { in try_mailbox() 138 write_sync(IVTV_MBOX_DRIVER_BUSY, &mbdata->mbox[mb].flags); in try_mailbox() 150 int max_mbox = mbdata->max_mbox; in get_mailbox() [all …]
|