Searched refs:dev_lim (Results 1 – 5 of 5) sorted by relevance
164 static int mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim) in mthca_dev_lim() argument169 err = mthca_QUERY_DEV_LIM(mdev, dev_lim); in mthca_dev_lim()175 if (dev_lim->min_page_sz > PAGE_SIZE) { in mthca_dev_lim()178 dev_lim->min_page_sz, PAGE_SIZE); in mthca_dev_lim()181 if (dev_lim->num_ports > MTHCA_MAX_PORTS) { in mthca_dev_lim()184 dev_lim->num_ports, MTHCA_MAX_PORTS); in mthca_dev_lim()188 if (dev_lim->uar_size > pci_resource_len(mdev->pdev, 2)) { in mthca_dev_lim()191 dev_lim->uar_size, in mthca_dev_lim()196 mdev->limits.num_ports = dev_lim->num_ports; in mthca_dev_lim()197 mdev->limits.vl_cap = dev_lim->max_vl; in mthca_dev_lim()[all …]
989 struct mthca_dev_lim *dev_lim) in mthca_QUERY_DEV_LIM() argument1071 dev_lim->reserved_qps = 1 << (field & 0xf); in mthca_QUERY_DEV_LIM()1073 dev_lim->max_qps = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()1075 dev_lim->reserved_srqs = 1 << (field >> 4); in mthca_QUERY_DEV_LIM()1077 dev_lim->max_srqs = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()1079 dev_lim->reserved_eecs = 1 << (field & 0xf); in mthca_QUERY_DEV_LIM()1081 dev_lim->max_eecs = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()1083 dev_lim->max_cq_sz = 1 << field; in mthca_QUERY_DEV_LIM()1085 dev_lim->reserved_cqs = 1 << (field & 0xf); in mthca_QUERY_DEV_LIM()1087 dev_lim->max_cqs = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()[all …]
66 struct mthca_dev_lim *dev_lim, in mthca_make_profile() argument86 profile[MTHCA_RES_QP].size = dev_lim->qpc_entry_sz; in mthca_make_profile()87 profile[MTHCA_RES_EEC].size = dev_lim->eec_entry_sz; in mthca_make_profile()88 profile[MTHCA_RES_SRQ].size = dev_lim->srq_entry_sz; in mthca_make_profile()89 profile[MTHCA_RES_CQ].size = dev_lim->cqc_entry_sz; in mthca_make_profile()90 profile[MTHCA_RES_EQP].size = dev_lim->eqpc_entry_sz; in mthca_make_profile()91 profile[MTHCA_RES_EEEC].size = dev_lim->eeec_entry_sz; in mthca_make_profile()92 profile[MTHCA_RES_EQ].size = dev_lim->eqc_entry_sz; in mthca_make_profile()95 profile[MTHCA_RES_MPT].size = dev_lim->mpt_entry_sz; in mthca_make_profile()97 profile[MTHCA_RES_UAR].size = dev_lim->uar_scratch_entry_sz; in mthca_make_profile()[all …]
56 struct mthca_dev_lim *dev_lim,
265 struct mthca_dev_lim *dev_lim);