Home
last modified time | relevance | path

Searched refs:reg_nr (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/drivers/clocksource/
Dsh_mtu2.c156 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()
Dsh_tmu.c84 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.12.1/drivers/gpio/
Dgpio-ich.c105 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.12.1/drivers/input/keyboard/
Dsh_keysc.c49 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.12.1/arch/sh/kernel/
Dkprobes.c152 unsigned int reg_nr = ((p->opcode >> 8) & 0x000F); in prepare_singlestep() local
153 op1->addr = (kprobe_opcode_t *) regs->regs[reg_nr]; in prepare_singlestep()
160 unsigned int reg_nr = ((p->opcode >> 8) & 0x000F); in prepare_singlestep() local
163 regs->regs[reg_nr]); in prepare_singlestep()
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_lrc.h68 u32 xe_lrc_read_ctx_reg(struct xe_lrc *lrc, int reg_nr);
69 void xe_lrc_write_ctx_reg(struct xe_lrc *lrc, int reg_nr, u32 val);
Dxe_lrc.c809 static u32 xe_lrc_read_indirect_ctx_reg(struct xe_lrc *lrc, int reg_nr) in xe_lrc_read_indirect_ctx_reg() argument
815 iosys_map_incr(&map, reg_nr * sizeof(u32)); in xe_lrc_read_indirect_ctx_reg()
820 int reg_nr, u32 val) in xe_lrc_write_indirect_ctx_reg() argument
826 iosys_map_incr(&map, reg_nr * sizeof(u32)); in xe_lrc_write_indirect_ctx_reg()
830 u32 xe_lrc_read_ctx_reg(struct xe_lrc *lrc, int reg_nr) in xe_lrc_read_ctx_reg() argument
836 iosys_map_incr(&map, reg_nr * sizeof(u32)); in xe_lrc_read_ctx_reg()
840 void xe_lrc_write_ctx_reg(struct xe_lrc *lrc, int reg_nr, u32 val) in xe_lrc_write_ctx_reg() argument
846 iosys_map_incr(&map, reg_nr * sizeof(u32)); in xe_lrc_write_ctx_reg()
/linux-6.12.1/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c1267 int reg_nr; member
1279 if (sa_info->reg_nr > 15) { in set_address()
1280 sa_info->reg_nr = 8; in set_address()
1285 PutByte(sa_info->reg_nr++, addr[5 - i]); in set_address()
1287 PutByte(sa_info->reg_nr++, addr[i]); in set_address()
1308 sa_info.reg_nr = 15 + 1; in set_addresses()
/linux-6.12.1/drivers/video/fbdev/
Dsh_mobile_lcdcfb.c262 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.12.1/drivers/pwm/
Dpwm-renesas-tpu.c94 static void tpu_pwm_write(struct tpu_pwm_device *tpd, int reg_nr, u16 value) in tpu_pwm_write() argument
99 iowrite16(value, base + reg_nr); in tpu_pwm_write()
/linux-6.12.1/drivers/net/ethernet/
Djme.c2354 mdio_memcpy(struct jme_adapter *jme, u32 *p, int reg_nr) in mdio_memcpy() argument
2359 for (i = 0 ; i < reg_nr ; ++i) in mdio_memcpy()