Home
last modified time | relevance | path

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

/linux-6.12.1/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.12.1/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.12.1/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.12.1/drivers/iio/magnetometer/
Dak8975.c245 u8 ctrl_regs[REGS_END]; member
256 .ctrl_regs = {
281 .ctrl_regs = {
306 .ctrl_regs = {
331 .ctrl_regs = {
356 .ctrl_regs = {
384 .ctrl_regs = {
543 data->def->ctrl_regs[CNTL], regval); in ak8975_set_mode()
616 client, data->def->ctrl_regs[ASA_BASE], in ak8975_setup()
664 ret = i2c_smbus_read_byte_data(client, data->def->ctrl_regs[ST1]); in wait_conversion_complete_gpio()
[all …]
/linux-6.12.1/include/linux/fsl/
Dptp_qoriq.h16 struct ctrl_regs { struct
54 struct ctrl_regs __iomem *ctrl_regs; member
/linux-6.12.1/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.12.1/drivers/net/wireless/ath/ath10k/
Dce.c206 struct ath10k_hw_ce_ctrl1 *ctrl_regs = ar->hw_ce_regs->ctrl1_regs; in ath10k_ce_src_ring_dmax_set() local
209 ctrl_regs->addr); in ath10k_ce_src_ring_dmax_set()
211 ath10k_ce_write32(ar, ce_ctrl_addr + ctrl_regs->addr, in ath10k_ce_src_ring_dmax_set()
212 (ctrl1_addr & ~(ctrl_regs->dmax->mask)) | in ath10k_ce_src_ring_dmax_set()
213 ath10k_set_ring_byte(n, ctrl_regs->dmax)); in ath10k_ce_src_ring_dmax_set()
220 struct ath10k_hw_ce_ctrl1 *ctrl_regs = ar->hw_ce_regs->ctrl1_regs; in ath10k_ce_src_ring_byte_swap_set() local
223 ctrl_regs->addr); in ath10k_ce_src_ring_byte_swap_set()
225 ath10k_ce_write32(ar, ce_ctrl_addr + ctrl_regs->addr, in ath10k_ce_src_ring_byte_swap_set()
226 (ctrl1_addr & ~(ctrl_regs->src_ring->mask)) | in ath10k_ce_src_ring_byte_swap_set()
227 ath10k_set_ring_byte(n, ctrl_regs->src_ring)); in ath10k_ce_src_ring_byte_swap_set()
[all …]
/linux-6.12.1/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.12.1/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), \
1281 priv->ctrl_regs = priv->dma_regs + NIXGE_REG_CTRL_OFFSET; in nixge_of_get_resources()
1283 priv->ctrl_regs = devm_platform_ioremap_resource_byname(pdev, "ctrl"); in nixge_of_get_resources()
1284 if (IS_ERR(priv->ctrl_regs)) { in nixge_of_get_resources()
1286 return PTR_ERR(priv->ctrl_regs); in nixge_of_get_resources()
/linux-6.12.1/arch/x86/xen/
Dpmu.c265 uint64_t *counter_regs, *ctrl_regs; in xen_amd_pmu_emulate() local
279 ctrl_regs = field_offset(ctxt, ctrls); in xen_amd_pmu_emulate()
280 reg = &ctrl_regs[i]; in xen_amd_pmu_emulate()
/linux-6.12.1/drivers/mfd/
Dqcom_rpm.c52 void __iomem *ctrl_regs; member
61 #define RPM_CTRL_REG(rpm, i) ((rpm)->ctrl_regs + (i) * 4)
581 rpm->ctrl_regs = rpm->status_regs + 0x400; in qcom_rpm_probe()
/linux-6.12.1/drivers/iio/adc/
Dpac1934.c271 u8 ctrl_regs[PAC1934_CTRL_REG_LEN]; member
613 (u8 *)info->chip_reg_data.ctrl_regs); in pac1934_reg_snapshot()
634 samp_rate = samp_rate_map_tbl[((reg_data->ctrl_regs[PAC1934_CTRL_LAT_REG_OFF]) >> 6)]; in pac1934_reg_snapshot()
637 ctrl_regs_tmp = reg_data->ctrl_regs[PAC1934_CHANNEL_DIS_LAT_REG_OFF]; in pac1934_reg_snapshot()