Lines Matching refs:limits

96 	props->page_size_cap       = mdev->limits.page_size_cap;  in mthca_query_device()
97 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device()
98 props->max_qp_wr = mdev->limits.max_wqes; in mthca_query_device()
99 props->max_sge = mdev->limits.max_sg; in mthca_query_device()
101 props->max_cq = mdev->limits.num_cqs - mdev->limits.reserved_cqs; in mthca_query_device()
102 props->max_cqe = mdev->limits.max_cqes; in mthca_query_device()
103 props->max_mr = mdev->limits.num_mpts - mdev->limits.reserved_mrws; in mthca_query_device()
104 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; in mthca_query_device()
106 props->max_qp_init_rd_atom = mdev->limits.max_qp_init_rdma; in mthca_query_device()
108 props->max_srq = mdev->limits.num_srqs - mdev->limits.reserved_srqs; in mthca_query_device()
109 props->max_srq_wr = mdev->limits.max_srq_wqes; in mthca_query_device()
110 props->max_srq_sge = mdev->limits.max_srq_sge; in mthca_query_device()
111 props->local_ca_ack_delay = mdev->limits.local_ca_ack_delay; in mthca_query_device()
112 props->atomic_cap = mdev->limits.flags & DEV_LIM_FLAG_ATOMIC ? in mthca_query_device()
114 props->max_pkeys = mdev->limits.pkey_table_len; in mthca_query_device()
115 props->max_mcast_grp = mdev->limits.num_mgms + mdev->limits.num_amgms; in mthca_query_device()
128 (1 << (32 - ilog2(mdev->limits.num_mpts))) - 1; in mthca_query_device()
167 props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; in mthca_query_port()
169 props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; in mthca_query_port()
313 uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; in mthca_alloc_ucontext()
615 if (entries < 1 || entries > to_mdev(ibdev)->limits.max_cqes) in mthca_create_cq()
728 if (entries < 1 || entries > dev->limits.max_cqes) in mthca_resize_cq()
1175 dev->ib_dev.phys_port_cnt = dev->limits.num_ports; in mthca_register_device()