• Home
  • Raw
  • Download

Lines Matching refs:clks

214 	struct xsdfec_clks clks;  member
1205 struct xsdfec_clks *clks) in xsdfec_clk_init() argument
1209 clks->core_clk = devm_clk_get(&pdev->dev, "core_clk"); in xsdfec_clk_init()
1210 if (IS_ERR(clks->core_clk)) { in xsdfec_clk_init()
1212 return PTR_ERR(clks->core_clk); in xsdfec_clk_init()
1215 clks->axi_clk = devm_clk_get(&pdev->dev, "s_axi_aclk"); in xsdfec_clk_init()
1216 if (IS_ERR(clks->axi_clk)) { in xsdfec_clk_init()
1218 return PTR_ERR(clks->axi_clk); in xsdfec_clk_init()
1221 clks->din_words_clk = devm_clk_get(&pdev->dev, "s_axis_din_words_aclk"); in xsdfec_clk_init()
1222 if (IS_ERR(clks->din_words_clk)) { in xsdfec_clk_init()
1223 if (PTR_ERR(clks->din_words_clk) != -ENOENT) { in xsdfec_clk_init()
1224 err = PTR_ERR(clks->din_words_clk); in xsdfec_clk_init()
1227 clks->din_words_clk = NULL; in xsdfec_clk_init()
1230 clks->din_clk = devm_clk_get(&pdev->dev, "s_axis_din_aclk"); in xsdfec_clk_init()
1231 if (IS_ERR(clks->din_clk)) { in xsdfec_clk_init()
1232 if (PTR_ERR(clks->din_clk) != -ENOENT) { in xsdfec_clk_init()
1233 err = PTR_ERR(clks->din_clk); in xsdfec_clk_init()
1236 clks->din_clk = NULL; in xsdfec_clk_init()
1239 clks->dout_clk = devm_clk_get(&pdev->dev, "m_axis_dout_aclk"); in xsdfec_clk_init()
1240 if (IS_ERR(clks->dout_clk)) { in xsdfec_clk_init()
1241 if (PTR_ERR(clks->dout_clk) != -ENOENT) { in xsdfec_clk_init()
1242 err = PTR_ERR(clks->dout_clk); in xsdfec_clk_init()
1245 clks->dout_clk = NULL; in xsdfec_clk_init()
1248 clks->dout_words_clk = in xsdfec_clk_init()
1250 if (IS_ERR(clks->dout_words_clk)) { in xsdfec_clk_init()
1251 if (PTR_ERR(clks->dout_words_clk) != -ENOENT) { in xsdfec_clk_init()
1252 err = PTR_ERR(clks->dout_words_clk); in xsdfec_clk_init()
1255 clks->dout_words_clk = NULL; in xsdfec_clk_init()
1258 clks->ctrl_clk = devm_clk_get(&pdev->dev, "s_axis_ctrl_aclk"); in xsdfec_clk_init()
1259 if (IS_ERR(clks->ctrl_clk)) { in xsdfec_clk_init()
1260 if (PTR_ERR(clks->ctrl_clk) != -ENOENT) { in xsdfec_clk_init()
1261 err = PTR_ERR(clks->ctrl_clk); in xsdfec_clk_init()
1264 clks->ctrl_clk = NULL; in xsdfec_clk_init()
1267 clks->status_clk = devm_clk_get(&pdev->dev, "m_axis_status_aclk"); in xsdfec_clk_init()
1268 if (IS_ERR(clks->status_clk)) { in xsdfec_clk_init()
1269 if (PTR_ERR(clks->status_clk) != -ENOENT) { in xsdfec_clk_init()
1270 err = PTR_ERR(clks->status_clk); in xsdfec_clk_init()
1273 clks->status_clk = NULL; in xsdfec_clk_init()
1276 err = clk_prepare_enable(clks->core_clk); in xsdfec_clk_init()
1282 err = clk_prepare_enable(clks->axi_clk); in xsdfec_clk_init()
1288 err = clk_prepare_enable(clks->din_clk); in xsdfec_clk_init()
1294 err = clk_prepare_enable(clks->din_words_clk); in xsdfec_clk_init()
1300 err = clk_prepare_enable(clks->dout_clk); in xsdfec_clk_init()
1306 err = clk_prepare_enable(clks->dout_words_clk); in xsdfec_clk_init()
1313 err = clk_prepare_enable(clks->ctrl_clk); in xsdfec_clk_init()
1319 err = clk_prepare_enable(clks->status_clk); in xsdfec_clk_init()
1328 clk_disable_unprepare(clks->ctrl_clk); in xsdfec_clk_init()
1330 clk_disable_unprepare(clks->dout_words_clk); in xsdfec_clk_init()
1332 clk_disable_unprepare(clks->dout_clk); in xsdfec_clk_init()
1334 clk_disable_unprepare(clks->din_words_clk); in xsdfec_clk_init()
1336 clk_disable_unprepare(clks->din_clk); in xsdfec_clk_init()
1338 clk_disable_unprepare(clks->axi_clk); in xsdfec_clk_init()
1340 clk_disable_unprepare(clks->core_clk); in xsdfec_clk_init()
1345 static void xsdfec_disable_all_clks(struct xsdfec_clks *clks) in xsdfec_disable_all_clks() argument
1347 clk_disable_unprepare(clks->status_clk); in xsdfec_disable_all_clks()
1348 clk_disable_unprepare(clks->ctrl_clk); in xsdfec_disable_all_clks()
1349 clk_disable_unprepare(clks->dout_words_clk); in xsdfec_disable_all_clks()
1350 clk_disable_unprepare(clks->dout_clk); in xsdfec_disable_all_clks()
1351 clk_disable_unprepare(clks->din_words_clk); in xsdfec_disable_all_clks()
1352 clk_disable_unprepare(clks->din_clk); in xsdfec_disable_all_clks()
1353 clk_disable_unprepare(clks->core_clk); in xsdfec_disable_all_clks()
1354 clk_disable_unprepare(clks->axi_clk); in xsdfec_disable_all_clks()
1372 err = xsdfec_clk_init(pdev, &xsdfec->clks); in xsdfec_probe()
1431 xsdfec_disable_all_clks(&xsdfec->clks); in xsdfec_probe()
1442 xsdfec_disable_all_clks(&xsdfec->clks); in xsdfec_remove()