Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_cmdq.c346 u16 curr_prod_idx, next_prod_idx; in cmdq_sync_cmd_direct_resp() local
367 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_sync_cmd_direct_resp()
368 if (next_prod_idx >= wq->q_depth) { in cmdq_sync_cmd_direct_resp()
370 next_prod_idx -= wq->q_depth; in cmdq_sync_cmd_direct_resp()
388 cmdq_set_db(cmdq, HINIC_CMDQ_SYNC, next_prod_idx); in cmdq_sync_cmd_direct_resp()
424 u16 curr_prod_idx, next_prod_idx; in cmdq_set_arm_bit() local
444 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_set_arm_bit()
445 if (next_prod_idx >= wq->q_depth) { in cmdq_set_arm_bit()
447 next_prod_idx -= wq->q_depth; in cmdq_set_arm_bit()
460 cmdq_set_db(cmdq, HINIC_CMDQ_SYNC, next_prod_idx); in cmdq_set_arm_bit()
/Linux-v5.4/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c1441 u32 next_prod_idx = tgt->rq_prod_idx + num_items; in bnx2fc_return_rqe() local
1442 if ((next_prod_idx & 0x7fff) == BNX2FC_RQ_WQES_MAX) { in bnx2fc_return_rqe()
1444 next_prod_idx += 0x8000 - BNX2FC_RQ_WQES_MAX; in bnx2fc_return_rqe()
1446 tgt->rq_prod_idx = next_prod_idx; in bnx2fc_return_rqe()