Searched refs:mlxreg_lc (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/platform/mellanox/ |
H A D | mlxreg-lc.c | 74 struct mlxreg_lc { struct 412 mlxreg_lc_create_static_devices(struct mlxreg_lc *mlxreg_lc, struct mlxreg_hotplug_device *devs, in mlxreg_lc_create_static_devices() argument 422 dev_err(mlxreg_lc->dev, "Failed to create client %s at bus %d at addr 0x%02x\n", in mlxreg_lc_create_static_devices() 443 mlxreg_lc_destroy_static_devices(struct mlxreg_lc *mlxreg_lc, struct mlxreg_hotplug_device *devs, in mlxreg_lc_destroy_static_devices() argument 458 static int mlxreg_lc_power_on_off(struct mlxreg_lc *mlxreg_lc, u8 action) in mlxreg_lc_power_on_off() argument 463 err = regmap_read(mlxreg_lc->par_regmap, mlxreg_lc->data->reg_pwr, ®val); in mlxreg_lc_power_on_off() 468 regval |= BIT(mlxreg_lc->data->slot - 1); in mlxreg_lc_power_on_off() 470 regval &= ~BIT(mlxreg_lc->data->slot - 1); in mlxreg_lc_power_on_off() 472 err = regmap_write(mlxreg_lc->par_regmap, mlxreg_lc->data->reg_pwr, regval); in mlxreg_lc_power_on_off() 478 static int mlxreg_lc_enable_disable(struct mlxreg_lc *mlxreg_lc, bool action) in mlxreg_lc_enable_disable() argument [all …]
|