Home
last modified time | relevance | path

Searched refs:pwrb_context (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/scsi/be2iscsi/ !
Dbe_main.c968 beiscsi_get_wrb_handle(struct hwi_wrb_context *pwrb_context, in beiscsi_get_wrb_handle() argument
974 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 …]
Dbe_mgmt.h224 struct hwi_wrb_context *pwrb_context);
228 struct hwi_wrb_context *pwrb_context);
Dbe_mgmt.c1287 struct hwi_wrb_context *pwrb_context) in beiscsi_offload_cxn_v0() argument
1331 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() argument
1372 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()
Dbe_iscsi.c181 struct hwi_wrb_context *pwrb_context; in beiscsi_conn_bind() local
227 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() local
989 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_put_cid()
990 cid_post_ulp = pwrb_context->ulp_num; in beiscsi_put_cid()
Dbe_cmds.c1078 struct hwi_wrb_context *pwrb_context, in be_cmd_wrbq_create() argument
1109 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()
Dbe_main.h462 struct hwi_wrb_context *pwrb_context; member
Dbe_cmds.h854 struct hwi_wrb_context *pwrb_context,