Lines Matching refs:ib_attr

142 			 struct ib_device_attr *ib_attr,  in bnxt_re_query_device()  argument
148 memset(ib_attr, 0, sizeof(*ib_attr)); in bnxt_re_query_device()
149 memcpy(&ib_attr->fw_ver, dev_attr->fw_ver, in bnxt_re_query_device()
151 sizeof(ib_attr->fw_ver))); in bnxt_re_query_device()
152 addrconf_addr_eui48((u8 *)&ib_attr->sys_image_guid, in bnxt_re_query_device()
154 ib_attr->max_mr_size = BNXT_RE_MAX_MR_SIZE; in bnxt_re_query_device()
155 ib_attr->page_size_cap = BNXT_RE_PAGE_SIZE_SUPPORTED; in bnxt_re_query_device()
157 ib_attr->vendor_id = rdev->en_dev->pdev->vendor; in bnxt_re_query_device()
158 ib_attr->vendor_part_id = rdev->en_dev->pdev->device; in bnxt_re_query_device()
159 ib_attr->hw_ver = rdev->en_dev->pdev->subsystem_device; in bnxt_re_query_device()
160 ib_attr->max_qp = dev_attr->max_qp; in bnxt_re_query_device()
161 ib_attr->max_qp_wr = dev_attr->max_qp_wqes; in bnxt_re_query_device()
162 ib_attr->device_cap_flags = in bnxt_re_query_device()
173 ib_attr->kernel_cap_flags = IBK_LOCAL_DMA_LKEY; in bnxt_re_query_device()
174 ib_attr->max_send_sge = dev_attr->max_qp_sges; in bnxt_re_query_device()
175 ib_attr->max_recv_sge = dev_attr->max_qp_sges; in bnxt_re_query_device()
176 ib_attr->max_sge_rd = dev_attr->max_qp_sges; in bnxt_re_query_device()
177 ib_attr->max_cq = dev_attr->max_cq; in bnxt_re_query_device()
178 ib_attr->max_cqe = dev_attr->max_cq_wqes; in bnxt_re_query_device()
179 ib_attr->max_mr = dev_attr->max_mr; in bnxt_re_query_device()
180 ib_attr->max_pd = dev_attr->max_pd; in bnxt_re_query_device()
181 ib_attr->max_qp_rd_atom = dev_attr->max_qp_rd_atom; in bnxt_re_query_device()
182 ib_attr->max_qp_init_rd_atom = dev_attr->max_qp_init_rd_atom; in bnxt_re_query_device()
183 ib_attr->atomic_cap = IB_ATOMIC_NONE; in bnxt_re_query_device()
184 ib_attr->masked_atomic_cap = IB_ATOMIC_NONE; in bnxt_re_query_device()
186 ib_attr->atomic_cap = IB_ATOMIC_GLOB; in bnxt_re_query_device()
187 ib_attr->masked_atomic_cap = IB_ATOMIC_GLOB; in bnxt_re_query_device()
190 ib_attr->max_ee_rd_atom = 0; in bnxt_re_query_device()
191 ib_attr->max_res_rd_atom = 0; in bnxt_re_query_device()
192 ib_attr->max_ee_init_rd_atom = 0; in bnxt_re_query_device()
193 ib_attr->max_ee = 0; in bnxt_re_query_device()
194 ib_attr->max_rdd = 0; in bnxt_re_query_device()
195 ib_attr->max_mw = dev_attr->max_mw; in bnxt_re_query_device()
196 ib_attr->max_raw_ipv6_qp = 0; in bnxt_re_query_device()
197 ib_attr->max_raw_ethy_qp = dev_attr->max_raw_ethy_qp; in bnxt_re_query_device()
198 ib_attr->max_mcast_grp = 0; in bnxt_re_query_device()
199 ib_attr->max_mcast_qp_attach = 0; in bnxt_re_query_device()
200 ib_attr->max_total_mcast_qp_attach = 0; in bnxt_re_query_device()
201 ib_attr->max_ah = dev_attr->max_ah; in bnxt_re_query_device()
203 ib_attr->max_srq = dev_attr->max_srq; in bnxt_re_query_device()
204 ib_attr->max_srq_wr = dev_attr->max_srq_wqes; in bnxt_re_query_device()
205 ib_attr->max_srq_sge = dev_attr->max_srq_sges; in bnxt_re_query_device()
207 ib_attr->max_fast_reg_page_list_len = MAX_PBL_LVL_1_PGS; in bnxt_re_query_device()
209 ib_attr->max_pkeys = 1; in bnxt_re_query_device()
210 ib_attr->local_ca_ack_delay = BNXT_RE_DEFAULT_ACK_DELAY; in bnxt_re_query_device()