/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | fw.c | 725 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_QUERY_DEV_CAP() argument 832 dev_cap->flags2 = 0; in mlx4_QUERY_DEV_CAP() 846 dev_cap->map_clock_to_user = field & 0x80; in mlx4_QUERY_DEV_CAP() 848 dev_cap->reserved_qps = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP() 850 dev_cap->max_qps = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP() 852 dev_cap->reserved_srqs = 1 << (field >> 4); in mlx4_QUERY_DEV_CAP() 854 dev_cap->max_srqs = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP() 856 dev_cap->max_cq_sz = 1 << field; in mlx4_QUERY_DEV_CAP() 858 dev_cap->reserved_cqs = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP() 860 dev_cap in mlx4_QUERY_DEV_CAP() 1130 mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) mlx4_dev_cap_dump() argument [all...] |
H A D | profile.c | 71 struct mlx4_dev_cap *dev_cap, in mlx4_make_profile() 111 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; in mlx4_make_profile() 112 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; in mlx4_make_profile() 113 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; in mlx4_make_profile() 114 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; in mlx4_make_profile() 115 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; in mlx4_make_profile() 116 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; in mlx4_make_profile() 117 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; in mlx4_make_profile() 118 profile[MLX4_RES_DMPT].size = dev_cap->dmpt_entry_sz; in mlx4_make_profile() 119 profile[MLX4_RES_CMPT].size = dev_cap in mlx4_make_profile() 69 mlx4_make_profile(struct mlx4_dev *dev, struct mlx4_profile *request, struct mlx4_dev_cap *dev_cap, struct mlx4_init_hca_param *init_hca) mlx4_make_profile() argument [all...] |
H A D | main.c | 294 struct mlx4_dev_cap *dev_cap) in mlx4_set_num_reserved_uars() 303 dev_cap->reserved_uars / in mlx4_set_num_reserved_uars() 343 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func() argument 354 dev_cap->max_eqs = func.max_eq; in mlx4_query_func() 355 dev_cap->reserved_eqs = func.rsvd_eqs; in mlx4_query_func() 356 dev_cap->reserved_uars = func.rsvd_uars; in mlx4_query_func() 364 struct mlx4_caps *dev_cap = &dev->caps; in mlx4_enable_cqe_eqe_stride() local 367 if (!(dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_EQE_STRIDE) || in mlx4_enable_cqe_eqe_stride() 368 !(dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_CQE_STRIDE)) in mlx4_enable_cqe_eqe_stride() 374 if (!(dev_cap in mlx4_enable_cqe_eqe_stride() 293 mlx4_set_num_reserved_uars(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) mlx4_set_num_reserved_uars() argument 457 mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) mlx4_dev_cap() argument 842 slave_adjust_steering_mode(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, struct mlx4_init_hca_param *hca_param) slave_adjust_steering_mode() argument 911 struct mlx4_dev_cap *dev_cap = NULL; mlx4_slave_cap() local 1642 mlx4_init_icm(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, struct mlx4_init_hca_param *init_hca, u64 icm_size) mlx4_init_icm() argument 2171 choose_steering_mode(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) choose_steering_mode() argument 2224 choose_tunnel_offload_mode(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) choose_tunnel_offload_mode() argument 2301 struct mlx4_dev_cap *dev_cap = NULL; mlx4_init_hca() local 3290 mlx4_check_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, int *nvfs) mlx4_check_dev_cap() argument 3341 struct mlx4_dev_cap *dev_cap = NULL; mlx4_load_one() local [all...] |
H A D | fw.h | 230 void mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap); 231 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
|
H A D | mlx4.h | 1057 struct mlx4_dev_cap *dev_cap,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | fw.c | 725 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_QUERY_DEV_CAP() argument 832 dev_cap->flags2 = 0; in mlx4_QUERY_DEV_CAP() 846 dev_cap->map_clock_to_user = field & 0x80; in mlx4_QUERY_DEV_CAP() 848 dev_cap->reserved_qps = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP() 850 dev_cap->max_qps = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP() 852 dev_cap->reserved_srqs = 1 << (field >> 4); in mlx4_QUERY_DEV_CAP() 854 dev_cap->max_srqs = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP() 856 dev_cap->max_cq_sz = 1 << field; in mlx4_QUERY_DEV_CAP() 858 dev_cap->reserved_cqs = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP() 860 dev_cap in mlx4_QUERY_DEV_CAP() 1130 mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) mlx4_dev_cap_dump() argument [all...] |
H A D | profile.c | 71 struct mlx4_dev_cap *dev_cap, in mlx4_make_profile() 111 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; in mlx4_make_profile() 112 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; in mlx4_make_profile() 113 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; in mlx4_make_profile() 114 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; in mlx4_make_profile() 115 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; in mlx4_make_profile() 116 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; in mlx4_make_profile() 117 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; in mlx4_make_profile() 118 profile[MLX4_RES_DMPT].size = dev_cap->dmpt_entry_sz; in mlx4_make_profile() 119 profile[MLX4_RES_CMPT].size = dev_cap in mlx4_make_profile() 69 mlx4_make_profile(struct mlx4_dev *dev, struct mlx4_profile *request, struct mlx4_dev_cap *dev_cap, struct mlx4_init_hca_param *init_hca) mlx4_make_profile() argument [all...] |
H A D | main.c | 293 struct mlx4_dev_cap *dev_cap) in mlx4_set_num_reserved_uars() 302 dev_cap->reserved_uars / in mlx4_set_num_reserved_uars() 342 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func() argument 353 dev_cap->max_eqs = func.max_eq; in mlx4_query_func() 354 dev_cap->reserved_eqs = func.rsvd_eqs; in mlx4_query_func() 355 dev_cap->reserved_uars = func.rsvd_uars; in mlx4_query_func() 363 struct mlx4_caps *dev_cap = &dev->caps; in mlx4_enable_cqe_eqe_stride() local 366 if (!(dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_EQE_STRIDE) || in mlx4_enable_cqe_eqe_stride() 367 !(dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_CQE_STRIDE)) in mlx4_enable_cqe_eqe_stride() 373 if (!(dev_cap in mlx4_enable_cqe_eqe_stride() 292 mlx4_set_num_reserved_uars(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) mlx4_set_num_reserved_uars() argument 456 mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) mlx4_dev_cap() argument 841 slave_adjust_steering_mode(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, struct mlx4_init_hca_param *hca_param) slave_adjust_steering_mode() argument 910 struct mlx4_dev_cap *dev_cap; mlx4_slave_cap() local 1667 mlx4_init_icm(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, struct mlx4_init_hca_param *init_hca, u64 icm_size) mlx4_init_icm() argument 2196 choose_steering_mode(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) choose_steering_mode() argument 2249 choose_tunnel_offload_mode(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) choose_tunnel_offload_mode() argument 2326 struct mlx4_dev_cap *dev_cap = NULL; mlx4_init_hca() local 3348 mlx4_check_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, int *nvfs) mlx4_check_dev_cap() argument 3400 struct mlx4_dev_cap *dev_cap = NULL; mlx4_load_one() local [all...] |
H A D | fw.h | 230 void mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap); 231 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
|
H A D | mlx4.h | 1068 struct mlx4_dev_cap *dev_cap,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_dev.c | 47 * @dev_cap: device capabilities from FW 52 struct hinic_dev_cap *dev_cap) in parse_capability() 57 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) in parse_capability() 71 nic_cap->max_qps = dev_cap->max_sqs + 1; in parse_capability() 73 nic_cap->max_qps = dev_cap->max_sqs; in parse_capability() 79 nic_cap->max_vf = dev_cap->max_vf; in parse_capability() 80 nic_cap->max_vf_qps = dev_cap->max_vf_sqs + 1; in parse_capability() 83 hwdev->port_id = dev_cap->port_id; in parse_capability() 99 struct hinic_dev_cap dev_cap; in get_capability() local 103 out_len = sizeof(dev_cap); in get_capability() 51 parse_capability(struct hinic_hwdev *hwdev, struct hinic_dev_cap *dev_cap) parse_capability() argument [all...] |
H A D | hinic_sriov.c | 1080 struct hinic_dev_cap *dev_cap = buf_out; in cfg_mbx_pf_proc_vf_msg() local 1085 memset(dev_cap, 0, sizeof(*dev_cap)); in cfg_mbx_pf_proc_vf_msg() 1087 dev_cap->max_vf = cap->max_vf; in cfg_mbx_pf_proc_vf_msg() 1088 dev_cap->max_sqs = cap->max_vf_qps; in cfg_mbx_pf_proc_vf_msg() 1089 dev_cap->max_rqs = cap->max_vf_qps; in cfg_mbx_pf_proc_vf_msg() 1090 dev_cap->port_id = dev->port_id; in cfg_mbx_pf_proc_vf_msg() 1092 *out_size = sizeof(*dev_cap); in cfg_mbx_pf_proc_vf_msg()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_dev.c | 53 * @dev_cap: device capabilities from FW 58 struct hinic_dev_cap *dev_cap) in parse_capability() 63 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) in parse_capability() 77 nic_cap->max_qps = dev_cap->max_sqs + 1; in parse_capability() 79 nic_cap->max_qps = dev_cap->max_sqs; in parse_capability() 85 nic_cap->max_vf = dev_cap->max_vf; in parse_capability() 86 nic_cap->max_vf_qps = dev_cap->max_vf_sqs + 1; in parse_capability() 89 hwdev->port_id = dev_cap->port_id; in parse_capability() 105 struct hinic_dev_cap dev_cap; in get_capability() local 109 out_len = sizeof(dev_cap); in get_capability() 57 parse_capability(struct hinic_hwdev *hwdev, struct hinic_dev_cap *dev_cap) parse_capability() argument [all...] |
H A D | hinic_sriov.c | 1064 struct hinic_dev_cap *dev_cap = buf_out; in cfg_mbx_pf_proc_vf_msg() local 1069 memset(dev_cap, 0, sizeof(*dev_cap)); in cfg_mbx_pf_proc_vf_msg() 1071 dev_cap->max_vf = cap->max_vf; in cfg_mbx_pf_proc_vf_msg() 1072 dev_cap->max_sqs = cap->max_vf_qps; in cfg_mbx_pf_proc_vf_msg() 1073 dev_cap->max_rqs = cap->max_vf_qps; in cfg_mbx_pf_proc_vf_msg() 1074 dev_cap->port_id = dev->port_id; in cfg_mbx_pf_proc_vf_msg() 1076 *out_size = sizeof(*dev_cap); in cfg_mbx_pf_proc_vf_msg()
|
/kernel/linux/linux-5.10/include/linux/mlx4/ |
H A D | device.h | 52 #define MLX4_IS_LEGACY_EQ_MODE(dev_cap) ((dev_cap).num_comp_vectors < \ 53 (dev_cap).num_ports * MIN_MSIX_P_PORT)
|
/kernel/linux/linux-6.6/include/linux/mlx4/ |
H A D | device.h | 52 #define MLX4_IS_LEGACY_EQ_MODE(dev_cap) ((dev_cap).num_comp_vectors < \ 53 (dev_cap).num_ports * MIN_MSIX_P_PORT)
|