Lines Matching refs:mlxbf_i2c_priv
413 struct mlxbf_i2c_priv { struct
526 static bool mlxbf_i2c_smbus_master_wait_for_idle(struct mlxbf_i2c_priv *priv) in mlxbf_i2c_smbus_master_wait_for_idle()
541 static bool mlxbf_i2c_smbus_master_lock(struct mlxbf_i2c_priv *priv) in mlxbf_i2c_smbus_master_lock()
551 static void mlxbf_i2c_smbus_master_unlock(struct mlxbf_i2c_priv *priv) in mlxbf_i2c_smbus_master_unlock()
582 static int mlxbf_i2c_smbus_check_status(struct mlxbf_i2c_priv *priv) in mlxbf_i2c_smbus_check_status()
631 static void mlxbf_i2c_smbus_write_data(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_smbus_write_data()
657 static void mlxbf_i2c_smbus_read_data(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_smbus_read_data()
696 static int mlxbf_i2c_smbus_enable(struct mlxbf_i2c_priv *priv, u8 slave, in mlxbf_i2c_smbus_enable()
734 mlxbf_i2c_smbus_start_transaction(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_smbus_start_transaction()
1047 static bool mlxbf_i2c_has_chip_type(struct mlxbf_i2c_priv *priv, u8 type) in mlxbf_i2c_has_chip_type()
1053 mlxbf_i2c_get_shared_resource(struct mlxbf_i2c_priv *priv, u8 type) in mlxbf_i2c_get_shared_resource()
1096 static u32 mlxbf_i2c_get_ticks(struct mlxbf_i2c_priv *priv, u64 nanoseconds, in mlxbf_i2c_get_ticks()
1121 static u32 mlxbf_i2c_set_timer(struct mlxbf_i2c_priv *priv, u64 nsec, bool opt, in mlxbf_i2c_set_timer()
1129 static void mlxbf_i2c_set_timings(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_set_timings()
1244 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_timings()
1281 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_get_gpio()
1319 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_release_gpio()
1345 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_get_corepll()
1384 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_release_corepll()
1409 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_master()
1527 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_calculate_corepll_freq()
1571 static int mlxbf_i2c_slave_enable(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_slave_enable()
1632 static int mlxbf_i2c_slave_disable(struct mlxbf_i2c_priv *priv, u8 addr) in mlxbf_i2c_slave_disable()
1686 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_coalesce()
1739 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_release_coalesce()
1765 struct mlxbf_i2c_priv *priv) in mlxbf_i2c_init_slave()
1799 static bool mlxbf_i2c_has_coalesce(struct mlxbf_i2c_priv *priv, bool *read, in mlxbf_i2c_has_coalesce()
1832 static bool mlxbf_i2c_slave_wait_for_idle(struct mlxbf_i2c_priv *priv, in mlxbf_i2c_slave_wait_for_idle()
1845 struct mlxbf_i2c_priv *priv, u8 addr) in mlxbf_i2c_get_slave_from_addr()
1864 static int mlxbf_i2c_irq_send(struct mlxbf_i2c_priv *priv, u8 recv_bytes) in mlxbf_i2c_irq_send()
1961 static int mlxbf_i2c_irq_recv(struct mlxbf_i2c_priv *priv, u8 recv_bytes) in mlxbf_i2c_irq_recv()
2015 struct mlxbf_i2c_priv *priv = ptr; in mlxbf_i2c_irq()
2075 struct mlxbf_i2c_priv *priv; in mlxbf_i2c_smbus_xfer()
2157 struct mlxbf_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in mlxbf_i2c_reg_slave()
2179 struct mlxbf_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in mlxbf_i2c_unreg_slave()
2253 static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) in mlxbf_i2c_acpi_probe()
2282 struct mlxbf_i2c_priv *priv; in mlxbf_i2c_probe()
2287 priv = devm_kzalloc(dev, sizeof(struct mlxbf_i2c_priv), GFP_KERNEL); in mlxbf_i2c_probe()
2416 struct mlxbf_i2c_priv *priv = platform_get_drvdata(pdev); in mlxbf_i2c_remove()