Home
last modified time | relevance | path

Searched refs:reg_en (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/hwmon/
Dpwm-fan.c28 struct regulator *reg_en; member
311 ctx->reg_en = devm_regulator_get_optional(dev, "fan"); in pwm_fan_probe()
312 if (IS_ERR(ctx->reg_en)) { in pwm_fan_probe()
313 if (PTR_ERR(ctx->reg_en) != -ENODEV) in pwm_fan_probe()
314 return PTR_ERR(ctx->reg_en); in pwm_fan_probe()
316 ctx->reg_en = NULL; in pwm_fan_probe()
318 ret = regulator_enable(ctx->reg_en); in pwm_fan_probe()
324 ctx->reg_en); in pwm_fan_probe()
410 if (ctx->reg_en) { in pwm_fan_suspend()
411 ret = regulator_disable(ctx->reg_en); in pwm_fan_suspend()
[all …]
/Linux-v5.4/drivers/pinctrl/vt8500/
Dpinctrl-wmt.c89 u32 reg_en = data->banks[bank].reg_en; in wmt_set_pinmux() local
104 if (reg_en != NO_REG) in wmt_set_pinmux()
105 wmt_setbits(data, reg_en, BIT(bit)); in wmt_set_pinmux()
109 if (reg_en != NO_REG) in wmt_set_pinmux()
110 wmt_setbits(data, reg_en, BIT(bit)); in wmt_set_pinmux()
114 if (reg_en == NO_REG) { in wmt_set_pinmux()
119 wmt_clearbits(data, reg_en, BIT(bit)); in wmt_set_pinmux()
Dpinctrl-wmt.h15 .reg_en = __en, \
36 u32 reg_en; member
/Linux-v5.4/drivers/gpu/drm/hisilicon/kirin/
Dkirin_drm_ade.c369 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_dump_regs() local
377 reg_en = RD_CH_EN(ch); in ade_rdma_dump_regs()
391 val = readl(base + reg_en); in ade_rdma_dump_regs()
572 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_set() local
588 reg_en = RD_CH_EN(ch); in ade_rdma_set()
598 writel(ADE_ENABLE, base + reg_en); in ade_rdma_set()
604 u32 reg_en; in ade_rdma_disable() local
607 reg_en = RD_CH_EN(ch); in ade_rdma_disable()
608 writel(0, base + reg_en); in ade_rdma_disable()