Home
last modified time | relevance | path

Searched refs:reg_index (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.6.21/drivers/pinctrl/nomadik/
Dpinctrl-nomadik.h35 .reg_index = altc1_ri,\
40 .reg_index = altc2_ri,\
45 .reg_index = altc3_ri,\
50 .reg_index = altc4_ri,\
84 u8 reg_index:2; member
Dpinctrl-nomadik.c485 reg = gpiocr_regs[pin_desc->altcx[i].reg_index]; in nmk_prcm_altcx_set_mode()
514 reg = gpiocr_regs[pin_desc->altcx[i].reg_index]; in nmk_prcm_altcx_set_mode()
525 reg = gpiocr_regs[pin_desc->altcx[alt_index].reg_index]; in nmk_prcm_altcx_set_mode()
601 reg = gpiocr_regs[pin_desc->altcx[i].reg_index]; in nmk_prcm_gpiocr_get_mode()
/linux-6.6.21/drivers/powercap/
Dintel_rapl_tpmi.c138 enum tpmi_rapl_register reg_index; in parse_one_domain() local
187 reg_index = TPMI_RAPL_REG_HEADER; in parse_one_domain()
188 while (++reg_index != TPMI_RAPL_REG_MAX) { in parse_one_domain()
189 if (!(tpmi_domain_flags & BIT(reg_index))) in parse_one_domain()
192 switch (reg_index) { in parse_one_domain()
220 trp->priv.regs[domain_type][reg_id].mmio = trp->base + offset + reg_index * 8; in parse_one_domain()
/linux-6.6.21/drivers/media/tuners/
Dqm1d1c0042.c42 static int reg_index; variable
341 for (reg_index = 0; reg_index < QM1D1C0042_NUM_REG_ROWS; in qm1d1c0042_init()
342 reg_index++) { in qm1d1c0042_init()
343 if (val == reg_initval[reg_index][0x00]) in qm1d1c0042_init()
346 if (reg_index >= QM1D1C0042_NUM_REG_ROWS) { in qm1d1c0042_init()
350 memcpy(state->regs, reg_initval[reg_index], QM1D1C0042_NUM_REGS); in qm1d1c0042_init()
/linux-6.6.21/drivers/irqchip/
Dirq-mtk-sysirq.c32 u32 offset, reg_index, value; in mtk_sysirq_set_type() local
37 reg_index = chip_data->which_word[hwirq]; in mtk_sysirq_set_type()
41 value = readl_relaxed(base + reg_index * 4); in mtk_sysirq_set_type()
52 writel_relaxed(value, base + reg_index * 4); in mtk_sysirq_set_type()
/linux-6.6.21/drivers/power/supply/
Dbq27xxx_battery.c1107 static inline int bq27xxx_read(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_read() argument
1112 if (!di || di->regs[reg_index] == INVALID_REG_ADDR) in bq27xxx_read()
1115 ret = di->bus.read(di, di->regs[reg_index], single); in bq27xxx_read()
1118 di->regs[reg_index], reg_index); in bq27xxx_read()
1123 static inline int bq27xxx_write(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_write() argument
1128 if (!di || di->regs[reg_index] == INVALID_REG_ADDR) in bq27xxx_write()
1134 ret = di->bus.write(di, di->regs[reg_index], value, single); in bq27xxx_write()
1137 di->regs[reg_index], reg_index); in bq27xxx_write()
1142 static inline int bq27xxx_read_block(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_read_block() argument
1147 if (!di || di->regs[reg_index] == INVALID_REG_ADDR) in bq27xxx_read_block()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_lsdma.c30 uint32_t reg_index, uint32_t reg_val, in amdgpu_lsdma_wait_for() argument
37 val = RREG32(reg_index); in amdgpu_lsdma_wait_for()
Dclearstate_defs.h35 const unsigned int reg_index; member
Damdgpu_lsdma.h43 int amdgpu_lsdma_wait_for(struct amdgpu_device *adev, uint32_t reg_index,
Damdgpu_psp.h464 extern int psp_wait_for(struct psp_context *psp, uint32_t reg_index,
466 extern int psp_wait_for_spirom_update(struct psp_context *psp, uint32_t reg_index,
/linux-6.6.21/tools/arch/x86/kcpuid/
Dkcpuid.c314 int reg_index; in parse_line() local
362 reg_index = R_EAX; in parse_line()
364 reg_index = R_EBX; in parse_line()
366 reg_index = R_ECX; in parse_line()
368 reg_index = R_EDX; in parse_line()
372 reg = &leaf->info[reg_index]; in parse_line()
/linux-6.6.21/arch/powerpc/platforms/ps3/
Dplatform.h114 unsigned int dev_index, unsigned int reg_index,
117 unsigned int dev_index, unsigned int reg_index, u64 *bus_addr,
120 unsigned int dev_index, unsigned int reg_index,
Drepository.c250 unsigned int dev_index, unsigned int reg_index, in ps3_repository_read_dev_reg_type() argument
259 make_field("reg", reg_index), in ps3_repository_read_dev_reg_type()
267 unsigned int dev_index, unsigned int reg_index, u64 *bus_addr, u64 *len) in ps3_repository_read_dev_reg_addr() argument
272 make_field("reg", reg_index), in ps3_repository_read_dev_reg_addr()
278 unsigned int dev_index, unsigned int reg_index, in ps3_repository_read_dev_reg() argument
282 reg_index, reg_type); in ps3_repository_read_dev_reg()
285 reg_index, bus_addr, len); in ps3_repository_read_dev_reg()
/linux-6.6.21/drivers/media/dvb-frontends/
Dstv0900_core.c882 reg_index, in stv0900_activate_s2_modcod() local
894 reg_index = MODCODLSTF - mod_code / 2; in stv0900_activate_s2_modcod()
916 stv0900_write_reg(intp, reg_index, in stv0900_activate_s2_modcod()
919 stv0900_write_reg(intp, reg_index, in stv0900_activate_s2_modcod()
924 for (reg_index = 0; reg_index < 7; reg_index++) in stv0900_activate_s2_modcod()
925 stv0900_write_reg(intp, MODCODLST0 + reg_index, 0xff); in stv0900_activate_s2_modcod()
929 for (reg_index = 0; reg_index < 8; reg_index++) in stv0900_activate_s2_modcod()
930 stv0900_write_reg(intp, MODCODLST7 + reg_index, 0xcc); in stv0900_activate_s2_modcod()
939 u32 reg_index; in stv0900_activate_s2_modcod_single() local
946 for (reg_index = 0; reg_index < 13; reg_index++) in stv0900_activate_s2_modcod_single()
[all …]
/linux-6.6.21/drivers/gpu/drm/radeon/
Dclearstate_defs.h35 const unsigned int reg_index; member
Dsumo_dpm.c476 u32 reg_index = index / 4; in sumo_set_divider_value() local
480 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_set_divider_value()
483 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_set_divider_value()
486 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_set_divider_value()
489 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_set_divider_value()
582 u32 reg_index = index / 4; in sumo_power_level_enable() local
586 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_power_level_enable()
589 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_power_level_enable()
592 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_power_level_enable()
595 WREG32_P(CG_SCLK_DPM_CTRL + (reg_index * 4), in sumo_power_level_enable()
/linux-6.6.21/sound/pci/oxygen/
Dxonar_wm87x6.c505 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_get() local
509 ((data->wm8776_regs[reg_index] & bit) != 0) ^ invert; in wm8776_bit_switch_get()
520 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_put() local
525 reg_value = data->wm8776_regs[reg_index] & ~bit; in wm8776_bit_switch_put()
528 changed = reg_value != data->wm8776_regs[reg_index]; in wm8776_bit_switch_put()
530 wm8776_write(chip, reg_index, reg_value); in wm8776_bit_switch_put()
612 unsigned int value, reg_index, mode; in wm8776_field_set_from_ctl() local
630 reg_index = (ctl->private_value >> 24) & 0x1f; in wm8776_field_set_from_ctl()
635 reg_value = data->wm8776_regs[reg_index]; in wm8776_field_set_from_ctl()
638 wm8776_write_cached(chip, reg_index, reg_value); in wm8776_field_set_from_ctl()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_audio.c56 uint32_t reg_index, in write_indirect_azalia_reg() argument
63 AZALIA_ENDPOINT_REG_INDEX, reg_index); in write_indirect_azalia_reg()
70 static uint32_t read_indirect_azalia_reg(struct audio *audio, uint32_t reg_index) in read_indirect_azalia_reg() argument
78 AZALIA_ENDPOINT_REG_INDEX, reg_index); in read_indirect_azalia_reg()
/linux-6.6.21/drivers/scsi/libsas/
Dsas_host_smp.c114 u8 reg_type, u8 reg_index, u8 reg_count, in sas_host_smp_write_gpio() argument
125 written = i->dft->lldd_write_gpio(sas_ha, reg_type, reg_index, in sas_host_smp_write_gpio()
/linux-6.6.21/drivers/platform/x86/
Dpmc_atom.c256 static void pmc_dev_state_print(struct seq_file *s, int reg_index, in pmc_dev_state_print() argument
260 int offset = PMC_REG_BIT_WIDTH * reg_index; in pmc_dev_state_print()
/linux-6.6.21/arch/arm/mach-omap2/
Domap-wakeupgen.c92 static inline int _wakeupgen_get_irq_info(u32 irq, u32 *bit_posn, u8 *reg_index) in _wakeupgen_get_irq_info() argument
98 *reg_index = irq >> 5; in _wakeupgen_get_irq_info()
/linux-6.6.21/drivers/scsi/mvsas/
Dmv_sas.h158 u8 reg_index, u8 reg_count, u8 *write_data);
453 int mvs_gpio_write(struct sas_ha_struct *, u8 reg_type, u8 reg_index,
Dmv_94xx.c1042 u8 reg_type, u8 reg_index, in mvs_94xx_gpio_write() argument
1050 if (reg_index == 0) in mvs_94xx_gpio_write()
1113 if (reg_index + reg_count > mvs_prv->n_host) in mvs_94xx_gpio_write()
1117 struct mvs_info *mvi = mvs_prv->mvi[i+reg_index]; in mvs_94xx_gpio_write()
/linux-6.6.21/drivers/regulator/
Dda9121-regulator.c137 int reg_index; /* index for status/event/mask register selection */ member
642 int reg_idx = item->reg_index; in da9121_status_poll_on()
713 int reg_idx = item->reg_index; in da9121_irq_handler()
/linux-6.6.21/drivers/scsi/isci/
Dhost.h514 int isci_gpio_write(struct sas_ha_struct *, u8 reg_type, u8 reg_index,

12