Home
last modified time | relevance | path

Searched refs:dev_lim (Results 1 – 5 of 5) sorted by relevance

/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/
Dmthca_main.c165 static int mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim) in mthca_dev_lim() argument
171 err = mthca_QUERY_DEV_LIM(mdev, dev_lim, &status); in mthca_dev_lim()
181 if (dev_lim->min_page_sz > PAGE_SIZE) { in mthca_dev_lim()
184 dev_lim->min_page_sz, PAGE_SIZE); in mthca_dev_lim()
187 if (dev_lim->num_ports > MTHCA_MAX_PORTS) { in mthca_dev_lim()
190 dev_lim->num_ports, MTHCA_MAX_PORTS); in mthca_dev_lim()
194 if (dev_lim->uar_size > pci_resource_len(mdev->pdev, 2)) { in mthca_dev_lim()
197 dev_lim->uar_size, in mthca_dev_lim()
202 mdev->limits.num_ports = dev_lim->num_ports; in mthca_dev_lim()
203 mdev->limits.vl_cap = dev_lim->max_vl; in mthca_dev_lim()
[all …]
Dmthca_cmd.c948 struct mthca_dev_lim *dev_lim, u8 *status) in mthca_QUERY_DEV_LIM() argument
1030 dev_lim->reserved_qps = 1 << (field & 0xf); in mthca_QUERY_DEV_LIM()
1032 dev_lim->max_qps = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()
1034 dev_lim->reserved_srqs = 1 << (field >> 4); in mthca_QUERY_DEV_LIM()
1036 dev_lim->max_srqs = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()
1038 dev_lim->reserved_eecs = 1 << (field & 0xf); in mthca_QUERY_DEV_LIM()
1040 dev_lim->max_eecs = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()
1042 dev_lim->max_cq_sz = 1 << field; in mthca_QUERY_DEV_LIM()
1044 dev_lim->reserved_cqs = 1 << (field & 0xf); in mthca_QUERY_DEV_LIM()
1046 dev_lim->max_cqs = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM()
[all …]
Dmthca_profile.c66 struct mthca_dev_lim *dev_lim, in mthca_make_profile() argument
87 profile[MTHCA_RES_QP].size = dev_lim->qpc_entry_sz; in mthca_make_profile()
88 profile[MTHCA_RES_EEC].size = dev_lim->eec_entry_sz; in mthca_make_profile()
89 profile[MTHCA_RES_SRQ].size = dev_lim->srq_entry_sz; in mthca_make_profile()
90 profile[MTHCA_RES_CQ].size = dev_lim->cqc_entry_sz; in mthca_make_profile()
91 profile[MTHCA_RES_EQP].size = dev_lim->eqpc_entry_sz; in mthca_make_profile()
92 profile[MTHCA_RES_EEEC].size = dev_lim->eeec_entry_sz; in mthca_make_profile()
93 profile[MTHCA_RES_EQ].size = dev_lim->eqc_entry_sz; in mthca_make_profile()
96 profile[MTHCA_RES_MPT].size = dev_lim->mpt_entry_sz; in mthca_make_profile()
98 profile[MTHCA_RES_UAR].size = dev_lim->uar_scratch_entry_sz; in mthca_make_profile()
[all …]
Dmthca_profile.h56 struct mthca_dev_lim *dev_lim,
Dmthca_cmd.h265 struct mthca_dev_lim *dev_lim, u8 *status);