Home
last modified time | relevance | path

Searched refs:ctrl_regs (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/drivers/ptp/
Dptp_qoriq.c33 lo = ptp_qoriq->read(&regs->ctrl_regs->tmr_cnt_l); in tmr_cnt_read()
34 hi = ptp_qoriq->read(&regs->ctrl_regs->tmr_cnt_h); in tmr_cnt_read()
47 ptp_qoriq->write(&regs->ctrl_regs->tmr_cnt_l, lo); in tmr_cnt_write()
48 ptp_qoriq->write(&regs->ctrl_regs->tmr_cnt_h, hi); in tmr_cnt_write()
57 lo = ptp_qoriq->read(&regs->ctrl_regs->tmroff_l); in tmr_offset_read()
58 hi = ptp_qoriq->read(&regs->ctrl_regs->tmroff_h); in tmr_offset_read()
70 ptp_qoriq->write(&regs->ctrl_regs->tmroff_l, lo); in tmr_offset_write()
71 ptp_qoriq->write(&regs->ctrl_regs->tmroff_h, hi); in tmr_offset_write()
133 if (!(ptp_qoriq->read(&regs->ctrl_regs->tmr_stat) & valid)) in extts_clean_up()
148 } while (ptp_qoriq->read(&regs->ctrl_regs->tmr_stat) & valid); in extts_clean_up()
[all …]
Dptp_qoriq_debugfs.c14 ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper1_lpbk_get()
26 ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper1_lpbk_set()
32 ptp_qoriq->write(&regs->ctrl_regs->tmr_ctrl, ctrl); in ptp_qoriq_fiper1_lpbk_set()
45 ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper2_lpbk_get()
57 ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper2_lpbk_set()
63 ptp_qoriq->write(&regs->ctrl_regs->tmr_ctrl, ctrl); in ptp_qoriq_fiper2_lpbk_set()
/linux-6.6.21/drivers/vdpa/solidrun/
Dsnet_ctrl.c90 static u32 snet_read32_word(struct snet_ctrl_regs __iomem *ctrl_regs, u16 word_idx) in snet_read32_word() argument
92 return ioread32(&ctrl_regs->data[word_idx]); in snet_read32_word()
95 static u32 snet_read_ctrl(struct snet_ctrl_regs __iomem *ctrl_regs) in snet_read_ctrl() argument
97 return ioread32(&ctrl_regs->ctrl); in snet_read_ctrl()
100 static void snet_write_ctrl(struct snet_ctrl_regs __iomem *ctrl_regs, u32 val) in snet_write_ctrl() argument
102 iowrite32(val, &ctrl_regs->ctrl); in snet_write_ctrl()
105 static void snet_write_op(struct snet_ctrl_regs __iomem *ctrl_regs, u32 val) in snet_write_op() argument
107 iowrite32(val, &ctrl_regs->op); in snet_write_op()
110 static int snet_wait_for_dpu_completion(struct snet_ctrl_regs __iomem *ctrl_regs) in snet_wait_for_dpu_completion() argument
115 return snet_wait_for_empty_op(ctrl_regs); in snet_wait_for_dpu_completion()
/linux-6.6.21/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.c123 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
126 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
174 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
177 writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
185 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable()
190 writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable()
265 tmp = readl_relaxed(ctrl_regs(path) + intf_ctrl(path->id)) & 0x1; in path_set_mode()
270 writel_relaxed(tmp, ctrl_regs(path) + intf_ctrl(path->id)); in path_set_mode()
273 tmp = readl_relaxed(ctrl_regs(path) + intf_rbswap_ctrl(path->id)) & in path_set_mode()
276 writel_relaxed(tmp, ctrl_regs(path) + intf_rbswap_ctrl(path->id)); in path_set_mode()
[all …]
Dmmp_ctrl.h1432 static inline void __iomem *ctrl_regs(struct mmp_path *path) in ctrl_regs() function
1441 return (struct lcd_regs __force *)(ctrl_regs(path) + 0xc0); in path_regs()
1443 return (struct lcd_regs __force *)ctrl_regs(path); in path_regs()
1445 return (struct lcd_regs __force *)(ctrl_regs(path) + 0x200); in path_regs()
/linux-6.6.21/drivers/iio/magnetometer/
Dak8975.c244 u8 ctrl_regs[REGS_END]; member
255 .ctrl_regs = {
280 .ctrl_regs = {
305 .ctrl_regs = {
330 .ctrl_regs = {
355 .ctrl_regs = {
505 data->def->ctrl_regs[CNTL], regval); in ak8975_set_mode()
578 client, data->def->ctrl_regs[ASA_BASE], in ak8975_setup()
626 ret = i2c_smbus_read_byte_data(client, data->def->ctrl_regs[ST1]); in wait_conversion_complete_gpio()
644 data->def->ctrl_regs[ST1]); in wait_conversion_complete_polled()
[all …]
/linux-6.6.21/include/linux/fsl/
Dptp_qoriq.h16 struct ctrl_regs { struct
54 struct ctrl_regs __iomem *ctrl_regs; member
/linux-6.6.21/drivers/input/rmi4/
Drmi_f30.c72 u8 ctrl_regs[RMI_F30_CTRL_REGS_MAX_SIZE]; member
90 f30->ctrl_regs, f30->ctrl_regs_size); in rmi_f30_read_control_parameters()
186 f30->ctrl_regs, f30->ctrl_regs_size); in rmi_f30_config()
275 u8 *ctrl_reg = f30->ctrl_regs; in rmi_f30_initialize()
347 f30->ctrl_regs ?: RMI_F30_CTRL_REGS_MAX_SIZE; in rmi_f30_initialize()
/linux-6.6.21/drivers/net/wireless/ath/ath10k/
Dce.c205 struct ath10k_hw_ce_ctrl1 *ctrl_regs = ar->hw_ce_regs->ctrl1_regs; in ath10k_ce_src_ring_dmax_set() local
208 ctrl_regs->addr); in ath10k_ce_src_ring_dmax_set()
210 ath10k_ce_write32(ar, ce_ctrl_addr + ctrl_regs->addr, in ath10k_ce_src_ring_dmax_set()
211 (ctrl1_addr & ~(ctrl_regs->dmax->mask)) | in ath10k_ce_src_ring_dmax_set()
212 ath10k_set_ring_byte(n, ctrl_regs->dmax)); in ath10k_ce_src_ring_dmax_set()
219 struct ath10k_hw_ce_ctrl1 *ctrl_regs = ar->hw_ce_regs->ctrl1_regs; in ath10k_ce_src_ring_byte_swap_set() local
222 ctrl_regs->addr); in ath10k_ce_src_ring_byte_swap_set()
224 ath10k_ce_write32(ar, ce_ctrl_addr + ctrl_regs->addr, in ath10k_ce_src_ring_byte_swap_set()
225 (ctrl1_addr & ~(ctrl_regs->src_ring->mask)) | in ath10k_ce_src_ring_byte_swap_set()
226 ath10k_set_ring_byte(n, ctrl_regs->src_ring)); in ath10k_ce_src_ring_byte_swap_set()
[all …]
/linux-6.6.21/arch/mips/kernel/
Dptrace.c627 const struct msa_control_regs ctrl_regs = { in msa_get() local
649 return membuf_write(&to, &ctrl_regs, sizeof(ctrl_regs)); in msa_get()
658 struct msa_control_regs ctrl_regs; in msa_set() local
683 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl_regs, in msa_set()
684 wr_size, wr_size + sizeof(ctrl_regs)); in msa_set()
686 target->thread.fpu.fcr31 = ctrl_regs.fcsr & ~FPU_CSR_ALL_X; in msa_set()
687 target->thread.fpu.msacsr = ctrl_regs.msacsr & ~MSA_CSR_CAUSEF; in msa_set()
/linux-6.6.21/arch/x86/xen/
Dpmu.c266 uint64_t *counter_regs, *ctrl_regs; in xen_amd_pmu_emulate() local
280 ctrl_regs = field_offset(ctxt, ctrls); in xen_amd_pmu_emulate()
281 reg = &ctrl_regs[i]; in xen_amd_pmu_emulate()
/linux-6.6.21/drivers/net/ethernet/ni/
Dnixge.c184 void __iomem *ctrl_regs; member
228 writel(val, priv->ctrl_regs + offset); in nixge_ctrl_write_reg()
233 return readl(priv->ctrl_regs + offset); in nixge_ctrl_read_reg()
237 readl_poll_timeout((priv)->ctrl_regs + (addr), (val), (cond), \
1282 priv->ctrl_regs = priv->dma_regs + NIXGE_REG_CTRL_OFFSET; in nixge_of_get_resources()
1284 priv->ctrl_regs = devm_platform_ioremap_resource_byname(pdev, "ctrl"); in nixge_of_get_resources()
1285 if (IS_ERR(priv->ctrl_regs)) { in nixge_of_get_resources()
1287 return PTR_ERR(priv->ctrl_regs); in nixge_of_get_resources()
/linux-6.6.21/drivers/mfd/
Dqcom_rpm.c50 void __iomem *ctrl_regs; member
59 #define RPM_CTRL_REG(rpm, i) ((rpm)->ctrl_regs + (i) * 4)
581 rpm->ctrl_regs = rpm->status_regs + 0x400; in qcom_rpm_probe()