Lines Matching refs:rblock
282 struct hipz_query_hca *rblock; in ehca_sense_attributes() local
299 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_sense_attributes()
300 if (!rblock) { in ehca_sense_attributes()
305 h_ret = hipz_h_query_hca(shca->ipz_hca_handle, rblock); in ehca_sense_attributes()
316 shca->num_ports = (u8)rblock->num_ports; in ehca_sense_attributes()
318 ehca_gen_dbg(" ... found %x ports", rblock->num_ports); in ehca_sense_attributes()
324 hcaaver = EHCA_BMASK_GET(EHCA_HCAAVER, rblock->hw_ver); in ehca_sense_attributes()
325 revid = EHCA_BMASK_GET(EHCA_REVID, rblock->hw_ver); in ehca_sense_attributes()
352 shca->hca_cap = rblock->hca_cap_indicators; in ehca_sense_attributes()
367 if (rblock->memory_page_size_supported & pgsize_map[i]) in ehca_sense_attributes()
372 shca->max_num_qps = min_t(int, rblock->max_qp, in ehca_sense_attributes()
374 else if (shca->max_num_qps < 1 || shca->max_num_qps > rblock->max_qp) { in ehca_sense_attributes()
377 rblock->max_qp, rblock->max_qp); in ehca_sense_attributes()
378 shca->max_num_qps = rblock->max_qp; in ehca_sense_attributes()
382 shca->max_num_cqs = min_t(int, rblock->max_cq, in ehca_sense_attributes()
384 else if (shca->max_num_cqs < 1 || shca->max_num_cqs > rblock->max_cq) { in ehca_sense_attributes()
387 rblock->max_cq, rblock->max_cq); in ehca_sense_attributes()
391 port = (struct hipz_query_port *)rblock; in ehca_sense_attributes()
403 ehca_free_fw_ctrlblock(rblock); in ehca_sense_attributes()
410 struct hipz_query_hca *rblock; in init_node_guid() local
412 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in init_node_guid()
413 if (!rblock) { in init_node_guid()
418 if (hipz_h_query_hca(shca->ipz_hca_handle, rblock) != H_SUCCESS) { in init_node_guid()
424 memcpy(&shca->ib_device.node_guid, &rblock->node_guid, sizeof(u64)); in init_node_guid()
427 ehca_free_fw_ctrlblock(rblock); in init_node_guid()
636 struct hipz_query_hca *rblock; \
641 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); \
642 if (!rblock) { \
647 if (hipz_h_query_hca(shca->ipz_hca_handle, rblock) != H_SUCCESS) { \
649 ehca_free_fw_ctrlblock(rblock); \
653 data = rblock->name; \
654 ehca_free_fw_ctrlblock(rblock); \