Home
last modified time | relevance | path

Searched refs:reg_config (Results 1 – 13 of 13) sorted by relevance

/drivers/hwmon/
Dina3221.c126 u32 reg_config; member
139 (ina->reg_config & INA3221_CONFIG_CHx_EN(channel)); in ina3221_is_enabled()
212 wait = ina3221_reg_to_interval_us(ina->reg_config); in ina3221_wait_for_data()
258 regval = INA3221_CONFIG_AVG(ina->reg_config); in ina3221_read_chip()
263 *val = ina3221_reg_to_interval_us(ina->reg_config); in ina3221_read_chip()
293 ina->reg_config); in ina3221_read_in()
349 ina->reg_config); in ina3221_read_curr()
399 tmp = (ina->reg_config & ~INA3221_CONFIG_AVG_MASK) | in ina3221_write_chip()
406 ina->reg_config = tmp; in ina3221_write_chip()
409 tmp = ina3221_interval_ms_to_conv_time(ina->reg_config, val); in ina3221_write_chip()
[all …]
Dmax6642.c116 u8 reg_config, reg_status, man_id; in max6642_detect() local
137 reg_config = i2c_smbus_read_byte_data(client, MAX6642_REG_R_CONFIG); in max6642_detect()
138 if ((reg_config & 0x0f) != 0x00) in max6642_detect()
142 if (i2c_smbus_read_byte_data(client, 0x04) != reg_config in max6642_detect()
143 || i2c_smbus_read_byte_data(client, 0x06) != reg_config in max6642_detect()
144 || i2c_smbus_read_byte_data(client, 0xff) != reg_config) in max6642_detect()
Dmax1619.c218 u8 reg_config, reg_convrate, reg_status, man_id, chip_id; in max1619_detect() local
224 reg_config = i2c_smbus_read_byte_data(client, MAX1619_REG_R_CONFIG); in max1619_detect()
227 if ((reg_config & 0x03) != 0x00 in max1619_detect()
/drivers/regulator/
Das3722-regulator.c588 struct as3722_regulator_config_data *reg_config; in as3722_get_regulator_dt_data() local
612 reg_config = &as3722_regs->reg_config_data[id]; in as3722_get_regulator_dt_data()
613 reg_config->reg_init = as3722_regulator_matches[id].init_data; in as3722_get_regulator_dt_data()
616 if (!reg_config->reg_init || !reg_node) in as3722_get_regulator_dt_data()
622 reg_config->ext_control = prop; in as3722_get_regulator_dt_data()
628 reg_config->enable_tracking = in as3722_get_regulator_dt_data()
638 struct as3722_regulator_config_data *reg_config; in as3722_regulator_probe() local
666 reg_config = &as3722_regs->reg_config_data[id]; in as3722_regulator_probe()
680 if (reg_config->ext_control) in as3722_regulator_probe()
694 if (reg_config->ext_control) in as3722_regulator_probe()
[all …]
Dqcom-rpmh-regulator.c417 struct regulator_config reg_config = {}; in rpmh_regulator_init_vreg() local
478 reg_config.dev = dev; in rpmh_regulator_init_vreg()
479 reg_config.init_data = init_data; in rpmh_regulator_init_vreg()
480 reg_config.of_node = node; in rpmh_regulator_init_vreg()
481 reg_config.driver_data = vreg; in rpmh_regulator_init_vreg()
483 rdev = devm_regulator_register(dev, &vreg->rdesc, &reg_config); in rpmh_regulator_init_vreg()
/drivers/clk/sprd/
Dcommon.c46 struct regmap_config reg_config = sprdclk_regmap_config; in sprd_clk_regmap_init() local
67 reg_config.max_register = resource_size(res) - reg_config.reg_stride; in sprd_clk_regmap_init()
70 &reg_config); in sprd_clk_regmap_init()
/drivers/power/reset/
Dat91-sama5d2_shdwc.c81 struct reg_config { struct
87 const struct reg_config *rcfg;
107 const struct reg_config *rcfg = shdw->rcfg; in at91_wakeup_status()
229 const struct reg_config *rcfg = shdw->rcfg; in at91_shdwc_dt_configure()
254 static const struct reg_config sama5d2_reg_config = {
267 static const struct reg_config sam9x60_reg_config = {
/drivers/dma/
Damba-pl08x.c159 void __iomem *reg_config; member
378 val = readl(ch->reg_config); in pl08x_phy_channel_busy()
518 writel(ccfg, phychan->reg_config); in pl08x_write_lli()
552 val = readl(phychan->reg_config); in pl08x_start_next_txd()
554 val = readl(phychan->reg_config); in pl08x_start_next_txd()
563 val = readl(phychan->reg_config); in pl08x_start_next_txd()
566 val = readl(phychan->reg_config); in pl08x_start_next_txd()
568 writel(val | PL080_CONFIG_ENABLE, phychan->reg_config); in pl08x_start_next_txd()
596 val = readl(ch->reg_config); in pl08x_pause_phy_chan()
598 writel(val, ch->reg_config); in pl08x_pause_phy_chan()
[all …]
/drivers/iio/adc/
Dimx7d_adc.c124 u32 reg_config; member
129 .reg_config = (_reg_conf), \
204 sample_rate |= adc_analogure_clk.reg_config; in imx7d_adc_sample_rate_set()
/drivers/soc/ti/
Dknav_qmss_queue.c1190 writel_relaxed((u32)block->dma, &qmgr->reg_config->link_ram_base0); in knav_queue_setup_link_ram()
1193 &qmgr->reg_config->link_ram_size0); in knav_queue_setup_link_ram()
1196 &qmgr->reg_config->link_ram_size0); in knav_queue_setup_link_ram()
1203 writel_relaxed(block->dma, &qmgr->reg_config->link_ram_base1); in knav_queue_setup_link_ram()
1430 qmgr->reg_config = in knav_queue_init_qmgrs()
1456 IS_ERR(qmgr->reg_config) || IS_ERR(qmgr->reg_region) || in knav_queue_init_qmgrs()
1467 if (!IS_ERR(qmgr->reg_config)) in knav_queue_init_qmgrs()
1468 devm_iounmap(dev, qmgr->reg_config); in knav_queue_init_qmgrs()
1485 qmgr->reg_config, qmgr->reg_region, in knav_queue_init_qmgrs()
Dknav_qmss.h141 struct knav_reg_config __iomem *reg_config; member
/drivers/w1/masters/
Dds2482.c122 u8 reg_config; member
/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi.c3241 const struct regmap_config *reg_config; in dw_hdmi_probe() local
3246 reg_config = &hdmi_regmap_32bit_config; in dw_hdmi_probe()
3250 reg_config = &hdmi_regmap_8bit_config; in dw_hdmi_probe()
3264 hdmi->regm = devm_regmap_init_mmio(dev, hdmi->regs, reg_config); in dw_hdmi_probe()