Searched refs:io_cq (Results 1 – 4 of 4) sorted by relevance
| /dpdk/drivers/net/ena/base/ |
| H A D | ena_eth_com.h | 72 ENA_REG_WRITE32(io_cq->bus, intr_reg->intr_control, io_cq->unmask_reg); in ena_com_unmask_intr() 180 head = io_cq->head; in ena_com_update_dev_comp_head() 187 io_cq->qid, head); in ena_com_update_dev_comp_head() 188 ENA_REG_WRITE32(io_cq->bus, head, io_cq->cq_head_db_reg); in ena_com_update_dev_comp_head() 201 if (!io_cq->numa_node_cfg_reg) in ena_com_update_numa_node() 207 ENA_REG_WRITE32(io_cq->bus, numa_cfg.numa_cfg, io_cq->numa_node_cfg_reg); in ena_com_update_numa_node() 217 io_cq->head++; in ena_com_cq_inc_head() 220 if (unlikely((io_cq->head & (io_cq->q_depth - 1)) == 0)) in ena_com_cq_inc_head() 221 io_cq->phase ^= 1; in ena_com_cq_inc_head() 231 masked_head = io_cq->head & (io_cq->q_depth - 1); in ena_com_tx_comp_req_id_get() [all …]
|
| H A D | ena_eth_com.c | 9 struct ena_com_io_cq *io_cq) in ena_com_get_next_rx_cdesc() argument 15 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_get_next_rx_cdesc() 16 expected_phase = io_cq->phase; in ena_com_get_next_rx_cdesc() 229 idx &= (io_cq->q_depth - 1); in ena_com_rx_cdesc_idx_to_ptr() 247 ena_com_cq_inc_head(io_cq); in ena_com_cdesc_rx_pkt_get() 255 count += io_cq->cur_rx_pkt_cdesc_count; in ena_com_cdesc_rx_pkt_get() 257 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_cdesc_rx_pkt_get() 259 io_cq->cur_rx_pkt_cdesc_count = 0; in ena_com_cdesc_rx_pkt_get() 266 io_cq->cur_rx_pkt_cdesc_count += count; in ena_com_cdesc_rx_pkt_get() 554 u16 q_depth = io_cq->q_depth; in ena_com_rx_pkt() [all …]
|
| H A D | ena_com.c | 411 memset(&io_cq->cdesc_addr, 0x0, sizeof(io_cq->cdesc_addr)); in ena_com_init_io_cq() 419 size = io_cq->cdesc_entry_size_in_bytes * io_cq->q_depth; in ena_com_init_io_cq() 420 io_cq->bus = ena_dev->bus; in ena_com_init_io_cq() 444 io_cq->phase = 1; in ena_com_init_io_cq() 445 io_cq->head = 0; in ena_com_init_io_cq() 942 size = io_cq->cdesc_entry_size_in_bytes * io_cq->q_depth; in ena_com_io_queue_free() 1444 io_cq->cq_head_db_reg = in ena_com_create_io_cq() 1449 io_cq->numa_node_cfg_reg = in ena_com_create_io_cq() 1453 ena_trc_dbg(ena_dev, "Created cq[%u], depth[%u]\n", io_cq->idx, io_cq->q_depth); in ena_com_create_io_cq() 1907 memset(io_cq, 0x0, sizeof(*io_cq)); in ena_com_create_io_queue() [all …]
|
| H A D | ena_com.h | 453 struct ena_com_io_cq **io_cq); 855 struct ena_com_io_cq *io_cq); 866 struct ena_com_io_cq *io_cq); 962 static inline struct ena_com_dev *ena_com_io_cq_to_ena_dev(struct ena_com_io_cq *io_cq) in ena_com_io_cq_to_ena_dev() argument 964 return container_of(io_cq, struct ena_com_dev, io_cq_queues[io_cq->qid]); in ena_com_io_cq_to_ena_dev()
|