Home
last modified time | relevance | path

Searched refs:curr_prod_idx (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_cmdq.c346 u16 curr_prod_idx, next_prod_idx; in cmdq_sync_cmd_direct_resp() local
356 hw_wqe = hinic_get_wqe(wq, WQE_LCMD_SIZE, &curr_prod_idx); in cmdq_sync_cmd_direct_resp()
367 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_sync_cmd_direct_resp()
373 cmdq->errcode[curr_prod_idx] = &errcode; in cmdq_sync_cmd_direct_resp()
376 cmdq->done[curr_prod_idx] = &done; in cmdq_sync_cmd_direct_resp()
380 curr_prod_idx); in cmdq_sync_cmd_direct_resp()
396 if (cmdq->errcode[curr_prod_idx] == &errcode) in cmdq_sync_cmd_direct_resp()
397 cmdq->errcode[curr_prod_idx] = NULL; in cmdq_sync_cmd_direct_resp()
399 if (cmdq->done[curr_prod_idx] == &done) in cmdq_sync_cmd_direct_resp()
400 cmdq->done[curr_prod_idx] = NULL; in cmdq_sync_cmd_direct_resp()
[all …]
Dhinic_hw_wq.c746 u16 curr_prod_idx, end_prod_idx; in hinic_get_wqe() local
760 curr_prod_idx = end_prod_idx - num_wqebbs; in hinic_get_wqe()
761 curr_prod_idx = MASKED_WQE_IDX(wq, curr_prod_idx); in hinic_get_wqe()
766 curr_pg = WQE_PAGE_NUM(wq, curr_prod_idx); in hinic_get_wqe()
769 *prod_idx = curr_prod_idx; in hinic_get_wqe()