Lines Matching refs:api_id
199 static int __do_feature_check_call(const u32 api_id, u32 *ret_payload) in __do_feature_check_call() argument
206 module_id = FIELD_GET(MODULE_ID_MASK, api_id); in __do_feature_check_call()
225 smc_arg[1] = (api_id & API_ID_MASK); in __do_feature_check_call()
236 static int do_feature_check_call(const u32 api_id) in do_feature_check_call() argument
244 api_id) { in do_feature_check_call()
245 if (feature_data->pm_api_id == api_id) in do_feature_check_call()
254 feature_data->pm_api_id = api_id; in do_feature_check_call()
255 ret = __do_feature_check_call(api_id, ret_payload); in do_feature_check_call()
258 hash_add(pm_api_features_map, &feature_data->hentry, api_id); in do_feature_check_call()
260 if (api_id == PM_IOCTL) in do_feature_check_call()
263 else if (api_id == PM_QUERY_DATA) in do_feature_check_call()
277 int zynqmp_pm_feature(const u32 api_id) in zynqmp_pm_feature() argument
284 ret = do_feature_check_call(api_id); in zynqmp_pm_feature()
298 int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id) in zynqmp_pm_is_function_supported() argument
304 if (id >= 64 || (api_id != PM_IOCTL && api_id != PM_QUERY_DATA)) in zynqmp_pm_is_function_supported()
318 ret = do_feature_check_call(api_id); in zynqmp_pm_is_function_supported()
322 bit_mask = (api_id == PM_IOCTL) ? ioctl_features : query_features; in zynqmp_pm_is_function_supported()