Lines Matching refs:mlxbf_i2c_priv
429 struct mlxbf_i2c_priv { struct
518 static bool mlxbf_smbus_master_wait_for_idle(struct mlxbf_i2c_priv *priv) in mlxbf_smbus_master_wait_for_idle()
555 static int mlxbf_i2c_smbus_check_status(struct mlxbf_i2c_priv *priv) in mlxbf_i2c_smbus_check_status()
604 static void mlxbf_i2c_smbus_write_data(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_smbus_write_data()
626 static void mlxbf_i2c_smbus_read_data(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_smbus_read_data()
658 static int mlxbf_i2c_smbus_enable(struct mlxbf_i2c_priv *priv, u8 slave, in mlxbf_i2c_smbus_enable()
696 mlxbf_i2c_smbus_start_transaction(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_smbus_start_transaction()
992 static bool mlxbf_i2c_has_chip_type(struct mlxbf_i2c_priv *priv, u8 type) in mlxbf_i2c_has_chip_type()
998 mlxbf_i2c_get_shared_resource(struct mlxbf_i2c_priv *priv, u8 type) in mlxbf_i2c_get_shared_resource()
1047 static u32 mlxbf_i2c_get_ticks(struct mlxbf_i2c_priv *priv, u64 nanoseconds, in mlxbf_i2c_get_ticks()
1072 static u32 mlxbf_i2c_set_timer(struct mlxbf_i2c_priv *priv, u64 nsec, bool opt, in mlxbf_i2c_set_timer()
1080 static void mlxbf_i2c_set_timings(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_set_timings()
1195 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_timings()
1232 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_get_gpio()
1270 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_release_gpio()
1296 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_get_corepll()
1335 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_release_corepll()
1360 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_master()
1488 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_calculate_corepll_freq()
1532 static int mlxbf_slave_enable(struct mlxbf_i2c_priv *priv, u8 addr) in mlxbf_slave_enable()
1617 static int mlxbf_slave_disable(struct mlxbf_i2c_priv *priv) in mlxbf_slave_disable()
1683 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_coalesce()
1736 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_release_coalesce()
1762 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_slave()
1796 static bool mlxbf_i2c_has_coalesce(struct mlxbf_i2c_priv *priv, bool *read, in mlxbf_i2c_has_coalesce()
1829 static bool mlxbf_smbus_slave_wait_for_idle(struct mlxbf_i2c_priv *priv, in mlxbf_smbus_slave_wait_for_idle()
1842 static int mlxbf_smbus_irq_send(struct mlxbf_i2c_priv *priv, u8 recv_bytes) in mlxbf_smbus_irq_send()
1947 static int mlxbf_smbus_irq_recv(struct mlxbf_i2c_priv *priv, u8 recv_bytes) in mlxbf_smbus_irq_recv()
1995 struct mlxbf_i2c_priv *priv = ptr; in mlxbf_smbus_irq()
2055 struct mlxbf_i2c_priv *priv; in mlxbf_i2c_smbus_xfer()
2137 struct mlxbf_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in mlxbf_i2c_reg_slave()
2161 struct mlxbf_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in mlxbf_i2c_unreg_slave()
2235 static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) in mlxbf_i2c_acpi_probe()
2269 static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) in mlxbf_i2c_acpi_probe()
2275 static int mlxbf_i2c_of_probe(struct device *dev, struct mlxbf_i2c_priv *priv) in mlxbf_i2c_of_probe()
2303 struct mlxbf_i2c_priv *priv; in mlxbf_i2c_probe()
2307 priv = devm_kzalloc(dev, sizeof(struct mlxbf_i2c_priv), GFP_KERNEL); in mlxbf_i2c_probe()
2404 struct mlxbf_i2c_priv *priv = platform_get_drvdata(pdev); in mlxbf_i2c_remove()