/linux-6.1.9/drivers/clocksource/ |
D | sh_mtu2.c | 156 static inline unsigned long sh_mtu2_read(struct sh_mtu2_channel *ch, int reg_nr) in sh_mtu2_read() argument 160 if (reg_nr == TSTR) in sh_mtu2_read() 163 offs = mtu2_reg_offs[reg_nr]; in sh_mtu2_read() 165 if ((reg_nr == TCNT) || (reg_nr == TGR)) in sh_mtu2_read() 171 static inline void sh_mtu2_write(struct sh_mtu2_channel *ch, int reg_nr, in sh_mtu2_write() argument 176 if (reg_nr == TSTR) in sh_mtu2_write() 179 offs = mtu2_reg_offs[reg_nr]; in sh_mtu2_write() 181 if ((reg_nr == TCNT) || (reg_nr == TGR)) in sh_mtu2_write()
|
D | sh_tmu.c | 84 static inline unsigned long sh_tmu_read(struct sh_tmu_channel *ch, int reg_nr) in sh_tmu_read() argument 88 if (reg_nr == TSTR) { in sh_tmu_read() 97 offs = reg_nr << 2; in sh_tmu_read() 99 if (reg_nr == TCR) in sh_tmu_read() 105 static inline void sh_tmu_write(struct sh_tmu_channel *ch, int reg_nr, in sh_tmu_write() argument 110 if (reg_nr == TSTR) { in sh_tmu_write() 119 offs = reg_nr << 2; in sh_tmu_write() 121 if (reg_nr == TCR) in sh_tmu_write()
|
/linux-6.1.9/drivers/gpio/ |
D | gpio-ich.c | 105 int reg_nr = nr / 32; in ichx_write_bit() local 111 data = ichx_priv.outlvl_cache[reg_nr]; in ichx_write_bit() 113 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 120 ICHX_WRITE(data, ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 123 ichx_priv.outlvl_cache[reg_nr] = data; in ichx_write_bit() 125 tmp = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 137 int reg_nr = nr / 32; in ichx_read_bit() local 142 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_read_bit() 146 data = ichx_priv.outlvl_cache[reg_nr] | data; in ichx_read_bit()
|
/linux-6.1.9/drivers/input/keyboard/ |
D | sh_keysc.c | 49 static unsigned long sh_keysc_read(struct sh_keysc_priv *p, int reg_nr) in sh_keysc_read() argument 51 return ioread16(p->iomem_base + (reg_nr << 2)); in sh_keysc_read() 54 static void sh_keysc_write(struct sh_keysc_priv *p, int reg_nr, in sh_keysc_write() argument 57 iowrite16(value, p->iomem_base + (reg_nr << 2)); in sh_keysc_write()
|
/linux-6.1.9/arch/sh/kernel/ |
D | kprobes.c | 157 unsigned int reg_nr = ((p->opcode >> 8) & 0x000F); in prepare_singlestep() local 158 op1->addr = (kprobe_opcode_t *) regs->regs[reg_nr]; in prepare_singlestep() 165 unsigned int reg_nr = ((p->opcode >> 8) & 0x000F); in prepare_singlestep() local 168 regs->regs[reg_nr]); in prepare_singlestep()
|
/linux-6.1.9/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 1264 int reg_nr; member 1276 if (sa_info->reg_nr > 15) { in set_address() 1277 sa_info->reg_nr = 8; in set_address() 1282 PutByte(sa_info->reg_nr++, addr[5 - i]); in set_address() 1284 PutByte(sa_info->reg_nr++, addr[i]); in set_address() 1305 sa_info.reg_nr = 15 + 1; in set_addresses()
|
/linux-6.1.9/drivers/pwm/ |
D | pwm-renesas-tpu.c | 92 static void tpu_pwm_write(struct tpu_pwm_device *tpd, int reg_nr, u16 value) in tpu_pwm_write() argument 97 iowrite16(value, base + reg_nr); in tpu_pwm_write()
|
/linux-6.1.9/drivers/video/fbdev/ |
D | sh_mobile_lcdcfb.c | 262 static bool banked(int reg_nr) in banked() argument 264 switch (reg_nr) { in banked() 288 int reg_nr, unsigned long data) in lcdc_write_chan() argument 290 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr]); in lcdc_write_chan() 291 if (banked(reg_nr)) in lcdc_write_chan() 292 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] + in lcdc_write_chan() 297 int reg_nr, unsigned long data) in lcdc_write_chan_mirror() argument 299 iowrite32(data, chan->lcdc->base + chan->reg_offs[reg_nr] + in lcdc_write_chan_mirror() 304 int reg_nr) in lcdc_read_chan() argument 306 return ioread32(chan->lcdc->base + chan->reg_offs[reg_nr]); in lcdc_read_chan()
|
/linux-6.1.9/drivers/net/ethernet/ |
D | jme.c | 2356 mdio_memcpy(struct jme_adapter *jme, u32 *p, int reg_nr) in mdio_memcpy() argument 2361 for (i = 0 ; i < reg_nr ; ++i) in mdio_memcpy()
|