Searched refs:reg_nr (Results 1 – 8 of 8) sorted by relevance
/drivers/clocksource/ |
D | sh_mtu2.c | 160 static inline unsigned long sh_mtu2_read(struct sh_mtu2_channel *ch, int reg_nr) in sh_mtu2_read() argument 164 if (reg_nr == TSTR) in sh_mtu2_read() 167 offs = mtu2_reg_offs[reg_nr]; in sh_mtu2_read() 169 if ((reg_nr == TCNT) || (reg_nr == TGR)) in sh_mtu2_read() 175 static inline void sh_mtu2_write(struct sh_mtu2_channel *ch, int reg_nr, in sh_mtu2_write() argument 180 if (reg_nr == TSTR) in sh_mtu2_write() 183 offs = mtu2_reg_offs[reg_nr]; in sh_mtu2_write() 185 if ((reg_nr == TCNT) || (reg_nr == TGR)) in sh_mtu2_write()
|
D | sh_tmu.c | 88 static inline unsigned long sh_tmu_read(struct sh_tmu_channel *ch, int reg_nr) in sh_tmu_read() argument 92 if (reg_nr == TSTR) { in sh_tmu_read() 101 offs = reg_nr << 2; in sh_tmu_read() 103 if (reg_nr == TCR) in sh_tmu_read() 109 static inline void sh_tmu_write(struct sh_tmu_channel *ch, int reg_nr, in sh_tmu_write() argument 114 if (reg_nr == TSTR) { in sh_tmu_write() 123 offs = reg_nr << 2; in sh_tmu_write() 125 if (reg_nr == TCR) in sh_tmu_write()
|
/drivers/gpio/ |
D | gpio-ich.c | 121 int reg_nr = nr / 32; in ichx_write_bit() local 128 data = ichx_priv.outlvl_cache[reg_nr]; in ichx_write_bit() 130 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 137 ICHX_WRITE(data, ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 140 ichx_priv.outlvl_cache[reg_nr] = data; in ichx_write_bit() 142 tmp = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 156 int reg_nr = nr / 32; in ichx_read_bit() local 161 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_read_bit() 165 data = ichx_priv.outlvl_cache[reg_nr] | data; in ichx_read_bit()
|
/drivers/input/keyboard/ |
D | sh_keysc.c | 52 static unsigned long sh_keysc_read(struct sh_keysc_priv *p, int reg_nr) in sh_keysc_read() argument 54 return ioread16(p->iomem_base + (reg_nr << 2)); in sh_keysc_read() 57 static void sh_keysc_write(struct sh_keysc_priv *p, int reg_nr, in sh_keysc_write() argument 60 iowrite16(value, p->iomem_base + (reg_nr << 2)); in sh_keysc_write()
|
/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 1271 int reg_nr; member 1283 if (sa_info->reg_nr > 15) { in set_address() 1284 sa_info->reg_nr = 8; in set_address() 1289 PutByte(sa_info->reg_nr++, addr[5 - i]); in set_address() 1291 PutByte(sa_info->reg_nr++, addr[i]); in set_address() 1312 sa_info.reg_nr = 15 + 1; in set_addresses()
|
/drivers/pwm/ |
D | pwm-renesas-tpu.c | 100 static void tpu_pwm_write(struct tpu_pwm_device *pwm, int reg_nr, u16 value) in tpu_pwm_write() argument 105 iowrite16(value, base + reg_nr); in tpu_pwm_write()
|
/drivers/video/fbdev/ |
D | sh_mobile_lcdcfb.c | 265 static bool banked(int reg_nr) in banked() argument 267 switch (reg_nr) { in banked() 291 int reg_nr, unsigned long data) in lcdc_write_chan() argument 293 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr]); in lcdc_write_chan() 294 if (banked(reg_nr)) in lcdc_write_chan() 295 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] + in lcdc_write_chan() 300 int reg_nr, unsigned long data) in lcdc_write_chan_mirror() argument 302 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] + in lcdc_write_chan_mirror() 307 int reg_nr) in lcdc_read_chan() argument 309 return ioread32(chan->lcdc->base + chan->reg_offs[reg_nr]); in lcdc_read_chan()
|
/drivers/net/ethernet/ |
D | jme.c | 2451 mdio_memcpy(struct jme_adapter *jme, u32 *p, int reg_nr) in mdio_memcpy() argument 2456 for (i = 0 ; i < reg_nr ; ++i) in mdio_memcpy()
|