Lines Matching refs:api_id
207 static int __do_feature_check_call(const u32 api_id, u32 *ret_payload) in __do_feature_check_call() argument
214 module_id = FIELD_GET(MODULE_ID_MASK, api_id); in __do_feature_check_call()
231 smc_arg[1] = api_id; in __do_feature_check_call()
233 smc_arg[1] = (api_id & API_ID_MASK); in __do_feature_check_call()
247 static int do_feature_check_call(const u32 api_id) in do_feature_check_call() argument
255 api_id) { in do_feature_check_call()
256 if (feature_data->pm_api_id == api_id) in do_feature_check_call()
265 feature_data->pm_api_id = api_id; in do_feature_check_call()
266 ret = __do_feature_check_call(api_id, ret_payload); in do_feature_check_call()
269 hash_add(pm_api_features_map, &feature_data->hentry, api_id); in do_feature_check_call()
271 if (api_id == PM_IOCTL) in do_feature_check_call()
274 else if (api_id == PM_QUERY_DATA) in do_feature_check_call()
288 int zynqmp_pm_feature(const u32 api_id) in zynqmp_pm_feature() argument
295 ret = do_feature_check_call(api_id); in zynqmp_pm_feature()
309 int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id) in zynqmp_pm_is_function_supported() argument
315 if (id >= 64 || (api_id != PM_IOCTL && api_id != PM_QUERY_DATA)) in zynqmp_pm_is_function_supported()
329 ret = do_feature_check_call(api_id); in zynqmp_pm_is_function_supported()
333 bit_mask = (api_id == PM_IOCTL) ? ioctl_features : query_features; in zynqmp_pm_is_function_supported()