Searched refs:reg_nr (Results 1 - 8 of 8) sorted by relevance

/drivers/clocksource/
H A Dsh_mtu2.c160 static inline unsigned long sh_mtu2_read(struct sh_mtu2_channel *ch, int reg_nr) argument
164 if (reg_nr == TSTR)
167 offs = mtu2_reg_offs[reg_nr];
169 if ((reg_nr == TCNT) || (reg_nr == TGR))
175 static inline void sh_mtu2_write(struct sh_mtu2_channel *ch, int reg_nr, argument
180 if (reg_nr == TSTR)
183 offs = mtu2_reg_offs[reg_nr];
185 if ((reg_nr == TCNT) || (reg_nr
[all...]
H A Dsh_tmu.c88 static inline unsigned long sh_tmu_read(struct sh_tmu_channel *ch, int reg_nr) argument
92 if (reg_nr == TSTR) {
101 offs = reg_nr << 2;
103 if (reg_nr == TCR)
109 static inline void sh_tmu_write(struct sh_tmu_channel *ch, int reg_nr, argument
114 if (reg_nr == TSTR) {
123 offs = reg_nr << 2;
125 if (reg_nr == TCR)
/drivers/gpio/
H A Dgpio-ich.c120 int reg_nr = nr / 32; local
127 data = ichx_priv.outlvl_cache[reg_nr];
129 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr],
136 ICHX_WRITE(data, ichx_priv.desc->regs[reg][reg_nr],
139 ichx_priv.outlvl_cache[reg_nr] = data;
141 tmp = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr],
155 int reg_nr = nr / 32; local
160 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr],
164 data = ichx_priv.outlvl_cache[reg_nr] | data;
/drivers/input/keyboard/
H A Dsh_keysc.c52 static unsigned long sh_keysc_read(struct sh_keysc_priv *p, int reg_nr) argument
54 return ioread16(p->iomem_base + (reg_nr << 2));
57 static void sh_keysc_write(struct sh_keysc_priv *p, int reg_nr, argument
60 iowrite16(value, p->iomem_base + (reg_nr << 2));
/drivers/net/ethernet/xircom/
H A Dxirc2ps_cs.c1271 int reg_nr; member in struct:set_address_info
1283 if (sa_info->reg_nr > 15) {
1284 sa_info->reg_nr = 8;
1289 PutByte(sa_info->reg_nr++, addr[5 - i]);
1291 PutByte(sa_info->reg_nr++, addr[i]);
1312 sa_info.reg_nr = 15 + 1;
/drivers/pwm/
H A Dpwm-renesas-tpu.c100 static void tpu_pwm_write(struct tpu_pwm_device *pwm, int reg_nr, u16 value) argument
105 iowrite16(value, base + reg_nr);
/drivers/video/fbdev/
H A Dsh_mobile_lcdcfb.c265 static bool banked(int reg_nr) argument
267 switch (reg_nr) {
291 int reg_nr, unsigned long data)
293 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr]);
294 if (banked(reg_nr))
295 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] +
300 int reg_nr, unsigned long data)
302 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] +
307 int reg_nr)
309 return ioread32(chan->lcdc->base + chan->reg_offs[reg_nr]);
290 lcdc_write_chan(struct sh_mobile_lcdc_chan *chan, int reg_nr, unsigned long data) argument
299 lcdc_write_chan_mirror(struct sh_mobile_lcdc_chan *chan, int reg_nr, unsigned long data) argument
306 lcdc_read_chan(struct sh_mobile_lcdc_chan *chan, int reg_nr) argument
[all...]
/drivers/net/ethernet/
H A Djme.c2449 mdio_memcpy(struct jme_adapter *jme, u32 *p, int reg_nr) argument
2454 for (i = 0 ; i < reg_nr ; ++i)

Completed in 206 milliseconds