/Linux-v4.19/drivers/infiniband/sw/rxe/ |
D | rxe_queue.h | 64 __u32 consumer_index; member 111 return ((q->buf->producer_index - q->buf->consumer_index) in queue_empty() 117 return ((q->buf->producer_index + 1 - q->buf->consumer_index) in queue_full() 129 q->buf->consumer_index = (q->buf->consumer_index + 1) in advance_consumer() 141 return q->buf->data + ((q->buf->consumer_index & q->index_mask) in consumer_addr() 150 static inline unsigned int consumer_index(struct rxe_queue *q) in consumer_index() function 152 return q->buf->consumer_index; in consumer_index() 170 return (q->buf->producer_index - q->buf->consumer_index) in queue_count()
|
D | rxe_req.c | 79 qp->req.wqe_index = consumer_index(qp->sq.queue); in req_retry() 83 for (wqe_index = consumer_index(qp->sq.queue); in req_retry() 148 consumer_index(qp->sq.queue)) || in req_next_wqe() 182 (qp->req.wqe_index != consumer_index(qp->sq.queue)))) { in req_next_wqe() 601 qp->req.wqe_index = consumer_index(qp->sq.queue); in rxe_requester()
|
/Linux-v4.19/drivers/net/ethernet/brocade/bna/ |
D | bfa_msgq.h | 29 (((_q)->consumer_index - (_q)->producer_index - 1) & ((_q)->depth - 1)) 71 u16 consumer_index; member 97 u16 consumer_index; member
|
D | bfa_msgq.c | 63 cmdq->consumer_index = 0; in cmdq_sm_stopped_entry() 242 cmdq->consumer_index = ntohs(dbell->idx.cmdq_ci); in bfa_msgq_cmdq_ci_update() 341 rspq->consumer_index = 0; in rspq_sm_stopped_entry() 459 dbell->idx.rspq_ci = htons(rspq->consumer_index); in bfa_msgq_rspq_dbell() 478 while (rspq->consumer_index != rspq->producer_index) { in bfa_msgq_rspq_pi_update() 480 rspq_qe += (rspq->consumer_index * BFI_MSGQ_RSP_ENTRY_SIZE); in bfa_msgq_rspq_pi_update() 491 BFA_MSGQ_INDX_ADD(rspq->consumer_index, num_entries, in bfa_msgq_rspq_pi_update() 653 ci = rspq->consumer_index; in bfa_msgq_rsp_copy()
|
D | bna.h | 66 (((_q_ptr)->consumer_index - (_q_ptr)->producer_index - 1) & \ 69 ((((_q_ptr)->producer_index - (_q_ptr)->consumer_index)) & \
|
D | bna_types.h | 428 u32 consumer_index; member 557 u32 consumer_index; member
|
D | bnad_ethtool.c | 810 buf[bi++] = rcb->consumer_index; in bnad_per_q_stats_fill() 825 buf[bi++] = rcb->consumer_index; in bnad_per_q_stats_fill() 840 buf[bi++] = tcb->consumer_index; in bnad_per_q_stats_fill()
|
D | bnad.c | 181 cons = tcb->consumer_index; in bnad_txcmpl_process() 203 tcb->consumer_index = hw_cons; in bnad_txcmpl_process() 542 ci = rcb->consumer_index; in bnad_cq_setup_skb_frags() 635 sop_ci = rcb->consumer_index; in bnad_cq_process() 728 BNA_QE_INDX_ADD(rcb->consumer_index, nvecs, rcb->q_depth); in bnad_cq_process() 2986 if ((*tcb->hw_consumer_index != tcb->consumer_index) && in bnad_start_xmit()
|
D | bna_tx_rx.c | 2129 q0->rcb->producer_index = q0->rcb->consumer_index = 0; in bna_bfi_rx_enet_start_rsp() 2131 q1->rcb->producer_index = q1->rcb->consumer_index = 0; in bna_bfi_rx_enet_start_rsp() 3302 txq->tcb->producer_index = txq->tcb->consumer_index = 0; in bna_bfi_tx_enet_start_rsp()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fw_tracer.c | 641 start_offset = tracer->buff.consumer_index * TRACER_BLOCK_SIZE_BYTE; in mlx5_fw_tracer_handle_traces() 660 (tracer->buff.consumer_index - 1) & (block_count - 1); in mlx5_fw_tracer_handle_traces() 674 tracer->buff.consumer_index = in mlx5_fw_tracer_handle_traces() 675 (tracer->buff.consumer_index + 1) & (block_count - 1); in mlx5_fw_tracer_handle_traces() 686 tracer->buff.consumer_index = in mlx5_fw_tracer_handle_traces() 687 (tracer->buff.consumer_index + 1) & (block_count - 1); in mlx5_fw_tracer_handle_traces() 690 start_offset = tracer->buff.consumer_index * TRACER_BLOCK_SIZE_BYTE; in mlx5_fw_tracer_handle_traces() 781 tracer->buff.consumer_index = 0; in mlx5_fw_tracer_ownership_change()
|
D | fw_tracer.h | 82 u32 consumer_index; member
|
/Linux-v4.19/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 202 pool->consumer_index = 0; in ibmveth_alloc_buffer_pool() 244 free_index = pool->consumer_index; in ibmveth_replenish_buffer_pool() 245 pool->consumer_index++; in ibmveth_replenish_buffer_pool() 246 if (pool->consumer_index >= pool->size) in ibmveth_replenish_buffer_pool() 247 pool->consumer_index = 0; in ibmveth_replenish_buffer_pool() 293 if (pool->consumer_index == 0) in ibmveth_replenish_buffer_pool() 294 pool->consumer_index = pool->size - 1; in ibmveth_replenish_buffer_pool() 296 pool->consumer_index--; in ibmveth_replenish_buffer_pool()
|
D | ibmveth.h | 127 u32 consumer_index; member
|
D | ibmvnic.c | 587 tx_pool->consumer_index = 0; in reset_one_tx_pool() 673 tx_pool->consumer_index = 0; in init_one_tx_pool() 1484 index = tx_pool->free_map[tx_pool->consumer_index]; in ibmvnic_xmit() 1494 tx_pool->free_map[tx_pool->consumer_index] = IBMVNIC_INVALID_MAP; in ibmvnic_xmit() 1521 tx_pool->consumer_index = in ibmvnic_xmit() 1522 (tx_pool->consumer_index + 1) % tx_pool->num_buffers; in ibmvnic_xmit() 1638 if (tx_pool->consumer_index == 0) in ibmvnic_xmit() 1639 tx_pool->consumer_index = in ibmvnic_xmit() 1642 tx_pool->consumer_index--; in ibmvnic_xmit() 1643 tx_pool->free_map[tx_pool->consumer_index] = index; in ibmvnic_xmit()
|
D | ibmvnic.h | 898 int consumer_index; member
|
/Linux-v4.19/drivers/scsi/pm8001/ |
D | pm8001_hwi.c | 246 pm8001_ha->inbnd_q_tbl[i].consumer_index = 0; in init_default_table_values() 1300 u32 offset, consumer_index; in pm8001_mpi_msg_free_get() local 1311 consumer_index = pm8001_read_32(circularQ->ci_virt); in pm8001_mpi_msg_free_get() 1312 circularQ->consumer_index = cpu_to_le32(consumer_index); in pm8001_mpi_msg_free_get() 1314 le32_to_cpu(circularQ->consumer_index)) { in pm8001_mpi_msg_free_get() 1368 circularQ->consumer_index)); in pm8001_mpi_build_cmd()
|
D | pm8001_sas.h | 456 __le32 consumer_index; member
|
D | pm80xx_hwi.c | 523 pm8001_ha->inbnd_q_tbl[i].consumer_index = 0; in init_default_table_values()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | mlx4.h | 337 __be32 consumer_index; member 357 __be32 consumer_index; member
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_cq.c | 74 __be32 consumer_index; member
|
D | mthca_eq.c | 63 __be32 consumer_index; member
|