Lines Matching refs:coalesce_res
1705 struct mlxbf_i2c_resource *coalesce_res; in mlxbf_i2c_init_coalesce() local
1715 coalesce_res = mlxbf_i2c_get_shared_resource(priv, in mlxbf_i2c_init_coalesce()
1717 if (!coalesce_res) in mlxbf_i2c_init_coalesce()
1728 if (coalesce_res->io) { in mlxbf_i2c_init_coalesce()
1729 priv->coalesce = coalesce_res; in mlxbf_i2c_init_coalesce()
1733 params = coalesce_res->params; in mlxbf_i2c_init_coalesce()
1739 coalesce_res->io = ioremap(params->start, size); in mlxbf_i2c_init_coalesce()
1740 if (!coalesce_res->io) { in mlxbf_i2c_init_coalesce()
1745 priv->coalesce = coalesce_res; in mlxbf_i2c_init_coalesce()
1758 struct mlxbf_i2c_resource *coalesce_res; in mlxbf_i2c_release_coalesce() local
1763 coalesce_res = priv->coalesce; in mlxbf_i2c_release_coalesce()
1765 if (coalesce_res->io) { in mlxbf_i2c_release_coalesce()
1766 params = coalesce_res->params; in mlxbf_i2c_release_coalesce()
1769 mutex_lock(coalesce_res->lock); in mlxbf_i2c_release_coalesce()
1770 iounmap(coalesce_res->io); in mlxbf_i2c_release_coalesce()
1772 mutex_unlock(coalesce_res->lock); in mlxbf_i2c_release_coalesce()