/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_lib.c | 41 reg_idx = __ALIGN_MASK(reg_idx, ~vmdq->mask); in ixgbe_cache_ring_dcb_sriov() 43 adapter->rx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() 52 adapter->tx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() 72 adapter->rx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() 80 adapter->tx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() 211 adapter->rx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_sriov() 218 adapter->rx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_sriov() 233 adapter->tx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_sriov() 239 adapter->tx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_sriov() 262 adapter->tx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_rss() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/css_2401_system/host/ |
H A D | isys_irq_private.h | 70 const unsigned int reg_idx, in isys_irqc_reg_store() argument 76 assert(reg_idx <= ISYS_IRQ_LEVEL_NO_REG_IDX); in isys_irqc_reg_store() 78 reg_addr = ISYS_IRQ_BASE[isys_irqc_id] + (reg_idx * sizeof(hrt_data)); in isys_irqc_reg_store() 87 const unsigned int reg_idx) in isys_irqc_reg_load() argument 93 assert(reg_idx <= ISYS_IRQ_LEVEL_NO_REG_IDX); in isys_irqc_reg_load() 95 reg_addr = ISYS_IRQ_BASE[isys_irqc_id] + (reg_idx * sizeof(hrt_data)); in isys_irqc_reg_load()
|
H A D | isys_stream2mmio_private.h | 139 const uint32_t reg_idx) in stream2mmio_reg_load() argument 147 (reg_bank_offset + reg_idx) * sizeof(hrt_data)); in stream2mmio_reg_load()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_interrupts.c | 242 int reg_idx; in dpu_core_irq() local 253 for (reg_idx = 0; reg_idx < MDP_INTR_MAX; reg_idx++) { in dpu_core_irq() 301 int reg_idx; in dpu_hw_intr_enable_irq_locked() local 322 reg_idx = DPU_IRQ_REG(irq_idx); in dpu_hw_intr_enable_irq_locked() 323 reg = &intr->intr_set[reg_idx]; in dpu_hw_intr_enable_irq_locked() 356 int reg_idx; in dpu_hw_intr_disable_irq_locked() local 377 reg_idx = DPU_IRQ_REG(irq_idx); in dpu_hw_intr_disable_irq_locked() 378 reg = &intr->intr_set[reg_idx]; in dpu_hw_intr_disable_irq_locked() 444 int reg_idx; in dpu_core_irq_read() local 458 reg_idx = DPU_IRQ_REG(irq_idx); in dpu_core_irq_read() [all …]
|
H A D | dpu_hw_interrupts.h | 39 #define DPU_IRQ_IDX(reg_idx, offset) (reg_idx * 32 + offset) argument
|
/openbmc/linux/drivers/i2c/ |
H A D | i2c-slave-testunit.c | 41 u8 reg_idx; member 92 bool is_proc_call = tu->reg_idx == 3 && tu->regs[TU_REG_DATAL] == 1 && in i2c_slave_testunit_slave_cb() 101 if (tu->reg_idx < TU_NUM_REGS) in i2c_slave_testunit_slave_cb() 102 tu->regs[tu->reg_idx] = *val; in i2c_slave_testunit_slave_cb() 106 if (tu->reg_idx <= TU_NUM_REGS) in i2c_slave_testunit_slave_cb() 107 tu->reg_idx++; in i2c_slave_testunit_slave_cb() 116 if (tu->reg_idx == TU_NUM_REGS) { in i2c_slave_testunit_slave_cb() 127 tu->reg_idx = 0; in i2c_slave_testunit_slave_cb() 135 tu->reg_idx = 0; in i2c_slave_testunit_slave_cb()
|
/openbmc/linux/drivers/pmdomain/renesas/ |
H A D | rcar-gen4-sysc.c | 91 static int clear_irq_flags(unsigned int reg_idx, unsigned int isr_mask) in clear_irq_flags() argument 96 iowrite32(isr_mask, rcar_gen4_sysc_base + SYSCISCR(reg_idx)); in clear_irq_flags() 112 unsigned int reg_idx, bit_idx; in rcar_gen4_sysc_power() local 121 reg_idx = pdr / NUM_DOMAINS_EACH_REG; in rcar_gen4_sysc_power() 130 iowrite32(ioread32(rcar_gen4_sysc_base + SYSCIER(reg_idx)) | isr_mask, in rcar_gen4_sysc_power() 131 rcar_gen4_sysc_base + SYSCIER(reg_idx)); in rcar_gen4_sysc_power() 132 iowrite32(ioread32(rcar_gen4_sysc_base + SYSCIMR(reg_idx)) | isr_mask, in rcar_gen4_sysc_power() 133 rcar_gen4_sysc_base + SYSCIMR(reg_idx)); in rcar_gen4_sysc_power() 135 ret = clear_irq_flags(reg_idx, isr_mask); in rcar_gen4_sysc_power() 167 ret = clear_irq_flags(reg_idx, isr_mask); in rcar_gen4_sysc_power() [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-mvebu-sei.c | 59 u32 reg_idx = SEI_IRQ_REG_IDX(d->hwirq); in mvebu_sei_ack_irq() local 62 sei->base + GICP_SECR(reg_idx)); in mvebu_sei_ack_irq() 68 u32 reg, reg_idx = SEI_IRQ_REG_IDX(d->hwirq); in mvebu_sei_mask_irq() local 73 reg = readl_relaxed(sei->base + GICP_SEMR(reg_idx)); in mvebu_sei_mask_irq() 75 writel_relaxed(reg, sei->base + GICP_SEMR(reg_idx)); in mvebu_sei_mask_irq() 82 u32 reg, reg_idx = SEI_IRQ_REG_IDX(d->hwirq); in mvebu_sei_unmask_irq() local 87 reg = readl_relaxed(sei->base + GICP_SEMR(reg_idx)); in mvebu_sei_unmask_irq() 89 writel_relaxed(reg, sei->base + GICP_SEMR(reg_idx)); in mvebu_sei_unmask_irq() 354 u32 reg_idx; in mvebu_sei_reset() local 357 for (reg_idx = 0; reg_idx < SEI_IRQ_REG_COUNT; reg_idx++) { in mvebu_sei_reset() [all …]
|
H A D | irq-pruss-intc.c | 181 u8 ch, host, reg_idx; in pruss_intc_map() local 193 reg_idx = hwirq / 32; in pruss_intc_map() 197 pruss_intc_write_reg(intc, PRU_INTC_ESR(reg_idx), val); in pruss_intc_map() 198 pruss_intc_write_reg(intc, PRU_INTC_SECR(reg_idx), val); in pruss_intc_map() 224 u8 ch, host, reg_idx; in pruss_intc_unmap() local 241 reg_idx = hwirq / 32; in pruss_intc_unmap() 245 pruss_intc_write_reg(intc, PRU_INTC_ECR(reg_idx), val); in pruss_intc_unmap() 247 pruss_intc_write_reg(intc, PRU_INTC_SECR(reg_idx), val); in pruss_intc_unmap()
|
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_hw.c | 1127 j = ring->reg_idx; in wx_vlan_strip_control() 1254 u8 reg_idx = ring->reg_idx; in wx_disable_rx_queue() local 1259 wr32m(wx, WX_PX_RR_CFG(reg_idx), in wx_disable_rx_queue() 1270 reg_idx); in wx_disable_rx_queue() 1277 u8 reg_idx = ring->reg_idx; in wx_enable_rx_queue() local 1288 reg_idx); in wx_enable_rx_queue() 1295 u16 reg_idx = rx_ring->reg_idx; in wx_configure_srrctl() local 1315 u8 reg_idx = ring->reg_idx; in wx_configure_tx_ring() local 1327 wr32(wx, WX_PX_TR_RP(reg_idx), 0); in wx_configure_tx_ring() 1352 u16 reg_idx = ring->reg_idx; in wx_configure_rx_ring() local [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | timer-mediatek-cpux.c | 37 static u32 mtk_cpux_readl(u32 reg_idx, struct timer_of *to) in mtk_cpux_readl() argument 39 writel(reg_idx, timer_of_base(to) + CPUX_IDX_REG); in mtk_cpux_readl() 43 static void mtk_cpux_writel(u32 val, u32 reg_idx, struct timer_of *to) in mtk_cpux_writel() argument 45 writel(reg_idx, timer_of_base(to) + CPUX_IDX_REG); in mtk_cpux_writel()
|
/openbmc/linux/drivers/sh/intc/ |
H A D | handle.c | 41 unsigned int *reg_idx, in _intc_mask_data() argument 48 while (mr && enum_id && *reg_idx < desc->hw.nr_mask_regs) { in _intc_mask_data() 49 mr = desc->hw.mask_regs + *reg_idx; in _intc_mask_data() 82 (*reg_idx)++; in _intc_mask_data() 109 unsigned int *reg_idx, in _intc_prio_data() argument 116 while (pr && enum_id && *reg_idx < desc->hw.nr_prio_regs) { in _intc_prio_data() 117 pr = desc->hw.prio_regs + *reg_idx; in _intc_prio_data() 151 (*reg_idx)++; in _intc_prio_data()
|
/openbmc/linux/drivers/accel/habanalabs/goya/ |
H A D | goya_coresight.c | 236 if (params->reg_idx >= ARRAY_SIZE(debug_stm_regs)) { in goya_config_stm() 241 base_reg = debug_stm_regs[params->reg_idx] - CFG_BASE; in goya_config_stm() 309 if (params->reg_idx >= ARRAY_SIZE(debug_etf_regs)) { in goya_config_etf() 314 base_reg = debug_etf_regs[params->reg_idx] - CFG_BASE; in goya_config_etf() 500 if (params->reg_idx >= ARRAY_SIZE(debug_bmon_regs)) { in goya_config_bmon() 529 if (params->reg_idx != GOYA_BMON_PCIE_MSTR_RD && in goya_config_bmon() 530 params->reg_idx != GOYA_BMON_PCIE_MSTR_WR && in goya_config_bmon() 531 params->reg_idx != GOYA_BMON_PCIE_SLV_RD && in goya_config_bmon() 532 params->reg_idx != GOYA_BMON_PCIE_SLV_WR) in goya_config_bmon() 577 if (params->reg_idx >= ARRAY_SIZE(debug_spmu_regs)) { in goya_config_spmu() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pci.c | 875 u8 reg_idx = ring->reg_idx; in fm10k_configure_tx_ring() local 878 fm10k_write_reg(hw, FM10K_TXDCTL(reg_idx), 0); in fm10k_configure_tx_ring() 889 fm10k_write_reg(hw, FM10K_TDH(reg_idx), 0); in fm10k_configure_tx_ring() 890 fm10k_write_reg(hw, FM10K_TDT(reg_idx), 0); in fm10k_configure_tx_ring() 908 fm10k_write_reg(hw, FM10K_PFVTCTL(reg_idx), in fm10k_configure_tx_ring() 935 u8 reg_idx = ring->reg_idx; in fm10k_enable_tx_ring() local 948 "Could not enable Tx Queue %d\n", reg_idx); in fm10k_enable_tx_ring() 987 u8 reg_idx = ring->reg_idx; in fm10k_configure_rx_ring() local 1003 fm10k_write_reg(hw, FM10K_RDH(reg_idx), 0); in fm10k_configure_rx_ring() 1004 fm10k_write_reg(hw, FM10K_RDT(reg_idx), 0); in fm10k_configure_rx_ring() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
H A D | isys_irq_public.h | 31 const unsigned int reg_idx, 35 const unsigned int reg_idx);
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ixgbevf_main.c | 1691 u8 reg_idx = ring->reg_idx; in ixgbevf_configure_tx_ring() local 1807 u8 reg_idx = ring->reg_idx; in ixgbevf_disable_rx_queue() local 1825 reg_idx); in ixgbevf_disable_rx_queue() 1834 u8 reg_idx = ring->reg_idx; in ixgbevf_rx_desc_queue_enable() local 1912 u8 reg_idx = ring->reg_idx; in ixgbevf_configure_rx_ring() local 2520 u8 reg_idx = adapter->tx_ring[i]->reg_idx; in ixgbevf_down() local 2527 u8 reg_idx = adapter->xdp_ring[i]->reg_idx; in ixgbevf_down() local 2767 ring->reg_idx = reg_idx; in ixgbevf_alloc_q_vector() 2775 reg_idx++; in ixgbevf_alloc_q_vector() 2795 ring->reg_idx = reg_idx; in ixgbevf_alloc_q_vector() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_util.c | 24 void __iomem *mtk_vcodec_get_reg_addr(void __iomem **reg_base, unsigned int reg_idx) in mtk_vcodec_get_reg_addr() argument 26 if (reg_idx >= NUM_MAX_VCODEC_REG_BASE) { in mtk_vcodec_get_reg_addr() 27 pr_err(MTK_DBG_V4L2_STR "Invalid arguments, reg_idx=%d", reg_idx); in mtk_vcodec_get_reg_addr() 30 return reg_base[reg_idx]; in mtk_vcodec_get_reg_addr()
|
/openbmc/linux/include/linux/soc/mediatek/ |
H A D | mtk-cmdq.h | 111 u16 reg_idx); 248 int cmdq_pkt_assign(struct cmdq_pkt *pkt, u16 reg_idx, u32 value); 316 u16 addr_low, u16 reg_idx) in cmdq_pkt_read_s() argument 372 static inline int cmdq_pkt_assign(struct cmdq_pkt *pkt, u16 reg_idx, u32 value) in cmdq_pkt_assign() argument
|
/openbmc/linux/drivers/bus/ |
H A D | imx-weim.c | 142 int reg_idx, num_regs; in weim_timing_setup() local 171 for (reg_idx = 0; reg_idx < num_regs; reg_idx++) { in weim_timing_setup() 174 reg_idx * OF_REG_SIZE, &cs_idx); in weim_timing_setup()
|
/openbmc/qemu/target/arm/tcg/ |
H A D | neon-ls.decode | 47 VLDST_single 1111 0100 1 . l:1 0 rn:4 .... 00 n:2 reg_idx:3 align:1 rm:4 \ 49 VLDST_single 1111 0100 1 . l:1 0 rn:4 .... 01 n:2 reg_idx:2 . align:1 rm:4 \ 51 VLDST_single 1111 0100 1 . l:1 0 rn:4 .... 10 n:2 reg_idx:1 . align:2 rm:4 \
|
/openbmc/linux/drivers/accel/habanalabs/gaudi/ |
H A D | gaudi_coresight.c | 398 if (params->reg_idx >= ARRAY_SIZE(debug_stm_regs)) { in gaudi_config_stm() 403 base_reg = debug_stm_regs[params->reg_idx] - CFG_BASE; in gaudi_config_stm() 476 if (params->reg_idx >= ARRAY_SIZE(debug_etf_regs)) { in gaudi_config_etf() 481 base_reg = debug_etf_regs[params->reg_idx] - CFG_BASE; in gaudi_config_etf() 691 if (params->reg_idx >= ARRAY_SIZE(debug_funnel_regs)) { in gaudi_config_funnel() 696 base_reg = debug_funnel_regs[params->reg_idx] - CFG_BASE; in gaudi_config_funnel() 711 if (params->reg_idx >= ARRAY_SIZE(debug_bmon_regs)) { in gaudi_config_bmon() 716 base_reg = debug_bmon_regs[params->reg_idx] - CFG_BASE; in gaudi_config_bmon() 779 if (params->reg_idx >= ARRAY_SIZE(debug_spmu_regs)) { in gaudi_config_spmu() 784 base_reg = debug_spmu_regs[params->reg_idx] - CFG_BASE; in gaudi_config_spmu() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | mt6351.c | 325 int idx, old_idx, offset, reg_idx; in hp_gain_ramp_set() local 342 reg_idx = old_idx; in hp_gain_ramp_set() 345 reg_idx = idx > old_idx ? reg_idx + 1 : reg_idx - 1; in hp_gain_ramp_set() 348 if ((reg_idx >= 0 && reg_idx <= 0x12) || reg_idx == 0x1f) { in hp_gain_ramp_set() 352 (reg_idx << 7) | reg_idx); in hp_gain_ramp_set()
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-cti-sysfs.c | 798 int used = 0, reg_idx; in chan_xtrigs_in_show() local 802 for (reg_idx = 0; reg_idx < nr_trig_max; reg_idx++) { in chan_xtrigs_in_show() 803 if (chan_mask & cfg->ctiinen[reg_idx]) in chan_xtrigs_in_show() 804 used += sprintf(buf + used, "%d ", reg_idx); in chan_xtrigs_in_show() 818 int used = 0, reg_idx; in chan_xtrigs_out_show() local 822 for (reg_idx = 0; reg_idx < nr_trig_max; reg_idx++) { in chan_xtrigs_out_show() 823 if (chan_mask & cfg->ctiouten[reg_idx]) in chan_xtrigs_out_show() 824 used += sprintf(buf + used, "%d ", reg_idx); in chan_xtrigs_out_show()
|
/openbmc/linux/drivers/perf/hisilicon/ |
H A D | hisi_uncore_l3c_pmu.c | 109 u32 reg, reg_idx, shift, val; in hisi_l3c_pmu_write_ds() local 120 reg_idx = idx % 4; in hisi_l3c_pmu_write_ds() 121 shift = 8 * reg_idx; in hisi_l3c_pmu_write_ds() 248 u32 reg, reg_idx, shift, val; in hisi_l3c_pmu_write_evtype() local 258 reg_idx = idx % 4; in hisi_l3c_pmu_write_evtype() 259 shift = 8 * reg_idx; in hisi_l3c_pmu_write_evtype()
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_client.c | 148 u32 reg_idx; in i40e_client_release_qvlist() local 153 reg_idx = I40E_PFINT_LNKLSTN(qv_info->v_idx - 1); in i40e_client_release_qvlist() 154 wr32(&pf->hw, reg_idx, I40E_PFINT_LNKLSTN_FIRSTQ_INDX_MASK); in i40e_client_release_qvlist() 569 u32 v_idx, i, reg_idx, reg; in i40e_client_setup_qvlist() local 589 reg_idx = I40E_PFINT_LNKLSTN(v_idx - 1); in i40e_client_setup_qvlist() 593 wr32(hw, reg_idx, I40E_PFINT_LNKLSTN_FIRSTQ_INDX_MASK); in i40e_client_setup_qvlist() 599 wr32(hw, reg_idx, reg); in i40e_client_setup_qvlist()
|