Searched refs:dev_cap (Results 1 – 5 of 5) sorted by relevance
/drivers/net/ethernet/mellanox/mlx4/ |
D | fw.c | 407 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_QUERY_DEV_CAP() argument 491 dev_cap->flags2 = 0; in mlx4_QUERY_DEV_CAP() 503 dev_cap->reserved_qps = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP() 505 dev_cap->max_qps = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP() 507 dev_cap->reserved_srqs = 1 << (field >> 4); in mlx4_QUERY_DEV_CAP() 509 dev_cap->max_srqs = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP() 511 dev_cap->max_cq_sz = 1 << field; in mlx4_QUERY_DEV_CAP() 513 dev_cap->reserved_cqs = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP() 515 dev_cap->max_cqs = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP() 517 dev_cap->max_mpts = 1 << (field & 0x3f); in mlx4_QUERY_DEV_CAP() [all …]
|
D | main.c | 185 static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_dev_cap() argument 190 err = mlx4_QUERY_DEV_CAP(dev, dev_cap); in mlx4_dev_cap() 196 if (dev_cap->min_page_sz > PAGE_SIZE) { in mlx4_dev_cap() 199 dev_cap->min_page_sz, PAGE_SIZE); in mlx4_dev_cap() 202 if (dev_cap->num_ports > MLX4_MAX_PORTS) { in mlx4_dev_cap() 205 dev_cap->num_ports, MLX4_MAX_PORTS); in mlx4_dev_cap() 209 if (dev_cap->uar_size > pci_resource_len(dev->pdev, 2)) { in mlx4_dev_cap() 212 dev_cap->uar_size, in mlx4_dev_cap() 217 dev->caps.num_ports = dev_cap->num_ports; in mlx4_dev_cap() 220 dev->caps.vl_cap[i] = dev_cap->max_vl[i]; in mlx4_dev_cap() [all …]
|
D | profile.c | 71 struct mlx4_dev_cap *dev_cap, in mlx4_make_profile() argument 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->cmpt_entry_sz; in mlx4_make_profile() [all …]
|
D | fw.h | 201 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
|
D | mlx4.h | 903 struct mlx4_dev_cap *dev_cap,
|