Searched refs:pwrb_context (Results 1 – 7 of 7) sorted by relevance
968 beiscsi_get_wrb_handle(struct hwi_wrb_context *pwrb_context, in beiscsi_get_wrb_handle() argument974 spin_lock_irqsave(&pwrb_context->wrb_lock, flags); in beiscsi_get_wrb_handle()975 if (!pwrb_context->wrb_handles_available) { in beiscsi_get_wrb_handle()976 spin_unlock_irqrestore(&pwrb_context->wrb_lock, flags); in beiscsi_get_wrb_handle()979 pwrb_handle = pwrb_context->pwrb_handle_base[pwrb_context->alloc_index]; in beiscsi_get_wrb_handle()980 pwrb_context->wrb_handles_available--; in beiscsi_get_wrb_handle()981 if (pwrb_context->alloc_index == (wrbs_per_cxn - 1)) in beiscsi_get_wrb_handle()982 pwrb_context->alloc_index = 0; in beiscsi_get_wrb_handle()984 pwrb_context->alloc_index++; in beiscsi_get_wrb_handle()985 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);
1287 struct hwi_wrb_context *pwrb_context) in beiscsi_offload_cxn_v0() argument1331 if (pwrb_context->plast_wrb) in beiscsi_offload_cxn_v0()1334 pwrb_context->plast_wrb, in beiscsi_offload_cxn_v0()1336 pwrb_context->plast_wrb = pwrb; in beiscsi_offload_cxn_v0()1358 struct hwi_wrb_context *pwrb_context) in beiscsi_offload_cxn_v2() argument1372 if (pwrb_context->plast_wrb) in beiscsi_offload_cxn_v2()1375 pwrb_context->plast_wrb, in beiscsi_offload_cxn_v2()1377 pwrb_context->plast_wrb = pwrb; in beiscsi_offload_cxn_v2()
181 struct hwi_wrb_context *pwrb_context; in beiscsi_conn_bind() local227 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_conn_bind()228 beiscsi_conn->doorbell_offset = pwrb_context->doorbell_offset; in beiscsi_conn_bind()983 struct hwi_wrb_context *pwrb_context; in beiscsi_put_cid() local989 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_put_cid()990 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()
462 struct hwi_wrb_context *pwrb_context; member
854 struct hwi_wrb_context *pwrb_context,