Lines Matching refs:dfs_div

820 static struct s32cc_dfs *get_div_dfs(const struct s32cc_dfs_div *dfs_div)  in get_div_dfs()  argument
822 const struct s32cc_clk_obj *parent = dfs_div->parent; in get_div_dfs()
832 static int get_dfs_mfi_mfn(unsigned long dfs_freq, const struct s32cc_dfs_div *dfs_div, in get_dfs_mfi_mfn() argument
839 unsigned long out = dfs_div->freq; in get_dfs_mfi_mfn()
868 if (ofreq != dfs_div->freq) { in get_dfs_mfi_mfn()
870 dfs_div->freq); in get_dfs_mfi_mfn()
944 const struct s32cc_dfs_div *dfs_div = s32cc_obj2dfsdiv(module); in get_dfs_div_parent() local
946 if (dfs_div->parent == NULL) { in get_dfs_div_parent()
950 return dfs_div->parent; in get_dfs_div_parent()
957 const struct s32cc_dfs_div *dfs_div = s32cc_obj2dfsdiv(module); in enable_dfs_div() local
970 dfs = get_div_dfs(dfs_div); in enable_dfs_div()
985 ret = get_dfs_mfi_mfn(dfs_freq, dfs_div, &mfi, &mfn); in enable_dfs_div()
990 return init_dfs_port(dfs_addr, dfs_div->index, mfi, mfn); in enable_dfs_div()
1847 struct s32cc_dfs_div *dfs_div = s32cc_obj2dfsdiv(module); in set_dfs_div_freq() local
1856 if (dfs_div->parent == NULL) { in set_dfs_div_freq()
1862 dfs = s32cc_obj2dfs(dfs_div->parent); in set_dfs_div_freq()
1868 if ((dfs_div->freq != 0U) && (dfs_div->freq != rate)) { in set_dfs_div_freq()
1870 dfs_div->freq); in set_dfs_div_freq()
1874 dfs_div->freq = rate; in set_dfs_div_freq()
1901 const struct s32cc_dfs_div *dfs_div = s32cc_obj2dfsdiv(module); in get_dfs_div_freq() local
1914 dfs = get_div_dfs(dfs_div); in get_dfs_div_freq()
1919 ret = get_module_rate(dfs_div->parent, drv, &pfreq, ldepth); in get_dfs_div_freq()
1930 dvport = mmio_read_32(DFS_DVPORTn(dfs_addr, dfs_div->index)); in get_dfs_div_freq()
1937 *rate = dfs_div->freq; in get_dfs_div_freq()