Home
last modified time | relevance | path

Searched +full:tx +full:- +full:mailbox +full:- +full:count (Results 1 – 25 of 106) sorted by relevance

12345

/linux/Documentation/devicetree/bindings/net/can/
H A Dxilinx,can.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
16 - xlnx,zynq-can-1.0
17 - xlnx,axi-can-1.00.a
18 - xlnx,canfd-1.0
19 - xlnx,canfd-2.0
31 clock-names:
34 power-domains:
[all …]
/linux/drivers/mailbox/
H A Dbcm-pdc-mailbox.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Broadcom PDC Mailbox Driver
9 * offload engines. For example, the PDC driver works with both SPU-M and SPU2
13 * The PDC driver registers with the Linux mailbox framework as a mailbox
15 * a mailbox channel. The PDC driver uses interrupts to determine when data
25 * descriptors from the tx and rx ring, thus processing one response at a time.
41 #include <linux/mailbox/brcm-message.h>
43 #include <linux/dma-direction.h>
44 #include <linux/dma-mapping.h>
55 * Minimum number of ring descriptor entries that must be free to tell mailbox
[all …]
H A Dmailbox-test.c1 // SPDX-License-Identifier: GPL-2.0-or-later
51 size_t count, loff_t *ppos) in mbox_test_signal_write() argument
53 struct mbox_test_device *tdev = filp->private_data; in mbox_test_signal_write()
55 if (!tdev->tx_channel) { in mbox_test_signal_write()
56 dev_err(tdev->dev, "Channel cannot do Tx\n"); in mbox_test_signal_write()
57 return -EINVAL; in mbox_test_signal_write()
60 if (count > MBOX_MAX_SIG_LEN) { in mbox_test_signal_write()
61 dev_err(tdev->dev, in mbox_test_signal_write()
63 count, MBOX_MAX_SIG_LEN); in mbox_test_signal_write()
64 return -EINVAL; in mbox_test_signal_write()
[all …]
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_pci.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2019 Intel Corporation. */
15 * fm10k_pci_tbl - PCI Device ID Table
35 struct fm10k_intfc *interface = hw->back; in fm10k_read_pci_cfg_word()
38 if (FM10K_REMOVED(hw->hw_addr)) in fm10k_read_pci_cfg_word()
41 pci_read_config_word(interface->pdev, reg, &value); in fm10k_read_pci_cfg_word()
50 u32 __iomem *hw_addr = READ_ONCE(hw->hw_addr); in fm10k_read_reg()
58 struct fm10k_intfc *interface = hw->back; in fm10k_read_reg()
59 struct net_device *netdev = interface->netdev; in fm10k_read_reg()
61 hw->hw_addr = NULL; in fm10k_read_reg()
[all …]
H A Dfm10k_netdev.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2019 Intel Corporation. */
10 * fm10k_setup_tx_resources - allocate Tx resources (Descriptors)
11 * @tx_ring: tx descriptor ring (for a specific queue) to setup
17 struct device *dev = tx_ring->dev; in fm10k_setup_tx_resources()
20 size = sizeof(struct fm10k_tx_buffer) * tx_ring->count; in fm10k_setup_tx_resources()
22 tx_ring->tx_buffer = vzalloc(size); in fm10k_setup_tx_resources()
23 if (!tx_ring->tx_buffer) in fm10k_setup_tx_resources()
26 u64_stats_init(&tx_ring->syncp); in fm10k_setup_tx_resources()
29 tx_ring->size = tx_ring->count * sizeof(struct fm10k_tx_desc); in fm10k_setup_tx_resources()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ctrl.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */
17 /* 64-bit per app capabilities */
23 * THB-350, 32k needs to be reserved.
51 #define NFP_NET_META_IPSEC 9 /* IPsec SA index for tx and rx */
61 /* Hash type pre-pended when a RSS hash was computed */
74 * %NFP_NET_TXR_MAX: Maximum number of TX rings
80 /* Read/Write config words (0x0000 - 0x002c)
83 * %NFP_NET_CFG_TXRS_ENABLE: Bitmask of enabled TX rings
87 * %NFP_NET_CFG_EXN: MSI-X table entry for exceptions
[all …]
H A Dnfp_net.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */
21 #include <linux/io-64-nonatomic-hi-lo.h>
32 if (__nn->dp.netdev) \
33 netdev_printk(lvl, __nn->dp.netdev, fmt, ## args); \
35 dev_printk(lvl, __nn->dp.dev, "ctrl: " fmt, ## args); \
48 if (__dp->netdev) \
49 netdev_warn(__dp->netdev, fmt, ## args); \
51 dev_warn(__dp->dev, fmt, ## args); \
79 #define NFP_NET_MAX_TX_RINGS 64 /* Max. # of Tx rings per device */
[all …]
/linux/drivers/tty/serial/
H A Dtegra-tcu.c1 // SPDX-License-Identifier: GPL-2.0
30 struct mbox_chan *tx, *rx; member
52 unsigned int count) in tegra_tcu_write_one() argument
56 value |= TCU_MBOX_NUM_BYTES(count); in tegra_tcu_write_one()
58 mbox_send_message(tcu->tx, msg); in tegra_tcu_write_one()
59 mbox_flush(tcu->tx, 1000); in tegra_tcu_write_one()
63 unsigned int count) in tegra_tcu_write() argument
69 while (i < count) { in tegra_tcu_write()
93 struct tegra_tcu *tcu = port->private_data; in tegra_tcu_uart_start_tx()
94 struct tty_port *tport = &port->state->port; in tegra_tcu_uart_start_tx()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmbox.h1 /* SPDX-License-Identifier: GPL-2.0 */
36 # error "incorrect mailbox area sizes"
39 #define INTR_MASK(pfvfs) ((pfvfs < 64) ? (BIT_ULL(pfvfs) - 1) : (~0ull))
45 /* Mailbox directions */
77 u64 tx_start; /* Offset of Tx region in mbox memory */
79 u16 tx_size; /* Size of Tx region */
101 u16 next_msgoff; /* Offset of next msg within mailbox region */
136 /* Mailbox message types */
142 /* Generic mbox IDs (range 0x000 - 0x1FF) */ \
159 /* CGX mbox IDs (range 0x200 - 0x3FF) */ \
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Dvirtchnl2.h1 /* SPDX-License-Identifier: GPL-2.0-only */
16 * all the structures in this header follow little-endian format.
90 * enum virtchnl2_vport_type - Type of virtual port.
98 * enum virtchnl2_queue_model - Type of queue model.
230 * enum virtchnl2_action_types - Available actions for sideband flow steering
254 * enum virtchnl2_txq_sched_mode - Transmit Queue Scheduling Modes.
269 * enum virtchnl2_rxq_flags - Receive Queue Feature flags.
302 * models. With Split Queue model, 2 additional types are introduced -
325 * enum virtchnl2_mac_addr_type - MAC address types.
436 * 32768 - 65534 are used for user defined protocol ids.
[all …]
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_83xx_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2009-2013 QLogic Corporation
38 #define QLC_83XX_MODULE_FIBRE_10GBASE_LRM 0x1 /* 10GBase-LRM */
39 #define QLC_83XX_MODULE_FIBRE_10GBASE_LR 0x2 /* 10GBase-LR */
40 #define QLC_83XX_MODULE_FIBRE_10GBASE_SR 0x3 /* 10GBase-SR */
50 #define QLC_83XX_MODULE_FIBRE_1000BASE_SX 0x7 /* 1000Base-SX */
51 #define QLC_83XX_MODULE_FIBRE_1000BASE_LX 0x8 /* 1000Base-LX */
52 #define QLC_83XX_MODULE_FIBRE_1000BASE_CX 0x9 /* 1000Base-CX */
53 #define QLC_83XX_MODULE_TP_1000BASE_T 0xa /* 1000Base-T*/
262 ahw->hw_ops = &qlcnic_83xx_hw_ops; in qlcnic_83xx_register_map()
[all …]
/linux/drivers/net/can/
H A Dat91_can.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * at91_can.c - CAN network driver for AT91 SoC CAN controller
6 * (C) 2008, 2009, 2010, 2011, 2023 by Marc Kleine-Budde <kernel@pengutronix.de>
29 #include <linux/can/rx-offload.h>
31 #define AT91_MB_MASK(i) ((1 << (i)) - 1)
48 /* Mailbox registers (0 <= i <= 15) */
106 /* Mailbox Modes */
202 return priv->devtype_data.type == AT91_DEVTYPE_SAM##_model; \
210 return priv->devtype_data.rx_first; in get_mb_rx_first()
215 return priv->devtype_data.rx_last; in get_mb_rx_last()
[all …]
/linux/drivers/net/ethernet/intel/igb/
H A De1000_regs.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
7 #define E1000_CTRL 0x00000 /* Device Control - RW */
8 #define E1000_STATUS 0x00008 /* Device Status - RO */
9 #define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */
10 #define E1000_EERD 0x00014 /* EEPROM Read - RW */
11 #define E1000_CTRL_EXT 0x00018 /* Extended Device Control - RW */
12 #define E1000_MDIC 0x00020 /* MDI Control - RW */
13 #define E1000_MDICNFG 0x00E04 /* MDI Config - RW */
14 #define E1000_SCTL 0x00024 /* SerDes Control - RW */
[all …]
/linux/drivers/net/can/rcar/
H A Drcar_can.c1 // SPDX-License-Identifier: GPL-2.0+
2 /* Renesas R-Car CAN device driver
35 /* Mailbox configuration:
36 * mailbox 60 - 63 - Rx FIFO mailboxes
37 * mailbox 56 - 59 - Tx FIFO mailboxes
38 * non-FIFO mailboxes are not used
40 #define RCAR_CAN_N_MBX 64 /* Number of mailboxes in non-FIFO mode */
41 #define RCAR_CAN_RX_FIFO_MBX 60 /* Mailbox - window to Rx FIFO */
42 #define RCAR_CAN_TX_FIFO_MBX 56 /* Mailbox - window to Tx FIFO */
45 /* Mailbox registers structure */
[all …]
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnic.h1 /* SPDX-License-Identifier: GPL-2.0-only */
35 /* NIC SRIOV VF count */
80 /* MSI-X interrupts */
98 * for reception it will not get dropped due to non-availability
114 * Since both pkt rx and tx notifications are done with same CQ,
235 /* CQE Tx errs */
266 int count; member
306 /* Queue count */
329 /* mutex to protect VF's mailbox contents from concurrent access */
371 /* MSI-X */
[all …]
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/
H A Doctep_vf_cn9k.c1 // SPDX-License-Identifier: GPL-2.0
19 struct device *dev = &oct->pdev->dev; in cn93_vf_dump_q_regs()
21 dev_info(dev, "IQ-%d register dump\n", qno); in cn93_vf_dump_q_regs()
50 dev_info(dev, "OQ-%d register dump\n", qno); in cn93_vf_dump_q_regs()
80 /* Reset Hardware Tx queue */
85 dev_dbg(&oct->pdev->dev, "Reset VF IQ-%d\n", q_no); in cn93_vf_reset_iq()
87 /* Disable the Tx/Instruction Ring */ in cn93_vf_reset_iq()
113 /* Clear count CSRs */ in cn93_vf_reset_oq()
121 /* Reset all hardware Tx/Rx queues */
124 struct pci_dev *pdev = oct->pdev; in octep_vf_reset_io_queues_cn93()
[all …]
H A Doctep_vf_cnxk.c1 // SPDX-License-Identifier: GPL-2.0
19 struct device *dev = &oct->pdev->dev; in cnxk_vf_dump_q_regs()
21 dev_info(dev, "IQ-%d register dump\n", qno); in cnxk_vf_dump_q_regs()
50 dev_info(dev, "OQ-%d register dump\n", qno); in cnxk_vf_dump_q_regs()
83 /* Reset Hardware Tx queue */
88 dev_dbg(&oct->pdev->dev, "Reset VF IQ-%d\n", q_no); in cnxk_vf_reset_iq()
90 /* Disable the Tx/Instruction Ring */ in cnxk_vf_reset_iq()
115 /* Clear count CSRs */ in cnxk_vf_reset_oq()
123 /* Reset all hardware Tx/Rx queues */
126 struct pci_dev *pdev = oct->pdev; in octep_vf_reset_io_queues_cnxk()
[all …]
/linux/drivers/firmware/tegra/
H A Dbpmp-tegra186.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <soc/tegra/bpmp-abi.h>
16 #include "bpmp-private.h"
28 } tx, rx; member
43 return priv->parent; in mbox_client_to_bpmp()
50 err = tegra_ivc_read_get_next_frame(channel->ivc, &channel->ib); in tegra186_bpmp_is_message_ready()
52 iosys_map_clear(&channel->ib); in tegra186_bpmp_is_message_ready()
63 err = tegra_ivc_write_get_next_frame(channel->ivc, &channel->ob); in tegra186_bpmp_is_channel_free()
65 iosys_map_clear(&channel->ob); in tegra186_bpmp_is_channel_free()
74 return tegra_ivc_read_advance(channel->ivc); in tegra186_bpmp_ack_message()
[all …]
/linux/include/sound/sof/
H A Dheader.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
21 * IPC messages have a prefixed 32 bit identifier made up as follows :-
26 * I is the ID number (16 bits) - monotonic and overflows
28 * This is sent at the start of the IPM message in the mailbox. Messages should
32 /* Global Message - Generic */
37 /* Command Message - Generic */
82 /* component runtime config - multiple different types */
133 /* maximum message size for mailbox Tx/Rx */
137 * Structure Header - Header for all IPC structures except command structs.
148 * Command Header - Header for all IPC commands. Identifies IPC message.
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dsdio.h1 /* SPDX-License-Identifier: ISC */
3 * Copyright (c) 2004-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
5 * Copyright (c) 2016-2017 Erik Stromdahl <erik.stromdahl@gmail.com>
15 /* Mailbox address in SDIO address space */
29 (ATH10K_SDIO_MAX_BUFFER_SIZE - sizeof(struct ath10k_htc_hdr))
36 /* HTC runs over mailbox 0 */
69 /* mode to enable special 4-bit interrupt assertion without clock */
80 * (HTC_HOST_MAX_MSG_PER_RX_BUNDLE) has the HTC header bundle count set
107 /* TODO: remove this and use skb->cb instead, much cleaner approach */
[all …]
/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_cn9k_pf.c1 // SPDX-License-Identifier: GPL-2.0
19 /* Names of Hardware non-queue generic interrupts */
42 struct device *dev = &oct->pdev->dev; in cn93_dump_regs()
44 dev_info(dev, "IQ-%d register dump\n", qno); in cn93_dump_regs()
73 dev_info(dev, "OQ-%d register dump\n", qno); in cn93_dump_regs()
106 /* Reset Hardware Tx queue */
109 struct octep_config *conf = oct->conf; in cn93_reset_iq()
112 dev_dbg(&oct->pdev->dev, "Reset PF IQ-%d\n", q_no); in cn93_reset_iq()
115 q_no += conf->pf_ring_cfg.srn; in cn93_reset_iq()
117 /* Disable the Tx/Instruction Ring */ in cn93_reset_iq()
[all …]
H A Doctep_cnxk_pf.c1 // SPDX-License-Identifier: GPL-2.0
20 /* Names of Hardware non-queue generic interrupts */
62 struct device *dev = &oct->pdev->dev; in cnxk_dump_regs()
64 dev_info(dev, "IQ-%d register dump\n", qno); in cnxk_dump_regs()
93 dev_info(dev, "OQ-%d register dump\n", qno); in cnxk_dump_regs()
126 /* Reset Hardware Tx queue */
129 struct octep_config *conf = oct->conf; in cnxk_reset_iq()
132 dev_dbg(&oct->pdev->dev, "Reset PF IQ-%d\n", q_no); in cnxk_reset_iq()
135 q_no += conf->pf_ring_cfg.srn; in cnxk_reset_iq()
137 /* Disable the Tx/Instruction Ring */ in cnxk_reset_iq()
[all …]
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt61pci.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com>
34 * Default offset is required for RSSI <-> dBm conversion.
51 * Number of TX queues.
121 * 16 entries 32-byte for shared key table
122 * 64 entries 32-byte for pairwise key table
123 * 64 entries 8-byte for pairwise ta key table
152 * Other on-chip shared memory space.
164 * On-chip BEACON frame space.
175 * HOST-MCU shared memory.
[all …]
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_vfpf.c3 * Copyright 2009-2013 Broadcom Corporation
10 * at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL").
35 tl->type = type; in bnx2x_add_tlv()
36 tl->length = length; in bnx2x_add_tlv()
39 /* Clear the mailbox and init the header of the first tlv */
43 mutex_lock(&bp->vf2pf_mutex); in bnx2x_vfpf_prep()
48 /* Clear mailbox */ in bnx2x_vfpf_prep()
49 memset(bp->vf2pf_mbox, 0, sizeof(struct bnx2x_vf_mbx_msg)); in bnx2x_vfpf_prep()
52 bnx2x_add_tlv(bp, &first_tlv->tl, 0, type, length); in bnx2x_vfpf_prep()
55 first_tlv->resp_msg_offset = sizeof(bp->vf2pf_mbox->req); in bnx2x_vfpf_prep()
[all …]
/linux/drivers/remoteproc/
H A Dxlnx_r5_remoteproc.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <dt-bindings/power/xlnx-zynqmp-power.h>
8 #include <linux/dma-mapping.h>
9 #include <linux/firmware/xlnx-zynqmp.h>
12 #include <linux/mailbox/zynqmp-ipi-message.h>
25 /* RX mailbox client buffer max length */
34 * reflects possible values of xlnx,cluster-mode dt-property
38 LOCKSTEP_MODE = 1, /* cores execute same code in lockstep,clk-for-clk */
43 * struct mem_bank_data - Memory Bank description
48 * @pm_domain_id: Power-domains id of memory bank for firmware to turn on/off
[all …]

12345