Lines Matching refs:rblock

283 	struct hipz_query_hca *rblock;  in ehca_sense_attributes()  local
301 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_sense_attributes()
302 if (!rblock) { in ehca_sense_attributes()
307 h_ret = hipz_h_query_hca(shca->ipz_hca_handle, rblock); in ehca_sense_attributes()
318 shca->num_ports = (u8)rblock->num_ports; in ehca_sense_attributes()
320 ehca_gen_dbg(" ... found %x ports", rblock->num_ports); in ehca_sense_attributes()
326 hcaaver = EHCA_BMASK_GET(EHCA_HCAAVER, rblock->hw_ver); in ehca_sense_attributes()
327 revid = EHCA_BMASK_GET(EHCA_REVID, rblock->hw_ver); in ehca_sense_attributes()
354 shca->hca_cap = rblock->hca_cap_indicators; in ehca_sense_attributes()
370 if (rblock->memory_page_size_supported & pgsize_map[i]) in ehca_sense_attributes()
375 shca->max_num_qps = min_t(int, rblock->max_qp, in ehca_sense_attributes()
377 else if (shca->max_num_qps < 1 || shca->max_num_qps > rblock->max_qp) { in ehca_sense_attributes()
380 rblock->max_qp, rblock->max_qp); in ehca_sense_attributes()
381 shca->max_num_qps = rblock->max_qp; in ehca_sense_attributes()
385 shca->max_num_cqs = min_t(int, rblock->max_cq, in ehca_sense_attributes()
387 else if (shca->max_num_cqs < 1 || shca->max_num_cqs > rblock->max_cq) { in ehca_sense_attributes()
390 rblock->max_cq, rblock->max_cq); in ehca_sense_attributes()
394 port = (struct hipz_query_port *)rblock; in ehca_sense_attributes()
406 ehca_free_fw_ctrlblock(rblock); in ehca_sense_attributes()
413 struct hipz_query_hca *rblock; in init_node_guid() local
415 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in init_node_guid()
416 if (!rblock) { in init_node_guid()
421 if (hipz_h_query_hca(shca->ipz_hca_handle, rblock) != H_SUCCESS) { in init_node_guid()
427 memcpy(&shca->ib_device.node_guid, &rblock->node_guid, sizeof(u64)); in init_node_guid()
430 ehca_free_fw_ctrlblock(rblock); in init_node_guid()
640 struct hipz_query_hca *rblock; \
645 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); \
646 if (!rblock) { \
651 if (hipz_h_query_hca(shca->ipz_hca_handle, rblock) != H_SUCCESS) { \
653 ehca_free_fw_ctrlblock(rblock); \
657 data = rblock->name; \
658 ehca_free_fw_ctrlblock(rblock); \