Lines Matching full:payload

88 typedef int (*zynqmp_callfn_t)(register_t, register_t, register_t, uint32_t *payload);
100 zynqmp_call_smc(uint32_t id, uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3, uint32_t *payload,… in zynqmp_call_smc() argument
109 if (payload != NULL) { in zynqmp_call_smc()
110 payload[0] = res.a0 & 0xFFFFFFFF; in zynqmp_call_smc()
111 payload[1] = res.a0 >> 32; in zynqmp_call_smc()
112 payload[2] = res.a1 & 0xFFFFFFFF; in zynqmp_call_smc()
113 payload[3] = res.a1 >> 32; in zynqmp_call_smc()
114 if (!ignore_error && payload[0] != PM_RET_SUCCESS) { in zynqmp_call_smc()
115 printf("%s: fail %x\n", __func__, payload[0]); in zynqmp_call_smc()
126 uint32_t payload[4]; in zynqmp_get_api_version() local
129 rv = zynqmp_call_smc(PM_GET_API_VERSION, 0, 0, 0, 0, payload, false); in zynqmp_get_api_version()
135 payload[1] >> 16, payload[1] & 0xFFFF); in zynqmp_get_api_version()
143 uint32_t payload[4]; in zynqmp_get_chipid() local
146 rv = zynqmp_call_smc(PM_GET_CHIPID, 0, 0, 0, 0, payload, false); in zynqmp_get_chipid()
152 payload[1], payload[2]); in zynqmp_get_chipid()
160 uint32_t payload[4]; in zynqmp_get_trustzone_version() local
163 rv = zynqmp_call_smc(PM_GET_TRUSTZONE_VERSION, 0, 0, 0, 0, payload, false); in zynqmp_get_trustzone_version()
169 payload[1]); in zynqmp_get_trustzone_version()
179 uint32_t payload[4]; in zynqmp_firmware_clock_enable() local
183 rv = zynqmp_call_smc(PM_CLOCK_ENABLE, clkid, 0, 0, 0, payload, false); in zynqmp_firmware_clock_enable()
193 uint32_t payload[4]; in zynqmp_firmware_clock_disable() local
197 rv = zynqmp_call_smc(PM_CLOCK_DISABLE, clkid, 0, 0, 0, payload, false); in zynqmp_firmware_clock_disable()
207 uint32_t payload[4]; in zynqmp_firmware_clock_getstate() local
211 rv = zynqmp_call_smc(PM_CLOCK_GETSTATE, clkid, 0, 0, 0, payload, false); in zynqmp_firmware_clock_getstate()
216 *enabled = payload[1] == 1 ? true : false; in zynqmp_firmware_clock_getstate()
226 uint32_t payload[4]; in zynqmp_firmware_clock_setdivider() local
230 rv = zynqmp_call_smc(PM_CLOCK_SETDIVIDER, clkid, div, 0, 0, payload, false); in zynqmp_firmware_clock_setdivider()
240 uint32_t payload[4]; in zynqmp_firmware_clock_getdivider() local
244 rv = zynqmp_call_smc(PM_CLOCK_GETDIVIDER, clkid, 0, 0, 0, payload, false); in zynqmp_firmware_clock_getdivider()
249 *div = payload[1]; in zynqmp_firmware_clock_getdivider()
259 uint32_t payload[4]; in zynqmp_firmware_clock_setparent() local
263 rv = zynqmp_call_smc(PM_CLOCK_SETPARENT, clkid, parentid, 0, 0, payload, false); in zynqmp_firmware_clock_setparent()
273 uint32_t payload[4]; in zynqmp_firmware_clock_getparent() local
277 rv = zynqmp_call_smc(PM_CLOCK_GETPARENT, clkid, 0, 0, 0, payload, false); in zynqmp_firmware_clock_getparent()
282 *parentid = payload[1]; in zynqmp_firmware_clock_getparent()
291 uint32_t payload[4]; in zynqmp_firmware_pll_get_mode() local
295 rv = zynqmp_call_smc(PM_IOCTL, 0, IOCTL_GET_PLL_FRAC_MODE, pllid, 0, payload, false); in zynqmp_firmware_pll_get_mode()
300 *mode = payload[1]; in zynqmp_firmware_pll_get_mode()
309 uint32_t payload[4]; in zynqmp_firmware_pll_get_frac_data() local
313 rv = zynqmp_call_smc(PM_IOCTL, 0, IOCTL_GET_PLL_FRAC_DATA, pllid, 0, payload, false); in zynqmp_firmware_pll_get_frac_data()
318 *data = payload[1]; in zynqmp_firmware_pll_get_frac_data()
327 uint32_t payload[4]; in zynqmp_firmware_clock_get_fixedfactor() local
331 …rv = zynqmp_call_smc(PM_QUERY_DATA, PM_QID_CLOCK_GET_FIXEDFACTOR_PARAMS, clkid, 0, 0, payload, tru… in zynqmp_firmware_clock_get_fixedfactor()
336 *mult = payload[1]; in zynqmp_firmware_clock_get_fixedfactor()
337 *div = payload[2]; in zynqmp_firmware_clock_get_fixedfactor()
379 uint32_t payload[4]; in zynqmp_firmware_reset_get_status() local
383 rv = zynqmp_call_smc(PM_RESET_GET_STATUS, resetid, 0, 0, 0, payload, true); in zynqmp_firmware_reset_get_status()
388 *status = payload[1]; in zynqmp_firmware_reset_get_status()