qed.h (ffb1e76f4f32d2b8ea4189df0484980370476395) qed.h (19198e4ec97dc9d173b458a75ace3c3ca55c2d85)
1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2/* QLogic qed NIC Driver
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
5 */
6
7#ifndef _QED_H
8#define _QED_H

--- 863 unchanged lines hidden (view full) ---

872 qed_get_hsi_def_val(dev, QED_HSI_DEF_MAX_QM_GLOBAL_RLS)
873#define NUM_OF_PBF_CMD_LINES(dev) \
874 qed_get_hsi_def_val(dev, QED_HSI_DEF_MAX_PBF_CMD_LINES)
875#define NUM_OF_BTB_BLOCKS(dev) \
876 qed_get_hsi_def_val(dev, QED_HSI_DEF_MAX_BTB_BLOCKS)
877
878
879/**
1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2/* QLogic qed NIC Driver
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
5 */
6
7#ifndef _QED_H
8#define _QED_H

--- 863 unchanged lines hidden (view full) ---

872 qed_get_hsi_def_val(dev, QED_HSI_DEF_MAX_QM_GLOBAL_RLS)
873#define NUM_OF_PBF_CMD_LINES(dev) \
874 qed_get_hsi_def_val(dev, QED_HSI_DEF_MAX_PBF_CMD_LINES)
875#define NUM_OF_BTB_BLOCKS(dev) \
876 qed_get_hsi_def_val(dev, QED_HSI_DEF_MAX_BTB_BLOCKS)
877
878
879/**
880 * @brief qed_concrete_to_sw_fid - get the sw function id from
881 * the concrete value.
880 * qed_concrete_to_sw_fid(): Get the sw function id from
881 * the concrete value.
882 *
882 *
883 * @param concrete_fid
883 * @cdev: Qed dev pointer.
884 * @concrete_fid: Concrete fid.
884 *
885 *
885 * @return inline u8
886 * Return: inline u8.
886 */
887static inline u8 qed_concrete_to_sw_fid(struct qed_dev *cdev,
888 u32 concrete_fid)
889{
890 u8 vfid = GET_FIELD(concrete_fid, PXP_CONCRETE_FID_VFID);
891 u8 pfid = GET_FIELD(concrete_fid, PXP_CONCRETE_FID_PFID);
892 u8 vf_valid = GET_FIELD(concrete_fid,
893 PXP_CONCRETE_FID_VFVALID);

--- 108 unchanged lines hidden ---
887 */
888static inline u8 qed_concrete_to_sw_fid(struct qed_dev *cdev,
889 u32 concrete_fid)
890{
891 u8 vfid = GET_FIELD(concrete_fid, PXP_CONCRETE_FID_VFID);
892 u8 pfid = GET_FIELD(concrete_fid, PXP_CONCRETE_FID_PFID);
893 u8 vf_valid = GET_FIELD(concrete_fid,
894 PXP_CONCRETE_FID_VFVALID);

--- 108 unchanged lines hidden ---