Lines Matching refs:regval

167 	u32 regval;  in mlxreg_hotplug_attr_show()  local
174 ret = regmap_read(priv->regmap, data->reg, &regval); in mlxreg_hotplug_attr_show()
179 regval &= data->mask; in mlxreg_hotplug_attr_show()
183 regval = !(regval & data->mask); in mlxreg_hotplug_attr_show()
185 regval = !!(regval & data->mask); in mlxreg_hotplug_attr_show()
188 return sprintf(buf, "%u\n", regval); in mlxreg_hotplug_attr_show()
252 u32 regval, bit; in mlxreg_hotplug_work_helper() local
276 ret = regmap_read(priv->regmap, item->reg, &regval); in mlxreg_hotplug_work_helper()
281 regval &= item->mask; in mlxreg_hotplug_work_helper()
282 asserted = item->cache ^ regval; in mlxreg_hotplug_work_helper()
283 item->cache = regval; in mlxreg_hotplug_work_helper()
287 if (regval & BIT(bit)) { in mlxreg_hotplug_work_helper()
320 u32 regval; in mlxreg_hotplug_health_work_helper() local
331 ret = regmap_read(priv->regmap, data->reg, &regval); in mlxreg_hotplug_health_work_helper()
335 regval &= data->mask; in mlxreg_hotplug_health_work_helper()
337 if (item->cache == regval) in mlxreg_hotplug_health_work_helper()
347 if (regval == MLXREG_HOTPLUG_GOOD_HEALTH_MASK) { in mlxreg_hotplug_health_work_helper()
368 item->cache = regval; in mlxreg_hotplug_health_work_helper()
420 u32 regval, aggr_asserted; in mlxreg_hotplug_work_handler() local
436 ret = regmap_read(priv->regmap, pdata->cell, &regval); in mlxreg_hotplug_work_handler()
440 regval &= pdata->mask; in mlxreg_hotplug_work_handler()
441 aggr_asserted = priv->aggr_cache ^ regval; in mlxreg_hotplug_work_handler()
442 priv->aggr_cache = regval; in mlxreg_hotplug_work_handler()
500 u32 regval; in mlxreg_hotplug_set_irq() local
523 data->capability, &regval); in mlxreg_hotplug_set_irq()
527 if (!(regval & data->bit)) in mlxreg_hotplug_set_irq()