| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_vf.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 3 * Copyright (c) 2015-2017 QLogic Corporation 45 /* general tlv header (used for both vf->pf request and pf->vf response) */ 51 /* header of first vf->pf tlv carries the offset used to calculate response 60 /* header of pf->vf tlvs, carries the status of handling the request */ 88 #define VFPF_ACQUIRE_CAP_PRE_FP_HSI BIT(0) /* VF pre-FP hsi version */ 90 /* A requirement for supporting multi-Tx queues on a single queue-zone, 166 * mechanism [version-based] and allow a VF that can't be supported to pass 191 /* It's possible PF had to configure an older fastpath HSI 194 * non-matching versions to shed light in VF about failure. [all …]
|
| H A D | qed_vf.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 15 struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; in qed_vf_pf_prep() 23 mutex_lock(&(p_iov->mutex)); in qed_vf_pf_prep() 31 p_iov->offset = (u8 *)p_iov->vf2pf_request; in qed_vf_pf_prep() 33 /* Clear mailbox - both request and reply */ in qed_vf_pf_prep() 34 memset(p_iov->vf2pf_request, 0, sizeof(union vfpf_tlvs)); in qed_vf_pf_prep() 35 memset(p_iov->pf2vf_reply, 0, sizeof(union pfvf_tlvs)); in qed_vf_pf_prep() 38 p_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, type, length); in qed_vf_pf_prep() [all …]
|
| H A D | qed_sriov.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 23 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid); 27 return le16_to_cpu(entity_id) - MAX_NUM_PFS; in qed_vf_from_entity_id() 34 if (p_vf->acquire.vfdev_info.eth_fp_hsi_minor == in qed_vf_calculate_legacy() 38 if (!(p_vf->acquire.vfdev_info.capabilities & in qed_vf_calculate_legacy() 51 int rc = -EINVAL; in qed_sp_vf_start() 57 init_data.opaque_fid = p_vf->opaque_fid; in qed_sp_vf_start() 66 p_ramrod = &p_ent->ramrod.vf_start; in qed_sp_vf_start() [all …]
|
| H A D | qed_mcp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 34 qed_wr(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + (_offset)), \ 38 qed_rd(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + (_offset))) 55 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in qed_mcp_is_init() 62 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_cmd_port_init() 66 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in qed_mcp_cmd_port_init() 70 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init() 75 u32 length = MFW_DRV_MSG_MAX_DWORDS(p_hwfn->mcp_info->mfw_mb_length); in qed_mcp_read_mb() [all …]
|
| H A D | qed_dev.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 11 #include <linux/dma-mapping.h> 72 db_entry->db_addr, in qed_db_recovery_dp_entry() 73 db_entry->db_data, in qed_db_recovery_dp_entry() 74 db_entry->db_width == DB_REC_WIDTH_32B ? "32b" : "64b", in qed_db_recovery_dp_entry() 75 db_entry->db_space == DB_REC_USER ? "user" : "kernel", in qed_db_recovery_dp_entry() 76 db_entry->hwfn_idx); in qed_db_recovery_dp_entry() 88 if (db_addr < cdev->doorbells || in qed_db_rec_sanity() [all …]
|
| /linux/include/linux/qed/ |
| H A D | qed_nvmetcp_if.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 33 u8 mac[ETH_ALEN]; member 86 /* IO path HSI function SGL params */ 95 /* IO path HSI function FW task context params */ 97 void *context; /* Output parameter - set/filled by the HSI function */ 110 * struct qed_nvmetcp_ops - qed NVMeTCP operations. 119 * @param ops - specified using qed_nvmetcp_cb_ops 120 * @param cookie - driver private 123 * @param tasks - qed will fill information about tasks 130 * @param handle - qed will fill handle that should be [all …]
|
| H A D | qed_if.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 24 #include <linux/io-64-nonatomic-lo-hi.h> 457 /* The following parameters are used during HW-init 463 /* per-VF number of CIDs */ 467 /* To enable arfs, previous to HW-init a positive number needs to be 469 * This will set the maximal number of configured steering-filters. 475 /* The following parameters are used during protocol-init */ 479 /* The following parameters are used during HW-init [all …]
|
| /linux/arch/arm64/boot/dts/airoha/ |
| H A D | en7581.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 #include <dt-bindings/interrupt-controller/irq.h> 4 #include <dt-bindings/interrupt-controller/arm-gic.h> 5 #include <dt-bindings/clock/en7523-clk.h> 6 #include <dt-bindings/reset/airoha,en7581-reset.h> 9 interrupt-parent = <&gic>; 10 #address-cells = <2>; 11 #size-cells = <2>; 13 reserved-memory { 14 #address-cells = <2>; [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_vfr.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2016-2017 Broadcom Limited 15 #include <linux/bnxt/hsi.h> 37 req->vf_id = cpu_to_le16(vf_idx); in hwrm_cfa_vfr_alloc() 38 sprintf(req->vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_alloc() 43 *tx_cfa_action = le16_to_cpu(resp->tx_cfa_action); in hwrm_cfa_vfr_alloc() 44 *rx_cfa_code = le16_to_cpu(resp->rx_cfa_code); in hwrm_cfa_vfr_alloc() 45 netdev_dbg(bp->dev, "tx_cfa_action=0x%x, rx_cfa_code=0x%x", in hwrm_cfa_vfr_alloc() 51 netdev_info(bp->dev, "%s error rc=%d\n", __func__, rc); in hwrm_cfa_vfr_alloc() 62 sprintf(req->vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_free() [all …]
|
| H A D | bnxt_tc.c | 1 /* Broadcom NetXtreme-C/E network driver. 22 #include <linux/bnxt/hsi.h> 46 * For VF-reps: src_fid the fid of the VF 53 if (!netdev_port_same_parent_id(pf_bp->dev, dev)) { in bnxt_flow_get_dst_fid() 54 netdev_info(pf_bp->dev, "dev(ifindex=%d) not on same switch\n", in bnxt_flow_get_dst_fid() 55 dev->ifindex); in bnxt_flow_get_dst_fid() 59 /* Is dev a VF-rep? */ in bnxt_flow_get_dst_fid() 64 return bp->pf.fw_fid; in bnxt_flow_get_dst_fid() 71 struct net_device *dev = act->dev; in bnxt_tc_parse_redir() 74 netdev_info(bp->dev, "no dev in mirred action\n"); in bnxt_tc_parse_redir() [all …]
|
| H A D | bnxt.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2014-2016 Broadcom Corporation 4 * Copyright (c) 2016-2019 Broadcom Limited 25 #include <linux/dma-mapping.h> 60 #include <linux/pci-tph.h> 61 #include <linux/bnxt/hsi.h> 95 [BCM57301] = { "Broadcom BCM57301 NetXtreme-C 10Gb Ethernet" }, 96 [BCM57302] = { "Broadcom BCM57302 NetXtreme-C 10Gb/25Gb Ethernet" }, 97 [BCM57304] = { "Broadcom BCM57304 NetXtreme-C 10Gb/25Gb/40Gb/50Gb Ethernet" }, 98 [BCM57417_NPAR] = { "Broadcom BCM57417 NetXtreme-E Ethernet Partition" }, [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_vfpf.c | 3 * 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() 43 mutex_lock(&bp->vf2pf_mutex); 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() 63 first_tlv->tl.type); in bnx2x_vfpf_finalize() 65 mutex_unlock(&bp->vf2pf_mutex); in bnx2x_vfpf_finalize() [all …]
|
| H A D | bnx2x.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 21 #include <linux/dma-mapping.h> 37 * to break this driver due to amount of abuse of in-kernel interfaces 42 #define DRV_MODULE_VERSION "1.713.36-0" 53 #define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt) 94 bp->dev ? (bp->dev->name) : "?", \ 99 if (unlikely(bp->msg_enable & (__mask))) \ 105 if (unlikely((bp->msg_enable & (__mask)) == __mask)) \ 111 if (unlikely(bp->msg_enable & (__mask))) \ 121 bp->dev ? (bp->dev->name) : "?", \ [all …]
|
| H A D | bnx2x_hsi.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 125 /* Up to 16 bytes of NULL-terminated string */ 145 (if multiple found, priority order is: NC-SI, UMP, IPMI) */ 150 /* Use SPIO4 as an arbiter between: 0-NC_SI, 1-IPMI 151 (can only be used when an add-in board, not BMC, pulls-down SPIO4) */ 153 /* Use SPIO4 as an arbiter between: 0-UMP, 1-IPMI 154 (can only be used when an add-in board, not BMC, pulls-down SPIO4) */ 156 /* Use SPIO4 as an arbiter between: 0-NC-SI, 1-UMP 157 (can only be used when an add-in board, not BMC, pulls-down SPIO4) */ 409 /* Default values: 2P-64, 4P-32 */ [all …]
|
| H A D | bnx2x_link.c | 1 /* Copyright 2008-2013 Broadcom Corporation 8 * at http://www.gnu.org/licenses/gpl-2.0.html (the "GPL"). 43 #define I2C_WA_PWR_ITER (I2C_WA_RETRY_CNT - 1) 205 (_phy)->def_md_devad, \ 211 (_phy)->def_md_devad, \ 239 * bnx2x_check_lfa - This function checks if link reinitialization is required, 251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa() 254 REG_RD(bp, params->lfa_base + in bnx2x_check_lfa() 257 /* NOTE: must be first condition checked - in bnx2x_check_lfa() 262 REG_WR(bp, params->lfa_base + in bnx2x_check_lfa() [all …]
|
| /linux/drivers/net/ethernet/airoha/ |
| H A D | airoha_eth.c | 1 // SPDX-License-Identifier: GPL-2.0-only 41 struct airoha_qdma *qdma = irq_bank->qdma; in airoha_qdma_set_irqmask() 42 int bank = irq_bank - &qdma->irq_banks[0]; in airoha_qdma_set_irqmask() 45 if (WARN_ON_ONCE(index >= ARRAY_SIZE(irq_bank->irqmask))) in airoha_qdma_set_irqmask() 48 spin_lock_irqsave(&irq_bank->irq_lock, flags); in airoha_qdma_set_irqmask() 50 irq_bank->irqmask[index] &= ~clear; in airoha_qdma_set_irqmask() 51 irq_bank->irqmask[index] |= set; in airoha_qdma_set_irqmask() 53 irq_bank->irqmask[index]); in airoha_qdma_set_irqmask() 59 spin_unlock_irqrestore(&irq_bank->irq_lock, flags); in airoha_qdma_set_irqmask() 76 struct airoha_eth *eth = port->qdma->eth; in airoha_set_macaddr() [all …]
|
| /linux/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_hwi.c | 5 * Copyright (c) 2008-2013 Broadcom Corporation 6 * Copyright (c) 2014-2016 QLogic Corporation 7 * Copyright (c) 2016-2017 Cavium Inc. 42 stat_req.stat_params_addr_lo = (u32) hba->stats_buf_dma; in bnx2fc_send_stat_req() 43 stat_req.stat_params_addr_hi = (u32) ((u64)hba->stats_buf_dma >> 32); in bnx2fc_send_stat_req() 47 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2fc_send_stat_req() 48 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); in bnx2fc_send_stat_req() 54 * bnx2fc_send_fw_fcoe_init_msg - initiates initial handshake with FCoE f/w 71 if (!hba->cnic) { in bnx2fc_send_fw_fcoe_init_msg() 72 printk(KERN_ERR PFX "hba->cnic NULL during fcoe fw init\n"); in bnx2fc_send_fw_fcoe_init_msg() [all …]
|
| /linux/drivers/s390/net/ |
| H A D | qeth_core_main.c | 1 // SPDX-License-Identifier: GPL-2.0 50 /* define dbf - Name, Pages, Areas, Maxlen, Level, View, Handle */ 78 switch (card->info.type) { in qeth_get_cardname() 84 return " Virtual NIC QDIO - OSM"; in qeth_get_cardname() 86 return " Virtual NIC QDIO - OSX"; in qeth_get_cardname() 91 switch (card->info.type) { in qeth_get_cardname() 111 switch (card->info.type) { in qeth_get_cardname_short() 124 switch (card->info.type) { in qeth_get_cardname_short() 126 switch (card->info.link_type) { in qeth_get_cardname_short() 166 spin_lock_irqsave(&card->thread_mask_lock, flags); in qeth_set_allowed_threads() [all …]
|
| /linux/ |
| H A D | MAINTAINERS | 5 --------------------------------------------------- 21 W: *Web-page* with status/info 23 B: URI for where to file *bugs*. A web-page with detailed bug 28 patches to the given subsystem. This is either an in-tree file, 29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst 46 N: [^a-z]tegra all files whose path contains tegra 64 ---------------- 83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS) 85 L: linux-scsi@vger.kernel.org 88 F: drivers/scsi/3w-* [all …]
|