Lines Matching refs:tph

84 	struct meson_clk_triphase_data *tph = meson_clk_triphase_data(clk);  in meson_clk_triphase_sync()  local
88 val = meson_parm_read(clk->map, &tph->ph0); in meson_clk_triphase_sync()
89 meson_parm_write(clk->map, &tph->ph1, val); in meson_clk_triphase_sync()
90 meson_parm_write(clk->map, &tph->ph2, val); in meson_clk_triphase_sync()
98 struct meson_clk_triphase_data *tph = meson_clk_triphase_data(clk); in meson_clk_triphase_get_phase() local
102 val = meson_parm_read(clk->map, &tph->ph0); in meson_clk_triphase_get_phase()
104 return meson_clk_degrees_from_val(val, tph->ph0.width); in meson_clk_triphase_get_phase()
110 struct meson_clk_triphase_data *tph = meson_clk_triphase_data(clk); in meson_clk_triphase_set_phase() local
113 val = meson_clk_degrees_to_val(degrees, tph->ph0.width); in meson_clk_triphase_set_phase()
114 meson_parm_write(clk->map, &tph->ph0, val); in meson_clk_triphase_set_phase()
115 meson_parm_write(clk->map, &tph->ph1, val); in meson_clk_triphase_set_phase()
116 meson_parm_write(clk->map, &tph->ph2, val); in meson_clk_triphase_set_phase()
143 struct meson_sclk_ws_inv_data *tph = meson_sclk_ws_inv_data(clk); in meson_sclk_ws_inv_sync() local
147 val = meson_parm_read(clk->map, &tph->ph); in meson_sclk_ws_inv_sync()
148 meson_parm_write(clk->map, &tph->ws, val ? 0 : 1); in meson_sclk_ws_inv_sync()
156 struct meson_sclk_ws_inv_data *tph = meson_sclk_ws_inv_data(clk); in meson_sclk_ws_inv_get_phase() local
159 val = meson_parm_read(clk->map, &tph->ph); in meson_sclk_ws_inv_get_phase()
161 return meson_clk_degrees_from_val(val, tph->ph.width); in meson_sclk_ws_inv_get_phase()
167 struct meson_sclk_ws_inv_data *tph = meson_sclk_ws_inv_data(clk); in meson_sclk_ws_inv_set_phase() local
170 val = meson_clk_degrees_to_val(degrees, tph->ph.width); in meson_sclk_ws_inv_set_phase()
171 meson_parm_write(clk->map, &tph->ph, val); in meson_sclk_ws_inv_set_phase()
172 meson_parm_write(clk->map, &tph->ws, val ? 0 : 1); in meson_sclk_ws_inv_set_phase()