/src/sys/external/bsd/ena-com/ |
ena_eth_com.h | 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) [all...] |
ena_eth_com.c | 37 struct ena_com_io_cq *io_cq) 43 head_masked = io_cq->head & (io_cq->q_depth - 1); 44 expected_phase = io_cq->phase; 46 cdesc = (struct ena_eth_io_rx_cdesc_base *)(io_cq->cdesc_addr.virt_addr 47 + (head_masked * io_cq->cdesc_entry_size_in_bytes)); 58 static inline void ena_com_cq_inc_head(struct ena_com_io_cq *io_cq) 60 io_cq->head++; 63 if (unlikely((io_cq->head & (io_cq->q_depth - 1)) == 0) [all...] |
ena_com.c | 422 struct ena_com_io_cq *io_cq) 427 memset(&io_cq->cdesc_addr, 0x0, sizeof(io_cq->cdesc_addr)); 430 io_cq->cdesc_entry_size_in_bytes = 431 (io_cq->direction == ENA_COM_IO_QUEUE_DIRECTION_TX) ? 435 size = io_cq->cdesc_entry_size_in_bytes * io_cq->q_depth; 436 io_cq->bus = ena_dev->bus; 440 io_cq->cdesc_addr.virt_addr, 441 io_cq->cdesc_addr.phys_addr 1787 struct ena_com_io_cq *io_cq; local in function:ena_com_create_io_queue 1847 struct ena_com_io_cq *io_cq; local in function:ena_com_destroy_io_queue [all...] |
ena_com.h | 489 * @io_cq - IO completion queue handler. 495 struct ena_com_io_cq **io_cq); 853 * @io_cq - io completion queue handler 860 struct ena_com_io_cq *io_cq); 864 * @io_cq - io completion queue handler 871 struct ena_com_io_cq *io_cq);
|
/src/sys/dev/pci/ |
if_ena.c | 1394 struct ena_com_io_cq* io_cq; local in function:ena_tx_cleanup 1408 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; 1415 rc = ena_com_tx_comp_req_id_get(io_cq, &req_id); 1453 ena_com_update_dev_comp_head(io_cq); 1468 ena_com_update_dev_comp_head(io_cq); 1690 struct ena_com_io_cq* io_cq; local in function:ena_rx_cleanup 1706 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; 1716 rc = ena_com_rx_pkt(io_cq, io_sq, &ena_rx_ctx); 1868 struct ena_com_io_cq* io_cq; local in function:ena_cleanup 1882 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid] 2158 struct ena_com_io_cq* io_cq; local in function:ena_unmask_all_io_irqs [all...] |