Lines Matching +full:0 +full:- +full:63
1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Jan-Bernd Themann <themann@de.ibm.com>
23 while (((1U << ld) - 1) < queue_entries) in get_order_of_qentries()
25 return ld - 1; in get_order_of_qentries()
47 for (i = 0; i < 5; i++) { in ehea_plpar_hcall_norets()
86 for (i = 0; i < 5; i++) { in ehea_plpar_hcall9()
114 outs[0], outs[1], outs[2], outs[3], outs[4], in ehea_plpar_hcall9()
131 0, 0); in ehea_h_query_ehea_qp()
144 #define H_ALL_RES_QP_RES_TYP EHEA_BMASK_IBM(56, 63)
147 #define H_ALL_RES_QP_TOKEN EHEA_BMASK_IBM(0, 31)
148 #define H_ALL_RES_QP_PD EHEA_BMASK_IBM(32, 63)
160 #define H_ALL_RES_QP_MAX_R3SGE EHEA_BMASK_IBM(61, 63)
163 #define H_ALL_RES_QP_SWQE_IDL EHEA_BMASK_IBM(0, 7)
165 #define H_ALL_RES_QP_PORT_NUM EHEA_BMASK_IBM(48, 63)
168 #define H_ALL_RES_QP_TH_RQ2 EHEA_BMASK_IBM(0, 15)
174 #define H_ALL_RES_QP_ACT_SWQE EHEA_BMASK_IBM(0, 15)
177 #define H_ALL_RES_QP_ACT_R3WQE EHEA_BMASK_IBM(48, 63)
180 #define H_ALL_RES_QP_ACT_SSGE EHEA_BMASK_IBM(0, 7)
187 #define H_ALL_RES_QP_SIZE_SQ EHEA_BMASK_IBM(0, 31)
188 #define H_ALL_RES_QP_SIZE_RQ1 EHEA_BMASK_IBM(32, 63)
189 #define H_ALL_RES_QP_SIZE_RQ2 EHEA_BMASK_IBM(0, 31)
190 #define H_ALL_RES_QP_SIZE_RQ3 EHEA_BMASK_IBM(32, 63)
193 #define H_ALL_RES_QP_LIOBN_SQ EHEA_BMASK_IBM(0, 31)
194 #define H_ALL_RES_QP_LIOBN_RQ1 EHEA_BMASK_IBM(32, 63)
195 #define H_ALL_RES_QP_LIOBN_RQ2 EHEA_BMASK_IBM(0, 31)
196 #define H_ALL_RES_QP_LIOBN_RQ3 EHEA_BMASK_IBM(32, 63)
206 EHEA_BMASK_SET(H_ALL_RES_QP_EQPO, init_attr->low_lat_rq1 ? 1 : 0) in ehea_h_alloc_resource_qp()
207 | EHEA_BMASK_SET(H_ALL_RES_QP_QPP, 0) in ehea_h_alloc_resource_qp()
209 | EHEA_BMASK_SET(H_ALL_RES_QP_EQEG, 0) /* EQE gen. disabled */ in ehea_h_alloc_resource_qp()
210 | EHEA_BMASK_SET(H_ALL_RES_QP_LL_QP, init_attr->low_lat_rq1) in ehea_h_alloc_resource_qp()
211 | EHEA_BMASK_SET(H_ALL_RES_QP_DMA128, 0) in ehea_h_alloc_resource_qp()
212 | EHEA_BMASK_SET(H_ALL_RES_QP_HSM, 0) in ehea_h_alloc_resource_qp()
213 | EHEA_BMASK_SET(H_ALL_RES_QP_SIGT, init_attr->signalingtype) in ehea_h_alloc_resource_qp()
217 | EHEA_BMASK_SET(H_ALL_RES_QP_TOKEN, init_attr->qp_token); in ehea_h_alloc_resource_qp()
221 get_order_of_qentries(init_attr->max_nr_send_wqes)) in ehea_h_alloc_resource_qp()
223 get_order_of_qentries(init_attr->max_nr_rwqes_rq1)) in ehea_h_alloc_resource_qp()
225 get_order_of_qentries(init_attr->max_nr_rwqes_rq2)) in ehea_h_alloc_resource_qp()
227 get_order_of_qentries(init_attr->max_nr_rwqes_rq3)) in ehea_h_alloc_resource_qp()
228 | EHEA_BMASK_SET(H_ALL_RES_QP_MAX_SSGE, init_attr->wqe_size_enc_sq) in ehea_h_alloc_resource_qp()
230 init_attr->wqe_size_enc_rq1) in ehea_h_alloc_resource_qp()
232 init_attr->wqe_size_enc_rq2) in ehea_h_alloc_resource_qp()
234 init_attr->wqe_size_enc_rq3); in ehea_h_alloc_resource_qp()
237 EHEA_BMASK_SET(H_ALL_RES_QP_SWQE_IDL, init_attr->swqe_imm_data_len) in ehea_h_alloc_resource_qp()
238 | EHEA_BMASK_SET(H_ALL_RES_QP_PORT_NUM, init_attr->port_nr); in ehea_h_alloc_resource_qp()
240 EHEA_BMASK_SET(H_ALL_RES_QP_TH_RQ2, init_attr->rq2_threshold) in ehea_h_alloc_resource_qp()
241 | EHEA_BMASK_SET(H_ALL_RES_QP_TH_RQ3, init_attr->rq3_threshold); in ehea_h_alloc_resource_qp()
247 init_attr->send_cq_handle, /* R6 */ in ehea_h_alloc_resource_qp()
248 init_attr->recv_cq_handle, /* R7 */ in ehea_h_alloc_resource_qp()
249 init_attr->aff_eq_handle, /* R8 */ in ehea_h_alloc_resource_qp()
255 *qp_handle = outs[0]; in ehea_h_alloc_resource_qp()
256 init_attr->qp_nr = (u32)outs[1]; in ehea_h_alloc_resource_qp()
258 init_attr->act_nr_send_wqes = in ehea_h_alloc_resource_qp()
260 init_attr->act_nr_rwqes_rq1 = in ehea_h_alloc_resource_qp()
262 init_attr->act_nr_rwqes_rq2 = in ehea_h_alloc_resource_qp()
264 init_attr->act_nr_rwqes_rq3 = in ehea_h_alloc_resource_qp()
267 init_attr->act_wqe_size_enc_sq = init_attr->wqe_size_enc_sq; in ehea_h_alloc_resource_qp()
268 init_attr->act_wqe_size_enc_rq1 = init_attr->wqe_size_enc_rq1; in ehea_h_alloc_resource_qp()
269 init_attr->act_wqe_size_enc_rq2 = init_attr->wqe_size_enc_rq2; in ehea_h_alloc_resource_qp()
270 init_attr->act_wqe_size_enc_rq3 = init_attr->wqe_size_enc_rq3; in ehea_h_alloc_resource_qp()
272 init_attr->nr_sq_pages = in ehea_h_alloc_resource_qp()
274 init_attr->nr_rq1_pages = in ehea_h_alloc_resource_qp()
276 init_attr->nr_rq2_pages = in ehea_h_alloc_resource_qp()
278 init_attr->nr_rq3_pages = in ehea_h_alloc_resource_qp()
281 init_attr->liobn_sq = in ehea_h_alloc_resource_qp()
283 init_attr->liobn_rq1 = in ehea_h_alloc_resource_qp()
285 init_attr->liobn_rq2 = in ehea_h_alloc_resource_qp()
287 init_attr->liobn_rq3 = in ehea_h_alloc_resource_qp()
307 cq_attr->eq_handle, /* R6 */ in ehea_h_alloc_resource_cq()
308 cq_attr->cq_token, /* R7 */ in ehea_h_alloc_resource_cq()
309 cq_attr->max_nr_of_cqes, /* R8 */ in ehea_h_alloc_resource_cq()
310 0, 0, 0, 0); /* R9-R12 */ in ehea_h_alloc_resource_cq()
312 *cq_handle = outs[0]; in ehea_h_alloc_resource_cq()
313 cq_attr->act_nr_of_cqes = outs[3]; in ehea_h_alloc_resource_cq()
314 cq_attr->nr_pages = outs[4]; in ehea_h_alloc_resource_cq()
330 #define H_ALL_RES_EQ_NEQ EHEA_BMASK_IBM(0, 0)
333 #define H_ALL_RES_EQ_RES_TYPE EHEA_BMASK_IBM(56, 63)
335 #define H_ALL_RES_EQ_MAX_EQE EHEA_BMASK_IBM(32, 63)
338 #define H_ALL_RES_EQ_LIOBN EHEA_BMASK_IBM(32, 63)
341 #define H_ALL_RES_EQ_ACT_EQE EHEA_BMASK_IBM(32, 63)
344 #define H_ALL_RES_EQ_ACT_PS EHEA_BMASK_IBM(32, 63)
348 #define H_ALL_RES_EQ_ACT_EQ_IST_1 EHEA_BMASK_IBM(40, 63)
351 #define H_ALL_RES_EQ_ACT_EQ_IST_2 EHEA_BMASK_IBM(40, 63)
354 #define H_ALL_RES_EQ_ACT_EQ_IST_3 EHEA_BMASK_IBM(40, 63)
357 #define H_ALL_RES_EQ_ACT_EQ_IST_4 EHEA_BMASK_IBM(40, 63)
368 | EHEA_BMASK_SET(H_ALL_RES_EQ_NEQ, eq_attr->type ? 1 : 0) in ehea_h_alloc_resource_eq()
369 | EHEA_BMASK_SET(H_ALL_RES_EQ_INH_EQE_GEN, !eq_attr->eqe_gen) in ehea_h_alloc_resource_eq()
376 eq_attr->max_nr_of_eqes, /* R6 */ in ehea_h_alloc_resource_eq()
377 0, 0, 0, 0, 0, 0); /* R7-R10 */ in ehea_h_alloc_resource_eq()
379 *eq_handle = outs[0]; in ehea_h_alloc_resource_eq()
380 eq_attr->act_nr_of_eqes = outs[3]; in ehea_h_alloc_resource_eq()
381 eq_attr->nr_pages = outs[4]; in ehea_h_alloc_resource_eq()
382 eq_attr->ist1 = outs[5]; in ehea_h_alloc_resource_eq()
383 eq_attr->ist2 = outs[6]; in ehea_h_alloc_resource_eq()
384 eq_attr->ist3 = outs[7]; in ehea_h_alloc_resource_eq()
385 eq_attr->ist4 = outs[8]; in ehea_h_alloc_resource_eq()
405 0, 0, 0, 0); /* R9-R12 */ in ehea_h_modify_ehea_qp()
407 *inv_attr_id = outs[0]; in ehea_h_modify_ehea_qp()
430 0, 0); /* R9-R10 */ in ehea_h_register_rpage()
447 0, 0, 0, 0); /* R9-R12 */ in ehea_h_register_smr()
449 mr->handle = outs[0]; in ehea_h_register_smr()
450 mr->lkey = (u32)outs[2]; in ehea_h_register_smr()
464 0, 0, 0, 0, 0, 0); /* R7-R12 */ in ehea_h_disable_and_get_hea()
474 0, 0, 0, 0); /* R7-R10 */ in ehea_h_free_resource()
492 0, 0, 0); /* R10-R12 */ in ehea_h_alloc_resource_mr()
494 *mr_handle = outs[0]; in ehea_h_alloc_resource_mr()
522 0, 0, 0, 0, 0); /* R6-R10 */ in ehea_h_query_ehea()
535 u64 arr_index = 0; in ehea_h_query_ehea_port()
546 0, 0); /* R9-R10 */ in ehea_h_query_ehea_port()
555 u64 arr_index = 0; in ehea_h_modify_ehea_port()
570 0, 0, 0, 0); /* R9-R12 */ in ehea_h_modify_ehea_port()
591 0, 0); /* R9-R12 */ in ehea_h_reg_dereg_bcmc()
601 0, 0, 0, 0); /* R7-R12 */ in ehea_h_reset_events()
611 0, 0, 0, 0); /* R7-R12 */ in ehea_h_error_data()