• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/liquidio/

Lines Matching refs:oct

51 	struct octeon_device	*oct = lio->oct_dev;
66 lio_dev_err(oct, "Feature change failed in core (ret: 0x%x)\n",
78 struct octeon_device *oct;
86 oct = lio->oct_dev;
101 lio_dev_info(oct, "MAC Address %pM is configured for VF %d\n",
104 lio_dev_info(oct, "MAC Address changed to %02x:%02x:%02x:%02x:%02x:%02x\n",
111 lio_dev_info(oct, "LED Flashing visual identification\n");
115 lio_dev_info(oct, "LED Flashing visual identification\n");
119 lio_dev_info(oct, "HW LRO Enabled\n");
123 lio_dev_info(oct, "HW LRO Disabled\n");
127 lio_dev_info(oct, "Firmware debug enabled\n");
131 lio_dev_info(oct, "Firmware debug disabled\n");
136 lio_dev_info(oct, "VLAN filter enabled\n");
138 lio_dev_info(oct, "VLAN filter disabled\n");
142 lio_dev_info(oct, "VLAN filter %d added\n",
147 lio_dev_info(oct, "VLAN filter %d removed\n",
152 lio_dev_info(oct, "Settings changed\n");
161 lio_dev_info(oct, "RX Checksum Offload Enabled\n");
163 lio_dev_info(oct, "RX Checksum Offload Disabled\n");
173 lio_dev_info(oct, "TX Checksum Offload Enabled\n");
175 lio_dev_info(oct, "TX Checksum Offload Disabled\n");
185 lio_dev_info(oct, "VxLAN Destination UDP PORT:%d ADDED\n",
188 lio_dev_info(oct, "VxLAN Destination UDP PORT:%d DELETED\n",
194 lio_dev_info(oct, "Set RX/TX flow control parameters\n");
199 lio_dev_info(oct, "FNV Enabled\n");
201 lio_dev_info(oct, "FNV Disabled\n");
206 lio_dev_info(oct, "Packet Steering Enabled\n");
209 lio_dev_info(oct, "Packet Steering Disabled\n");
215 lio_dev_info(oct, "Queue count updated to %d\n",
220 lio_dev_err(oct, "%s Unknown cmd %d\n", __func__,
228 * @param oct octeon device
235 lio_setup_droq(struct octeon_device *oct, int q_no, int num_descs,
240 lio_dev_dbg(oct, "Creating Droq: %d\n", q_no);
242 ret_val = lio_create_droq(oct, q_no, num_descs, desc_size, app_ctx);
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);
475 * @param oct octeon device
478 lio_schedule_droq_pkt_handlers(struct octeon_device *oct)
483 if (oct->int_status & LIO_DEV_INTR_PKT_DATA) {
484 for (oq_no = 0; oq_no < LIO_MAX_OUTPUT_QUEUES(oct); oq_no++) {
485 if (!(oct->io_qmask.oq & BIT_ULL(oq_no)))
488 droq = oct->droq[oq_no];
500 struct octeon_device *oct = ioq_vector->oct_dev;
501 struct lio_droq *droq = oct->droq[ioq_vector->droq_index];
504 ret = oct->fn_list.msix_interrupt_handler(ioq_vector);
507 struct lio_instr_queue *iq = oct->instr_queue[droq->q_no];
510 reschedule = lio_droq_process_packets(oct, droq, oct->rx_budget);
513 tx_done = lio_flush_iq(oct, iq, oct->tx_budget);
515 if ((oct->props.ifp != NULL) && (iq->br != NULL)) {
517 if (!drbr_empty(oct->props.ifp, iq->br))
518 lio_mq_start_locked(oct->props.ifp,
534 struct octeon_device *oct = (struct octeon_device *)dev;
537 oct->fn_list.disable_interrupt(oct, OCTEON_ALL_INTR);
539 oct->fn_list.process_interrupt_regs(oct);
541 lio_schedule_droq_pkt_handlers(oct);
544 if (!(atomic_load_acq_int(&oct->status) == LIO_DEV_IN_RESET))
545 oct->fn_list.enable_interrupt(oct, OCTEON_ALL_INTR);
549 lio_setup_interrupt(struct octeon_device *oct, uint32_t num_ioqs)
558 if (!oct->msix_on)
561 ioq_vector = oct->ioq_vector;
564 if (oct->sriov_info.num_pf_rings != rss_getnumbuckets()) {
565 lio_dev_info(oct, "IOQ vectors (%d) are not equal number of RSS buckets (%d)\n",
566 oct->sriov_info.num_pf_rings, rss_getnumbuckets());
570 device = oct->device;
572 oct->num_msix_irqs = num_ioqs;
574 oct->num_msix_irqs += 1;
575 num_alloc_ioq_vectors = oct->num_msix_irqs;
578 (num_alloc_ioq_vectors != oct->num_msix_irqs))
581 num_ioq_vectors = oct->num_msix_irqs;
591 lio_dev_err(oct,
604 lio_dev_err(oct, "Failed to register intr handler");
622 lio_dev_err(oct, "bus bind interrupt fail");
624 lio_dev_dbg(oct, "Bound RSS bucket %d to CPU %d\n", i, cpu_id);
626 lio_dev_dbg(oct, "Bound Queue %d to CPU %d\n", i, cpu_id);
630 lio_dev_dbg(oct, "MSI-X enabled\n");
633 oct->msix_res = bus_alloc_resource_any(device, SYS_RES_IRQ, &res_id,
635 if (oct->msix_res == NULL) {
636 lio_dev_err(oct, "Unable to allocate bus res msix for non-ioq interrupt\n");
640 err = bus_setup_intr(device, oct->msix_res, INTR_TYPE_NET | INTR_MPSAFE,
641 NULL, lio_intr_handler, oct, &oct->tag);
644 oct->msix_res);
645 oct->msix_res = NULL;
646 lio_dev_err(oct, "Failed to register intr handler");
650 bus_describe_intr(device, oct->msix_res, oct->tag, "aux");
651 oct->aux_vector = res_id;
655 if (oct->tag != NULL) {
656 bus_teardown_intr(device, oct->msix_res, oct->tag);
657 oct->tag = NULL;
678 if (oct->msix_res != NULL) {
679 bus_release_resource(device, SYS_RES_IRQ, oct->aux_vector,
680 oct->msix_res);
681 oct->msix_res = NULL;
685 lio_dev_err(oct, "MSI-X disabled\n");