Lines Matching refs:regval
162 u32 regval; in mlxreg_hotplug_attr_show() local
169 ret = regmap_read(priv->regmap, data->reg, ®val); in mlxreg_hotplug_attr_show()
174 regval &= data->mask; in mlxreg_hotplug_attr_show()
178 regval = !(regval & data->mask); in mlxreg_hotplug_attr_show()
180 regval = !!(regval & data->mask); in mlxreg_hotplug_attr_show()
183 return sprintf(buf, "%u\n", regval); in mlxreg_hotplug_attr_show()
195 u32 regval; in mlxreg_hotplug_attr_init() local
210 ®val); in mlxreg_hotplug_attr_init()
214 item->mask = GENMASK((regval & item->mask) - 1, 0); in mlxreg_hotplug_attr_init()
229 data->capability, ®val); in mlxreg_hotplug_attr_init()
232 if (!(regval & data->bit)) { in mlxreg_hotplug_attr_init()
283 u32 regval, bit; in mlxreg_hotplug_work_helper() local
307 ret = regmap_read(priv->regmap, item->reg, ®val); in mlxreg_hotplug_work_helper()
312 regval &= item->mask; in mlxreg_hotplug_work_helper()
313 asserted = item->cache ^ regval; in mlxreg_hotplug_work_helper()
314 item->cache = regval; in mlxreg_hotplug_work_helper()
318 if (regval & BIT(bit)) { in mlxreg_hotplug_work_helper()
351 u32 regval; in mlxreg_hotplug_health_work_helper() local
362 ret = regmap_read(priv->regmap, data->reg, ®val); in mlxreg_hotplug_health_work_helper()
366 regval &= data->mask; in mlxreg_hotplug_health_work_helper()
368 if (item->cache == regval) in mlxreg_hotplug_health_work_helper()
378 if (regval == MLXREG_HOTPLUG_GOOD_HEALTH_MASK) { in mlxreg_hotplug_health_work_helper()
399 item->cache = regval; in mlxreg_hotplug_health_work_helper()
451 u32 regval, aggr_asserted; in mlxreg_hotplug_work_handler() local
467 ret = regmap_read(priv->regmap, pdata->cell, ®val); in mlxreg_hotplug_work_handler()
471 regval &= pdata->mask; in mlxreg_hotplug_work_handler()
472 aggr_asserted = priv->aggr_cache ^ regval; in mlxreg_hotplug_work_handler()
473 priv->aggr_cache = regval; in mlxreg_hotplug_work_handler()
531 u32 regval; in mlxreg_hotplug_set_irq() local
554 data->capability, ®val); in mlxreg_hotplug_set_irq()
558 if (!(regval & data->bit)) in mlxreg_hotplug_set_irq()