Searched refs:pwrb_context (Results 1 – 7 of 7) sorted by relevance
951 beiscsi_get_wrb_handle(struct hwi_wrb_context *pwrb_context, in beiscsi_get_wrb_handle() argument957 spin_lock_irqsave(&pwrb_context->wrb_lock, flags); in beiscsi_get_wrb_handle()958 if (!pwrb_context->wrb_handles_available) { in beiscsi_get_wrb_handle()959 spin_unlock_irqrestore(&pwrb_context->wrb_lock, flags); in beiscsi_get_wrb_handle()962 pwrb_handle = pwrb_context->pwrb_handle_base[pwrb_context->alloc_index]; in beiscsi_get_wrb_handle()963 pwrb_context->wrb_handles_available--; in beiscsi_get_wrb_handle()964 if (pwrb_context->alloc_index == (wrbs_per_cxn - 1)) in beiscsi_get_wrb_handle()965 pwrb_context->alloc_index = 0; in beiscsi_get_wrb_handle()967 pwrb_context->alloc_index++; in beiscsi_get_wrb_handle()968 spin_unlock_irqrestore(&pwrb_context->wrb_lock, flags); in beiscsi_get_wrb_handle()[all …]
224 struct hwi_wrb_context *pwrb_context);228 struct hwi_wrb_context *pwrb_context);
1284 struct hwi_wrb_context *pwrb_context) in beiscsi_offload_cxn_v0() argument1328 if (pwrb_context->plast_wrb) in beiscsi_offload_cxn_v0()1331 pwrb_context->plast_wrb, in beiscsi_offload_cxn_v0()1333 pwrb_context->plast_wrb = pwrb; in beiscsi_offload_cxn_v0()1355 struct hwi_wrb_context *pwrb_context) in beiscsi_offload_cxn_v2() argument1369 if (pwrb_context->plast_wrb) in beiscsi_offload_cxn_v2()1372 pwrb_context->plast_wrb, in beiscsi_offload_cxn_v2()1374 pwrb_context->plast_wrb = pwrb; in beiscsi_offload_cxn_v2()
179 struct hwi_wrb_context *pwrb_context; in beiscsi_conn_bind() local221 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_conn_bind()222 beiscsi_conn->doorbell_offset = pwrb_context->doorbell_offset; in beiscsi_conn_bind()970 struct hwi_wrb_context *pwrb_context; in beiscsi_put_cid() local976 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_put_cid()977 cid_post_ulp = pwrb_context->ulp_num; in beiscsi_put_cid()
1078 struct hwi_wrb_context *pwrb_context, in be_cmd_wrbq_create() argument1109 pwrb_context->cid = wrbq->id; in be_cmd_wrbq_create()1111 pwrb_context->doorbell_offset = DB_TXULP0_OFFSET; in be_cmd_wrbq_create()1112 pwrb_context->ulp_num = BEISCSI_ULP0; in be_cmd_wrbq_create()1114 pwrb_context->ulp_num = resp->ulp_num; in be_cmd_wrbq_create()1115 pwrb_context->doorbell_offset = resp->doorbell_offset; in be_cmd_wrbq_create()
463 struct hwi_wrb_context *pwrb_context; member
854 struct hwi_wrb_context *pwrb_context,