/linux/Documentation/devicetree/bindings/net/can/ |
H A D | xilinx,can.yaml | 1 # 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 D | mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Mailbox: Common code for Mailbox controllers and users 5 * Copyright (C) 2013-2014 Linaro Ltd. 22 #include "mailbox.h" 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() [all …]
|
H A D | bcm-pdc-mailbox.c | 1 // 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 D | mailbox-test.c | 1 // 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 …]
|
H A D | arm_mhuv2.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * An MHUv2 mailbox controller can provide up to 124 channel windows (each 32 10 * protocol modes: data-transfer and doorbell, to be used on those channel 18 * The number of registered mailbox channels is dependent on both the underlying 19 * hardware - mainly the number of channel windows implemented by the platform, 25 * for each mailbox controller, a sender device and a receiver device. 31 #include <linux/mailbox/arm_mhuv2_message.h> 45 #define LSB_MASK(n) ((1 << (n * __CHAR_BIT__)) - 1) 46 #define MHUV2_PROTOCOL_PROP "arm,mhuv2-protocols" 94 u8 pad1[0x0C - 0x04]; [all …]
|
/linux/drivers/net/ethernet/intel/idpf/ |
H A D | idpf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 25 #define GETMAXVAL(num_bits) GENMASK((num_bits) - 1, 0) 29 /* Default Mailbox settings */ 31 #define IDPF_NUM_DFLT_MBX_Q 2 /* includes both TX and RX */ 33 #define IDPF_DFLT_MBX_ID -1 34 /* maximum number of times to try before resetting mailbox */ 37 ((IDPF_CTLQ_MAX_BUF_LEN - (struct_sz)) / (chunk_sz)) 64 * enum idpf_state - State machine to handle bring up 78 * enum idpf_flags - Hard reset causes. 83 * @IDPF_MB_INTR_MODE: Mailbox in interrupt mode [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pci.c | 1 // 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 D | fm10k_common.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 7 * fm10k_get_bus_info_generic - Generic set PCI bus info 22 hw->bus_caps.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic() 25 hw->bus_caps.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic() 28 hw->bus_caps.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic() 31 hw->bus_caps.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic() 34 hw->bus_caps.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic() 40 hw->bus_caps.speed = fm10k_bus_speed_2500; in fm10k_get_bus_info_generic() 43 hw->bus_caps.speed = fm10k_bus_speed_5000; in fm10k_get_bus_info_generic() [all …]
|
H A D | fm10k_netdev.c | 1 // 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 …]
|
H A D | fm10k_vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 8 * fm10k_stop_hw_vf - Stop Tx/Rx units 14 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() 36 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; in fm10k_stop_hw_vf() 41 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 46 /* Restore ITR scale in software-defined mechanism in TDLEN in fm10k_stop_hw_vf() 58 * fm10k_reset_hw_vf - VF hardware reset 71 hw->mac.reset_while_pending++; in fm10k_reset_hw_vf() 91 * fm10k_init_hw_vf - VF hardware initialization [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ctrl.h | 1 /* 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 D | nfp_net.h | 1 /* 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 D | tegra-tcu.c | 1 // 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/qlogic/qlcnic/ |
H A D | qlcnic_83xx_hw.c | 1 // 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 D | at91_can.c | 1 // 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/ice/ |
H A D | ice_type.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2018-2023, Intel Corporation. */ 36 ((((N) + (R) - 1) / (R)) * (R))); in ice_round_to_num() 42 /* debug masks - set these bits in hw->debug_mask to control output */ 188 * order to clean the Tx scheduler as a part of the reset 215 /* NONE - used for undef/error */ 272 /* Tx/Rx queues */ 275 u16 num_txq; /* Number/Total Tx queues */ 276 u16 txq_first_id; /* First queue ID for Tx queues */ 278 /* MSI-X vectors */ [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_regs.h | 1 /* 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/thunderbolt/ |
H A D | nhi_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Thunderbolt driver - NHI registers 15 RING_FLAG_ISOCH_ENABLE = 1 << 27, /* TX only? */ 23 * struct ring_desc - TX/RX ring entry 25 * For TX set length/eof/sof. 44 * 12: descriptor count 53 * 12: descriptor count 69 * If RING_FLAG_E2E_FLOW_CONTROL is set then bits 13-23 must be set to 70 * the corresponding TX hop id. 79 * three bitfields: tx, rx, rx overflow [all …]
|
/linux/drivers/net/can/rcar/ |
H A D | rcar_can.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Renesas R-Car CAN device driver 32 /* Mailbox configuration: 33 * mailbox 60 - 63 - Rx FIFO mailboxes 34 * mailbox 56 - 59 - Tx FIFO mailboxes 35 * non-FIFO mailboxes are not used 37 #define RCAR_CAN_N_MBX 64 /* Number of mailboxes in non-FIFO mode */ 38 #define RCAR_CAN_RX_FIFO_MBX 60 /* Mailbox - window to Rx FIFO */ 39 #define RCAR_CAN_TX_FIFO_MBX 56 /* Mailbox - window to Tx FIFO */ 42 /* Mailbox registers structure */ [all …]
|
/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nic.h | 1 /* 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 D | octep_vf_cn9k.c | 1 // 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 D | octep_vf_cnxk.c | 1 // 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 D | bpmp-tegra186.c | 1 // 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 D | header.h | 1 /* 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/remoteproc/ |
H A D | xlnx_r5_remoteproc.c | 1 // 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 …]
|