Searched refs:io_cq (Results 1 – 7 of 7) sorted by relevance
/freebsd/sys/contrib/ena-com/ |
H A D | ena_eth_com.h | 97 ENA_REG_WRITE32(io_cq->bus, intr_reg->intr_control, io_cq->unmask_reg); in ena_com_unmask_intr() 204 if (!io_cq->numa_node_cfg_reg) in ena_com_update_numa_node() 210 ENA_REG_WRITE32(io_cq->bus, numa_cfg.numa_cfg, io_cq->numa_node_cfg_reg); in ena_com_update_numa_node() 220 io_cq->head++; in ena_com_cq_inc_head() 223 if (unlikely((io_cq->head & (io_cq->q_depth - 1)) == 0)) in ena_com_cq_inc_head() 224 io_cq->phase ^= 1; in ena_com_cq_inc_head() 234 masked_head = io_cq->head & (io_cq->q_depth - 1); in ena_com_tx_comp_req_id_get() 235 expected_phase = io_cq->phase; in ena_com_tx_comp_req_id_get() 238 ((uintptr_t)io_cq->cdesc_addr.virt_addr + in ena_com_tx_comp_req_id_get() 252 if (unlikely(*req_id >= io_cq->q_depth)) { in ena_com_tx_comp_req_id_get() [all …]
|
H A D | ena_eth_com.c | 37 struct ena_com_io_cq *io_cq) in ena_com_get_next_rx_cdesc() argument 43 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_get_next_rx_cdesc() 44 expected_phase = io_cq->phase; in ena_com_get_next_rx_cdesc() 257 idx &= (io_cq->q_depth - 1); in ena_com_rx_cdesc_idx_to_ptr() 260 idx * io_cq->cdesc_entry_size_in_bytes); in ena_com_rx_cdesc_idx_to_ptr() 279 ena_com_cq_inc_head(io_cq); in ena_com_cdesc_rx_pkt_get() 297 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_cdesc_rx_pkt_get() 300 io_cq->cur_rx_pkt_cdesc_count = 0; in ena_com_cdesc_rx_pkt_get() 307 io_cq->cur_rx_pkt_cdesc_count = count; in ena_com_cdesc_rx_pkt_get() 589 u16 q_depth = io_cq->q_depth; in ena_com_rx_pkt() [all …]
|
H A D | ena_com.c | 453 memset(&io_cq->cdesc_addr, 0x0, sizeof(io_cq->cdesc_addr)); in ena_com_init_io_cq() 461 size = io_cq->cdesc_entry_size_in_bytes * io_cq->q_depth; in ena_com_init_io_cq() 462 io_cq->bus = ena_dev->bus; in ena_com_init_io_cq() 486 io_cq->phase = 1; in ena_com_init_io_cq() 487 io_cq->head = 0; in ena_com_init_io_cq() 984 size = io_cq->cdesc_entry_size_in_bytes * io_cq->q_depth; in ena_com_io_queue_free() 1484 io_cq->numa_node_cfg_reg = in ena_com_create_io_cq() 1488 ena_trc_dbg(ena_dev, "Created cq[%u], depth[%u]\n", io_cq->idx, io_cq->q_depth); in ena_com_create_io_cq() 2144 struct ena_com_io_cq *io_cq; in ena_com_create_io_queue() local 2157 memset(io_cq, 0x0, sizeof(*io_cq)); in ena_com_create_io_queue() [all …]
|
H A D | ena_com.h | 573 struct ena_com_io_cq **io_cq); 1007 struct ena_com_io_cq *io_cq); 1018 struct ena_com_io_cq *io_cq); 1114 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 1116 return container_of(io_cq, struct ena_com_dev, io_cq_queues[io_cq->qid]); in ena_com_io_cq_to_ena_dev()
|
/freebsd/sys/dev/ena/ |
H A D | ena_datapath.c | 50 struct ena_com_io_cq *io_cq, uint16_t *req_id); 75 struct ena_com_io_cq *io_cq; in ena_cleanup() local 89 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; in ena_cleanup() 109 ena_com_unmask_intr(io_cq, &intr_reg); in ena_cleanup() 205 rc = ena_com_tx_comp_req_id_get(io_cq, req_id); in ena_get_tx_req_id() 243 struct ena_com_io_cq *io_cq; in ena_tx_cleanup() local 256 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; in ena_tx_cleanup() 268 rc = ena_get_tx_req_id(tx_ring, io_cq, &req_id); in ena_tx_cleanup() 563 struct ena_com_io_cq *io_cq; in ena_rx_cleanup() local 584 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; in ena_rx_cleanup() [all …]
|
H A D | ena_netmap.c | 46 struct ena_com_io_cq *io_cq; member 805 while (ena_com_tx_comp_req_id_get(ctx->io_cq, &req_id) >= 0) { in ena_netmap_tx_cleanup() 941 bus_dmamap_sync(ctx->io_cq->cdesc_addr.mem_handle.tag, in ena_netmap_rx_frame() 942 ctx->io_cq->cdesc_addr.mem_handle.map, BUS_DMASYNC_POSTREAD); in ena_netmap_rx_frame() 944 rc = ena_com_rx_pkt(ctx->io_cq, ctx->io_sq, &ena_rx_ctx); in ena_netmap_rx_frame() 981 bus_dmamap_sync(ctx->io_cq->cdesc_addr.mem_handle.tag, in ena_netmap_rx_frame() 982 ctx->io_cq->cdesc_addr.mem_handle.map, BUS_DMASYNC_PREREAD); in ena_netmap_rx_frame() 1067 ctx->io_cq = &ctx->adapter->ena_dev->io_cq_queues[ena_qid]; in ena_netmap_fill_ctx()
|
H A D | ena.c | 2021 struct ena_com_io_cq *io_cq; in ena_unmask_all_io_irqs() local 2030 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; in ena_unmask_all_io_irqs() 2034 ena_com_unmask_intr(io_cq, &intr_reg); in ena_unmask_all_io_irqs()
|