Lines Matching refs:hotplug_data
332 struct mlxreg_core_hotplug_platform_data *hotplug_data; member
421 const struct mlxreg_core_hotplug_platform_data *hotplug_data) in mlxreg_dpu_copy_hotplug_data() argument
426 mlxreg_dpu->hotplug_data = devm_kmemdup(dev, hotplug_data, in mlxreg_dpu_copy_hotplug_data()
427 sizeof(*mlxreg_dpu->hotplug_data), GFP_KERNEL); in mlxreg_dpu_copy_hotplug_data()
428 if (!mlxreg_dpu->hotplug_data) in mlxreg_dpu_copy_hotplug_data()
431 mlxreg_dpu->hotplug_data->items = devm_kmemdup(dev, hotplug_data->items, in mlxreg_dpu_copy_hotplug_data()
432 mlxreg_dpu->hotplug_data->count * in mlxreg_dpu_copy_hotplug_data()
433 sizeof(*mlxreg_dpu->hotplug_data->items), in mlxreg_dpu_copy_hotplug_data()
435 if (!mlxreg_dpu->hotplug_data->items) in mlxreg_dpu_copy_hotplug_data()
438 item = mlxreg_dpu->hotplug_data->items; in mlxreg_dpu_copy_hotplug_data()
439 for (i = 0; i < hotplug_data->count; i++, item++) { in mlxreg_dpu_copy_hotplug_data()
440 item->data = devm_kmemdup(dev, hotplug_data->items[i].data, in mlxreg_dpu_copy_hotplug_data()
441 hotplug_data->items[i].count * sizeof(*item->data), in mlxreg_dpu_copy_hotplug_data()
494 if (mlxreg_dpu->hotplug_data && irq) { in mlxreg_dpu_config_init()
495 mlxreg_dpu->hotplug_data->regmap = regmap; in mlxreg_dpu_config_init()
496 mlxreg_dpu->hotplug_data->irq = irq; in mlxreg_dpu_config_init()
500 mlxreg_dpu->hotplug_data, in mlxreg_dpu_config_init()
501 sizeof(*mlxreg_dpu->hotplug_data)); in mlxreg_dpu_config_init()