/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | cn10k_macsec.c | 1 // SPDX-License-Identifier: GPL-2.0 61 dev_err(pfvf->dev, "failed to allocate transform for ecb-aes\n"); in cn10k_ecb_aes_encrypt() 67 dev_err(pfvf->dev, "failed to allocate request for skcipher\n"); in cn10k_ecb_aes_encrypt() 68 err = -ENOMEM; in cn10k_ecb_aes_encrypt() 74 dev_err(pfvf->dev, "failed to set key for skcipher\n"); in cn10k_ecb_aes_encrypt() 101 list_for_each_entry(txsc, &cfg->txsc_list, entry) { in cn10k_mcs_get_txsc() 102 if (txsc->sw_secy == secy) in cn10k_mcs_get_txsc() 115 list_for_each_entry(rxsc, &cfg->rxsc_list, entry) { in cn10k_mcs_get_rxsc() 116 if (rxsc->sw_rxsc == rx_sc && rxsc->sw_secy == secy) in cn10k_mcs_get_rxsc() 139 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc() argument [all …]
|
H A D | otx2_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 26 #include <mbox.h> 169 struct mbox { struct 170 struct otx2_mbox mbox; member 175 void *bbuf_base; /* Bounce buffer for mbox memory */ argument 177 int num_msgs; /* mbox number of messages */ argument 247 /* MSI-X */ 447 void (*pf_queue_work_hdlr)(struct mbox *mb, struct workqueue_struct *mw, 493 /* Mbox */ 494 struct mbox mbox; member [all …]
|
H A D | otx2_common.c | 1 // SPDX-License-Identifier: GPL-2.0 24 return IS_ENABLED(CONFIG_DCB) && !!pfvf->pfc_en; in otx2_is_pfc_enabled() 34 stats->bytes = otx2_atomic64_add(incr, ptr); in otx2_nix_rq_op_stats() 37 stats->pkts = otx2_atomic64_add(incr, ptr); in otx2_nix_rq_op_stats() 47 stats->bytes = otx2_atomic64_add(incr, ptr); in otx2_nix_sq_op_stats() 50 stats->pkts = otx2_atomic64_add(incr, ptr); in otx2_nix_sq_op_stats() 57 if (!netif_running(pfvf->netdev)) in otx2_update_lmac_stats() 60 mutex_lock(&pfvf->mbox.lock); in otx2_update_lmac_stats() 61 req = otx2_mbox_alloc_msg_cgx_stats(&pfvf->mbox); in otx2_update_lmac_stats() 63 mutex_unlock(&pfvf->mbox.lock); in otx2_update_lmac_stats() [all …]
|
H A D | cn10k_ipsec.c | 1 // SPDX-License-Identifier: GPL-2.0 27 state = atomic_cmpxchg(&pf->ipsec.cpt_state, in cn10k_cpt_device_set_inuse() 41 atomic_set(&pf->ipsec.cpt_state, CN10K_CPT_HW_AVAILABLE); in cn10k_cpt_device_set_available() 46 atomic_set(&pf->ipsec.cpt_state, CN10K_CPT_HW_UNAVAILABLE); in cn10k_cpt_device_set_unavailable() 52 int ret = -ENOMEM; in cn10k_outb_cptlf_attach() 54 mutex_lock(&pf->mbox.lock); in cn10k_outb_cptlf_attach() 56 attach = otx2_mbox_alloc_msg_attach_resources(&pf->mbox); in cn10k_outb_cptlf_attach() 60 attach->cptlfs = true; in cn10k_outb_cptlf_attach() 61 attach->modify = true; in cn10k_outb_cptlf_attach() 64 ret = otx2_sync_mbox_msg(&pf->mbox); in cn10k_outb_cptlf_attach() [all …]
|
H A D | otx2_pf.c | 1 // SPDX-License-Identifier: GPL-2.0 62 if (pf->xdp_prog && new_mtu > MAX_XDP_MTU) { in otx2_change_mtu() 64 netdev->mtu); in otx2_change_mtu() 65 return -EINVAL; in otx2_change_mtu() 71 netdev->mtu, new_mtu); in otx2_change_mtu() 72 WRITE_ONCE(netdev->mtu, new_mtu); in otx2_change_mtu() 82 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr() 86 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFME0); in otx2_disable_flr_me_intr() 91 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFFLR0); in otx2_disable_flr_me_intr() 97 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in otx2_disable_flr_me_intr() [all …]
|
H A D | otx2_tc.c | 1 // SPDX-License-Identifier: GPL-2.0 32 #define MCAST_INVALID_GRP (-1U) 64 if (is_dev_otx2(nic->pdev)) { in otx2_get_egress_burst_cfg() 78 *burst_exp = ilog2(burst) ? ilog2(burst) - 1 : 0; in otx2_get_egress_burst_cfg() 79 tmp = burst - rounddown_pow_of_two(burst); in otx2_get_egress_burst_cfg() 83 *burst_mantissa = tmp / (1ULL << (*burst_exp - 7)); in otx2_get_egress_burst_cfg() 109 *exp = ilog2(maxrate) ? ilog2(maxrate) - 1 : 0; in otx2_get_egress_rate_cfg() 110 tmp = maxrate - rounddown_pow_of_two(maxrate); in otx2_get_egress_rate_cfg() 114 *mantissa = tmp / (1ULL << (*exp - 7)); in otx2_get_egress_rate_cfg() 133 if (is_dev_otx2(nic->pdev)) { in otx2_get_txschq_rate_regval() [all …]
|
/linux/drivers/mailbox/ |
H A D | cix-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0 94 int dir; member 98 struct mbox_controller mbox; member 112 static struct cix_mbox_priv *to_cix_mbox_priv(struct mbox_controller *mbox) in to_cix_mbox_priv() argument 114 return container_of(mbox, struct cix_mbox_priv, mbox); in to_cix_mbox_priv() 119 if (priv->use_shmem) in cix_mbox_write() 120 iowrite32(val, priv->base + offset - CIX_SHMEM_OFFSET); in cix_mbox_write() 122 iowrite32(val, priv->base + offset); in cix_mbox_write() 127 if (priv->use_shmem) in cix_mbox_read() 128 return ioread32(priv->base + offset - CIX_SHMEM_OFFSET); in cix_mbox_read() [all …]
|
H A D | hi6220-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 57 * - direction: tx or rx 58 * - dst irq: peer core's irq number 59 * - ack irq: local irq number 60 * - slot number 62 unsigned int dir, dst_irq, ack_irq; member 90 static void mbox_set_state(struct hi6220_mbox *mbox, in mbox_set_state() argument 95 status = readl(mbox->base + MBOX_MODE_REG(slot)); in mbox_set_state() 97 writel(status, mbox->base + MBOX_MODE_REG(slot)); in mbox_set_state() 100 static void mbox_set_mode(struct hi6220_mbox *mbox, in mbox_set_mode() argument [all …]
|
H A D | ti-msgmgr.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015-2022 Texas Instruments Incorporated - https://www.ti.com/ 22 #include <linux/soc/ti/ti-msgmgr.h> 41 * struct ti_msgmgr_valid_queue_desc - SoC valid queues meant for this processor 53 * struct ti_msgmgr_desc - Description of message manager integration 92 * struct ti_queue_inst - Description of a queue instance 122 * struct ti_msgmgr_inst - Description of a Message Manager Instance 132 * @mbox: Mailbox Controller 143 struct mbox_controller mbox; member 148 * ti_msgmgr_queue_get_num_messages() - Get the number of pending messages [all …]
|
/linux/arch/arm64/boot/dts/cix/ |
H A D | sky1.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 8 #include <dt-bindings/clock/cix,sky1.h> 11 interrupt-parent = <&gic>; 12 #address-cells = <2>; 13 #size-cells = <2>; 16 #address-cells = <2>; 17 #size-cells = <0>; 20 compatible = "arm,cortex-a520"; 21 enable-method = "psci"; [all …]
|
/linux/Documentation/devicetree/bindings/mailbox/ |
H A D | cix,sky1-mbox.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mailbox/cix,sky1-mbox.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Guomin Chen <Guomin.Chen@cixtech.com> 19 typically used in pairs-one for receiving and one for transmitting. 22 channel 0-7 - Fast channel with 32bit transmit register and IRQ support 23 channel 8 - Doorbell mode,using the mailbox as an interrupt-generating 25 channel 9 - Fifo based channel with 32*32bit depth fifo and IRQ support 26 channel 10 - Reg based channel with 32*32bit transmit register and [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 39 #define INTR_MASK(pfvfs) ((pfvfs < 64) ? (BIT_ULL(pfvfs) - 1) : (~0ull)) 41 #define MBOX_RSP_TIMEOUT 6000 /* Time(ms) to wait for mbox response */ 43 #define MBOX_MSG_ALIGN 16 /* Align mbox msg start to 16bytes */ 61 void *mbase; /* This dev's mbox region */ 72 void *hwbase; /* Mbox region advertised by HW */ 74 u64 trigger; /* Trigger mbox notification */ 75 u16 tr_shift; /* Mbox trigger shift */ 76 u64 rx_start; /* Offset of Rx region in mbox memory */ 77 u64 tx_start; /* Offset of Tx region in mbox memory */ [all …]
|
H A D | rvu.c | 1 // SPDX-License-Identifier: GPL-2.0 63 struct rvu_hwinfo *hw = rvu->hw; in rvu_setup_hw_capabilities() 65 hw->cap.nix_tx_aggr_lvl = NIX_TXSCH_LVL_TL1; in rvu_setup_hw_capabilities() 66 hw->cap.nix_fixed_txschq_mapping = false; in rvu_setup_hw_capabilities() 67 hw->cap.nix_shaping = true; in rvu_setup_hw_capabilities() 68 hw->cap.nix_tx_link_bp = true; in rvu_setup_hw_capabilities() 69 hw->cap.nix_rx_multicast = true; in rvu_setup_hw_capabilities() 70 hw->cap.nix_shaper_toggle_wait = false; in rvu_setup_hw_capabilities() 71 hw->cap.npc_hash_extract = false; in rvu_setup_hw_capabilities() 72 hw->cap.npc_exact_match_enabled = false; in rvu_setup_hw_capabilities() [all …]
|
/linux/drivers/scsi/ |
H A D | megaraid.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * - fixes 10 * - speed-ups (list handling fixes, issued_list, optimizations.) 11 * - lots of cleanups. 14 * - new-style, hotplug-aware pci probing and scsi registration 16 * Version : v2.00.4 Mon Nov 14 14:02:43 EST 2005 - Seokmann Ju 26 * linux-scsi@vger.kernel.org . 44 #include <linux/dma-mapping.h> 79 #define RDINDOOR(adapter) readl((adapter)->mmio_base + 0x20) 80 #define RDOUTDOOR(adapter) readl((adapter)->mmio_base + 0x2C) [all …]
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_mbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 48 * 0 - Tx request is done; 49 * 1 - Tx request is in process. 68 * 0 - send 69 * 1 - receive 110 /* MBOX size is 64B, 8B for mbox_header, 4B reserved */ 115 /* mbox write back status is 16B, only first 4B is used */ 141 ((hwif)->cfg_regs_bar + HINIC_FUNC_CSR_MAILBOX_DATA_OFF) 146 #define MBOX_MSG_ID(func_to_func) ((func_to_func)->send_msg_id) 192 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() [all …]
|
/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-j721e-beagleboneai64.dts | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * https://beagleboard.org/ai-64 4 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/ 5 * Copyright (C) 2022-2024 Jason Kridner, BeagleBoard.org Foundation 6 * Copyright (C) 2022-2024 Robert Nelson, BeagleBoard.org Foundation 9 /dts-v1/; 11 #include "k3-j721e.dtsi" 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/input.h> 14 #include <dt-bindings/leds/common.h> [all …]
|
H A D | k3-j721e-sk.dts | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/ 5 * J721E SK URL: https://www.ti.com/tool/SK-TDA4VM 8 /dts-v1/; 10 #include "k3-j721e.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/net/ti-dp83867.h> 16 compatible = "ti,j721e-sk", "ti,j721e"; 29 stdout-path = "serial2:115200n8"; [all …]
|
H A D | k3-j722s-evm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 4 * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ 9 /dts-v1/; 11 #include <dt-bindings/net/ti-dp83867.h> 12 #include <dt-bindings/phy/phy.h> 13 #include "k3-j722s.dtsi" 14 #include "k3-serdes.h" 17 compatible = "ti,j722s-evm", "ti,j722s"; 29 stdout-path = &main_uart0; 37 bootph-pre-ram; [all …]
|
H A D | k3-j784s4-j742s2-evm-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/ 9 #include <dt-bindings/phy/phy-cadence.h> 13 stdout-path = "serial2:115200n8"; 28 reserved_memory: reserved-memory { 29 #address-cells = <2>; 30 #size-cells = <2>; 35 no-map; 38 mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 { 39 compatible = "shared-dma-pool"; [all …]
|
H A D | k3-am62x-sk-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 5 * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/ 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/net/ti-dp83867.h> 11 #include "k3-am625.dtsi" 29 stdout-path = "serial2:115200n8"; 33 bootph-pre-ram; 39 reserved-memory { 40 #address-cells = <2>; [all …]
|
/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptpf_mbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 mutex_lock(&cptpf->lock); in forward_to_af() 36 msg = otx2_mbox_alloc_msg(&cptpf->afpf_mbox, 0, size); in forward_to_af() 38 mutex_unlock(&cptpf->lock); in forward_to_af() 39 return -ENOMEM; in forward_to_af() 44 msg->id = req->id; in forward_to_af() 45 msg->pcifunc = req->pcifunc; in forward_to_af() 46 msg->sig = req->sig; in forward_to_af() 47 msg->ver = req->ver; in forward_to_af() 49 ret = otx2_cpt_sync_mbox_msg(&cptpf->afpf_mbox); in forward_to_af() [all …]
|
/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_stats.c | 3 * Copyright (C) 2012-2015 Emulex. All rights reserved. 16 * - Redistributions of source code must retain the above copyright notice, 19 * - Redistributions in binary form must reproduce the above copyright 36 * linux-drivers@emulex.com 69 struct stats_mem *mem = &dev->stats_mem; in ocrdma_alloc_stats_resources() 71 mutex_init(&dev->stats_lock); in ocrdma_alloc_stats_resources() 72 /* Alloc mbox command mem*/ in ocrdma_alloc_stats_resources() 73 mem->size = max_t(u32, sizeof(struct ocrdma_rdma_stats_req), in ocrdma_alloc_stats_resources() 76 mem->va = dma_alloc_coherent(&dev->nic_info.pdev->dev, mem->size, in ocrdma_alloc_stats_resources() 77 &mem->pa, GFP_KERNEL); in ocrdma_alloc_stats_resources() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4.h | 4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 62 #define CH_WARN(adap, fmt, ...) dev_warn(adap->pdev_dev, fmt, ## __VA_ARGS__) 138 FEC_RS = 1 << 1, /* Reed-Solomon */ 139 FEC_BASER_RS = 1 << 2 /* BaseR/Reed-Solomon */ 262 u64 rx_ovflow0; /* drops due to buffer-group 0 overflows */ 263 u64 rx_ovflow1; /* drops due to buffer-group 1 overflows */ 264 u64 rx_ovflow2; /* drops due to buffer-group 2 overflows */ 265 u64 rx_ovflow3; /* drops due to buffer-group 3 overflows */ [all …]
|
H A D | t4_hw.c | 4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 43 * t4_wait_op_done_val - wait until an operation is completed 46 * @mask: a single-bit field within @reg that indicates completion 55 * operation completes and -EAGAIN otherwise. 68 if (--attempts == 0) in t4_wait_op_done_val() 69 return -EAGAIN; in t4_wait_op_done_val() 83 * t4_set_reg_field - set a register field to a value 102 * t4_read_indirect - read indirectly addressed registers [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
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); \ 118 #define D_IDX(ring, idx) ((idx) & ((ring)->cnt - 1)) [all …]
|