• Home
  • Raw
  • Download

Lines Matching refs:rblock

58 	struct hipz_query_hca *rblock;  in ehca_query_device()  local
74 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_query_device()
75 if (!rblock) { in ehca_query_device()
80 if (hipz_h_query_hca(shca->ipz_hca_handle, rblock) != H_SUCCESS) { in ehca_query_device()
88 props->fw_ver = rblock->hw_ver; in ehca_query_device()
89 props->max_mr_size = rblock->max_mr_size; in ehca_query_device()
90 props->vendor_id = rblock->vendor_id >> 8; in ehca_query_device()
91 props->vendor_part_id = rblock->vendor_part_id >> 16; in ehca_query_device()
92 props->hw_ver = rblock->hw_ver; in ehca_query_device()
93 props->max_qp = limit_uint(rblock->max_qp); in ehca_query_device()
94 props->max_qp_wr = limit_uint(rblock->max_wqes_wq); in ehca_query_device()
95 props->max_sge = limit_uint(rblock->max_sge); in ehca_query_device()
96 props->max_sge_rd = limit_uint(rblock->max_sge_rd); in ehca_query_device()
97 props->max_cq = limit_uint(rblock->max_cq); in ehca_query_device()
98 props->max_cqe = limit_uint(rblock->max_cqe); in ehca_query_device()
99 props->max_mr = limit_uint(rblock->max_mr); in ehca_query_device()
100 props->max_mw = limit_uint(rblock->max_mw); in ehca_query_device()
101 props->max_pd = limit_uint(rblock->max_pd); in ehca_query_device()
102 props->max_ah = limit_uint(rblock->max_ah); in ehca_query_device()
103 props->max_ee = limit_uint(rblock->max_rd_ee_context); in ehca_query_device()
104 props->max_rdd = limit_uint(rblock->max_rd_domain); in ehca_query_device()
105 props->max_fmr = limit_uint(rblock->max_mr); in ehca_query_device()
106 props->max_qp_rd_atom = limit_uint(rblock->max_rr_qp); in ehca_query_device()
107 props->max_ee_rd_atom = limit_uint(rblock->max_rr_ee_context); in ehca_query_device()
108 props->max_res_rd_atom = limit_uint(rblock->max_rr_hca); in ehca_query_device()
109 props->max_qp_init_rd_atom = limit_uint(rblock->max_act_wqs_qp); in ehca_query_device()
110 props->max_ee_init_rd_atom = limit_uint(rblock->max_act_wqs_ee_context); in ehca_query_device()
120 props->local_ca_ack_delay = rblock->local_ca_ack_delay ? in ehca_query_device()
121 min_t(u8, rblock->local_ca_ack_delay, 255) : 12; in ehca_query_device()
122 props->max_raw_ipv6_qp = limit_uint(rblock->max_raw_ipv6_qp); in ehca_query_device()
123 props->max_raw_ethy_qp = limit_uint(rblock->max_raw_ethy_qp); in ehca_query_device()
124 props->max_mcast_grp = limit_uint(rblock->max_mcast_grp); in ehca_query_device()
125 props->max_mcast_qp_attach = limit_uint(rblock->max_mcast_qp_attach); in ehca_query_device()
127 = limit_uint(rblock->max_total_mcast_qp_attach); in ehca_query_device()
133 if (rblock->hca_cap_indicators & cap_mapping[i + 1]) in ehca_query_device()
137 ehca_free_fw_ctrlblock(rblock); in ehca_query_device()
189 struct hipz_query_port *rblock; in ehca_query_port() local
191 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_query_port()
192 if (!rblock) { in ehca_query_port()
197 h_ret = hipz_h_query_port(shca->ipz_hca_handle, port, rblock); in ehca_query_port()
206 props->active_mtu = props->max_mtu = map_mtu(shca, rblock->max_mtu); in ehca_query_port()
207 props->port_cap_flags = rblock->capability_mask; in ehca_query_port()
208 props->gid_tbl_len = rblock->gid_tbl_len; in ehca_query_port()
209 if (rblock->max_msg_sz) in ehca_query_port()
210 props->max_msg_sz = rblock->max_msg_sz; in ehca_query_port()
213 props->bad_pkey_cntr = rblock->bad_pkey_cntr; in ehca_query_port()
214 props->qkey_viol_cntr = rblock->qkey_viol_cntr; in ehca_query_port()
215 props->pkey_tbl_len = rblock->pkey_tbl_len; in ehca_query_port()
216 props->lid = rblock->lid; in ehca_query_port()
217 props->sm_lid = rblock->sm_lid; in ehca_query_port()
218 props->lmc = rblock->lmc; in ehca_query_port()
219 props->sm_sl = rblock->sm_sl; in ehca_query_port()
220 props->subnet_timeout = rblock->subnet_timeout; in ehca_query_port()
221 props->init_type_reply = rblock->init_type_reply; in ehca_query_port()
222 props->max_vl_num = map_number_of_vls(shca, rblock->vl_cap); in ehca_query_port()
224 if (rblock->state && rblock->phys_width) { in ehca_query_port()
225 props->phys_state = rblock->phys_pstate; in ehca_query_port()
226 props->state = rblock->phys_state; in ehca_query_port()
227 props->active_width = rblock->phys_width; in ehca_query_port()
228 props->active_speed = rblock->phys_speed; in ehca_query_port()
234 props->state = rblock->state; in ehca_query_port()
240 ehca_free_fw_ctrlblock(rblock); in ehca_query_port()
250 struct hipz_query_port *rblock; in ehca_query_sma_attr() local
252 rblock = ehca_alloc_fw_ctrlblock(GFP_ATOMIC); in ehca_query_sma_attr()
253 if (!rblock) { in ehca_query_sma_attr()
258 h_ret = hipz_h_query_port(shca->ipz_hca_handle, port, rblock); in ehca_query_sma_attr()
267 attr->lid = rblock->lid; in ehca_query_sma_attr()
268 attr->lmc = rblock->lmc; in ehca_query_sma_attr()
269 attr->sm_sl = rblock->sm_sl; in ehca_query_sma_attr()
270 attr->sm_lid = rblock->sm_lid; in ehca_query_sma_attr()
272 attr->pkey_tbl_len = rblock->pkey_tbl_len; in ehca_query_sma_attr()
273 memcpy(attr->pkeys, rblock->pkey_entries, sizeof(attr->pkeys)); in ehca_query_sma_attr()
276 ehca_free_fw_ctrlblock(rblock); in ehca_query_sma_attr()
286 struct hipz_query_port *rblock; in ehca_query_pkey() local
294 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_query_pkey()
295 if (!rblock) { in ehca_query_pkey()
300 h_ret = hipz_h_query_port(shca->ipz_hca_handle, port, rblock); in ehca_query_pkey()
307 memcpy(pkey, &rblock->pkey_entries + index, sizeof(u16)); in ehca_query_pkey()
310 ehca_free_fw_ctrlblock(rblock); in ehca_query_pkey()
322 struct hipz_query_port *rblock; in ehca_query_gid() local
329 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_query_gid()
330 if (!rblock) { in ehca_query_gid()
335 h_ret = hipz_h_query_port(shca->ipz_hca_handle, port, rblock); in ehca_query_gid()
342 memcpy(&gid->raw[0], &rblock->gid_prefix, sizeof(u64)); in ehca_query_gid()
343 memcpy(&gid->raw[8], &rblock->guid_entries[index], sizeof(u64)); in ehca_query_gid()
346 ehca_free_fw_ctrlblock(rblock); in ehca_query_gid()
362 struct hipz_query_port *rblock; in ehca_modify_port() local
378 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_modify_port()
379 if (!rblock) { in ehca_modify_port()
385 hret = hipz_h_query_port(shca->ipz_hca_handle, port, rblock); in ehca_modify_port()
392 cap = (rblock->capability_mask | props->set_port_cap_mask) in ehca_modify_port()
404 ehca_free_fw_ctrlblock(rblock); in ehca_modify_port()