| /OK3568_Linux_fs/kernel/drivers/irqchip/ |
| H A D | irq-sunxi-nmi.c | 160 const struct sunxi_sc_nmi_reg_offs *reg_offs) in sunxi_sc_nmi_irq_init() argument 204 gc->chip_types[0].regs.ack = reg_offs->pend; in sunxi_sc_nmi_irq_init() 205 gc->chip_types[0].regs.mask = reg_offs->enable; in sunxi_sc_nmi_irq_init() 206 gc->chip_types[0].regs.type = reg_offs->ctrl; in sunxi_sc_nmi_irq_init() 214 gc->chip_types[1].regs.ack = reg_offs->pend; in sunxi_sc_nmi_irq_init() 215 gc->chip_types[1].regs.mask = reg_offs->enable; in sunxi_sc_nmi_irq_init() 216 gc->chip_types[1].regs.type = reg_offs->ctrl; in sunxi_sc_nmi_irq_init() 220 sunxi_sc_nmi_write(gc, reg_offs->enable, 0); in sunxi_sc_nmi_irq_init() 223 sunxi_sc_nmi_write(gc, reg_offs->pend, SUNXI_NMI_IRQ_BIT); in sunxi_sc_nmi_irq_init()
|
| H A D | irq-imgpdc.c | 89 static void pdc_write(struct pdc_intc_priv *priv, unsigned int reg_offs, in pdc_write() argument 92 iowrite32(data, priv->pdc_base + reg_offs); in pdc_write() 96 unsigned int reg_offs) in pdc_read() argument 98 return ioread32(priv->pdc_base + reg_offs); in pdc_read()
|
| /OK3568_Linux_fs/kernel/drivers/media/rc/img-ir/ |
| H A D | img-ir.h | 158 unsigned int reg_offs, unsigned int data) in img_ir_write() argument 160 iowrite32(data, priv->reg_base + reg_offs); in img_ir_write() 164 unsigned int reg_offs) in img_ir_read() argument 166 return ioread32(priv->reg_base + reg_offs); in img_ir_read()
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/ |
| H A D | dib7000m.c | 40 u8 reg_offs; member 140 if (state->reg_offs && (r >= 112 && r <= 331)) // compensate for 7000MC in dib7000m_write_tab() 159 smo_mode = (dib7000m_read_word(state, 294 + state->reg_offs) & 0x0010) | (1 << 1); in dib7000m_set_output_mode() 195 ret |= dib7000m_write_word(state, 294 + state->reg_offs, smo_mode); in dib7000m_set_output_mode() 196 ret |= dib7000m_write_word(state, 295 + state->reg_offs, fifo_threshold); /* synchronous fread */ in dib7000m_set_output_mode() 353 dib7000m_write_word(state, 263 + state->reg_offs, 6); in dib7000m_set_diversity_in() 354 dib7000m_write_word(state, 264 + state->reg_offs, 6); in dib7000m_set_diversity_in() 355 …dib7000m_write_word(state, 266 + state->reg_offs, (state->div_sync_wait << 4) | (1 << 2) | (2 << 0… in dib7000m_set_diversity_in() 357 dib7000m_write_word(state, 263 + state->reg_offs, 1); in dib7000m_set_diversity_in() 358 dib7000m_write_word(state, 264 + state->reg_offs, 0); in dib7000m_set_diversity_in() [all …]
|
| H A D | dib9000.c | 56 u8 reg_offs; member 976 state->reg_offs = 1; in dib9000_fw_reset()
|
| /OK3568_Linux_fs/kernel/drivers/thermal/broadcom/ |
| H A D | brcmstb_thermal.c | 73 u32 reg_offs; member 83 .reg_offs = AVS_TMON_INT_THRESH, 91 .reg_offs = AVS_TMON_INT_THRESH, 99 .reg_offs = AVS_TMON_RESET_THRESH, 197 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp() 221 orig = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp() 224 __raw_writel(orig, priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | fsl_upm.c | 82 u32 mar, reg_offs = fun->mchip_offsets[fun->mchip_number]; in func_exec_instr() local 91 reg_offs; in func_exec_instr() 92 fsl_upm_run_pattern(&fun->upm, fun->io_base + reg_offs, mar); in func_exec_instr() 100 reg_offs; in func_exec_instr() 101 fsl_upm_run_pattern(&fun->upm, fun->io_base + reg_offs, mar); in func_exec_instr() 109 in[i] = in_8(fun->io_base + reg_offs); in func_exec_instr() 115 out_8(fun->io_base + reg_offs, out[i]); in func_exec_instr()
|
| /OK3568_Linux_fs/kernel/drivers/misc/genwqe/ |
| H A D | card_dev.c | 1061 u32 reg_offs; in genwqe_ioctl() local 1080 if (get_user(reg_offs, &io->num)) in genwqe_ioctl() 1083 if ((reg_offs >= cd->mmio_len) || (reg_offs & 0x7)) in genwqe_ioctl() 1086 val = __genwqe_readq(cd, reg_offs); in genwqe_ioctl() 1100 if (get_user(reg_offs, &io->num)) in genwqe_ioctl() 1103 if ((reg_offs >= cd->mmio_len) || (reg_offs & 0x7)) in genwqe_ioctl() 1109 __genwqe_writeq(cd, reg_offs, val); in genwqe_ioctl() 1116 if (get_user(reg_offs, &io->num)) in genwqe_ioctl() 1119 if ((reg_offs >= cd->mmio_len) || (reg_offs & 0x3)) in genwqe_ioctl() 1122 val = __genwqe_readl(cd, reg_offs); in genwqe_ioctl() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/imx/ |
| H A D | gpc.c | 48 unsigned int reg_offs; member 66 regmap_read(pd->regmap, pd->reg_offs + GPC_PGC_PDNSCR_OFFS, &val); in imx6_pm_domain_power_off() 71 regmap_update_bits(pd->regmap, pd->reg_offs + GPC_PGC_CTRL_OFFS, in imx6_pm_domain_power_off() 107 regmap_update_bits(pd->regmap, pd->reg_offs + GPC_PGC_CTRL_OFFS, in imx6_pm_domain_power_on() 267 .reg_offs = 0x260, 276 .reg_offs = 0x240, 285 .reg_offs = 0x200,
|
| /OK3568_Linux_fs/kernel/arch/microblaze/kernel/ |
| H A D | ptrace.c | 47 static microblaze_reg_t *reg_save_addr(unsigned reg_offs, in reg_save_addr() argument 75 return (microblaze_reg_t *)((char *)regs + reg_offs); in reg_save_addr()
|
| /OK3568_Linux_fs/kernel/drivers/soc/renesas/ |
| H A D | r8a779a0-sysc.c | 148 unsigned int reg_offs; in r8a779a0_sysc_pwr_on_off() local 153 reg_offs = PDRONCR(pdr); in r8a779a0_sysc_pwr_on_off() 155 reg_offs = PDROFFCR(pdr); in r8a779a0_sysc_pwr_on_off() 165 iowrite32(PWRON_PWROFF, r8a779a0_sysc_base + reg_offs); in r8a779a0_sysc_pwr_on_off()
|
| H A D | rcar-sysc.c | 70 unsigned int sr_bit, reg_offs; in rcar_sysc_pwr_on_off() local 75 reg_offs = PWRONCR_OFFS; in rcar_sysc_pwr_on_off() 78 reg_offs = PWROFFCR_OFFS; in rcar_sysc_pwr_on_off() 93 rcar_sysc_base + sysc_ch->chan_offs + reg_offs); in rcar_sysc_pwr_on_off()
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-sh-msiof.c | 192 static u32 sh_msiof_read(struct sh_msiof_spi_priv *p, int reg_offs) in sh_msiof_read() argument 194 switch (reg_offs) { in sh_msiof_read() 197 return ioread16(p->mapbase + reg_offs); in sh_msiof_read() 199 return ioread32(p->mapbase + reg_offs); in sh_msiof_read() 203 static void sh_msiof_write(struct sh_msiof_spi_priv *p, int reg_offs, in sh_msiof_write() argument 206 switch (reg_offs) { in sh_msiof_write() 209 iowrite16(value, p->mapbase + reg_offs); in sh_msiof_write() 212 iowrite32(value, p->mapbase + reg_offs); in sh_msiof_write()
|
| /OK3568_Linux_fs/external/mpp/osal/driver/ |
| H A D | mpp_device.c | 154 if (api->reg_offs) in mpp_dev_ioctl() 155 ret = api->reg_offs(impl_ctx, param); in mpp_dev_ioctl()
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/ |
| H A D | sh_mobile_lcdcfb.c | 291 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr]); in lcdc_write_chan() 293 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] + in lcdc_write_chan() 300 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] + in lcdc_write_chan_mirror() 307 return ioread32(chan->lcdc->base + chan->reg_offs[reg_nr]); in lcdc_read_chan() 318 unsigned long reg_offs, unsigned long data) in lcdc_write() argument 320 iowrite32(data, priv->base + reg_offs); in lcdc_write() 324 unsigned long reg_offs) in lcdc_read() argument 326 return ioread32(priv->base + reg_offs); in lcdc_read() 330 unsigned long reg_offs, in lcdc_wait_bit() argument 333 while ((lcdc_read(priv, reg_offs) & mask) != until) in lcdc_wait_bit() [all …]
|
| H A D | sh_mobile_lcdcfb.h | 61 unsigned long *reg_offs; member
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap2/ |
| H A D | omap_hwmod.h | 635 void omap_hwmod_write(u32 v, struct omap_hwmod *oh, u16 reg_offs); 636 u32 omap_hwmod_read(struct omap_hwmod *oh, u16 reg_offs);
|
| H A D | omap_hwmod.c | 2921 u32 omap_hwmod_read(struct omap_hwmod *oh, u16 reg_offs) in omap_hwmod_read() argument 2924 return readw_relaxed(oh->_mpu_rt_va + reg_offs); in omap_hwmod_read() 2926 return readl_relaxed(oh->_mpu_rt_va + reg_offs); in omap_hwmod_read() 2929 void omap_hwmod_write(u32 v, struct omap_hwmod *oh, u16 reg_offs) in omap_hwmod_write() argument 2932 writew_relaxed(v, oh->_mpu_rt_va + reg_offs); in omap_hwmod_write() 2934 writel_relaxed(v, oh->_mpu_rt_va + reg_offs); in omap_hwmod_write()
|
| /OK3568_Linux_fs/external/mpp/osal/inc/ |
| H A D | mpp_device.h | 119 MPP_RET (*reg_offs)(void *ctx, MppDevRegOffCfgs *cfg); member
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/brcmnand/ |
| H A D | brcmnand.c | 1071 u16 offset0, offset10, reg_offs; in oob_reg_read() local 1080 reg_offs = offset10 + ((offs - 0x10) & ~0x03); in oob_reg_read() 1082 reg_offs = offset0 + (offs & ~0x03); in oob_reg_read() 1084 return nand_readreg(ctrl, reg_offs) >> (24 - ((offs & 0x03) << 3)); in oob_reg_read() 1090 u16 offset0, offset10, reg_offs; in oob_reg_write() local 1099 reg_offs = offset10 + ((offs - 0x10) & ~0x03); in oob_reg_write() 1101 reg_offs = offset0 + (offs & ~0x03); in oob_reg_write() 1103 nand_writereg(ctrl, reg_offs, data); in oob_reg_write()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/brcmnand/ |
| H A D | brcmnand.c | 1362 u16 offset0, offset10, reg_offs; in oob_reg_read() local 1371 reg_offs = offset10 + ((offs - 0x10) & ~0x03); in oob_reg_read() 1373 reg_offs = offset0 + (offs & ~0x03); in oob_reg_read() 1375 return nand_readreg(ctrl, reg_offs) >> (24 - ((offs & 0x03) << 3)); in oob_reg_read() 1381 u16 offset0, offset10, reg_offs; in oob_reg_write() local 1390 reg_offs = offset10 + ((offs - 0x10) & ~0x03); in oob_reg_write() 1392 reg_offs = offset0 + (offs & ~0x03); in oob_reg_write() 1394 nand_writereg(ctrl, reg_offs, data); in oob_reg_write()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/ |
| H A D | renesas-ceu.c | 301 static void ceu_write(struct ceu_device *priv, unsigned int reg_offs, u32 data) in ceu_write() argument 303 iowrite32(data, priv->base + reg_offs); in ceu_write() 306 static u32 ceu_read(struct ceu_device *priv, unsigned int reg_offs) in ceu_read() argument 308 return ioread32(priv->base + reg_offs); in ceu_read()
|