Lines Matching +full:- +full:312
1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
2 /* Copyright (c) 2017 - 2021 Intel Corporation */
53 * icrdma_ena_irq - Enable interrupt
62 if (dev->ceq_itr && dev->aeq->msix_idx != idx) in icrdma_ena_irq()
63 interval = dev->ceq_itr >> 1; /* 2 usec units */ in icrdma_ena_irq()
69 if (dev->hw_attrs.uk_attrs.hw_rev != IRDMA_GEN_1) in icrdma_ena_irq()
70 writel(val, dev->hw_regs[IRDMA_GLINT_DYN_CTL] + idx); in icrdma_ena_irq()
72 writel(val, dev->hw_regs[IRDMA_GLINT_DYN_CTL] + (idx - 1)); in icrdma_ena_irq()
76 * icrdma_disable_irq - Disable interrupt
82 if (dev->hw_attrs.uk_attrs.hw_rev != IRDMA_GEN_1) in icrdma_disable_irq()
83 writel(0, dev->hw_regs[IRDMA_GLINT_DYN_CTL] + idx); in icrdma_disable_irq()
85 writel(0, dev->hw_regs[IRDMA_GLINT_DYN_CTL] + (idx - 1)); in icrdma_disable_irq()
89 * icrdma_cfg_ceq- Configure CEQ interrupt
104 writel(reg_val, dev->hw_regs[IRDMA_GLINT_CEQCTL] + ceq_id); in icrdma_cfg_ceq()
158 [IRDMA_HW_STAT_INDEX_RXRPCNPIGNORED] = { 312, 32, IRDMA_MAX_STATS_24 },
159 [IRDMA_HW_STAT_INDEX_RXRPCNPHANDLED] = { 312, 0, IRDMA_MAX_STATS_32 },
169 hw_addr = dev->hw->hw_addr; in icrdma_init_hw()
174 dev->hw_regs[i] = (u32 __iomem *)(hw_addr + icrdma_regs[i]); in icrdma_init_hw()
176 dev->hw_attrs.max_hw_vf_fpm_id = IRDMA_MAX_VF_FPM_ID; in icrdma_init_hw()
177 dev->hw_attrs.first_hw_vf_fpm_id = IRDMA_FIRST_VF_FPM_ID; in icrdma_init_hw()
180 dev->hw_shifts[i] = icrdma_shifts[i]; in icrdma_init_hw()
183 dev->hw_masks[i] = icrdma_masks[i]; in icrdma_init_hw()
185 dev->wqe_alloc_db = dev->hw_regs[IRDMA_WQEALLOC]; in icrdma_init_hw()
186 dev->cq_arm_db = dev->hw_regs[IRDMA_CQARM]; in icrdma_init_hw()
187 dev->aeq_alloc_db = dev->hw_regs[IRDMA_AEQALLOC]; in icrdma_init_hw()
188 dev->cqp_db = dev->hw_regs[IRDMA_CQPDB]; in icrdma_init_hw()
189 dev->cq_ack_db = dev->hw_regs[IRDMA_CQACK]; in icrdma_init_hw()
190 dev->irq_ops = &icrdma_irq_ops; in icrdma_init_hw()
191 dev->hw_attrs.page_size_cap = SZ_4K | SZ_2M | SZ_1G; in icrdma_init_hw()
192 dev->hw_stats_map = icrdma_hw_stat_map; in icrdma_init_hw()
193 dev->hw_attrs.max_hw_ird = ICRDMA_MAX_IRD_SIZE; in icrdma_init_hw()
194 dev->hw_attrs.max_hw_ord = ICRDMA_MAX_ORD_SIZE; in icrdma_init_hw()
195 dev->hw_attrs.max_stat_inst = ICRDMA_MAX_STATS_COUNT; in icrdma_init_hw()
196 dev->hw_attrs.max_stat_idx = IRDMA_HW_STAT_INDEX_MAX_GEN_2; in icrdma_init_hw()
198 dev->hw_attrs.uk_attrs.min_hw_wq_size = ICRDMA_MIN_WQ_SIZE; in icrdma_init_hw()
199 dev->hw_attrs.uk_attrs.max_hw_sq_chunk = IRDMA_MAX_QUANTA_PER_WR; in icrdma_init_hw()
200 dev->hw_attrs.uk_attrs.feature_flags |= IRDMA_FEATURE_RTS_AE | in icrdma_init_hw()