Home
last modified time | relevance | path

Searched refs:eemi_ops (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/drivers/clk/zynqmp/
Dpll.c53 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_pll_get_mode() local
55 ret = eemi_ops->ioctl(0, IOCTL_GET_PLL_FRAC_MODE, clk_id, 0, in zynqmp_pll_get_mode()
76 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_pll_set_mode() local
83 ret = eemi_ops->ioctl(0, IOCTL_SET_PLL_FRAC_MODE, clk_id, mode, NULL); in zynqmp_pll_set_mode()
142 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_pll_recalc_rate() local
144 ret = eemi_ops->clock_getdivider(clk_id, &fbdiv); in zynqmp_pll_recalc_rate()
151 eemi_ops->ioctl(0, IOCTL_GET_PLL_FRAC_DATA, clk_id, 0, in zynqmp_pll_recalc_rate()
180 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_pll_set_rate() local
190 ret = eemi_ops->clock_setdivider(clk_id, m); in zynqmp_pll_set_rate()
195 eemi_ops->ioctl(0, IOCTL_SET_PLL_FRAC_DATA, clk_id, f, NULL); in zynqmp_pll_set_rate()
[all …]
Dclk-gate-zynqmp.c40 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_gate_enable() local
42 ret = eemi_ops->clock_enable(clk_id); in zynqmp_clk_gate_enable()
61 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_gate_disable() local
63 ret = eemi_ops->clock_disable(clk_id); in zynqmp_clk_gate_disable()
82 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_gate_is_enabled() local
84 ret = eemi_ops->clock_getstate(clk_id, &state); in zynqmp_clk_gate_is_enabled()
Ddivider.c68 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_divider_recalc_rate() local
70 ret = eemi_ops->clock_getdivider(clk_id, &div); in zynqmp_clk_divider_recalc_rate()
109 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_divider_round_rate() local
113 ret = eemi_ops->clock_getdivider(clk_id, &bestdiv); in zynqmp_clk_divider_round_rate()
152 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_divider_set_rate() local
163 ret = eemi_ops->clock_setdivider(clk_id, div); in zynqmp_clk_divider_set_rate()
Dclk-mux-zynqmp.c50 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_mux_get_parent() local
52 ret = eemi_ops->clock_getparent(clk_id, &val); in zynqmp_clk_mux_get_parent()
74 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clk_mux_set_parent() local
76 ret = eemi_ops->clock_setparent(clk_id, index); in zynqmp_clk_mux_set_parent()
Dclkc.c137 static const struct zynqmp_eemi_ops *eemi_ops; variable
209 ret = eemi_ops->query_data(qdata, ret_payload); in zynqmp_pm_clock_get_num_clocks()
234 eemi_ops->query_data(qdata, ret_payload); in zynqmp_pm_clock_get_name()
268 ret = eemi_ops->query_data(qdata, ret_payload); in zynqmp_pm_clock_get_topology()
299 ret = eemi_ops->query_data(qdata, ret_payload); in zynqmp_clk_register_fixed_factor()
342 ret = eemi_ops->query_data(qdata, ret_payload); in zynqmp_pm_clock_get_parents()
367 ret = eemi_ops->query_data(qdata, ret_payload); in zynqmp_pm_clock_get_attributes()
741 eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_clock_probe()
742 if (IS_ERR(eemi_ops)) in zynqmp_clock_probe()
743 return PTR_ERR(eemi_ops); in zynqmp_clock_probe()
/Linux-v5.4/drivers/soc/xilinx/
Dzynqmp_power.c34 static const struct zynqmp_eemi_ops *eemi_ops; variable
97 if (!eemi_ops->set_suspend_mode) in suspend_mode_store()
108 ret = eemi_ops->set_suspend_mode(md); in suspend_mode_store()
123 eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_pm_probe()
124 if (IS_ERR(eemi_ops)) in zynqmp_pm_probe()
125 return PTR_ERR(eemi_ops); in zynqmp_pm_probe()
127 if (!eemi_ops->get_api_version || !eemi_ops->init_finalize) in zynqmp_pm_probe()
130 eemi_ops->init_finalize(); in zynqmp_pm_probe()
131 eemi_ops->get_api_version(&pm_api_version); in zynqmp_pm_probe()
Dzynqmp_pm_domains.c26 static const struct zynqmp_eemi_ops *eemi_ops; variable
77 if (!eemi_ops->set_requirement) in zynqmp_gpd_power_on()
81 ret = eemi_ops->set_requirement(pd->node_id, in zynqmp_gpd_power_on()
112 if (!eemi_ops->set_requirement) in zynqmp_gpd_power_off()
135 ret = eemi_ops->set_requirement(pd->node_id, capabilities, 0, in zynqmp_gpd_power_off()
164 if (!eemi_ops->request_node) in zynqmp_gpd_attach_dev()
173 ret = eemi_ops->request_node(pd->node_id, 0, 0, in zynqmp_gpd_attach_dev()
200 if (!eemi_ops->release_node) in zynqmp_gpd_detach_dev()
209 ret = eemi_ops->release_node(pd->node_id); in zynqmp_gpd_detach_dev()
267 eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_gpd_probe()
[all …]
/Linux-v5.4/drivers/reset/
Dreset-zynqmp.c18 const struct zynqmp_eemi_ops *eemi_ops; member
32 return priv->eemi_ops->reset_assert(ZYNQMP_RESET_ID + id, in zynqmp_reset_assert()
41 return priv->eemi_ops->reset_assert(ZYNQMP_RESET_ID + id, in zynqmp_reset_deassert()
51 err = priv->eemi_ops->reset_get_status(ZYNQMP_RESET_ID + id, &val); in zynqmp_reset_status()
63 return priv->eemi_ops->reset_assert(ZYNQMP_RESET_ID + id, in zynqmp_reset_reset()
82 priv->eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_reset_probe()
83 if (IS_ERR(priv->eemi_ops)) in zynqmp_reset_probe()
84 return PTR_ERR(priv->eemi_ops); in zynqmp_reset_probe()
/Linux-v5.4/drivers/fpga/
Dzynqmp-fpga.c43 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_fpga_ops_write() local
50 if (IS_ERR_OR_NULL(eemi_ops) || !eemi_ops->fpga_load) in zynqmp_fpga_ops_write()
66 ret = eemi_ops->fpga_load(dma_addr, size, eemi_flags); in zynqmp_fpga_ops_write()
81 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_fpga_ops_state() local
84 if (IS_ERR_OR_NULL(eemi_ops) || !eemi_ops->fpga_get_status) in zynqmp_fpga_ops_state()
87 eemi_ops->fpga_get_status(&status); in zynqmp_fpga_ops_state()
/Linux-v5.4/drivers/nvmem/
Dzynqmp_nvmem.c19 static const struct zynqmp_eemi_ops *eemi_ops; variable
28 if (!eemi_ops->get_chipid) in zynqmp_nvmem_read()
31 ret = eemi_ops->get_chipid(&idcode, &version); in zynqmp_nvmem_read()
64 eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_nvmem_probe()
65 if (IS_ERR(eemi_ops)) in zynqmp_nvmem_probe()
66 return PTR_ERR(eemi_ops); in zynqmp_nvmem_probe()
/Linux-v5.4/Documentation/driver-api/xilinx/
Deemi.rst32 static const struct zynqmp_eemi_ops eemi_ops = {
39 static const struct zynqmp_eemi_ops *eemi_ops;
43 eemi_ops = zynqmp_pm_get_eemi_ops();
44 if (IS_ERR(eemi_ops))
45 return PTR_ERR(eemi_ops);
47 ret = eemi_ops->query_data(qdata, ret_payload);
/Linux-v5.4/drivers/firmware/xilinx/
Dzynqmp-debug.c88 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops(); in process_api_request() local
95 ret = eemi_ops->get_api_version(&pm_api_version); in process_api_request()
105 ret = eemi_ops->query_data(qdata, pm_api_ret); in process_api_request()
Dzynqmp.c667 static const struct zynqmp_eemi_ops eemi_ops = { variable
749 eemi_ops_tbl = &eemi_ops; in zynqmp_firmware_probe()
/Linux-v5.4/drivers/spi/
Dspi-zynqmp-gqspi.c138 static const struct zynqmp_eemi_ops *eemi_ops; variable
1021 eemi_ops = zynqmp_pm_get_eemi_ops(); in zynqmp_qspi_probe()
1022 if (IS_ERR(eemi_ops)) in zynqmp_qspi_probe()
1023 return PTR_ERR(eemi_ops); in zynqmp_qspi_probe()