Lines Matching refs:item

165 	struct mlxreg_core_item *item;  in mlxreg_hotplug_attr_show()  local
171 item = pdata->items + nr; in mlxreg_hotplug_attr_show()
172 data = item->data + index; in mlxreg_hotplug_attr_show()
178 if (item->health) { in mlxreg_hotplug_attr_show()
182 if (item->inversed) in mlxreg_hotplug_attr_show()
197 struct mlxreg_core_item *item; in mlxreg_hotplug_attr_init() local
202 item = pdata->items; in mlxreg_hotplug_attr_init()
205 for (i = 0; i < pdata->counter; i++, item++) { in mlxreg_hotplug_attr_init()
206 num_attrs += item->count; in mlxreg_hotplug_attr_init()
207 data = item->data; in mlxreg_hotplug_attr_init()
209 for (j = 0; j < item->count; j++, data++, id++) { in mlxreg_hotplug_attr_init()
248 struct mlxreg_core_item *item) in mlxreg_hotplug_work_helper() argument
262 if (unlikely(!item)) { in mlxreg_hotplug_work_helper()
264 item->reg, item->mask); in mlxreg_hotplug_work_helper()
270 ret = regmap_write(priv->regmap, item->reg + MLXREG_HOTPLUG_MASK_OFF, in mlxreg_hotplug_work_helper()
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()
286 data = item->data + bit; in mlxreg_hotplug_work_helper()
288 if (item->inversed) in mlxreg_hotplug_work_helper()
293 if (item->inversed) in mlxreg_hotplug_work_helper()
301 ret = regmap_write(priv->regmap, item->reg + MLXREG_HOTPLUG_EVENT_OFF, in mlxreg_hotplug_work_helper()
307 ret = regmap_write(priv->regmap, item->reg + MLXREG_HOTPLUG_MASK_OFF, in mlxreg_hotplug_work_helper()
308 item->mask); in mlxreg_hotplug_work_helper()
317 struct mlxreg_core_item *item) in mlxreg_hotplug_health_work_helper() argument
319 struct mlxreg_core_data *data = item->data; in mlxreg_hotplug_health_work_helper()
323 for (i = 0; i < item->count; i++, data++) { in mlxreg_hotplug_health_work_helper()
337 if (item->cache == regval) in mlxreg_hotplug_health_work_helper()
368 item->cache = regval; in mlxreg_hotplug_health_work_helper()
419 struct mlxreg_core_item *item; in mlxreg_hotplug_work_handler() local
427 item = pdata->items; in mlxreg_hotplug_work_handler()
457 for (i = 0; i < pdata->counter; i++, item++) { in mlxreg_hotplug_work_handler()
458 if (aggr_asserted & item->aggr_mask) { in mlxreg_hotplug_work_handler()
459 if (item->health) in mlxreg_hotplug_work_handler()
460 mlxreg_hotplug_health_work_helper(priv, item); in mlxreg_hotplug_work_handler()
462 mlxreg_hotplug_work_helper(priv, item); in mlxreg_hotplug_work_handler()
498 struct mlxreg_core_item *item; in mlxreg_hotplug_set_irq() local
504 item = pdata->items; in mlxreg_hotplug_set_irq()
506 for (i = 0; i < pdata->counter; i++, item++) { in mlxreg_hotplug_set_irq()
508 ret = regmap_write(priv->regmap, item->reg + in mlxreg_hotplug_set_irq()
517 data = item->data; in mlxreg_hotplug_set_irq()
518 for (j = 0; j < item->count; j++, data++) { in mlxreg_hotplug_set_irq()
528 item->mask &= ~BIT(j); in mlxreg_hotplug_set_irq()
533 if (item->inversed) { in mlxreg_hotplug_set_irq()
534 item->cache = item->mask; in mlxreg_hotplug_set_irq()
535 ret = regmap_write(priv->regmap, item->reg + in mlxreg_hotplug_set_irq()
537 item->mask); in mlxreg_hotplug_set_irq()
571 struct mlxreg_core_item *item; in mlxreg_hotplug_unset_irq() local
576 item = pdata->items; in mlxreg_hotplug_unset_irq()
590 for (i = 0; i < pdata->counter; i++, item++) { in mlxreg_hotplug_unset_irq()
591 data = item->data; in mlxreg_hotplug_unset_irq()
600 count = item->count; in mlxreg_hotplug_unset_irq()