• Home
  • Raw
  • Download

Lines Matching refs:q_no

54 	u32 q_no;  in cn23xx_vf_reset_io_queues()  local
57 for (q_no = 0; q_no < num_queues; q_no++) { in cn23xx_vf_reset_io_queues()
60 CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_vf_reset_io_queues()
62 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_vf_reset_io_queues()
67 for (q_no = 0; q_no < num_queues; q_no++) { in cn23xx_vf_reset_io_queues()
69 CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_vf_reset_io_queues()
74 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_vf_reset_io_queues()
80 q_no); in cn23xx_vf_reset_io_queues()
85 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_vf_reset_io_queues()
89 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_vf_reset_io_queues()
93 q_no); in cn23xx_vf_reset_io_queues()
105 u64 q_no, intr_threshold; in cn23xx_vf_setup_global_input_regs() local
111 for (q_no = 0; q_no < (oct->sriov_info.rings_per_vf); q_no++) { in cn23xx_vf_setup_global_input_regs()
114 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_DOORBELL(q_no), in cn23xx_vf_setup_global_input_regs()
116 iq = oct->instr_queue[q_no]; in cn23xx_vf_setup_global_input_regs()
122 CN23XX_VF_SLI_IQ_INSTR_COUNT64(q_no); in cn23xx_vf_setup_global_input_regs()
125 CN23XX_VF_SLI_IQ_INSTR_COUNT64(q_no)); in cn23xx_vf_setup_global_input_regs()
129 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_INSTR_COUNT64(q_no), in cn23xx_vf_setup_global_input_regs()
135 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_vf_setup_global_input_regs()
154 u32 q_no; in cn23xx_vf_setup_global_output_regs() local
156 for (q_no = 0; q_no < (oct->sriov_info.rings_per_vf); q_no++) { in cn23xx_vf_setup_global_output_regs()
157 octeon_write_csr(oct, CN23XX_VF_SLI_OQ_PKTS_CREDIT(q_no), in cn23xx_vf_setup_global_output_regs()
161 octeon_read_csr(oct, CN23XX_VF_SLI_OQ_PKTS_SENT(q_no)); in cn23xx_vf_setup_global_output_regs()
166 octeon_read_csr(oct, CN23XX_VF_SLI_OQ_PKT_CONTROL(q_no)); in cn23xx_vf_setup_global_output_regs()
197 octeon_write_csr(oct, CN23XX_VF_SLI_OQ_PKT_CONTROL(q_no), in cn23xx_vf_setup_global_output_regs()
290 mbox->q_no = 0; in cn23xx_setup_vf_mbox()
318 u32 q_no; in cn23xx_enable_vf_io_queues() local
320 for (q_no = 0; q_no < oct->num_iqs; q_no++) { in cn23xx_enable_vf_io_queues()
324 if (oct->io_qmask.iq64B & BIT_ULL(q_no)) { in cn23xx_enable_vf_io_queues()
326 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_enable_vf_io_queues()
329 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), reg_val); in cn23xx_enable_vf_io_queues()
333 if (oct->io_qmask.iq & BIT_ULL(q_no)) { in cn23xx_enable_vf_io_queues()
335 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_enable_vf_io_queues()
338 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), reg_val); in cn23xx_enable_vf_io_queues()
341 for (q_no = 0; q_no < oct->num_oqs; q_no++) { in cn23xx_enable_vf_io_queues()
345 if (oct->io_qmask.oq & BIT_ULL(q_no)) { in cn23xx_enable_vf_io_queues()
347 oct, CN23XX_VF_SLI_OQ_PKT_CONTROL(q_no)); in cn23xx_enable_vf_io_queues()
350 oct, CN23XX_VF_SLI_OQ_PKT_CONTROL(q_no), reg_val); in cn23xx_enable_vf_io_queues()
379 mbox_cmd.q_no = 0; in cn23xx_vf_ask_pf_to_do_flr()
408 u32 q_no, count = 0; in cn23xx_octeon_pfvf_handshake() local
429 mbox_cmd.q_no = 0; in cn23xx_octeon_pfvf_handshake()
449 for (q_no = 0 ; q_no < oct->num_iqs ; q_no++) in cn23xx_octeon_pfvf_handshake()
450 oct->instr_queue[q_no]->txpciq.s.pkind = oct->pfvf_hsword.pkind; in cn23xx_octeon_pfvf_handshake()
547 u32 q_no, time_threshold; in cn23xx_enable_vf_interrupt() local
550 for (q_no = 0; q_no < oct->num_oqs; q_no++) { in cn23xx_enable_vf_interrupt()
558 oct, CN23XX_VF_SLI_OQ_PKT_INT_LEVELS(q_no), in cn23xx_enable_vf_interrupt()
565 for (q_no = 0; q_no < oct->num_oqs; q_no++) { in cn23xx_enable_vf_interrupt()
568 oct, CN23XX_VF_SLI_IQ_INSTR_COUNT64(q_no), in cn23xx_enable_vf_interrupt()
570 oct, CN23XX_VF_SLI_IQ_INSTR_COUNT64(q_no)) & in cn23xx_enable_vf_interrupt()
587 u32 q_no; in cn23xx_disable_vf_interrupt() local
590 for (q_no = 0; q_no < oct->num_oqs; q_no++) { in cn23xx_disable_vf_interrupt()
593 oct, CN23XX_VF_SLI_OQ_PKT_INT_LEVELS(q_no), in cn23xx_disable_vf_interrupt()
598 for (q_no = 0; q_no < oct->num_oqs; q_no++) { in cn23xx_disable_vf_interrupt()
600 oct, CN23XX_VF_SLI_IQ_INSTR_COUNT64(q_no), in cn23xx_disable_vf_interrupt()
602 oct, CN23XX_VF_SLI_IQ_INSTR_COUNT64(q_no)) & in cn23xx_disable_vf_interrupt()