• Home
  • Raw
  • Download

Lines Matching refs:q_no

349 	u32 q_no, srn, ern;  in cn23xx_reset_io_queues()  local
359 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_reset_io_queues()
361 d64 = octeon_read_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_reset_io_queues()
363 octeon_write_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), d64); in cn23xx_reset_io_queues()
367 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_reset_io_queues()
369 CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_reset_io_queues()
374 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_reset_io_queues()
379 q_no); in cn23xx_reset_io_queues()
384 octeon_write_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_reset_io_queues()
388 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_reset_io_queues()
392 q_no); in cn23xx_reset_io_queues()
405 u32 q_no, ern, srn; in cn23xx_pf_setup_global_input_regs() local
422 for (q_no = 0; q_no < ern; q_no++) { in cn23xx_pf_setup_global_input_regs()
426 if (q_no < oct->sriov_info.pf_srn) { in cn23xx_pf_setup_global_input_regs()
427 vf_num = q_no / oct->sriov_info.rings_per_vf; in cn23xx_pf_setup_global_input_regs()
436 octeon_write_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_pf_setup_global_input_regs()
443 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_pf_setup_global_input_regs()
446 iq = oct->instr_queue[q_no]; in cn23xx_pf_setup_global_input_regs()
451 CN23XX_SLI_IQ_INSTR_COUNT64(q_no); in cn23xx_pf_setup_global_input_regs()
454 octeon_read_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_pf_setup_global_input_regs()
458 octeon_write_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_pf_setup_global_input_regs()
478 u32 q_no, ern, srn; in cn23xx_pf_setup_global_output_regs() local
493 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_pf_setup_global_output_regs()
494 reg_val = octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(q_no)); in cn23xx_pf_setup_global_output_regs()
527 octeon_write_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(q_no), reg_val); in cn23xx_pf_setup_global_output_regs()
537 octeon_write_csr64(oct, CN23XX_SLI_OQ_PKT_INT_LEVELS(q_no), in cn23xx_pf_setup_global_output_regs()
684 u32 q_no, i; in cn23xx_pf_mbox_thread() local
692 q_no = i * oct->sriov_info.rings_per_vf; in cn23xx_pf_mbox_thread()
694 val64 = readq(oct->mbox[q_no]->mbox_write_reg); in cn23xx_pf_mbox_thread()
697 if (octeon_mbox_read(oct->mbox[q_no])) in cn23xx_pf_mbox_thread()
699 oct->mbox[q_no]); in cn23xx_pf_mbox_thread()
714 u32 q_no, i; in cn23xx_setup_pf_mbox() local
720 q_no = i * oct->sriov_info.rings_per_vf; in cn23xx_setup_pf_mbox()
730 mbox->q_no = q_no; in cn23xx_setup_pf_mbox()
740 CN23XX_SLI_PKT_PF_VF_MBOX_SIG(q_no, 0); in cn23xx_setup_pf_mbox()
744 CN23XX_SLI_PKT_PF_VF_MBOX_SIG(q_no, 1); in cn23xx_setup_pf_mbox()
751 oct->mbox[q_no] = mbox; in cn23xx_setup_pf_mbox()
773 u32 q_no, i; in cn23xx_free_pf_mbox() local
779 q_no = i * oct->sriov_info.rings_per_vf; in cn23xx_free_pf_mbox()
781 &oct->mbox[q_no]->mbox_poll_wk.work); in cn23xx_free_pf_mbox()
782 vfree(oct->mbox[q_no]); in cn23xx_free_pf_mbox()
791 u32 srn, ern, q_no; in cn23xx_enable_io_queues() local
797 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_enable_io_queues()
799 if (oct->io_qmask.iq64B & BIT_ULL(q_no - srn)) { in cn23xx_enable_io_queues()
801 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_enable_io_queues()
804 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), reg_val); in cn23xx_enable_io_queues()
808 if (oct->io_qmask.iq & BIT_ULL(q_no - srn)) { in cn23xx_enable_io_queues()
813 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_enable_io_queues()
822 CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_enable_io_queues()
827 q_no); in cn23xx_enable_io_queues()
832 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_enable_io_queues()
836 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_enable_io_queues()
840 q_no); in cn23xx_enable_io_queues()
845 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_enable_io_queues()
848 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), reg_val); in cn23xx_enable_io_queues()
851 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_enable_io_queues()
854 if (oct->io_qmask.oq & BIT_ULL(q_no - srn)) { in cn23xx_enable_io_queues()
856 oct, CN23XX_SLI_OQ_PKT_CONTROL(q_no)); in cn23xx_enable_io_queues()
858 octeon_write_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(q_no), in cn23xx_enable_io_queues()
867 int q_no, loop; in cn23xx_disable_io_queues() local
876 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_disable_io_queues()
881 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_disable_io_queues()
885 octeon_write_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_disable_io_queues()
893 while (!(READ_ONCE(d64) & BIT_ULL(q_no)) && loop--) { in cn23xx_disable_io_queues()
900 octeon_write_csr(oct, CN23XX_SLI_IQ_DOORBELL(q_no), 0xFFFFFFFF); in cn23xx_disable_io_queues()
901 while (octeon_read_csr64(oct, CN23XX_SLI_IQ_DOORBELL(q_no)) && in cn23xx_disable_io_queues()
908 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_disable_io_queues()
917 while (!(READ_ONCE(d64) & BIT_ULL(q_no)) && loop--) { in cn23xx_disable_io_queues()
924 octeon_write_csr(oct, CN23XX_SLI_OQ_PKTS_CREDIT(q_no), in cn23xx_disable_io_queues()
927 CN23XX_SLI_OQ_PKTS_CREDIT(q_no)) && in cn23xx_disable_io_queues()
934 oct, CN23XX_SLI_OQ_PKTS_SENT(q_no))); in cn23xx_disable_io_queues()
935 octeon_write_csr(oct, CN23XX_SLI_OQ_PKTS_SENT(q_no), in cn23xx_disable_io_queues()
986 u32 i, q_no; in cn23xx_handle_pf_mbox_intr() local
991 q_no = i * oct->sriov_info.rings_per_vf; in cn23xx_handle_pf_mbox_intr()
993 if (mbox_int_val & BIT_ULL(q_no)) { in cn23xx_handle_pf_mbox_intr()
994 writeq(BIT_ULL(q_no), in cn23xx_handle_pf_mbox_intr()
996 if (octeon_mbox_read(oct->mbox[q_no])) { in cn23xx_handle_pf_mbox_intr()
997 work = &oct->mbox[q_no]->mbox_poll_wk.work; in cn23xx_handle_pf_mbox_intr()
1455 mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf; in cn23xx_tell_vf_its_macaddr_changed()
1490 mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf; in cn23xx_get_vf_stats()