Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/hwmon/
Dpwm-fan.c28 struct regulator *reg_en; member
307 ctx->reg_en = devm_regulator_get_optional(dev, "fan"); in pwm_fan_probe()
308 if (IS_ERR(ctx->reg_en)) { in pwm_fan_probe()
309 if (PTR_ERR(ctx->reg_en) != -ENODEV) in pwm_fan_probe()
310 return PTR_ERR(ctx->reg_en); in pwm_fan_probe()
312 ctx->reg_en = NULL; in pwm_fan_probe()
314 ret = regulator_enable(ctx->reg_en); in pwm_fan_probe()
320 ctx->reg_en); in pwm_fan_probe()
405 if (ctx->reg_en) { in pwm_fan_disable()
406 ret = regulator_disable(ctx->reg_en); in pwm_fan_disable()
[all …]
/Linux-v5.10/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.10/drivers/gpu/drm/hisilicon/kirin/
Dkirin_drm_ade.c350 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_dump_regs() local
358 reg_en = RD_CH_EN(ch); in ade_rdma_dump_regs()
372 val = readl(base + reg_en); in ade_rdma_dump_regs()
553 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_set() local
569 reg_en = RD_CH_EN(ch); in ade_rdma_set()
579 writel(ADE_ENABLE, base + reg_en); in ade_rdma_set()
585 u32 reg_en; in ade_rdma_disable() local
588 reg_en = RD_CH_EN(ch); in ade_rdma_disable()
589 writel(0, base + reg_en); in ade_rdma_disable()