Home | History | Annotate | Download | only in ena-com

Lines Matching refs:io_cq

85 int ena_com_rx_pkt(struct ena_com_io_cq *io_cq,
93 int ena_com_tx_comp_req_id_get(struct ena_com_io_cq *io_cq, u16 *req_id);
95 static inline void ena_com_unmask_intr(struct ena_com_io_cq *io_cq,
98 ENA_REG_WRITE32(io_cq->bus, intr_reg->intr_control, io_cq->unmask_reg);
145 static inline int ena_com_update_dev_comp_head(struct ena_com_io_cq *io_cq)
150 head = io_cq->head;
151 unreported_comp = head - io_cq->last_head_update;
152 need_update = unreported_comp > (io_cq->q_depth / ENA_COMP_HEAD_THRESH);
154 if (io_cq->cq_head_db_reg && need_update) {
156 io_cq->qid, head);
157 ENA_REG_WRITE32(io_cq->bus, head, io_cq->cq_head_db_reg);
158 io_cq->last_head_update = head;
164 static inline void ena_com_update_numa_node(struct ena_com_io_cq *io_cq,
169 if (!io_cq->numa_node_cfg_reg)
175 ENA_REG_WRITE32(io_cq->bus, numa_cfg.numa_cfg, io_cq->numa_node_cfg_reg);