/linux/drivers/media/i2c/ |
H A D | ks0127.c | 195 static u8 reg_defaults[64]; variable 200 u8 *table = reg_defaults; in init_reg_defaults() 351 u8 *table = reg_defaults; in ks0127_init() 421 (reg_defaults[KS_LUMA])|0x0c); in ks0127_s_routing() 430 ks0127_write(sd, KS_UGAIN, reg_defaults[KS_UGAIN]); in ks0127_s_routing() 431 ks0127_write(sd, KS_VGAIN, reg_defaults[KS_VGAIN]); in ks0127_s_routing() 432 ks0127_write(sd, KS_UVOFFH, reg_defaults[KS_UVOFFH]); in ks0127_s_routing() 433 ks0127_write(sd, KS_UVOFFL, reg_defaults[KS_UVOFFL]); in ks0127_s_routing() 454 reg_defaults[KS_LUMA]); in ks0127_s_routing() 457 (reg_defaults[KS_VERTIA]&0xf0)|0x01); in ks0127_s_routing() [all …]
|
/linux/drivers/base/regmap/ |
H A D | regcache.c | 48 map->reg_defaults = kmalloc_array(count, sizeof(struct reg_default), in regcache_hw_init() 50 if (!map->reg_defaults) in regcache_hw_init() 100 map->reg_defaults[j].reg = reg; in regcache_hw_init() 101 map->reg_defaults[j].def = val; in regcache_hw_init() 108 kfree(map->reg_defaults); in regcache_hw_init() 120 if (config->reg_defaults || config->num_reg_defaults_raw) in regcache_init() 128 if (config->reg_defaults && !config->num_reg_defaults) { in regcache_init() 134 if (config->num_reg_defaults && !config->reg_defaults) { in regcache_init() 141 if (config->reg_defaults[i].reg % map->reg_stride) in regcache_init() 172 if (config->reg_defaults) { in regcache_init() [all …]
|
H A D | regcache-maple.c | 328 entry[i] = map->reg_defaults[first + i].def; in regcache_maple_insert_block() 332 mas_set_range(&mas, map->reg_defaults[first].reg, in regcache_maple_insert_block() 333 map->reg_defaults[last].reg); in regcache_maple_insert_block() 368 if (map->reg_defaults[i].reg != in regcache_maple_init() 369 map->reg_defaults[i - 1].reg + 1) { in regcache_maple_init()
|
H A D | regcache-flat.c | 37 unsigned int reg = map->reg_defaults[i].reg; in regcache_flat_init() 40 cache[index] = map->reg_defaults[i].def; in regcache_flat_init()
|
H A D | regmap-kunit.c | 199 config->reg_defaults = defaults; in gen_regmap() 587 static void reg_defaults(struct kunit *test) in reg_defaults() function 1040 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, config.reg_defaults[i].reg, in cache_sync_defaults_marked_dirty() 1041 config.reg_defaults[i].def)); in cache_sync_defaults_marked_dirty() 1663 config->reg_defaults = defaults; in gen_raw_regmap() 1723 KUNIT_EXPECT_EQ(test, config.reg_defaults[i].def, rval); in raw_read_defaults_single() 1753 def = config.reg_defaults[i].def; in raw_read_defaults() 1825 KUNIT_EXPECT_EQ(test, config.reg_defaults[i].def, rval); in raw_write() 1937 KUNIT_EXPECT_EQ(test, config.reg_defaults[i].def, rval); in raw_sync() 2038 KUNIT_CASE_PARAM(reg_defaults, regcache_types_gen_params),
|
/linux/drivers/mfd/ |
H A D | wm97xx-core.c | 100 .reg_defaults = wm9705_reg_defaults, 168 .reg_defaults = wm9712_reg_defaults, 239 .reg_defaults = wm9713_reg_defaults,
|
H A D | wm8994-regmap.c | 1243 .reg_defaults = wm1811_defaults, 1258 .reg_defaults = wm8994_defaults, 1273 .reg_defaults = wm8958_defaults,
|
H A D | cs42l43-i2c.c | 34 .reg_defaults = cs42l43_reg_default,
|
H A D | cs47l15-tables.c | 1253 .reg_defaults = cs47l15_reg_default, 1268 .reg_defaults = cs47l15_reg_default,
|
/linux/sound/soc/codecs/ |
H A D | rt715-sdca-sdw.c | 98 .reg_defaults = rt715_reg_defaults_sdca, 112 .reg_defaults = rt715_mbq_reg_defaults_sdca,
|
H A D | cs35l45-tables.c | 257 .reg_defaults = cs35l45_defaults, 273 .reg_defaults = cs35l45_defaults,
|
H A D | tas571x.c | 431 .reg_defaults = tas5711_reg_defaults, 536 .reg_defaults = tas5707_reg_defaults, 643 .reg_defaults = tas5717_reg_defaults, 714 .reg_defaults = tas5721_reg_defaults, 763 .reg_defaults = tas5733_reg_defaults,
|
H A D | max9860.c | 121 .reg_defaults = max9860_reg_defaults, 668 max9860_regmap.reg_defaults[i].reg, in max9860_probe() 669 max9860_regmap.reg_defaults[i].def); in max9860_probe() 672 max9860_regmap.reg_defaults[i].reg, ret); in max9860_probe()
|
H A D | lpass-wsa-macro.c | 2768 struct reg_default *reg_defaults __free(kfree) = NULL; in wsa_macro_probe() 2778 reg_defaults = kmalloc_array(def_count, sizeof(*reg_defaults), in wsa_macro_probe() 2780 if (!reg_defaults) in wsa_macro_probe() 2782 memcpy(®_defaults[0], wsa_defaults, sizeof(wsa_defaults)); in wsa_macro_probe() 2783 memcpy(®_defaults[ARRAY_SIZE(wsa_defaults)], in wsa_macro_probe() 2793 reg_defaults = kmalloc_array(def_count, sizeof(*reg_defaults), in wsa_macro_probe() 2795 if (!reg_defaults) in wsa_macro_probe() 2797 memcpy(®_defaults[0], wsa_defaults, sizeof(wsa_defaults)); in wsa_macro_probe() 2798 memcpy(®_defaults[ARRAY_SIZE(wsa_defaults)], in wsa_macro_probe() 2813 reg_config->reg_defaults = reg_defaults; in wsa_macro_probe()
|
H A D | ak4642.c | 568 .reg_defaults = ak4642_reg, 577 .reg_defaults = ak4643_reg, 586 .reg_defaults = ak4648_reg,
|
H A D | adau7118-i2c.c | 44 .reg_defaults = adau7118_reg_defaults,
|
H A D | cs4341.c | 241 cs4341->regcfg.reg_defaults = cs4341_reg_defaults; in cs4341_i2c_probe() 297 cs4341->regcfg.reg_defaults = cs4341_reg_defaults; in cs4341_spi_probe()
|
H A D | lm4857.c | 114 .reg_defaults = lm4857_default_regs,
|
H A D | max9877.c | 131 .reg_defaults = max9877_regs,
|
H A D | rt711-sdca-sdw.c | 120 .reg_defaults = rt711_sdca_reg_defaults, 134 .reg_defaults = rt711_sdca_mbq_defaults,
|
H A D | cs35l56-shared.c | 926 .reg_defaults = cs35l56_reg_defaults, 943 .reg_defaults = cs35l56_reg_defaults, 959 .reg_defaults = cs35l56_reg_defaults,
|
H A D | lpass-rx-macro.c | 3812 struct reg_default *reg_defaults __free(kfree) = NULL; in rx_macro_probe() 3823 reg_defaults = kmalloc_array(def_count, sizeof(struct reg_default), GFP_KERNEL); in rx_macro_probe() 3824 if (!reg_defaults) in rx_macro_probe() 3826 memcpy(®_defaults[0], rx_defaults, sizeof(rx_defaults)); in rx_macro_probe() 3827 memcpy(®_defaults[ARRAY_SIZE(rx_defaults)], in rx_macro_probe() 3837 reg_defaults = kmalloc_array(def_count, sizeof(struct reg_default), GFP_KERNEL); in rx_macro_probe() 3838 if (!reg_defaults) in rx_macro_probe() 3840 memcpy(®_defaults[0], rx_defaults, sizeof(rx_defaults)); in rx_macro_probe() 3841 memcpy(®_defaults[ARRAY_SIZE(rx_defaults)], in rx_macro_probe() 3855 reg_config->reg_defaults = reg_defaults; in rx_macro_probe()
|
/linux/drivers/leds/ |
H A D | leds-lp50xx.c | 136 .reg_defaults = lp5012_reg_defs, 146 .reg_defaults = lp5024_reg_defs, 156 .reg_defaults = lp5036_reg_defs,
|
H A D | leds-lp8860.c | 332 .reg_defaults = lp8860_reg_defs, 370 .reg_defaults = lp8860_eeprom_defs,
|
/linux/drivers/soc/qcom/ |
H A D | icc-bwmon.c | 281 .reg_defaults = msm8998_bwmon_reg_defaults, 300 .reg_defaults = msm8998_bwmon_global_reg_defaults, 368 .reg_defaults = sdm845_cpu_bwmon_reg_defaults, 445 .reg_defaults = sdm845_llcc_bwmon_reg_defaults,
|