Home
last modified time | relevance | path

Searched refs:producer_index (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_queue.h35 __u32 producer_index; member
79 return ((q->buf->producer_index - q->buf->consumer_index) in queue_empty()
85 return ((q->buf->producer_index + 1 - q->buf->consumer_index) in queue_full()
91 q->buf->producer_index = (q->buf->producer_index + 1) in advance_producer()
103 return q->buf->data + ((q->buf->producer_index & q->index_mask) in producer_addr()
113 static inline unsigned int producer_index(struct rxe_queue *q) in producer_index() function
115 return q->buf->producer_index; in producer_index()
138 return (q->buf->producer_index - q->buf->consumer_index) in queue_count()
Drxe_req.c54 wqe_index != producer_index(qp->sq.queue); in req_retry()
147 if (qp->req.wqe_index == producer_index(qp->sq.queue)) in req_next_wqe()
Drxe_qp.c245 qp->req.wqe_index = producer_index(qp->sq.queue); in rxe_qp_init_req()
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbfa_msgq.h21 (((_q)->consumer_index - (_q)->producer_index - 1) & ((_q)->depth - 1))
62 u16 producer_index; member
88 u16 producer_index; member
Dbfa_msgq.c54 cmdq->producer_index = 0; in cmdq_sm_stopped_entry()
193 dbell->idx.cmdq_pi = htons(cmdq->producer_index); in bfa_msgq_cmdq_dbell()
211 dst += (cmdq->producer_index * BFI_MSGQ_CMD_ENTRY_SIZE); in __cmd_copy()
219 BFA_MSGQ_INDX_ADD(cmdq->producer_index, 1, cmdq->depth); in __cmd_copy()
221 dst += (cmdq->producer_index * BFI_MSGQ_CMD_ENTRY_SIZE); in __cmd_copy()
332 rspq->producer_index = 0; in rspq_sm_stopped_entry()
468 rspq->producer_index = ntohs(dbell->idx.rspq_pi); in bfa_msgq_rspq_pi_update()
470 while (rspq->consumer_index != rspq->producer_index) { in bfa_msgq_rspq_pi_update()
Dbna_types.h419 u32 producer_index; member
548 u32 producer_index; member
612 u32 producer_index; member
Dbna_hw_defs.h262 (writel(BNA_DOORBELL_Q_PRD_IDX((_tcb)->producer_index), \
266 (writel(BNA_DOORBELL_Q_PRD_IDX((_rcb)->producer_index), \
Dbnad.c349 prod = rcb->producer_index; in bnad_rxq_refill_page()
403 rcb->producer_index = prod; in bnad_rxq_refill_page()
423 prod = rcb->producer_index; in bnad_rxq_refill_skb()
459 rcb->producer_index = prod; in bnad_rxq_refill_skb()
528 pi = ccb->producer_index; in bnad_cq_setup_skb_frags()
605 cmpl = &cq[ccb->producer_index]; in bnad_cq_process()
649 pi = ccb->producer_index; in bnad_cq_process()
722 cmpl = &cq[ccb->producer_index]; in bnad_cq_process()
724 BNA_QE_INDX_INC(ccb->producer_index, ccb->q_depth); in bnad_cq_process()
2959 prod = tcb->producer_index; in bnad_start_xmit()
[all …]
Dbna.h58 (((_q_ptr)->consumer_index - (_q_ptr)->producer_index - 1) & \
61 ((((_q_ptr)->producer_index - (_q_ptr)->consumer_index)) & \
Dbnad_ethtool.c766 ccb->producer_index; in bnad_per_q_stats_fill()
800 buf[bi++] = rcb->producer_index; in bnad_per_q_stats_fill()
815 buf[bi++] = rcb->producer_index; in bnad_per_q_stats_fill()
830 buf[bi++] = tcb->producer_index; in bnad_per_q_stats_fill()
Dbna_tx_rx.c2120 rxp->cq.ccb->producer_index = 0; in bna_bfi_rx_enet_start_rsp()
2121 q0->rcb->producer_index = q0->rcb->consumer_index = 0; in bna_bfi_rx_enet_start_rsp()
2123 q1->rcb->producer_index = q1->rcb->consumer_index = 0; in bna_bfi_rx_enet_start_rsp()
3294 txq->tcb->producer_index = txq->tcb->consumer_index = 0; in bna_bfi_tx_enet_start_rsp()
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
Dpm8001_hwi.c278 pm8001_ha->outbnd_q_tbl[i].producer_index = 0; in init_default_table_values()
1366 u32 producer_index; in pm8001_mpi_msg_free_set() local
1379 producer_index = pm8001_read_32(circularQ->pi_virt); in pm8001_mpi_msg_free_set()
1380 circularQ->producer_index = cpu_to_le32(producer_index); in pm8001_mpi_msg_free_set()
1384 circularQ->producer_index, msgHeader); in pm8001_mpi_msg_free_set()
1394 producer_index = pm8001_read_32(circularQ->pi_virt); in pm8001_mpi_msg_free_set()
1395 circularQ->producer_index = cpu_to_le32(producer_index); in pm8001_mpi_msg_free_set()
1397 circularQ->consumer_idx, circularQ->producer_index); in pm8001_mpi_msg_free_set()
1418 if (le32_to_cpu(circularQ->producer_index) in pm8001_mpi_msg_consume()
1430 circularQ->producer_index); in pm8001_mpi_msg_consume()
[all …]
Dpm8001_sas.h457 __le32 producer_index; member
Dpm80xx_hwi.c832 pm8001_ha->outbnd_q_tbl[i].producer_index = 0; in init_default_table_values()
4119 circularQ->producer_index = in process_oq()
4121 if (le32_to_cpu(circularQ->producer_index) == in process_oq()
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/
Dibmveth.h116 u32 producer_index; member
Dibmveth.c188 pool->producer_index = 0; in ibmveth_alloc_buffer_pool()
382 free_index = adapter->rx_buff_pool[pool].producer_index; in ibmveth_remove_buffer_from_pool()
383 adapter->rx_buff_pool[pool].producer_index++; in ibmveth_remove_buffer_from_pool()
384 if (adapter->rx_buff_pool[pool].producer_index >= in ibmveth_remove_buffer_from_pool()
386 adapter->rx_buff_pool[pool].producer_index = 0; in ibmveth_remove_buffer_from_pool()
Dibmvnic.h900 int producer_index; member
Dibmvnic.c644 tx_pool->producer_index = 0; in reset_one_tx_pool()
733 tx_pool->producer_index = 0; in init_one_tx_pool()
3128 tx_pool->free_map[tx_pool->producer_index] = index; in ibmvnic_complete_tx()
3129 tx_pool->producer_index = in ibmvnic_complete_tx()
3130 (tx_pool->producer_index + 1) % in ibmvnic_complete_tx()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dmlx4.h338 __be32 producer_index; member
358 __be32 producer_index; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_eq.c64 __be32 producer_index; member
Dmthca_cq.c75 __be32 producer_index; member
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h8066 __le32 producer_index; member
Dbnxt.c10642 *prod = le32_to_cpu(resp->producer_index); in bnxt_dbg_hwrm_ring_info_get()