/freebsd-11-stable/sys/dev/liquidio/base/ |
H A D | cn23xx_pf_device.c | 453 struct lio_droq *droq = oct->droq[oq_no]; local 462 droq->desc_ring_dma); 463 lio_write_csr32(oct, LIO_CN23XX_SLI_OQ_SIZE(oq_no), droq->max_count); 466 droq->buffer_size); 469 droq->pkts_sent_reg = LIO_CN23XX_SLI_OQ_PKTS_SENT(oq_no); 470 droq->pkts_credit_reg = LIO_CN23XX_SLI_OQ_PKTS_CREDIT(oq_no); 667 struct lio_droq *droq = oct->droq[ioq_vector->droq_index]; local 671 if (droq [all...] |
H A D | lio_device.c | 263 if ((oct->io_qmask.oq & BIT_ULL(i)) && (oct->droq[i])) 264 free(oct->droq[i], M_DEVBUF); 865 return (oct->droq[q_no]->max_count); 1011 lio_enable_irq(struct lio_droq *droq, struct lio_instr_queue *iq) argument 1018 if (droq != NULL) { 1019 oct = droq->oct_dev; 1020 pkts_pend = atomic_load_acq_int(&droq->pkts_pending); 1021 mtx_lock(&droq->lock); 1022 lio_write_csr32(oct, droq->pkts_sent_reg, 1023 droq [all...] |
H A D | lio_device.h | 434 struct lio_droq *droq[LIO_MAX_POSSIBLE_OUTPUT_QUEUES]; member in struct:octeon_device 808 void lio_enable_irq(struct lio_droq *droq, struct lio_instr_queue *iq);
|
H A D | lio_droq.c | 105 * @param droq - Droq on which count is checked. 109 lio_droq_check_hw_for_pkts(struct lio_droq *droq) argument 111 struct octeon_device *oct = droq->oct_dev; 115 pkt_count = lio_read_csr32(oct, droq->pkts_sent_reg); 117 last_count = pkt_count - droq->pkt_count; 118 droq->pkt_count = pkt_count; 122 atomic_add_int(&droq->pkts_pending, last_count); 128 lio_droq_compute_max_packet_bufs(struct lio_droq *droq) argument 138 droq->max_empty_descs = 0; 141 droq 149 lio_droq_reset_indices(struct lio_droq *droq) argument 159 lio_droq_destroy_ring_buffers(struct octeon_device *oct, struct lio_droq *droq) argument 175 lio_droq_setup_ring_buffers(struct octeon_device *oct, struct lio_droq *droq) argument 210 struct lio_droq *droq = oct->droq[q_no]; local 237 struct lio_droq *droq = ptr; local 257 struct lio_droq *droq; local 370 lio_create_recv_info(struct octeon_device *octeon_dev, struct lio_droq *droq, uint32_t buf_cnt, uint32_t idx) argument 414 lio_droq_refill_pullup_descs(struct lio_droq *droq, struct lio_droq_desc *desc_ring) argument 459 lio_droq_refill(struct octeon_device *octeon_dev, struct lio_droq *droq) argument 525 lio_droq_dispatch_pkt(struct octeon_device *oct, struct lio_droq *droq, union octeon_rh *rh, struct lio_droq_info *info) argument 560 lio_droq_drop_packets(struct octeon_device *oct, struct lio_droq *droq, uint32_t cnt) argument 589 lio_droq_fast_process_packets(struct octeon_device *oct, struct lio_droq *droq, uint32_t pkts_to_process) argument 726 lio_droq_process_packets(struct octeon_device *oct, struct lio_droq *droq, uint32_t budget) argument 772 struct lio_droq *droq; local 804 struct lio_droq *droq; local [all...] |
H A D | lio_droq.h | 235 * the pointer to buffer from droq and length of 343 * Allocates space for the descriptor ring for the droq and sets the 347 * @param q_no - droq no. 356 * Frees the space for descriptor ring for the droq. 359 * @param q_no - droq no. 365 * Register a change in droq operations. The ops field has a pointer to a 421 uint32_t lio_droq_check_hw_for_pkts(struct lio_droq *droq); 427 struct lio_droq *droq, uint32_t budget); 430 struct lio_droq *droq);
|
/freebsd-11-stable/sys/dev/liquidio/ |
H A D | lio_core.c | 241 /* droq creation and local register settings. */ 247 lio_dev_dbg(oct, "Using default droq %d\n", q_no); 255 lio_write_csr32(oct, oct->droq[q_no]->pkts_credit_reg, 256 oct->droq[q_no]->max_count); 267 struct lio_droq *droq = rxq; local 275 droq->stats.rx_dropped++; 336 mbuf->m_pkthdr.flowid = droq->q_no; 376 if (droq->lro.lro_cnt) { 377 if (tcp_lro_rx(&droq->lro, mbuf, 0) == 0) { 378 droq 411 struct lio_droq *droq; local 480 struct lio_droq *droq; local 501 struct lio_droq *droq = oct->droq[ioq_vector->droq_index]; local [all...] |
H A D | lio_main.c | 303 lio_droq_bh(oct_dev->droq[0], 0); 558 octeon_dev->droq[i] = malloc(sizeof(*octeon_dev->droq[i]), 560 if (octeon_dev->droq[i] == NULL) 594 octeon_dev->droq[j]->pkts_credit_reg, 595 octeon_dev->droq[j]->max_count); 1076 counter += oct->droq[q_no]->stats.rx_pkts_received; 1088 counter += oct->droq[q_no]->stats.rx_bytes_received; 1100 counter += oct->droq[q_no]->stats.rx_dropped; 1180 struct lio_droq *droq; local 1198 struct lio_droq *droq; local 1814 struct lio_droq *droq; local [all...] |
H A D | lio_sysctl.c | 578 &oct_dev->droq[i]->stats.rx_pkts_received, 583 &oct_dev->droq[i]->stats.rx_bytes_received, 588 &oct_dev->droq[i]->stats.dropped_nomem, 592 &oct_dev->droq[i]->stats.dropped_toomany, 596 &oct_dev->droq[i]->stats.rx_dropped, 602 &oct_dev->droq[i]->stats.pkts_received, 607 &oct_dev->droq[i]->stats.bytes_received, 612 &oct_dev->droq[i]->stats.dropped_nodispatch, 617 &oct_dev->droq[i]->stats.rx_vxlan, 622 &oct_dev->droq[ [all...] |