Lines Matching refs:cn6xxx

174 	struct octeon_cn6xxx *cn6xxx = (struct octeon_cn6xxx *)oct->chip;  in lio_cn66xx_setup_pkt_ctl_regs()  local
179 if (CFG_GET_OQ_MAX_Q(cn6xxx->conf) <= 4) in lio_cn66xx_setup_pkt_ctl_regs()
185 if (CFG_GET_IS_SLI_BP_ON(cn6xxx->conf)) in lio_cn66xx_setup_pkt_ctl_regs()
196 struct octeon_cn6xxx *cn6xxx = (struct octeon_cn6xxx *)oct->chip; in lio_cn6xxx_setup_global_output_regs() local
202 if (CFG_GET_IS_SLI_BP_ON(cn6xxx->conf)) { in lio_cn6xxx_setup_global_output_regs()
239 (u32)CFG_GET_OQ_INTR_PKT(cn6xxx->conf)); in lio_cn6xxx_setup_global_output_regs()
242 CFG_GET_OQ_INTR_TIME(cn6xxx->conf)); in lio_cn6xxx_setup_global_output_regs()
473 struct octeon_cn6xxx *cn6xxx = (struct octeon_cn6xxx *)oct->chip; in lio_cn6xxx_enable_interrupt() local
474 u64 mask = cn6xxx->intr_mask64 | CN6XXX_INTR_DMA0_FORCE; in lio_cn6xxx_enable_interrupt()
477 writeq(mask, cn6xxx->intr_enb_reg64); in lio_cn6xxx_enable_interrupt()
483 struct octeon_cn6xxx *cn6xxx = (struct octeon_cn6xxx *)oct->chip; in lio_cn6xxx_disable_interrupt() local
486 writeq(0, cn6xxx->intr_enb_reg64); in lio_cn6xxx_disable_interrupt()
537 struct octeon_cn6xxx *cn6xxx = in lio_cn6xxx_process_droq_intr_regs() local
542 (&cn6xxx->lock_for_droq_int_enb_reg); in lio_cn6xxx_process_droq_intr_regs()
552 spin_unlock(&cn6xxx->lock_for_droq_int_enb_reg); in lio_cn6xxx_process_droq_intr_regs()
573 struct octeon_cn6xxx *cn6xxx = (struct octeon_cn6xxx *)oct->chip; in lio_cn6xxx_process_interrupt_regs() local
576 intr64 = readq(cn6xxx->intr_sum_reg64); in lio_cn6xxx_process_interrupt_regs()
602 writeq(intr64, cn6xxx->intr_sum_reg64); in lio_cn6xxx_process_interrupt_regs()
612 struct octeon_cn6xxx *cn6xxx = (struct octeon_cn6xxx *)chip; in lio_cn6xxx_setup_reg_address() local
644 cn6xxx->intr_sum_reg64 = bar0_pciaddr + CN6XXX_SLI_INT_SUM64; in lio_cn6xxx_setup_reg_address()
645 cn6xxx->intr_mask64 = CN6XXX_INTR_MASK; in lio_cn6xxx_setup_reg_address()
646 cn6xxx->intr_enb_reg64 = in lio_cn6xxx_setup_reg_address()
652 struct octeon_cn6xxx *cn6xxx = (struct octeon_cn6xxx *)oct->chip; in lio_setup_cn66xx_octeon_device() local
664 spin_lock_init(&cn6xxx->lock_for_droq_int_enb_reg); in lio_setup_cn66xx_octeon_device()
686 cn6xxx->conf = (struct octeon_config *) in lio_setup_cn66xx_octeon_device()
688 if (!cn6xxx->conf) { in lio_setup_cn66xx_octeon_device()