Searched refs:next_prod_idx (Results 1 – 2 of 2) sorted by relevance
346 u16 curr_prod_idx, next_prod_idx; in cmdq_sync_cmd_direct_resp() local367 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() local444 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()
1441 u32 next_prod_idx = tgt->rq_prod_idx + num_items; in bnx2fc_return_rqe() local1442 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()