/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | envelope-detector.c | 80 static int envelope_detector_comp_latch(struct envelope *env) in envelope_detector_comp_latch() argument 84 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 85 comp = env->comp; in envelope_detector_comp_latch() 86 env->comp = 0; in envelope_detector_comp_latch() 87 spin_unlock_irq(&env->comp_lock); in envelope_detector_comp_latch() 99 enable_irq(env->comp_irq); in envelope_detector_comp_latch() 102 synchronize_irq(env->comp_irq); in envelope_detector_comp_latch() 105 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 106 comp = env->comp; in envelope_detector_comp_latch() 107 env in envelope_detector_comp_latch() 118 struct envelope *env = ctx; envelope_detector_comp_isr() local 128 envelope_detector_setup_compare(struct envelope *env) envelope_detector_setup_compare() argument 174 struct envelope *env = container_of(work, struct envelope, envelope_detector_timeout() local 191 struct envelope *env = iio_priv(indio_dev); envelope_detector_read_raw() local 235 struct envelope *env = iio_priv(indio_dev); envelope_show_invert() local 245 struct envelope *env = iio_priv(indio_dev); envelope_store_invert() local 275 struct envelope *env = iio_priv(indio_dev); envelope_show_comp_interval() local 285 struct envelope *env = iio_priv(indio_dev); envelope_store_comp_interval() local 328 struct envelope *env; envelope_detector_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | envelope-detector.c | 79 static int envelope_detector_comp_latch(struct envelope *env) in envelope_detector_comp_latch() argument 83 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 84 comp = env->comp; in envelope_detector_comp_latch() 85 env->comp = 0; in envelope_detector_comp_latch() 86 spin_unlock_irq(&env->comp_lock); in envelope_detector_comp_latch() 98 enable_irq(env->comp_irq); in envelope_detector_comp_latch() 101 synchronize_irq(env->comp_irq); in envelope_detector_comp_latch() 104 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 105 comp = env->comp; in envelope_detector_comp_latch() 106 env in envelope_detector_comp_latch() 117 struct envelope *env = ctx; envelope_detector_comp_isr() local 127 envelope_detector_setup_compare(struct envelope *env) envelope_detector_setup_compare() argument 173 struct envelope *env = container_of(work, struct envelope, envelope_detector_timeout() local 190 struct envelope *env = iio_priv(indio_dev); envelope_detector_read_raw() local 234 struct envelope *env = iio_priv(indio_dev); envelope_show_invert() local 244 struct envelope *env = iio_priv(indio_dev); envelope_store_invert() local 274 struct envelope *env = iio_priv(indio_dev); envelope_show_comp_interval() local 284 struct envelope *env = iio_priv(indio_dev); envelope_store_comp_interval() local 327 struct envelope *env; envelope_detector_probe() local [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | env.c | 4 #include "env.h" 23 void perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() argument 26 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 27 __perf_env__insert_bpf_prog_info(env, info_node); in perf_env__insert_bpf_prog_info() 28 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 31 void __perf_env__insert_bpf_prog_info(struct perf_env *env, struct bpf_prog_info_node *info_node) in __perf_env__insert_bpf_prog_info() argument 38 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info() 54 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info() 55 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info() 58 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info() argument 83 perf_env__insert_btf(struct perf_env *env, struct btf_node *btf_node) perf_env__insert_btf() argument 93 __perf_env__insert_btf(struct perf_env *env, struct btf_node *btf_node) __perf_env__insert_btf() argument 121 perf_env__find_btf(struct perf_env *env, __u32 btf_id) perf_env__find_btf() argument 131 __perf_env__find_btf(struct perf_env *env, __u32 btf_id) __perf_env__find_btf() argument 151 perf_env__purge_bpf(struct perf_env *env) perf_env__purge_bpf() argument 195 perf_env__exit(struct perf_env *env) perf_env__exit() argument 246 perf_env__init(struct perf_env *env) perf_env__init() argument 256 perf_env__init_kernel_mode(struct perf_env *env) perf_env__init_kernel_mode() argument 269 perf_env__kernel_is_64_bit(struct perf_env *env) perf_env__kernel_is_64_bit() argument 277 perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]) perf_env__set_cmdline() argument 305 perf_env__read_cpu_topology_map(struct perf_env *env) perf_env__read_cpu_topology_map() argument 335 perf_env__read_pmu_mappings(struct perf_env *env) perf_env__read_pmu_mappings() argument 370 perf_env__read_cpuid(struct perf_env *env) perf_env__read_cpuid() argument 385 perf_env__read_arch(struct perf_env *env) perf_env__read_arch() argument 398 perf_env__read_nr_cpus_avail(struct perf_env *env) perf_env__read_nr_cpus_avail() argument 406 perf_env__raw_arch(struct perf_env *env) perf_env__raw_arch() argument 411 perf_env__nr_cpus_avail(struct perf_env *env) perf_env__nr_cpus_avail() argument 455 perf_env__arch(struct perf_env *env) perf_env__arch() argument 470 perf_env__cpuid(struct perf_env *env) perf_env__cpuid() argument 483 perf_env__nr_pmu_mappings(struct perf_env *env) perf_env__nr_pmu_mappings() argument 496 perf_env__pmu_mappings(struct perf_env *env) perf_env__pmu_mappings() argument 509 perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu) perf_env__numa_node() argument 548 perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, const char *cap) perf_env__find_pmu_cap() argument [all...] |
/applications/standard/contacts_data/contacts/src/ |
H A D | result_convert.cpp | 33 * @param env Conditions for convert operation 39 napi_env env, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) in ResultSetToObject() 44 napi_create_array(env, &array); in ResultSetToObject() 52 napi_create_array(env, &array); in ResultSetToObject() 65 napi_value napiObject = GetResultMapValue(env, resultSetMap, contactIdValue); in ResultSetToObject() 66 PutQuickSearchKey(env, resultSet, quickSearchMap, contactIdValue); in ResultSetToObject() 67 ConvertContactObject(env, napiObject, resultSet); in ResultSetToObject() 71 napi_value array = ConvertContactArray(env, resultSetMap, quickSearchMap); in ResultSetToObject() 75 void ResultConvert::PutQuickSearchKey(napi_env env, std::shared_ptr<DataShare::DataShareResultSet> &resultSet, in PutQuickSearchKey() argument 85 napi_create_string_utf8(env, quickSearchValu in PutQuickSearchKey() 38 ResultSetToObject( napi_env env, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ResultSetToObject() argument 90 ConvertContactArray( napi_env env, std::map<int, napi_value> &resultSetMap, std::map<int, std::string> &quickSearchMap) ConvertContactArray() argument 124 ConvertContactObject( napi_env env, napi_value napiObject, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertContactObject() argument 163 ResultSetToHolder( napi_env env, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ResultSetToHolder() argument 214 ResultSetToGroup( napi_env env, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ResultSetToGroup() argument 264 GetResultMapValue(napi_env env, std::map<int, napi_value> &resultSetMap, int &contactId) GetResultMapValue() argument 279 GetNapiValue(napi_env env, const std::string keyChar, napi_value napiObject) GetNapiValue() argument 297 GetNapiElementObject(napi_env env, napi_value napiObject, const std::string valueChar) GetNapiElementObject() argument 306 GetNapiElementArray(napi_env env, napi_value napiObject, const std::string valueChar) GetNapiElementArray() argument 315 GetResultValue( napi_env env, std::string &contentKey, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) GetResultValue() argument 343 CreateNapiStringValue(napi_env env, const std::string key) CreateNapiStringValue() argument 350 ConvertEmail( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertEmail() argument 383 ConvertName( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertName() argument 431 ConvertUri( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertUri() argument 447 ConvertEvent( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertEvent() argument 476 ConvertGroup( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertGroup() argument 500 ConvertImAddress( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertImAddress() argument 529 ConvertPhoneNumber( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertPhoneNumber() argument 558 ConvertPostalAddress( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertPostalAddress() argument 608 ConvertRelation( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertRelation() argument 637 ConvertSipAddress( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertSipAddress() argument 666 ConvertWebsite( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertWebsite() argument 695 ConvertNickName( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertNickName() argument 711 ConvertNote( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertNote() argument 727 ConvertOrganization( napi_env env, napi_value napiObject, int &typeId, std::shared_ptr<DataShare::DataShareResultSet> &resultSet) ConvertOrganization() argument [all...] |
H A D | contacts_api.cpp | 44 * @param env Conditions for initialize operation 50 void ObjectInit(napi_env env, napi_value object, napi_value &hold, napi_value &attr, napi_value &contact) in ObjectInit() argument 52 int type = GetType(env, object); in ObjectInit() 71 * @param env Conditions for initialize operation 75 void ObjectInitId(napi_env env, napi_value object, napi_value &id) in ObjectInitId() argument 77 int type = GetType(env, object); in ObjectInitId() 90 * @param env Conditions for initialize operation 94 void ObjectInitString(napi_env env, napi_value object, napi_value &key) in ObjectInitString() argument 96 int type = GetType(env, object); in ObjectInitString() 109 * @param env Condition 114 GetType(napi_env env, napi_value value) GetType() argument 153 GetDataShareHelper(napi_env env, napi_callback_info info, ExecuteHelper *executeHelper) GetDataShareHelper() argument 281 BuildDeleteContactPredicates(napi_env env, ExecuteHelper *executeHelper) BuildDeleteContactPredicates() argument 302 BuildQueryContactPredicates( napi_env env, napi_value key, napi_value hold, napi_value attr) BuildQueryContactPredicates() argument 338 BuildQueryContactsPredicates(napi_env env, napi_value hold, napi_value attr) BuildQueryContactsPredicates() argument 385 BuildQueryContactsByEmailPredicates( napi_env env, napi_value emailobject, napi_value hold, napi_value attr) BuildQueryContactsByEmailPredicates() argument 411 BuildQueryContactsByPhoneNumberPredicates( napi_env env, napi_value number, napi_value hold, napi_value attr) BuildQueryContactsByPhoneNumberPredicates() argument 435 BuildQueryGroupsPredicates(napi_env env, napi_value hold) BuildQueryGroupsPredicates() argument 464 BuildQueryKeyPredicates(napi_env env, napi_value id, napi_value hold) BuildQueryKeyPredicates() argument 485 BuildQueryMyCardPredicates(napi_env env, napi_value attr) BuildQueryMyCardPredicates() argument 504 BuildQueryContactData(napi_env env, napi_value &contactObject, napi_value &attrObject, std::vector<DataShare::DataShareValuesBucket> &valueContactData) BuildQueryContactData() argument 550 BuildUpdateContactConvertParams(napi_env env, napi_value &contact, napi_value &attr, ExecuteHelper *executeHelper) BuildUpdateContactConvertParams() argument 561 BuildDeleteContactDataPredicates(napi_env env, napi_value attr) BuildDeleteContactDataPredicates() argument 577 BuildIsLocalContactPredicates(napi_env env, napi_value id) BuildIsLocalContactPredicates() argument 600 BuildIsMyCardPredicates(napi_env env, napi_value id) BuildIsMyCardPredicates() argument 613 ExecuteDone(napi_env env, napi_status status, void *data) ExecuteDone() argument 654 ExecuteSyncDone(napi_env env, napi_status status, void *data) ExecuteSyncDone() argument 714 HandleExecuteErrorCode(napi_env env, ExecuteHelper *executeHelper, napi_value &result) HandleExecuteErrorCode() argument 750 HandleExecuteResult(napi_env env, ExecuteHelper *executeHelper, napi_value &result) HandleExecuteResult() argument 799 LocalExecuteAddContact(napi_env env, ExecuteHelper *executeHelper) LocalExecuteAddContact() argument 822 LocalExecuteDeleteContact(napi_env env, ExecuteHelper *executeHelper) LocalExecuteDeleteContact() argument 830 LocalExecuteQueryContact(napi_env env, ExecuteHelper *executeHelper) LocalExecuteQueryContact() argument 838 LocalExecuteQueryContactsOrKey(napi_env env, ExecuteHelper *executeHelper) LocalExecuteQueryContactsOrKey() argument 846 LocalExecuteQueryContactsByData(napi_env env, ExecuteHelper *executeHelper) LocalExecuteQueryContactsByData() argument 862 LocalExecuteQueryGroup(napi_env env, ExecuteHelper *executeHelper) LocalExecuteQueryGroup() argument 870 LocalExecuteQueryHolders(napi_env env, ExecuteHelper *executeHelper) LocalExecuteQueryHolders() argument 878 LocalExecuteQueryMyCard(napi_env env, ExecuteHelper *executeHelper) LocalExecuteQueryMyCard() argument 886 LocalExecuteUpdateContact(napi_env env, ExecuteHelper *executeHelper) LocalExecuteUpdateContact() argument 914 LocalExecuteIsLocalContact(napi_env env, ExecuteHelper *executeHelper) LocalExecuteIsLocalContact() argument 932 LocalExecuteIsMyCard(napi_env env, ExecuteHelper *executeHelper) LocalExecuteIsMyCard() argument 952 LocalExecute(napi_env env, ExecuteHelper *executeHelper) LocalExecute() argument 976 LocalExecuteSplit(napi_env env, ExecuteHelper *executeHelper) LocalExecuteSplit() argument 1022 Execute(napi_env env, void *data) Execute() argument 1029 CreateAsyncWork(napi_env env, ExecuteHelper *executeHelper) CreateAsyncWork() argument 1050 ConvertParamsSwitchSplit(int code, napi_env env, const napi_value &key, const napi_value &hold, const napi_value &attr, ExecuteHelper *executeHelper) ConvertParamsSwitchSplit() argument 1087 SetChildActionCodeAndConvertParams(napi_env env, ExecuteHelper *executeHelper) SetChildActionCodeAndConvertParams() argument 1131 VerificationParameterId(napi_env env, napi_value id, ExecuteHelper *executeHelper, napi_value hold) VerificationParameterId() argument 1146 VerificationParameterHolderId(napi_env env, ExecuteHelper *executeHelper, napi_value hold) VerificationParameterHolderId() argument 1157 Scheduling(napi_env env, napi_callback_info info, ExecuteHelper *executeHelper, int actionCode) Scheduling() argument 1206 AddContact(napi_env env, napi_callback_info info) AddContact() argument 1251 DeleteContact(napi_env env, napi_callback_info info) DeleteContact() argument 1296 UpdateContact(napi_env env, napi_callback_info info) UpdateContact() argument 1348 QueryContact(napi_env env, napi_callback_info info) QueryContact() argument 1409 QueryContacts(napi_env env, napi_callback_info info) QueryContacts() argument 1467 QueryContactsByEmail(napi_env env, napi_callback_info info) QueryContactsByEmail() argument 1530 QueryContactsByPhoneNumber(napi_env env, napi_callback_info info) QueryContactsByPhoneNumber() argument 1591 QueryGroups(napi_env env, napi_callback_info info) QueryGroups() argument 1642 QueryHolders(napi_env env, napi_callback_info info) QueryHolders() argument 1687 QueryKey(napi_env env, napi_callback_info info) QueryKey() argument 1745 QueryMyCard(napi_env env, napi_callback_info info) QueryMyCard() argument 1796 IsMyCard(napi_env env, napi_callback_info info) IsMyCard() argument 1841 IsLocalContact(napi_env env, napi_callback_info info) IsLocalContact() argument 1878 DeclareContactConst(napi_env env, napi_value exports) DeclareContactConst() argument 1892 DeclareEmailConst(napi_env env, napi_value exports) DeclareEmailConst() argument 1914 DeclareEventConst(napi_env env, napi_value exports) DeclareEventConst() argument 1936 DeclareImAddressConst(napi_env env, napi_value exports) DeclareImAddressConst() argument 1966 DeclarePhoneNumberConst(napi_env env, napi_value exports) DeclarePhoneNumberConst() argument 2022 DeclarePostalAddressConst(napi_env env, napi_value exports) DeclarePostalAddressConst() argument 2044 DeclareRelationConst(napi_env env, napi_value exports) DeclareRelationConst() argument 2088 DeclareSipAddressConst(napi_env env, napi_value exports) DeclareSipAddressConst() argument 2110 DeclareAttributeConst(napi_env env, napi_value exports) DeclareAttributeConst() argument 2150 Init(napi_env env, napi_value exports) Init() argument [all...] |
/applications/standard/settings/napi/settings/ |
H A D | napi_settings.cpp | 45 void ThrowExistingError(napi_env env, std::string errorMessage) in ThrowExistingError() argument 49 napi_create_string_utf8(env, errorMessage.c_str(), NAPI_AUTO_LENGTH, &message); in ThrowExistingError() 50 napi_create_error(env, NULL, message, &error); in ThrowExistingError() 51 napi_throw(env, error); in ThrowExistingError() 54 bool ThrowError(napi_env env, int status) in ThrowError() argument 60 ThrowExistingError(env, PERMISSION_EXCEPTION); in ThrowError() 68 * @param env the environment that the Node-API call is invoked under 71 napi_value wrap_void_to_js(napi_env env) in wrap_void_to_js() argument 74 NAPI_CALL(env, napi_get_null(env, in wrap_void_to_js() 85 unwrap_string_from_js(napi_env env, napi_value param) unwrap_string_from_js() argument 127 wrap_string_to_js(napi_env env, const std::string &value) wrap_string_to_js() argument 141 wrap_bool_to_js(napi_env env, bool value) wrap_bool_to_js() argument 155 napi_get_uri_sync(napi_env env, napi_callback_info info) napi_get_uri_sync() argument 206 napi_get_uri(napi_env env, napi_callback_info info) napi_get_uri() argument 370 CheckDataShareHelper(napi_env env, const napi_value context, std::shared_ptr<OHOS::DataShare::DataShareHelper> dataShareHelper, OHOS::Uri proxyUri) CheckDataShareHelper() argument 407 getDataShareHelper( napi_env env, const napi_value context, const bool stageMode, std::string tableName) getDataShareHelper() argument 434 QueryValue(napi_env env, AsyncCallbackInfo* asyncCallbackInfo, OHOS::Uri uri) QueryValue() argument 479 GetValueExecuteExt(napi_env env, void *data) GetValueExecuteExt() argument 511 DeleteCallbackInfo(napi_env env, AsyncCallbackInfo *asyncCallbackInfo) DeleteCallbackInfo() argument 521 CompleteCall(napi_env env, napi_status status, void *data, const napi_value retVaule) CompleteCall() argument 542 CompletePromise(napi_env env, napi_status status, void *data, const napi_value retVaule) CompletePromise() argument 556 SetValueExecuteExt(napi_env env, void *data, const std::string setValue) SetValueExecuteExt() argument 609 napi_get_value_sync(napi_env env, napi_callback_info info) napi_get_value_sync() argument 684 get_val_CB_exe_CB(napi_env env, AsyncCallbackInfo *asyncCallbackInfo) get_val_CB_exe_CB() argument 718 napi_get_value(napi_env env, napi_callback_info info) napi_get_value() argument 904 napi_get_value_ext(napi_env env, napi_callback_info info, const bool stageMode) napi_get_value_ext() argument 1028 napi_set_value_sync(napi_env env, napi_callback_info info) napi_set_value_sync() argument 1115 SetValueExecuteCB(napi_env env, void *data) SetValueExecuteCB() argument 1161 SetValueAsync(napi_env env, AsyncCallbackInfo* asyncCallbackInfo) SetValueAsync() argument 1213 SetValuePromise(napi_env env, AsyncCallbackInfo* asyncCallbackInfo) SetValuePromise() argument 1272 napi_set_value(napi_env env, napi_callback_info info) napi_set_value() argument 1347 napi_set_value_ext(napi_env env, napi_callback_info info, const bool stageMode) napi_set_value_ext() argument 1476 napi_enable_airplane_mode(napi_env env, napi_callback_info info) napi_enable_airplane_mode() argument 1617 napi_can_show_floating(napi_env env, napi_callback_info info) napi_can_show_floating() argument 1811 napi_get_value_sync_ext(bool stageMode, size_t argc, napi_env env, napi_value* args) napi_get_value_sync_ext() argument 1866 napi_set_value_sync_ext(bool stageMode, size_t argc, napi_env env, napi_value *args) napi_set_value_sync_ext() argument 1900 napi_register_key_observer(napi_env env, napi_callback_info info) napi_register_key_observer() argument 1905 napi_unregister_key_observer(napi_env env, napi_callback_info info) napi_unregister_key_observer() argument [all...] |
H A D | napi_settings_observer.cpp | 62 napi_open_handle_scope(settingsObserver->cbInfo->env, &scope); in OnChangeAsync() 65 napi_get_undefined(settingsObserver->cbInfo->env, &undefined); in OnChangeAsync() 67 napi_create_object(settingsObserver->cbInfo->env, &error); in OnChangeAsync() 70 napi_create_int32(settingsObserver->cbInfo->env, unSupportCode, &errCode); in OnChangeAsync() 71 napi_set_named_property(settingsObserver->cbInfo->env, error, "code", errCode); in OnChangeAsync() 74 result[1] = wrap_bool_to_js(settingsObserver->cbInfo->env, false); in OnChangeAsync() 75 napi_get_reference_value(settingsObserver->cbInfo->env, settingsObserver->cbInfo->callbackRef, in OnChangeAsync() 78 napi_call_function(settingsObserver->cbInfo->env, undefined, callback, PARAM2, result, in OnChangeAsync() 80 napi_close_handle_scope(settingsObserver->cbInfo->env, scope); in OnChangeAsync() 95 napi_get_uv_event_loop(cbInfo->env, in OnChange() 130 npai_settings_register_observer(napi_env env, napi_callback_info info) npai_settings_register_observer() argument 195 npai_settings_unregister_observer(napi_env env, napi_callback_info info) npai_settings_unregister_observer() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | env.c | 4 #include "env.h" 18 void perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() argument 21 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 22 __perf_env__insert_bpf_prog_info(env, info_node); in perf_env__insert_bpf_prog_info() 23 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 26 void __perf_env__insert_bpf_prog_info(struct perf_env *env, struct bpf_prog_info_node *info_node) in __perf_env__insert_bpf_prog_info() argument 33 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info() 49 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info() 50 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info() 53 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info() argument 78 perf_env__insert_btf(struct perf_env *env, struct btf_node *btf_node) perf_env__insert_btf() argument 88 __perf_env__insert_btf(struct perf_env *env, struct btf_node *btf_node) __perf_env__insert_btf() argument 116 perf_env__find_btf(struct perf_env *env, __u32 btf_id) perf_env__find_btf() argument 126 __perf_env__find_btf(struct perf_env *env, __u32 btf_id) __perf_env__find_btf() argument 146 perf_env__purge_bpf(struct perf_env *env) perf_env__purge_bpf() argument 185 perf_env__exit(struct perf_env *env) perf_env__exit() argument 220 perf_env__init(struct perf_env *env) perf_env__init() argument 227 perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]) perf_env__set_cmdline() argument 255 perf_env__read_cpu_topology_map(struct perf_env *env) perf_env__read_cpu_topology_map() argument 283 perf_env__read_cpuid(struct perf_env *env) perf_env__read_cpuid() argument 298 perf_env__read_arch(struct perf_env *env) perf_env__read_arch() argument 311 perf_env__read_nr_cpus_avail(struct perf_env *env) perf_env__read_nr_cpus_avail() argument 319 perf_env__raw_arch(struct perf_env *env) perf_env__raw_arch() argument 324 perf_env__nr_cpus_avail(struct perf_env *env) perf_env__nr_cpus_avail() argument 368 perf_env__arch(struct perf_env *env) perf_env__arch() argument 384 perf_env__numa_node(struct perf_env *env, int cpu) perf_env__numa_node() argument [all...] |
/applications/standard/calendardata/calendarmanager/napi/src/ |
H A D | napi_util.cpp | 30 napi_status GetValue(napi_env env, napi_value in, napi_value& out) in GetValue() argument 36 napi_status SetValue(napi_env env, napi_value in, napi_value& out) in SetValue() argument 43 napi_status GetValue(napi_env env, napi_value in, bool& out) in GetValue() argument 45 return napi_get_value_bool(env, in, &out); in GetValue() 48 napi_status SetValue(napi_env env, const bool& in, napi_value& out) in SetValue() argument 50 return napi_get_boolean(env, in, &out); in SetValue() 54 napi_status GetValue(napi_env env, napi_value in, int32_t& out) in GetValue() argument 56 return napi_get_value_int32(env, in, &out); in GetValue() 59 napi_status SetValue(napi_env env, const int32_t& in, napi_value& out) in SetValue() argument 61 return napi_create_int32(env, i in SetValue() 65 GetValue(napi_env env, napi_value in, uint32_t& out) GetValue() argument 70 SetValue(napi_env env, const uint32_t& in, napi_value& out) SetValue() argument 76 GetValue(napi_env env, napi_value in, int64_t& out) GetValue() argument 81 SetValue(napi_env env, const int64_t& in, napi_value& out) SetValue() argument 86 GetValue(napi_env env, napi_value in, uint64_t& out) GetValue() argument 92 SetValue(napi_env env, const uint64_t& in, napi_value& out) SetValue() argument 98 GetValue(napi_env env, napi_value in, double& out) GetValue() argument 103 SetValue(napi_env env, const double& in, napi_value& out) SetValue() argument 109 GetValue(napi_env env, napi_value in, std::string& out) GetValue() argument 136 SetValue(napi_env env, const std::string& in, napi_value& out) SetValue() argument 142 GetValue(napi_env env, napi_value in, std::vector<std::string>& out) GetValue() argument 148 SetValue(napi_env env, const std::vector<std::string>& in, napi_value& out) SetValue() argument 164 GetValue(napi_env env, napi_value in, std::vector<uint8_t>& out) GetValue() argument 182 SetValue(napi_env env, const std::vector<uint8_t>& in, napi_value& out) SetValue() argument 201 GetValue(napi_env env, napi_value in, std::vector<int32_t>& out) GetValue() argument 207 SetValue(napi_env env, const std::vector<int32_t>& in, napi_value& out) SetValue() argument 214 GetValue(napi_env env, napi_value in, std::vector<uint32_t>& out) GetValue() argument 220 SetValue(napi_env env, const std::vector<uint32_t>& in, napi_value& out) SetValue() argument 240 GetValue(napi_env env, napi_value in, std::vector<int64_t>& out) GetValue() argument 246 SetValue(napi_env env, const std::vector<int64_t>& in, napi_value& out) SetValue() argument 267 GetValue(napi_env env, napi_value in, CalendarAccount& out) GetValue() argument 278 SetValue(napi_env env, const CalendarAccount& in, napi_value& out) SetValue() argument 303 GetValue(napi_env env, napi_value in, CalendarConfig& out) GetValue() argument 342 SetValue(napi_env env, const CalendarConfig& in, napi_value& out) SetValue() argument 375 GetValue(napi_env env, napi_value in, Location& out) GetValue() argument 384 SetValue(napi_env env, const Location& in, napi_value& out) SetValue() argument 412 GetValue(napi_env env, napi_value in, RecurrenceRule& out) GetValue() argument 431 SetValue(napi_env env, const RecurrenceRule& in, napi_value& out) SetValue() argument 452 GetValue(napi_env env, napi_value in, Attendee& out) GetValue() argument 471 SetValue(napi_env env, const Attendee& in, napi_value& out) SetValue() argument 502 GetValue(napi_env env, napi_value in, std::vector<Attendee>& out) GetValue() argument 508 SetValue(napi_env env, const std::vector<Attendee>& in, napi_value& out) SetValue() argument 514 GetValue(napi_env env, napi_value in, EventService& out) GetValue() argument 522 SetValue(napi_env env, const EventService& in, napi_value& out) SetValue() argument 551 GetValue(napi_env env, napi_value in, EventFilterNapi*& out) GetValue() argument 557 SetValue(napi_env env, const EventFilterNapi& in, napi_value& out) SetValue() argument 564 GetValue(napi_env env, napi_value in, EventType& out) GetValue() argument 570 SetValue(napi_env env, const EventType& in, napi_value& out) SetValue() argument 577 GetValue(napi_env env, napi_value in, Event& out) GetValue() argument 603 SetValue(napi_env env, const Event& in, napi_value& out) SetValue() argument 640 GetValue(napi_env env, napi_value in, std::vector<Event>& out) GetValue() argument 646 SetValue(napi_env env, const std::vector<Event>& in, napi_value& out) SetValue() argument 653 DefineClass(napi_env env, const std::string& name, const napi_property_descriptor* properties, size_t count, napi_callback newcb) DefineClass() argument 693 NewWithRef(napi_env env, size_t argc, napi_value* argv, void** out, napi_value constructor) NewWithRef() argument 711 Unwrap(napi_env env, napi_value in, void** out, napi_value constructor) Unwrap() argument 728 Equals(napi_env env, napi_value value, napi_ref copy) Equals() argument [all...] |
H A D | calendar_manager_napi.cpp | 32 napi_value CalendarManagerNapi::CreateCalendar(napi_env env, napi_callback_info info) in CreateCalendar() argument 42 auto input = [env, ctxt](size_t argc, napi_value* argv) { in CreateCalendar() 45 NapiUtil::GetValue(env, argv[0], ctxt->account); in CreateCalendar() 47 ctxt->ref = NapiUtil::NewWithRef(env, argc, argv, reinterpret_cast<void**>(&ctxt->calendar), in CreateCalendar() 48 CalendarNapi::Constructor(env)); in CreateCalendar() 50 ctxt->GetCbInfo(env, info, input); in CreateCalendar() 59 auto output = [env, ctxt](napi_value& result) { in CreateCalendar() 60 ctxt->status = napi_get_reference_value(env, ctxt->ref, &result); in CreateCalendar() 62 ctxt->status = NapiUtil::SetNamedProperty(env, "id", ctxt->id, result); in CreateCalendar() 64 ctxt->status = napi_delete_reference(env, ctx in CreateCalendar() 70 DeleteCalendar(napi_env env, napi_callback_info info) DeleteCalendar() argument 132 GetCalendar(napi_env env, napi_callback_info info) GetCalendar() argument 160 GetAllCalendars(napi_env env, napi_callback_info info) GetAllCalendars() argument 208 GetCalendarManager(napi_env env, napi_callback_info info) GetCalendarManager() argument 241 EditEvent(napi_env env, napi_callback_info info) EditEvent() argument 276 LaunchEditorPage(napi_env env, std::shared_ptr<EditEventContext> ctxt) LaunchEditorPage() argument 324 New(napi_env env, napi_callback_info info) New() argument 350 Init(napi_env env, napi_value exports) Init() argument [all...] |
H A D | event_filter_napi.cpp | 27 napi_value EventFilterNapi::Constructor(napi_env env) in Constructor() argument 35 return NapiUtil::DefineClass(env, "EventFilter", descriptor, count, EventFilterNapi::New); in Constructor() 38 napi_value EventFilterNapi::New(napi_env env, napi_callback_info info) in New() argument 42 auto input = [env, ctxt](size_t argc, napi_value* argv) { in New() 45 ctxt->GetCbInfoSync(env, info, input); in New() 46 NAPI_ASSERT(env, ctxt->status == napi_ok, "invalid arguments!"); in New() 49 NAPI_ASSERT(env, instance !=nullptr, "no memory for EventFilterNapi"); in New() 51 auto finalize = [](napi_env env, void* data, void* hint) { in New() 57 if (napi_wrap(env, ctxt->self, instance, finalize, nullptr, nullptr) != napi_ok) { in New() 59 GET_AND_THROW_LAST_ERROR(env); in New() 65 ToJson(napi_env env, napi_value inner, EventFilterNapi*& out) ToJson() argument 81 FilterById(napi_env env, napi_callback_info info) FilterById() argument 107 FilterByTime(napi_env env, napi_callback_info info) FilterByTime() argument 136 FilterByTitle(napi_env env, napi_callback_info info) FilterByTitle() argument 161 Init(napi_env env, napi_value exports) Init() argument [all...] |
H A D | calendar_napi.cpp | 28 napi_value CalendarNapi::Constructor(napi_env env) in Constructor() argument 43 return NapiUtil::DefineClass(env, "Calendar", properties, count, CalendarNapi::New); in Constructor() 50 napi_value CalendarNapi::New(napi_env env, napi_callback_info info) in New() argument 53 auto input = [env, ctxt](size_t argc, napi_value* argv) { in New() 56 ctxt->GetCbInfoSync(env, info, input); in New() 57 NAPI_ASSERT(env, ctxt->status == napi_ok, "invalid arguments!"); in New() 60 NAPI_ASSERT(env, calendar != nullptr, "no memory for calendar"); in New() 62 auto finalize = [](napi_env env, void* data, void* hint) { in New() 68 if (napi_wrap(env, ctxt->self, calendar, finalize, nullptr, nullptr) != napi_ok) { in New() 70 GET_AND_THROW_LAST_ERROR(env); in New() 76 ToJson(napi_env env, napi_value inner, CalendarNapi*& out) ToJson() argument 91 AddEvent(napi_env env, napi_callback_info info) AddEvent() argument 124 AddEvents(napi_env env, napi_callback_info info) AddEvents() argument 152 DeleteEvent(napi_env env, napi_callback_info info) DeleteEvent() argument 177 DeleteEvents(napi_env env, napi_callback_info info) DeleteEvents() argument 202 UpdateEvent(napi_env env, napi_callback_info info) UpdateEvent() argument 227 UpdateEvents(napi_env env, napi_callback_info info) UpdateEvents() argument 253 GetEvents(napi_env env, napi_callback_info info) GetEvents() argument 300 GetConfig(napi_env env, napi_callback_info info) GetConfig() argument 338 SetConfig(napi_env env, napi_callback_info info) SetConfig() argument 364 GetAccount(napi_env env, napi_callback_info info) GetAccount() argument 401 CalendarAccountConstructor(napi_env env, napi_callback_info info) CalendarAccountConstructor() argument 414 CalendarAccountInit(napi_env env, napi_value exports) CalendarAccountInit() argument 435 Init(napi_env env, napi_value exports) Init() argument [all...] |
/applications/standard/contacts_data/contacts/include/ |
H A D | contacts_api.h | 25 void Init(napi_env env, napi_value exports); 26 napi_value DeclareContactConst(napi_env env, napi_value exports); 27 napi_value DeclareEmailConst(napi_env env, napi_value exports); 28 napi_value DeclareEventConst(napi_env env, napi_value exports); 29 napi_value DeclareImAddressConst(napi_env env, napi_value exports); 30 napi_value DeclarePhoneNumberConst(napi_env env, napi_value exports); 31 napi_value DeclarePostalAddressConst(napi_env env, napi_value exports); 32 napi_value DeclareRelationConst(napi_env env, napi_value exports); 33 napi_value DeclareSipAddressConst(napi_env env, napi_value exports); 34 napi_value DeclareAttributeConst(napi_env env, napi_valu [all...] |
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | verifier.c | 250 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument 256 prog = env->prog; in find_linfo() 309 __printf(2, 3) void bpf_verifier_log_write(struct bpf_verifier_env *env, in bpf_verifier_log_write() argument 314 if (!bpf_verifier_log_needed(&env->log)) in bpf_verifier_log_write() 318 bpf_verifier_vlog(&env->log, fmt, args); in bpf_verifier_log_write() 325 struct bpf_verifier_env *env = private_data; in verbose() local 328 if (!bpf_verifier_log_needed(&env->log)) in verbose() 332 bpf_verifier_vlog(&env->log, fmt, args); in verbose() 357 __printf(3, 4) static void verbose_linfo(struct bpf_verifier_env *env, in verbose_linfo() argument 363 if (!bpf_verifier_log_needed(&env in verbose_linfo() 490 reg_type_str(struct bpf_verifier_env *env, enum bpf_reg_type type) reg_type_str() argument 541 print_liveness(struct bpf_verifier_env *env, enum bpf_reg_liveness live) print_liveness() argument 554 func(struct bpf_verifier_env *env, const struct bpf_reg_state *reg) func() argument 582 print_verifier_state(struct bpf_verifier_env *env, const struct bpf_func_state *state) print_verifier_state() argument 787 acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) acquire_reference_state() argument 926 update_branch_counts(struct bpf_verifier_env *env, struct bpf_verifier_state *st) update_branch_counts() argument 943 pop_stack(struct bpf_verifier_env *env, int *prev_insn_idx, int *insn_idx, bool pop_log) pop_stack() argument 972 push_stack(struct bpf_verifier_env *env, int insn_idx, int prev_insn_idx, bool speculative) push_stack() argument 1077 mark_reg_known_zero(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno) mark_reg_known_zero() argument 1352 __mark_reg_unknown(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) __mark_reg_unknown() argument 1367 mark_reg_unknown(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno) mark_reg_unknown() argument 1380 __mark_reg_not_init(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) __mark_reg_not_init() argument 1387 mark_reg_not_init(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno) mark_reg_not_init() argument 1400 mark_btf_ld_reg(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno, enum bpf_reg_type reg_type, u32 btf_id) mark_btf_ld_reg() argument 1414 init_reg_state(struct bpf_verifier_env *env, struct bpf_func_state *state) init_reg_state() argument 1434 init_func_state(struct bpf_verifier_env *env, struct bpf_func_state *state, int callsite, int frameno, int subprogno) init_func_state() argument 1456 find_subprog(struct bpf_verifier_env *env, int off) find_subprog() argument 1468 add_subprog(struct bpf_verifier_env *env, int off) add_subprog() argument 1490 check_subprogs(struct bpf_verifier_env *env) check_subprogs() argument 1572 mark_reg_read(struct bpf_verifier_env *env, const struct bpf_reg_state *state, struct bpf_reg_state *parent, u8 flag) mark_reg_read() argument 1624 is_reg64(struct bpf_verifier_env *env, struct bpf_insn *insn, u32 regno, struct bpf_reg_state *reg, enum reg_arg_type t) is_reg64() argument 1714 insn_has_def32(struct bpf_verifier_env *env, struct bpf_insn *insn) insn_has_def32() argument 1722 mark_insn_zext(struct bpf_verifier_env *env, struct bpf_reg_state *reg) mark_insn_zext() argument 1735 check_reg_arg(struct bpf_verifier_env *env, u32 regno, enum reg_arg_type t) check_reg_arg() argument 1781 push_jmp_history(struct bpf_verifier_env *env, struct bpf_verifier_state *cur) push_jmp_history() argument 1819 backtrack_insn(struct bpf_verifier_env *env, int idx, u32 *reg_mask, u64 *stack_mask) backtrack_insn() argument 2023 mark_all_scalars_precise(struct bpf_verifier_env *env, struct bpf_verifier_state *st) mark_all_scalars_precise() argument 2057 mark_all_scalars_imprecise(struct bpf_verifier_env *env, struct bpf_verifier_state *st) mark_all_scalars_imprecise() argument 2169 __mark_chain_precision(struct bpf_verifier_env *env, int frame, int regno, int spi) __mark_chain_precision() argument 2357 mark_chain_precision(struct bpf_verifier_env *env, int regno) mark_chain_precision() argument 2362 mark_chain_precision_frame(struct bpf_verifier_env *env, int frame, int regno) mark_chain_precision_frame() argument 2367 mark_chain_precision_stack_frame(struct bpf_verifier_env *env, int frame, int spi) mark_chain_precision_stack_frame() argument 2468 check_stack_write_fixed_off(struct bpf_verifier_env *env, struct bpf_func_state *state, int off, int size, int value_regno, int insn_idx) check_stack_write_fixed_off() argument 2607 check_stack_write_var_off(struct bpf_verifier_env *env, struct bpf_func_state *state, int ptr_regno, int off, int size, int value_regno, int insn_idx) check_stack_write_var_off() argument 2705 mark_reg_stack_read(struct bpf_verifier_env *env, struct bpf_func_state *ptr_state, int min_off, int max_off, int dst_regno) mark_reg_stack_read() argument 2756 check_stack_read_fixed_off(struct bpf_verifier_env *env, struct bpf_func_state *reg_state, int off, int size, int dst_regno) check_stack_read_fixed_off() argument 2861 reg_state(struct bpf_verifier_env *env, int regno) reg_state() argument 2879 check_stack_read_var_off(struct bpf_verifier_env *env, int ptr_regno, int off, int size, int dst_regno) check_stack_read_var_off() argument 2910 check_stack_read(struct bpf_verifier_env *env, int ptr_regno, int off, int size, int dst_regno) check_stack_read() argument 2967 check_stack_write(struct bpf_verifier_env *env, int ptr_regno, int off, int size, int value_regno, int insn_idx) check_stack_write() argument 2990 check_map_access_type(struct bpf_verifier_env *env, u32 regno, int off, int size, enum bpf_access_type type) check_map_access_type() argument 3013 __check_mem_access(struct bpf_verifier_env *env, int regno, int off, int size, u32 mem_size, bool zero_size_allowed) __check_mem_access() argument 3045 check_mem_region_access(struct bpf_verifier_env *env, u32 regno, int off, int size, u32 mem_size, bool zero_size_allowed) check_mem_region_access() argument 3104 check_map_access(struct bpf_verifier_env *env, u32 regno, int off, int size, bool zero_size_allowed) check_map_access() argument 3142 may_access_direct_pkt_data(struct bpf_verifier_env *env, const struct bpf_call_arg_meta *meta, enum bpf_access_type t) may_access_direct_pkt_data() argument 3184 check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, int size, bool zero_size_allowed) check_packet_access() argument 3227 check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, enum bpf_access_type t, enum bpf_reg_type *reg_type, u32 *btf_id) check_ctx_access() argument 3261 check_flow_keys_access(struct bpf_verifier_env *env, int off, int size) check_flow_keys_access() argument 3273 check_sock_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, int off, int size, enum bpf_access_type t) check_sock_access() argument 3318 is_pointer_value(struct bpf_verifier_env *env, int regno) is_pointer_value() argument 3323 is_ctx_reg(struct bpf_verifier_env *env, int regno) is_ctx_reg() argument 3330 is_sk_reg(struct bpf_verifier_env *env, int regno) is_sk_reg() argument 3337 is_pkt_reg(struct bpf_verifier_env *env, int regno) is_pkt_reg() argument 3344 is_flow_key_reg(struct bpf_verifier_env *env, int regno) is_flow_key_reg() argument 3352 check_pkt_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int off, int size, bool strict) check_pkt_ptr_alignment() argument 3387 check_generic_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, const char *pointer_desc, int off, int size, bool strict) check_generic_ptr_alignment() argument 3411 check_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int off, int size, bool strict_alignment_once) check_ptr_alignment() argument 3461 update_stack_depth(struct bpf_verifier_env *env, const struct bpf_func_state *func, int off) update_stack_depth() argument 3481 check_max_stack_depth(struct bpf_verifier_env *env) check_max_stack_depth() argument 3581 get_callee_stack_depth(struct bpf_verifier_env *env, const struct bpf_insn *insn, int idx) get_callee_stack_depth() argument 3596 __check_ptr_off_reg(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, bool fixed_off_ok) __check_ptr_off_reg() argument 3622 check_ptr_off_reg(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno) check_ptr_off_reg() argument 3628 __check_buffer_access(struct bpf_verifier_env *env, const char *buf_info, const struct bpf_reg_state *reg, int regno, int off, int size) __check_buffer_access() argument 3652 check_tp_buffer_access(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, int off, int size) check_tp_buffer_access() argument 3668 check_buffer_access(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, int off, int size, bool zero_size_allowed, const char *buf_info, u32 *max_access) check_buffer_access() argument 3775 check_ptr_to_btf_access(struct bpf_verifier_env *env, struct bpf_reg_state *regs, int regno, int off, int size, enum bpf_access_type atype, int value_regno) check_ptr_to_btf_access() argument 3825 check_ptr_to_map_access(struct bpf_verifier_env *env, struct bpf_reg_state *regs, int regno, int off, int size, enum bpf_access_type atype, int value_regno) check_ptr_to_map_access() argument 3907 check_stack_access_within_bounds( struct bpf_verifier_env *env, int regno, int off, int access_size, enum stack_access_src src, enum bpf_access_type type) check_stack_access_within_bounds() argument 3971 check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, int off, int bpf_size, enum bpf_access_type t, int value_regno, bool strict_alignment_once) check_mem_access() argument 4186 check_xadd(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn) check_xadd() argument 4241 check_stack_range_initialized( struct bpf_verifier_env *env, int regno, int off, int access_size, bool zero_size_allowed, enum stack_access_src type, struct bpf_call_arg_meta *meta) check_stack_range_initialized() argument 4368 check_helper_mem_access(struct bpf_verifier_env *env, int regno, int access_size, bool zero_size_allowed, struct bpf_call_arg_meta *meta) check_helper_mem_access() argument 4443 process_spin_lock(struct bpf_verifier_env *env, int regno, bool is_lock) process_spin_lock() argument 4538 resolve_map_arg_type(struct bpf_verifier_env *env, const struct bpf_call_arg_meta *meta, enum bpf_arg_type *arg_type) resolve_map_arg_type() argument 4655 check_reg_type(struct bpf_verifier_env *env, u32 regno, enum bpf_arg_type arg_type, const u32 *arg_btf_id) check_reg_type() argument 4722 check_func_arg(struct bpf_verifier_env *env, u32 arg, struct bpf_call_arg_meta *meta, const struct bpf_func_proto *fn) check_func_arg() argument 4936 may_update_sockmap(struct bpf_verifier_env *env, int func_id) may_update_sockmap() argument 4968 allow_tail_call_in_subprogs(struct bpf_verifier_env *env) allow_tail_call_in_subprogs() argument 4973 check_map_func_compatibility(struct bpf_verifier_env *env, struct bpf_map *map, int func_id) check_map_func_compatibility() argument 5274 clear_all_pkt_pointers(struct bpf_verifier_env *env) clear_all_pkt_pointers() argument 5314 release_reference(struct bpf_verifier_env *env, int ref_obj_id) release_reference() argument 5337 clear_caller_saved_regs(struct bpf_verifier_env *env, struct bpf_reg_state *regs) clear_caller_saved_regs() argument 5349 check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx) check_func_call() argument 5449 prepare_func_exit(struct bpf_verifier_env *env, int *insn_idx) prepare_func_exit() argument 5513 record_func_map(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, int func_id, int insn_idx) record_func_map() argument 5556 record_func_key(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, int func_id, int insn_idx) record_func_key() argument 5592 check_reference_leak(struct bpf_verifier_env *env) check_reference_leak() argument 5604 check_helper_call(struct bpf_verifier_env *env, int func_id, int insn_idx) check_helper_call() argument 5899 check_reg_sane_offset(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, enum bpf_reg_type type) check_reg_sane_offset() argument 5934 cur_aux(struct bpf_verifier_env *env) cur_aux() argument 5978 can_skip_alu_sanitation(const struct bpf_verifier_env *env, const struct bpf_insn *insn) can_skip_alu_sanitation() argument 6001 sanitize_val_alu(struct bpf_verifier_env *env, struct bpf_insn *insn) sanitize_val_alu() argument 6023 sanitize_speculative_path(struct bpf_verifier_env *env, const struct bpf_insn *insn, u32 next_idx, u32 curr_idx) sanitize_speculative_path() argument 6043 sanitize_ptr_alu(struct bpf_verifier_env *env, struct bpf_insn *insn, const struct bpf_reg_state *ptr_reg, const struct bpf_reg_state *off_reg, struct bpf_reg_state *dst_reg, struct bpf_sanitize_info *info, const bool commit_window) sanitize_ptr_alu() argument 6139 sanitize_mark_insn_seen(struct bpf_verifier_env *env) sanitize_mark_insn_seen() argument 6152 sanitize_err(struct bpf_verifier_env *env, const struct bpf_insn *insn, int reason, const struct bpf_reg_state *off_reg, const struct bpf_reg_state *dst_reg) sanitize_err() argument 6201 check_stack_access_for_ptr_arithmetic( struct bpf_verifier_env *env, int regno, const struct bpf_reg_state *reg, int off) check_stack_access_for_ptr_arithmetic() argument 6225 sanitize_check_bounds(struct bpf_verifier_env *env, const struct bpf_insn *insn, const struct bpf_reg_state *dst_reg) sanitize_check_bounds() argument 6262 adjust_ptr_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn, const struct bpf_reg_state *ptr_reg, const struct bpf_reg_state *off_reg) adjust_ptr_min_max_vals() argument 7066 adjust_scalar_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_reg_state *dst_reg, struct bpf_reg_state src_reg) adjust_scalar_min_max_vals() argument 7227 adjust_reg_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn) adjust_reg_min_max_vals() argument 7313 check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) check_alu_op() argument 8214 check_cond_jmp_op(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx) check_cond_jmp_op() argument 8407 check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn) check_ld_imm() argument 8505 check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) check_ld_abs() argument 8582 check_return_code(struct bpf_verifier_env *env) check_return_code() argument 8744 state_htab_size(struct bpf_verifier_env *env) state_htab_size() argument 8749 explored_state( struct bpf_verifier_env *env, int idx) explored_state() argument 8759 init_explored_state(struct bpf_verifier_env *env, int idx) init_explored_state() argument 8769 push_insn(int t, int w, int e, struct bpf_verifier_env *env, bool loop_ok) push_insn() argument 8819 check_cfg(struct bpf_verifier_env *env) check_cfg() argument 8943 check_abnormal_return(struct bpf_verifier_env *env) check_abnormal_return() argument 8964 check_btf_func(struct bpf_verifier_env *env, const union bpf_attr *attr, union bpf_attr __user *uattr) check_btf_func() argument 9093 adjust_btf_func(struct bpf_verifier_env *env) adjust_btf_func() argument 9109 check_btf_line(struct bpf_verifier_env *env, const union bpf_attr *attr, union bpf_attr __user *uattr) check_btf_line() argument 9233 check_btf_info(struct bpf_verifier_env *env, const union bpf_attr *attr, union bpf_attr __user *uattr) check_btf_info() argument 9305 clean_func_state(struct bpf_verifier_env *env, struct bpf_func_state *st) clean_func_state() argument 9334 clean_verifier_state(struct bpf_verifier_env *env, struct bpf_verifier_state *st) clean_verifier_state() argument 9379 clean_live_states(struct bpf_verifier_env *env, int insn, struct bpf_verifier_state *cur) clean_live_states() argument 9402 regsafe(struct bpf_verifier_env *env, struct bpf_reg_state *rold, struct bpf_reg_state *rcur, struct bpf_id_pair *idmap) regsafe() argument 9519 stacksafe(struct bpf_verifier_env *env, struct bpf_func_state *old, struct bpf_func_state *cur, struct bpf_id_pair *idmap) stacksafe() argument 9616 func_states_equal(struct bpf_verifier_env *env, struct bpf_func_state *old, struct bpf_func_state *cur) func_states_equal() argument 9636 states_equal(struct bpf_verifier_env *env, struct bpf_verifier_state *old, struct bpf_verifier_state *cur) states_equal() argument 9669 propagate_liveness_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, struct bpf_reg_state *parent_reg) propagate_liveness_reg() argument 9702 propagate_liveness(struct bpf_verifier_env *env, const struct bpf_verifier_state *vstate, struct bpf_verifier_state *vparent) propagate_liveness() argument 9749 propagate_precision(struct bpf_verifier_env *env, const struct bpf_verifier_state *old) propagate_precision() argument 9809 is_state_visited(struct bpf_verifier_env *env, int insn_idx) is_state_visited() argument 10053 do_check(struct bpf_verifier_env *env) do_check() argument 10377 check_pseudo_btf_id(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_insn_aux_data *aux) check_pseudo_btf_id() argument 10493 check_map_prog_compatibility(struct bpf_verifier_env *env, struct bpf_map *map, struct bpf_prog *prog) check_map_prog_compatibility() argument 10580 resolve_pseudo_ldimm64(struct bpf_verifier_env *env) resolve_pseudo_ldimm64() argument 10741 release_maps(struct bpf_verifier_env *env) release_maps() argument 10748 convert_pseudo_ld_imm64(struct bpf_verifier_env *env) convert_pseudo_ld_imm64() argument 10763 adjust_insn_aux_data(struct bpf_verifier_env *env, struct bpf_insn_aux_data *new_data, struct bpf_prog *new_prog, u32 off, u32 cnt) adjust_insn_aux_data() argument 10795 adjust_subprog_starts(struct bpf_verifier_env *env, u32 off, u32 len) adjust_subprog_starts() argument 10823 bpf_patch_insn_data(struct bpf_verifier_env *env, u32 off, const struct bpf_insn *patch, u32 len) bpf_patch_insn_data() argument 10851 adjust_subprog_starts_after_remove(struct bpf_verifier_env *env, u32 off, u32 cnt) adjust_subprog_starts_after_remove() argument 10907 bpf_adj_linfo_after_remove(struct bpf_verifier_env *env, u32 off, u32 cnt) bpf_adj_linfo_after_remove() argument 10971 verifier_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) verifier_remove_insns() argument 11009 sanitize_dead_code(struct bpf_verifier_env *env) sanitize_dead_code() argument 11039 opt_hard_wire_dead_code_branches(struct bpf_verifier_env *env) opt_hard_wire_dead_code_branches() argument 11065 opt_remove_dead_code(struct bpf_verifier_env *env) opt_remove_dead_code() argument 11089 opt_remove_nops(struct bpf_verifier_env *env) opt_remove_nops() argument 11110 opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env, const union bpf_attr *attr) opt_subreg_zext_lo32_rnd_hi32() argument 11193 convert_ctx_accesses(struct bpf_verifier_env *env) convert_ctx_accesses() argument 11380 jit_subprogs(struct bpf_verifier_env *env) jit_subprogs() argument 11593 fixup_call_args(struct bpf_verifier_env *env) fixup_call_args() argument 11637 fixup_bpf_calls(struct bpf_verifier_env *env) fixup_bpf_calls() argument 11991 free_states(struct bpf_verifier_env *env) free_states() argument 12021 do_check_common(struct bpf_verifier_env *env, int subprog) do_check_common() argument 12113 do_check_subprogs(struct bpf_verifier_env *env) do_check_subprogs() argument 12138 do_check_main(struct bpf_verifier_env *env) do_check_main() argument 12150 print_verification_stats(struct bpf_verifier_env *env) print_verification_stats() argument 12174 check_struct_ops_btf_id(struct bpf_verifier_env *env) check_struct_ops_btf_id() argument 12506 check_attach_btf_id(struct bpf_verifier_env *env) check_attach_btf_id() argument 12591 struct bpf_verifier_env *env; bpf_check() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_progs.c | 19 struct test_env env = {}; variable 74 if (stdout == env.stdout) in dump_test_log() 77 fflush(stdout); /* exports env.log_buf & env.log_cnt */ in dump_test_log() 79 if (env.verbosity > VERBOSE_NONE || test->force_log || failed) { in dump_test_log() 80 if (env.log_cnt) { in dump_test_log() 81 env.log_buf[env.log_cnt] = '\0'; in dump_test_log() 82 fprintf(env.stdout, "%s", env in dump_test_log() 470 struct test_env *env = state->input; parse_arg() local [all...] |
/applications/standard/app_samples/code/BasicFeature/Media/Camera/entry/src/main/cpp/ |
H A D | main.cpp | 35 static napi_value SetZoomRatio(napi_env env, napi_callback_info info) in SetZoomRatio() argument 42 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in SetZoomRatio() 45 napi_typeof(env, args[0], &valuetype0); in SetZoomRatio() 48 napi_get_value_int32(env, args[0], &zoomRatio); in SetZoomRatio() 53 napi_create_int32(env, argc, &result); in SetZoomRatio() 57 static napi_value HasFlash(napi_env env, napi_callback_info info) in HasFlash() argument 65 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in HasFlash() 68 napi_typeof(env, args[0], &valuetype0); in HasFlash() 71 napi_get_value_int32(env, args[0], &flashMode); in HasFlash() 76 napi_create_int32(env, arg in HasFlash() 80 IsVideoStabilizationModeSupported(napi_env env, napi_callback_info info) IsVideoStabilizationModeSupported() argument 103 InitCamera(napi_env env, napi_callback_info info) InitCamera() argument 143 ReleaseCamera(napi_env env, napi_callback_info info) ReleaseCamera() argument 165 ReleaseSession(napi_env env, napi_callback_info info) ReleaseSession() argument 183 StartPhotoOrVideo(napi_env env, napi_callback_info info) StartPhotoOrVideo() argument 223 VideoOutputStart(napi_env env, napi_callback_info info) VideoOutputStart() argument 232 IsExposureModeSupported(napi_env env, napi_callback_info info) IsExposureModeSupported() argument 256 IsMeteringPoint(napi_env env, napi_callback_info info) IsMeteringPoint() argument 279 IsExposureBiasRange(napi_env env, napi_callback_info info) IsExposureBiasRange() argument 300 IsFocusModeSupported(napi_env env, napi_callback_info info) IsFocusModeSupported() argument 324 IsFocusPoint(napi_env env, napi_callback_info info) IsFocusPoint() argument 350 GetVideoFrameWidth(napi_env env, napi_callback_info info) GetVideoFrameWidth() argument 364 GetVideoFrameHeight(napi_env env, napi_callback_info info) GetVideoFrameHeight() argument 378 GetVideoFrameRate(napi_env env, napi_callback_info info) GetVideoFrameRate() argument 392 VideoOutputStopAndRelease(napi_env env, napi_callback_info info) VideoOutputStopAndRelease() argument 408 TakePicture(napi_env env, napi_callback_info info) TakePicture() argument 418 GetCaptureParam(napi_env env, napi_value captureConfigValue, Capture_Setting *config) GetCaptureParam() argument 458 TakePictureWithSettings(napi_env env, napi_callback_info info) TakePictureWithSettings() argument 480 Init(napi_env env, napi_value exports) Init() argument [all...] |
/applications/standard/app_samples/code/BasicFeature/Native/XComponent3D/entry/src/main/cpp/ |
H A D | app_napi.cpp | 256 napi_value AppNapi::Animate(napi_env env, napi_callback_info info) in Animate() argument 265 napi_value AppNapi::Quit(napi_env env, napi_callback_info info) in Quit() argument 279 NAPI_CALL(env, napi_get_cb_info(env, info, NULL, NULL, &thisArg, NULL)); in Quit() 281 status = napi_get_named_property(env, thisArg, OH_NATIVE_XCOMPONENT_OBJ, &exportInstance); in Quit() 286 status = napi_unwrap(env, exportInstance, reinterpret_cast<void **>(&nativeXComponent)); in Quit() 299 napi_value AppNapi::GetXComponentId(napi_env env, napi_callback_info info) in GetXComponentId() argument 310 NAPI_CALL(env, napi_get_cb_info(env, info, NULL, NULL, &thisArg, NULL)); in GetXComponentId() 311 status = napi_get_named_property(env, thisAr in GetXComponentId() 326 GetXComponentSize_Height(napi_env env, napi_callback_info info) GetXComponentSize_Height() argument 335 GetXComponentSize_Width(napi_env env, napi_callback_info info) GetXComponentSize_Width() argument 344 GetXComponentOffset_x(napi_env env, napi_callback_info info) GetXComponentOffset_x() argument 355 GetXComponentOffset_y(napi_env env, napi_callback_info info) GetXComponentOffset_y() argument 366 GetXComponentpointtool_tiltx(napi_env env, napi_callback_info info) GetXComponentpointtool_tiltx() argument 377 GetXComponentpointtool_tilty(napi_env env, napi_callback_info info) GetXComponentpointtool_tilty() argument 388 GetXComponentpointtool_type(napi_env env, napi_callback_info info) GetXComponentpointtool_type() argument 399 GetXComponent_TouchEvent(napi_env env, napi_callback_info info) GetXComponent_TouchEvent() argument 420 GetXComponent_MouseEvent(napi_env env, napi_callback_info info) GetXComponent_MouseEvent() argument 441 GetXComponent_RegisterMouseEventCallback(napi_env env, napi_callback_info info) GetXComponent_RegisterMouseEventCallback() argument 455 Export(napi_env env, napi_value exports) Export() argument 478 ChangeShape(napi_env env, napi_callback_info info) ChangeShape() argument [all...] |
/applications/standard/calendardata/calendarmanager/napi/include/ |
H A D | napi_util.h | 27 napi_status GetValue(napi_env env, napi_value in, napi_value& out); 28 napi_status SetValue(napi_env env, napi_value in, napi_value& out); 30 napi_status GetValue(napi_env env, napi_value in, bool& out); 31 napi_status SetValue(napi_env env, const bool& in, napi_value& out); 34 napi_status GetValue(napi_env env, napi_value in, int32_t& out); 35 napi_status SetValue(napi_env env, const int32_t& in, napi_value& out); 38 napi_status GetValue(napi_env env, napi_value in, uint32_t& out); 39 napi_status SetValue(napi_env env, const uint32_t& in, napi_value& out); 42 napi_status GetValue(napi_env env, napi_value in, int64_t& out); 43 napi_status SetValue(napi_env env, cons 127 GetNamedProperty(napi_env env, napi_value in, const std::string& prop, T& value) GetNamedProperty() argument 142 SetNamedProperty(napi_env env, const string& prop, const T&nativeValue, napi_value& out) SetNamedProperty() argument 153 SetNamedPropertyOptional(napi_env env, const string& prop, const std::optional<T>&nativeValue, napi_value& out) SetNamedPropertyOptional() argument 168 GetNamedPropertyOptional(napi_env env, napi_value in, const std::string& prop, std::optional<T>& out) GetNamedPropertyOptional() argument 193 SetValueArray(napi_env env, const std::vector<T>& in, napi_value& out) SetValueArray() argument 213 GetValueArray(napi_env env, napi_value in, std::vector<T>& out) GetValueArray() argument [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | verifier.c | 194 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx); 195 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id); 196 static void invalidate_non_owning_refs(struct bpf_verifier_env *env); 197 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env); 198 static int ref_set_non_owning(struct bpf_verifier_env *env, 200 static void specialize_kfunc(struct bpf_verifier_env *env, 341 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument 347 prog = env->prog; in find_linfo() 363 struct bpf_verifier_env *env = private_data; in verbose() local 366 if (!bpf_verifier_log_needed(&env in verbose() 382 verbose_linfo(struct bpf_verifier_env *env, u32 insn_off, const char *prefix_fmt, ...) verbose_linfo() argument 410 verbose_invalid_scalar(struct bpf_verifier_env *env, struct bpf_reg_state *reg, struct tnum *range, const char *ctx, const char *reg_name) verbose_invalid_scalar() argument 491 subprog_is_global(const struct bpf_verifier_env *env, int subprog) subprog_is_global() argument 607 reg_type_str(struct bpf_verifier_env *env, enum bpf_reg_type type) reg_type_str() argument 666 print_liveness(struct bpf_verifier_env *env, enum bpf_reg_liveness live) print_liveness() argument 684 func(struct bpf_verifier_env *env, const struct bpf_reg_state *reg) func() argument 706 stack_slot_obj_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, const char *obj_kind, int nr_slots) stack_slot_obj_get_spi() argument 733 dynptr_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg) dynptr_get_spi() argument 738 iter_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int nr_slots) iter_get_spi() argument 791 mark_reg_scratched(struct bpf_verifier_env *env, u32 regno) mark_reg_scratched() argument 796 mark_stack_slot_scratched(struct bpf_verifier_env *env, u32 spi) mark_stack_slot_scratched() argument 801 reg_scratched(const struct bpf_verifier_env *env, u32 regno) reg_scratched() argument 806 stack_slot_scratched(const struct bpf_verifier_env *env, u64 regno) stack_slot_scratched() argument 811 verifier_state_scratched(const struct bpf_verifier_env *env) verifier_state_scratched() argument 816 mark_verifier_state_clean(struct bpf_verifier_env *env) mark_verifier_state_clean() argument 823 mark_verifier_state_scratched(struct bpf_verifier_env *env) mark_verifier_state_scratched() argument 873 mark_dynptr_stack_regs(struct bpf_verifier_env *env, struct bpf_reg_state *sreg1, struct bpf_reg_state *sreg2, enum bpf_dynptr_type type) mark_dynptr_stack_regs() argument 884 mark_dynptr_cb_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, enum bpf_dynptr_type type) mark_dynptr_cb_reg() argument 894 mark_stack_slots_dynptr(struct bpf_verifier_env *env, struct bpf_reg_state *reg, enum bpf_arg_type arg_type, int insn_idx, int clone_ref_obj_id) mark_stack_slots_dynptr() argument 955 invalidate_dynptr(struct bpf_verifier_env *env, struct bpf_func_state *state, int spi) invalidate_dynptr() argument 992 unmark_stack_slots_dynptr(struct bpf_verifier_env *env, struct bpf_reg_state *reg) unmark_stack_slots_dynptr() argument 1041 mark_reg_invalid(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) mark_reg_invalid() argument 1049 destroy_if_dynptr_stack_slot(struct bpf_verifier_env *env, struct bpf_func_state *state, int spi) destroy_if_dynptr_stack_slot() argument 1105 is_dynptr_reg_valid_uninit(struct bpf_verifier_env *env, struct bpf_reg_state *reg) is_dynptr_reg_valid_uninit() argument 1133 is_dynptr_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg) is_dynptr_reg_valid_init() argument 1162 is_dynptr_type_expected(struct bpf_verifier_env *env, struct bpf_reg_state *reg, enum bpf_arg_type arg_type) is_dynptr_type_expected() argument 1186 mark_stack_slots_iter(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int insn_idx, struct btf *btf, u32 btf_id, int nr_slots) mark_stack_slots_iter() argument 1223 unmark_stack_slots_iter(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int nr_slots) unmark_stack_slots_iter() argument 1254 is_iter_reg_valid_uninit(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int nr_slots) is_iter_reg_valid_uninit() argument 1281 is_iter_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg, struct btf *btf, u32 btf_id, int nr_slots) is_iter_reg_valid_init() argument 1355 print_verifier_state(struct bpf_verifier_env *env, const struct bpf_func_state *state, bool print_all) print_verifier_state() argument 1539 print_insn_state(struct bpf_verifier_env *env, const struct bpf_func_state *state) print_insn_state() argument 1649 grow_stack_state(struct bpf_verifier_env *env, struct bpf_func_state *state, int size) grow_stack_state() argument 1674 acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) acquire_reference_state() argument 1803 state_htab_size(struct bpf_verifier_env *env) state_htab_size() argument 1808 explored_state(struct bpf_verifier_env *env, int idx) explored_state() argument 1987 update_branch_counts(struct bpf_verifier_env *env, struct bpf_verifier_state *st) update_branch_counts() argument 2012 pop_stack(struct bpf_verifier_env *env, int *prev_insn_idx, int *insn_idx, bool pop_log) pop_stack() argument 2041 push_stack(struct bpf_verifier_env *env, int insn_idx, int prev_insn_idx, bool speculative) push_stack() argument 2145 mark_reg_known_zero(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno) mark_reg_known_zero() argument 2478 __mark_reg_unknown(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) __mark_reg_unknown() argument 2495 mark_reg_unknown(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno) mark_reg_unknown() argument 2508 __mark_reg_not_init(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) __mark_reg_not_init() argument 2515 mark_reg_not_init(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno) mark_reg_not_init() argument 2528 mark_btf_ld_reg(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno, enum bpf_reg_type reg_type, struct btf *btf, u32 btf_id, enum bpf_type_flag flag) mark_btf_ld_reg() argument 2545 init_reg_state(struct bpf_verifier_env *env, struct bpf_func_state *state) init_reg_state() argument 2565 init_func_state(struct bpf_verifier_env *env, struct bpf_func_state *state, int callsite, int frameno, int subprogno) init_func_state() argument 2578 push_async_cb(struct bpf_verifier_env *env, int insn_idx, int prev_insn_idx, int subprog) push_async_cb() argument 2637 find_subprog(struct bpf_verifier_env *env, int off) find_subprog() argument 2649 add_subprog(struct bpf_verifier_env *env, int off) add_subprog() argument 2748 __find_kfunc_desc_btf(struct bpf_verifier_env *env, s16 offset) __find_kfunc_desc_btf() argument 2818 find_kfunc_desc_btf(struct bpf_verifier_env *env, s16 offset) find_kfunc_desc_btf() argument 2834 add_kfunc_call(struct bpf_verifier_env *env, u32 func_id, s16 offset) add_kfunc_call() argument 3008 add_subprog_and_kfunc(struct bpf_verifier_env *env) add_subprog_and_kfunc() argument 3050 check_subprogs(struct bpf_verifier_env *env) check_subprogs() argument 3106 mark_reg_read(struct bpf_verifier_env *env, const struct bpf_reg_state *state, struct bpf_reg_state *parent, u8 flag) mark_reg_read() argument 3154 mark_dynptr_read(struct bpf_verifier_env *env, struct bpf_reg_state *reg) mark_dynptr_read() argument 3180 mark_iter_read(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int spi, int nr_slots) mark_iter_read() argument 3203 is_reg64(struct bpf_verifier_env *env, struct bpf_insn *insn, u32 regno, struct bpf_reg_state *reg, enum reg_arg_type t) is_reg64() argument 3313 insn_has_def32(struct bpf_verifier_env *env, struct bpf_insn *insn) insn_has_def32() argument 3323 mark_insn_zext(struct bpf_verifier_env *env, struct bpf_reg_state *reg) mark_insn_zext() argument 3336 __check_reg_arg(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno, enum reg_arg_type t) __check_reg_arg() argument 3381 check_reg_arg(struct bpf_verifier_env *env, u32 regno, enum reg_arg_type t) check_reg_arg() argument 3390 mark_jmp_point(struct bpf_verifier_env *env, int idx) mark_jmp_point() argument 3395 is_jmp_point(struct bpf_verifier_env *env, int insn_idx) is_jmp_point() argument 3401 push_jmp_history(struct bpf_verifier_env *env, struct bpf_verifier_state *cur) push_jmp_history() argument 3480 struct bpf_verifier_env *env = bt->env; bt_reset() local 3639 backtrack_insn(struct bpf_verifier_env *env, int idx, int subseq_idx, struct backtrack_state *bt) backtrack_insn() argument 3969 mark_all_scalars_precise(struct bpf_verifier_env *env, struct bpf_verifier_state *st) mark_all_scalars_precise() argument 4016 mark_all_scalars_imprecise(struct bpf_verifier_env *env, struct bpf_verifier_state *st) mark_all_scalars_imprecise() argument 4068 mark_precise_scalar_ids(struct bpf_verifier_env *env, struct bpf_verifier_state *st) mark_precise_scalar_ids() argument 4218 __mark_chain_precision(struct bpf_verifier_env *env, int regno) __mark_chain_precision() argument 4432 mark_chain_precision(struct bpf_verifier_env *env, int regno) mark_chain_precision() argument 4440 mark_chain_precision_batch(struct bpf_verifier_env *env) mark_chain_precision_batch() argument 4542 check_stack_write_fixed_off(struct bpf_verifier_env *env, struct bpf_func_state *state, int off, int size, int value_regno, int insn_idx) check_stack_write_fixed_off() argument 4682 check_stack_write_var_off(struct bpf_verifier_env *env, struct bpf_func_state *state, int ptr_regno, int off, int size, int value_regno, int insn_idx) check_stack_write_var_off() argument 4786 mark_reg_stack_read(struct bpf_verifier_env *env, struct bpf_func_state *ptr_state, int min_off, int max_off, int dst_regno) mark_reg_stack_read() argument 4838 check_stack_read_fixed_off(struct bpf_verifier_env *env, struct bpf_func_state *reg_state, int off, int size, int dst_regno) check_stack_read_fixed_off() argument 4949 reg_state(struct bpf_verifier_env *env, int regno) reg_state() argument 4967 check_stack_read_var_off(struct bpf_verifier_env *env, int ptr_regno, int off, int size, int dst_regno) check_stack_read_var_off() argument 4998 check_stack_read(struct bpf_verifier_env *env, int ptr_regno, int off, int size, int dst_regno) check_stack_read() argument 5055 check_stack_write(struct bpf_verifier_env *env, int ptr_regno, int off, int size, int value_regno, int insn_idx) check_stack_write() argument 5078 check_map_access_type(struct bpf_verifier_env *env, u32 regno, int off, int size, enum bpf_access_type type) check_map_access_type() argument 5101 __check_mem_access(struct bpf_verifier_env *env, int regno, int off, int size, u32 mem_size, bool zero_size_allowed) __check_mem_access() argument 5137 check_mem_region_access(struct bpf_verifier_env *env, u32 regno, int off, int size, u32 mem_size, bool zero_size_allowed) check_mem_region_access() argument 5192 __check_ptr_off_reg(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, bool fixed_off_ok) __check_ptr_off_reg() argument 5224 check_ptr_off_reg(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno) check_ptr_off_reg() argument 5230 map_kptr_match_type(struct bpf_verifier_env *env, struct btf_field *kptr_field, struct bpf_reg_state *reg, u32 regno) map_kptr_match_type() argument 5307 in_rcu_cs(struct bpf_verifier_env *env) in_rcu_cs() argument 5336 check_map_kptr_access(struct bpf_verifier_env *env, u32 regno, int value_regno, int insn_idx, struct btf_field *kptr_field) check_map_kptr_access() argument 5395 check_map_access(struct bpf_verifier_env *env, u32 regno, int off, int size, bool zero_size_allowed, enum bpf_access_src src) check_map_access() argument 5457 may_access_direct_pkt_data(struct bpf_verifier_env *env, const struct bpf_call_arg_meta *meta, enum bpf_access_type t) may_access_direct_pkt_data() argument 5499 check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, int size, bool zero_size_allowed) check_packet_access() argument 5542 check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, enum bpf_access_type t, enum bpf_reg_type *reg_type, struct btf **btf, u32 *btf_id) check_ctx_access() argument 5578 check_flow_keys_access(struct bpf_verifier_env *env, int off, int size) check_flow_keys_access() argument 5590 check_sock_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, int off, int size, enum bpf_access_type t) check_sock_access() argument 5635 is_pointer_value(struct bpf_verifier_env *env, int regno) is_pointer_value() argument 5640 is_ctx_reg(struct bpf_verifier_env *env, int regno) is_ctx_reg() argument 5647 is_sk_reg(struct bpf_verifier_env *env, int regno) is_sk_reg() argument 5654 is_pkt_reg(struct bpf_verifier_env *env, int regno) is_pkt_reg() argument 5661 is_flow_key_reg(struct bpf_verifier_env *env, int regno) is_flow_key_reg() argument 5711 check_pkt_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int off, int size, bool strict) check_pkt_ptr_alignment() argument 5746 check_generic_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, const char *pointer_desc, int off, int size, bool strict) check_generic_ptr_alignment() argument 5770 check_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int off, int size, bool strict_alignment_once) check_ptr_alignment() argument 5829 check_max_stack_depth_subprog(struct bpf_verifier_env *env, int idx) check_max_stack_depth_subprog() argument 5940 check_max_stack_depth(struct bpf_verifier_env *env) check_max_stack_depth() argument 5957 get_callee_stack_depth(struct bpf_verifier_env *env, const struct bpf_insn *insn, int idx) get_callee_stack_depth() argument 5972 __check_buffer_access(struct bpf_verifier_env *env, const char *buf_info, const struct bpf_reg_state *reg, int regno, int off, int size) __check_buffer_access() argument 5996 check_tp_buffer_access(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, int off, int size) check_tp_buffer_access() argument 6012 check_buffer_access(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, int off, int size, bool zero_size_allowed, u32 *max_access) check_buffer_access() argument 6331 type_is_rcu(struct bpf_verifier_env *env, struct bpf_reg_state *reg, const char *field_name, u32 btf_id) type_is_rcu() argument 6342 type_is_rcu_or_null(struct bpf_verifier_env *env, struct bpf_reg_state *reg, const char *field_name, u32 btf_id) type_is_rcu_or_null() argument 6353 type_is_trusted(struct bpf_verifier_env *env, struct bpf_reg_state *reg, const char *field_name, u32 btf_id) type_is_trusted() argument 6367 check_ptr_to_btf_access(struct bpf_verifier_env *env, struct bpf_reg_state *regs, int regno, int off, int size, enum bpf_access_type atype, int value_regno) check_ptr_to_btf_access() argument 6515 check_ptr_to_map_access(struct bpf_verifier_env *env, struct bpf_reg_state *regs, int regno, int off, int size, enum bpf_access_type atype, int value_regno) check_ptr_to_map_access() argument 6581 check_stack_slot_within_bounds(struct bpf_verifier_env *env, s64 off, struct bpf_func_state *state, enum bpf_access_type t) check_stack_slot_within_bounds() argument 6603 check_stack_access_within_bounds( struct bpf_verifier_env *env, int regno, int off, int access_size, enum bpf_access_src src, enum bpf_access_type type) check_stack_access_within_bounds() argument 6664 check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, int off, int bpf_size, enum bpf_access_type t, int value_regno, bool strict_alignment_once, bool is_ldsx) check_mem_access() argument 6900 check_atomic(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn) check_atomic() argument 7014 check_stack_range_initialized( struct bpf_verifier_env *env, int regno, int off, int access_size, bool zero_size_allowed, enum bpf_access_src type, struct bpf_call_arg_meta *meta) check_stack_range_initialized() argument 7170 check_helper_mem_access(struct bpf_verifier_env *env, int regno, int access_size, bool zero_size_allowed, struct bpf_call_arg_meta *meta) check_helper_mem_access() argument 7263 check_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, bool zero_size_allowed, struct bpf_call_arg_meta *meta) check_mem_size_reg() argument 7318 check_mem_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, u32 mem_size) check_mem_reg() argument 7350 check_kfunc_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno) check_kfunc_mem_size_reg() argument 7400 process_spin_lock(struct bpf_verifier_env *env, int regno, bool is_lock) process_spin_lock() argument 7477 process_timer_func(struct bpf_verifier_env *env, int regno, struct bpf_call_arg_meta *meta) process_timer_func() argument 7514 process_kptr_func(struct bpf_verifier_env *env, int regno, struct bpf_call_arg_meta *meta) process_kptr_func() argument 7578 process_dynptr_func(struct bpf_verifier_env *env, int regno, int insn_idx, enum bpf_arg_type arg_type, int clone_ref_obj_id) process_dynptr_func() argument 7651 iter_ref_obj_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int spi) iter_ref_obj_id() argument 7686 process_iter_arg(struct bpf_verifier_env *env, int regno, int insn_idx, struct bpf_kfunc_call_arg_meta *meta) process_iter_arg() argument 7753 find_prev_entry(struct bpf_verifier_env *env, struct bpf_verifier_state *cur, int insn_idx) find_prev_entry() argument 7780 maybe_widen_reg(struct bpf_verifier_env *env, struct bpf_reg_state *rold, struct bpf_reg_state *rcur, struct bpf_idmap *idmap) maybe_widen_reg() argument 7793 widen_imprecise_scalars(struct bpf_verifier_env *env, struct bpf_verifier_state *old, struct bpf_verifier_state *cur) widen_imprecise_scalars() argument 7903 process_iter_next_call(struct bpf_verifier_env *env, int insn_idx, struct bpf_kfunc_call_arg_meta *meta) process_iter_next_call() argument 7986 resolve_map_arg_type(struct bpf_verifier_env *env, const struct bpf_call_arg_meta *meta, enum bpf_arg_type *arg_type) resolve_map_arg_type() argument 8133 check_reg_type(struct bpf_verifier_env *env, u32 regno, enum bpf_arg_type arg_type, const u32 *arg_btf_id, struct bpf_call_arg_meta *meta) check_reg_type() argument 8290 check_func_arg_reg_off(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, enum bpf_arg_type arg_type) check_func_arg_reg_off() argument 8360 get_dynptr_arg_reg(struct bpf_verifier_env *env, const struct bpf_func_proto *fn, struct bpf_reg_state *regs) get_dynptr_arg_reg() argument 8382 dynptr_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg) dynptr_id() argument 8395 dynptr_ref_obj_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg) dynptr_ref_obj_id() argument 8408 dynptr_get_type(struct bpf_verifier_env *env, struct bpf_reg_state *reg) dynptr_get_type() argument 8426 check_func_arg(struct bpf_verifier_env *env, u32 arg, struct bpf_call_arg_meta *meta, const struct bpf_func_proto *fn, int insn_idx) check_func_arg() argument 8720 may_update_sockmap(struct bpf_verifier_env *env, int func_id) may_update_sockmap() argument 8752 allow_tail_call_in_subprogs(struct bpf_verifier_env *env) allow_tail_call_in_subprogs() argument 8758 check_map_func_compatibility(struct bpf_verifier_env *env, struct bpf_map *map, int func_id) check_map_func_compatibility() argument 9098 clear_all_pkt_pointers(struct bpf_verifier_env *env) clear_all_pkt_pointers() argument 9138 release_reference(struct bpf_verifier_env *env, int ref_obj_id) release_reference() argument 9157 invalidate_non_owning_refs(struct bpf_verifier_env *env) invalidate_non_owning_refs() argument 9168 clear_caller_saved_regs(struct bpf_verifier_env *env, struct bpf_reg_state *regs) clear_caller_saved_regs() argument 9189 setup_func_entry(struct bpf_verifier_env *env, int subprog, int callsite, set_callee_state_fn set_callee_state_cb, struct bpf_verifier_state *state) setup_func_entry() argument 9240 push_callback_call(struct bpf_verifier_env *env, struct bpf_insn *insn, int insn_idx, int subprog, set_callee_state_fn set_callee_state_cb) push_callback_call() argument 9309 check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx) check_func_call() argument 9367 map_set_for_each_callback_args(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee) map_set_for_each_callback_args() argument 9394 set_callee_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) set_callee_state() argument 9408 set_map_elem_callback_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) set_map_elem_callback_state() argument 9438 set_loop_callback_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) set_loop_callback_state() argument 9460 set_timer_callback_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) set_timer_callback_state() argument 9490 set_find_vma_callback_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) set_find_vma_callback_state() argument 9518 set_user_ringbuf_callback_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) set_user_ringbuf_callback_state() argument 9541 set_rbtree_add_callback_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) set_rbtree_add_callback_state() argument 9579 in_rbtree_lock_required_cb(struct bpf_verifier_env *env) in_rbtree_lock_required_cb() argument 9598 prepare_func_exit(struct bpf_verifier_env *env, int *insn_idx) prepare_func_exit() argument 9737 record_func_map(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, int func_id, int insn_idx) record_func_map() argument 9783 record_func_key(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, int func_id, int insn_idx) record_func_key() argument 9819 check_reference_leak(struct bpf_verifier_env *env) check_reference_leak() argument 9838 check_bpf_snprintf_call(struct bpf_verifier_env *env, struct bpf_reg_state *regs) check_bpf_snprintf_call() argument 9876 check_get_func_ip(struct bpf_verifier_env *env) check_get_func_ip() argument 9897 cur_aux(struct bpf_verifier_env *env) cur_aux() argument 9902 loop_flag_is_zero(struct bpf_verifier_env *env) loop_flag_is_zero() argument 9914 update_loop_inline_state(struct bpf_verifier_env *env, u32 subprogno) update_loop_inline_state() argument 9932 check_helper_call(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx_p) check_helper_call() argument 10396 mark_btf_func_reg_size(struct bpf_verifier_env *env, u32 regno, size_t reg_size) mark_btf_func_reg_size() argument 10597 is_kfunc_arg_callback(struct bpf_verifier_env *env, const struct btf *btf, const struct btf_param *arg) is_kfunc_arg_callback() argument 10610 __btf_type_is_scalar_struct(struct bpf_verifier_env *env, const struct btf *btf, const struct btf_type *t, int rec) __btf_type_is_scalar_struct() argument 10749 get_kfunc_ptr_arg_type(struct bpf_verifier_env *env, struct bpf_kfunc_call_arg_meta *meta, const struct btf_type *t, const struct btf_type *ref_t, const char *ref_tname, const struct btf_param *args, int argno, int nargs) get_kfunc_ptr_arg_type() argument 10827 process_kf_arg_ptr_to_btf_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg, const struct btf_type *ref_t, const char *ref_tname, u32 ref_id, struct bpf_kfunc_call_arg_meta *meta, int argno) process_kf_arg_ptr_to_btf_id() argument 10890 ref_set_non_owning(struct bpf_verifier_env *env, struct bpf_reg_state *reg) ref_set_non_owning() argument 10912 ref_convert_owning_non_owning(struct bpf_verifier_env *env, u32 ref_obj_id) ref_convert_owning_non_owning() argument 10990 check_reg_allocation_locked(struct bpf_verifier_env *env, struct bpf_reg_state *reg) check_reg_allocation_locked() argument 11049 check_kfunc_is_graph_root_api(struct bpf_verifier_env *env, enum btf_field_type head_field_type, u32 kfunc_btf_id) check_kfunc_is_graph_root_api() argument 11074 check_kfunc_is_graph_node_api(struct bpf_verifier_env *env, enum btf_field_type node_field_type, u32 kfunc_btf_id) check_kfunc_is_graph_node_api() argument 11102 __process_kf_arg_ptr_to_graph_root(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, struct bpf_kfunc_call_arg_meta *meta, enum btf_field_type head_field_type, struct btf_field **head_field) __process_kf_arg_ptr_to_graph_root() argument 11152 process_kf_arg_ptr_to_list_head(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, struct bpf_kfunc_call_arg_meta *meta) process_kf_arg_ptr_to_list_head() argument 11160 process_kf_arg_ptr_to_rbtree_root(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, struct bpf_kfunc_call_arg_meta *meta) process_kf_arg_ptr_to_rbtree_root() argument 11169 __process_kf_arg_ptr_to_graph_node(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, struct bpf_kfunc_call_arg_meta *meta, enum btf_field_type head_field_type, enum btf_field_type node_field_type, struct btf_field **node_field) __process_kf_arg_ptr_to_graph_node() argument 11233 process_kf_arg_ptr_to_list_node(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, struct bpf_kfunc_call_arg_meta *meta) process_kf_arg_ptr_to_list_node() argument 11242 process_kf_arg_ptr_to_rbtree_node(struct bpf_verifier_env *env, struct bpf_reg_state *reg, u32 regno, struct bpf_kfunc_call_arg_meta *meta) process_kf_arg_ptr_to_rbtree_node() argument 11251 check_kfunc_args(struct bpf_verifier_env *env, struct bpf_kfunc_call_arg_meta *meta, int insn_idx) check_kfunc_args() argument 11661 fetch_kfunc_meta(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_kfunc_call_arg_meta *meta, const char **kfunc_name) fetch_kfunc_meta() argument 11703 check_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx_p) check_kfunc_call() argument 12089 check_reg_sane_offset(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, enum bpf_reg_type type) check_reg_sane_offset() argument 12163 can_skip_alu_sanitation(const struct bpf_verifier_env *env, const struct bpf_insn *insn) can_skip_alu_sanitation() argument 12186 sanitize_val_alu(struct bpf_verifier_env *env, struct bpf_insn *insn) sanitize_val_alu() argument 12208 sanitize_speculative_path(struct bpf_verifier_env *env, const struct bpf_insn *insn, u32 next_idx, u32 curr_idx) sanitize_speculative_path() argument 12228 sanitize_ptr_alu(struct bpf_verifier_env *env, struct bpf_insn *insn, const struct bpf_reg_state *ptr_reg, const struct bpf_reg_state *off_reg, struct bpf_reg_state *dst_reg, struct bpf_sanitize_info *info, const bool commit_window) sanitize_ptr_alu() argument 12324 sanitize_mark_insn_seen(struct bpf_verifier_env *env) sanitize_mark_insn_seen() argument 12337 sanitize_err(struct bpf_verifier_env *env, const struct bpf_insn *insn, int reason, const struct bpf_reg_state *off_reg, const struct bpf_reg_state *dst_reg) sanitize_err() argument 12386 check_stack_access_for_ptr_arithmetic( struct bpf_verifier_env *env, int regno, const struct bpf_reg_state *reg, int off) check_stack_access_for_ptr_arithmetic() argument 12410 sanitize_check_bounds(struct bpf_verifier_env *env, const struct bpf_insn *insn, const struct bpf_reg_state *dst_reg) sanitize_check_bounds() argument 12447 adjust_ptr_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn, const struct bpf_reg_state *ptr_reg, const struct bpf_reg_state *off_reg) adjust_ptr_min_max_vals() argument 13248 adjust_scalar_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_reg_state *dst_reg, struct bpf_reg_state src_reg) adjust_scalar_min_max_vals() argument 13409 adjust_reg_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn) adjust_reg_min_max_vals() argument 13495 check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) check_alu_op() argument 14457 check_cond_jmp_op(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx) check_cond_jmp_op() argument 14705 check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn) check_ld_imm() argument 14824 check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) check_ld_abs() argument 14906 check_return_code(struct bpf_verifier_env *env) check_return_code() argument 15111 mark_prune_point(struct bpf_verifier_env *env, int idx) mark_prune_point() argument 15116 is_prune_point(struct bpf_verifier_env *env, int insn_idx) is_prune_point() argument 15121 mark_force_checkpoint(struct bpf_verifier_env *env, int idx) mark_force_checkpoint() argument 15126 is_force_checkpoint(struct bpf_verifier_env *env, int insn_idx) is_force_checkpoint() argument 15131 mark_calls_callback(struct bpf_verifier_env *env, int idx) mark_calls_callback() argument 15136 calls_callback(struct bpf_verifier_env *env, int insn_idx) calls_callback() argument 15151 push_insn(int t, int w, int e, struct bpf_verifier_env *env) push_insn() argument 15199 visit_func_call_insn(int t, struct bpf_insn *insns, struct bpf_verifier_env *env, bool visit_callee) visit_func_call_insn() argument 15226 visit_insn(int t, struct bpf_verifier_env *env) visit_insn() argument 15324 check_cfg(struct bpf_verifier_env *env) check_cfg() argument 15397 check_abnormal_return(struct bpf_verifier_env *env) check_abnormal_return() argument 15418 check_btf_func(struct bpf_verifier_env *env, const union bpf_attr *attr, bpfptr_t uattr) check_btf_func() argument 15549 adjust_btf_func(struct bpf_verifier_env *env) adjust_btf_func() argument 15564 check_btf_line(struct bpf_verifier_env *env, const union bpf_attr *attr, bpfptr_t uattr) check_btf_line() argument 15692 check_core_relo(struct bpf_verifier_env *env, const union bpf_attr *attr, bpfptr_t uattr) check_core_relo() argument 15761 check_btf_info(struct bpf_verifier_env *env, const union bpf_attr *attr, bpfptr_t uattr) check_btf_info() argument 15863 clean_func_state(struct bpf_verifier_env *env, struct bpf_func_state *st) clean_func_state() argument 15892 clean_verifier_state(struct bpf_verifier_env *env, struct bpf_verifier_state *st) clean_verifier_state() argument 15937 clean_live_states(struct bpf_verifier_env *env, int insn, struct bpf_verifier_state *cur) clean_live_states() argument 15965 regsafe(struct bpf_verifier_env *env, struct bpf_reg_state *rold, struct bpf_reg_state *rcur, struct bpf_idmap *idmap, bool exact) regsafe() argument 16086 stacksafe(struct bpf_verifier_env *env, struct bpf_func_state *old, struct bpf_func_state *cur, struct bpf_idmap *idmap, bool exact) stacksafe() argument 16236 func_states_equal(struct bpf_verifier_env *env, struct bpf_func_state *old, struct bpf_func_state *cur, bool exact) func_states_equal() argument 16258 reset_idmap_scratch(struct bpf_verifier_env *env) reset_idmap_scratch() argument 16264 states_equal(struct bpf_verifier_env *env, struct bpf_verifier_state *old, struct bpf_verifier_state *cur, bool exact) states_equal() argument 16313 propagate_liveness_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, struct bpf_reg_state *parent_reg) propagate_liveness_reg() argument 16346 propagate_liveness(struct bpf_verifier_env *env, const struct bpf_verifier_state *vstate, struct bpf_verifier_state *vparent) propagate_liveness() argument 16393 propagate_precision(struct bpf_verifier_env *env, const struct bpf_verifier_state *old) propagate_precision() argument 16467 is_iter_next_insn(struct bpf_verifier_env *env, int insn_idx) is_iter_next_insn() argument 16554 is_state_visited(struct bpf_verifier_env *env, int insn_idx) is_state_visited() argument 16921 save_aux_ptr_type(struct bpf_verifier_env *env, enum bpf_reg_type type, bool allow_trust_missmatch) save_aux_ptr_type() argument 16959 do_check(struct bpf_verifier_env *env) do_check() argument 17333 check_pseudo_btf_id(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_insn_aux_data *aux) check_pseudo_btf_id() argument 17482 check_map_prog_compatibility(struct bpf_verifier_env *env, struct bpf_map *map, struct bpf_prog *prog) check_map_prog_compatibility() argument 17566 resolve_pseudo_ldimm64(struct bpf_verifier_env *env) resolve_pseudo_ldimm64() argument 17751 release_maps(struct bpf_verifier_env *env) release_maps() argument 17758 release_btfs(struct bpf_verifier_env *env) release_btfs() argument 17765 convert_pseudo_ld_imm64(struct bpf_verifier_env *env) convert_pseudo_ld_imm64() argument 17784 adjust_insn_aux_data(struct bpf_verifier_env *env, struct bpf_insn_aux_data *new_data, struct bpf_prog *new_prog, u32 off, u32 cnt) adjust_insn_aux_data() argument 17816 adjust_subprog_starts(struct bpf_verifier_env *env, u32 off, u32 len) adjust_subprog_starts() argument 17844 bpf_patch_insn_data(struct bpf_verifier_env *env, u32 off, const struct bpf_insn *patch, u32 len) bpf_patch_insn_data() argument 17872 adjust_subprog_starts_after_remove(struct bpf_verifier_env *env, u32 off, u32 cnt) adjust_subprog_starts_after_remove() argument 17928 bpf_adj_linfo_after_remove(struct bpf_verifier_env *env, u32 off, u32 cnt) bpf_adj_linfo_after_remove() argument 17992 verifier_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) verifier_remove_insns() argument 18030 sanitize_dead_code(struct bpf_verifier_env *env) sanitize_dead_code() argument 18060 opt_hard_wire_dead_code_branches(struct bpf_verifier_env *env) opt_hard_wire_dead_code_branches() argument 18086 opt_remove_dead_code(struct bpf_verifier_env *env) opt_remove_dead_code() argument 18110 opt_remove_nops(struct bpf_verifier_env *env) opt_remove_nops() argument 18131 opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env, const union bpf_attr *attr) opt_subreg_zext_lo32_rnd_hi32() argument 18235 convert_ctx_accesses(struct bpf_verifier_env *env) convert_ctx_accesses() argument 18434 jit_subprogs(struct bpf_verifier_env *env) jit_subprogs() argument 18666 fixup_call_args(struct bpf_verifier_env *env) fixup_call_args() argument 18718 specialize_kfunc(struct bpf_verifier_env *env, u32 func_id, u16 offset, unsigned long *addr) specialize_kfunc() argument 18769 fixup_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_insn *insn_buf, int insn_idx, int *cnt) fixup_kfunc_call() argument 18854 do_misc_fixups(struct bpf_verifier_env *env) do_misc_fixups() argument 19381 inline_bpf_loop(struct bpf_verifier_env *env, int position, s32 stack_base, u32 callback_subprogno, u32 *cnt) inline_bpf_loop() argument 19472 optimize_bpf_loop(struct bpf_verifier_env *env) optimize_bpf_loop() argument 19517 free_states(struct bpf_verifier_env *env) free_states() argument 19547 do_check_common(struct bpf_verifier_env *env, int subprog) do_check_common() argument 19645 do_check_subprogs(struct bpf_verifier_env *env) do_check_subprogs() argument 19670 do_check_main(struct bpf_verifier_env *env) do_check_main() argument 19682 print_verification_stats(struct bpf_verifier_env *env) print_verification_stats() argument 19706 check_struct_ops_btf_id(struct bpf_verifier_env *env) check_struct_ops_btf_id() argument 20096 check_attach_btf_id(struct bpf_verifier_env *env) check_attach_btf_id() argument 20194 struct bpf_verifier_env *env; bpf_check() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | verifier.c | 16 #define pr_vlog(env, fmt, ...) \ 17 bpf_verifier_log_write(env, "[nfp] " fmt, ##__VA_ARGS__) 83 static bool nfp_bpf_map_update_value_ok(struct bpf_verifier_env *env) in nfp_bpf_map_update_value_ok() argument 85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_map_update_value_ok() 86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok() 92 state = env->cur_state->frame[reg3->frameno]; in nfp_bpf_map_update_value_ok() 113 pr_vlog(env, "value at offset %d/%d may be non-zero, bpf_map_update_elem() is required to initialize atomic counters to zero to avoid offload endian issues\n", in nfp_bpf_map_update_value_ok() 124 nfp_bpf_stack_arg_ok(const char *fname, struct bpf_verifier_env *env, in nfp_bpf_stack_arg_ok() argument 131 pr_vlog(env, "%s: unsupported ptr type %d\n", in nfp_bpf_stack_arg_ok() 136 pr_vlog(env, " in nfp_bpf_stack_arg_ok() 157 nfp_bpf_map_call_ok(const char *fname, struct bpf_verifier_env *env, struct nfp_insn_meta *meta, u32 helper_tgt, const struct bpf_reg_state *reg1) nfp_bpf_map_call_ok() argument 170 nfp_bpf_check_helper_call(struct nfp_prog *nfp_prog, struct bpf_verifier_env *env, struct nfp_insn_meta *meta) nfp_bpf_check_helper_call() argument 311 nfp_bpf_check_exit(struct nfp_prog *nfp_prog, struct bpf_verifier_env *env) nfp_bpf_check_exit() argument 343 nfp_bpf_check_stack_access(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, const struct bpf_reg_state *reg, struct bpf_verifier_env *env) nfp_bpf_check_stack_access() argument 392 nfp_bpf_map_mark_used_one(struct bpf_verifier_env *env, struct nfp_bpf_map *nfp_map, unsigned int off, enum nfp_bpf_map_use use) nfp_bpf_map_mark_used_one() argument 417 nfp_bpf_map_mark_used(struct bpf_verifier_env *env, struct nfp_insn_meta *meta, const struct bpf_reg_state *reg, enum nfp_bpf_map_use use) nfp_bpf_map_mark_used() argument 451 nfp_bpf_check_ptr(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env, u8 reg_no) nfp_bpf_check_ptr() argument 502 nfp_bpf_check_store(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env) nfp_bpf_check_store() argument 526 nfp_bpf_check_atomic(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env) nfp_bpf_check_atomic() argument 556 nfp_bpf_check_alu(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env) nfp_bpf_check_alu() argument 631 nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx, int prev_insn_idx) nfp_verify_insn() argument 673 nfp_assign_subprog_idx_and_regs(struct bpf_verifier_env *env, struct nfp_prog *nfp_prog) nfp_assign_subprog_idx_and_regs() argument 763 nfp_bpf_finalize(struct bpf_verifier_env *env) nfp_bpf_finalize() argument 807 nfp_bpf_opt_replace_insn(struct bpf_verifier_env *env, u32 off, struct bpf_insn *insn) nfp_bpf_opt_replace_insn() argument 841 nfp_bpf_opt_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) nfp_bpf_opt_remove_insns() argument [all...] |
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/ |
H A D | app_napi.cpp | 280 napi_value AppNapi::UpdateAngle(napi_env env, napi_callback_info info) in UpdateAngle() argument 288 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in UpdateAngle() 291 napi_typeof(env, args[0], &valuetype0); in UpdateAngle() 294 napi_typeof(env, args[1], &valuetype1); in UpdateAngle() 297 napi_get_value_double(env, args[0], &offsetX); in UpdateAngle() 300 napi_get_value_double(env, args[1], &offsetY); in UpdateAngle() 322 napi_create_array(env, &ret); in UpdateAngle() 325 napi_create_int32(env, tetrahedron_angleX, &num); in UpdateAngle() 326 napi_set_element(env, ret, 0, num); in UpdateAngle() 327 napi_create_int32(env, tetrahedron_angle in UpdateAngle() 333 Quit(napi_env env, napi_callback_info info) Quit() argument 367 GetXComponentId(napi_env env, napi_callback_info info) GetXComponentId() argument 394 GetXComponentSize_Height(napi_env env, napi_callback_info info) GetXComponentSize_Height() argument 403 GetXComponentSize_Width(napi_env env, napi_callback_info info) GetXComponentSize_Width() argument 412 GetXComponentOffset_x(napi_env env, napi_callback_info info) GetXComponentOffset_x() argument 423 GetXComponentOffset_y(napi_env env, napi_callback_info info) GetXComponentOffset_y() argument 434 GetXComponentpointtool_tiltx(napi_env env, napi_callback_info info) GetXComponentpointtool_tiltx() argument 445 GetXComponentpointtool_tilty(napi_env env, napi_callback_info info) GetXComponentpointtool_tilty() argument 456 GetXComponentpointtool_type(napi_env env, napi_callback_info info) GetXComponentpointtool_type() argument 467 GetXComponent_TouchEvent(napi_env env, napi_callback_info info) GetXComponent_TouchEvent() argument 488 GetXComponent_MouseEvent(napi_env env, napi_callback_info info) GetXComponent_MouseEvent() argument 509 GetXComponent_RegisterMouseEventCallback(napi_env env, napi_callback_info info) GetXComponent_RegisterMouseEventCallback() argument 523 Export(napi_env env, napi_value exports) Export() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | verifier.c | 16 #define pr_vlog(env, fmt, ...) \ 17 bpf_verifier_log_write(env, "[nfp] " fmt, ##__VA_ARGS__) 83 static bool nfp_bpf_map_update_value_ok(struct bpf_verifier_env *env) in nfp_bpf_map_update_value_ok() argument 85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_map_update_value_ok() 86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok() 92 state = env->cur_state->frame[reg3->frameno]; in nfp_bpf_map_update_value_ok() 113 pr_vlog(env, "value at offset %d/%d may be non-zero, bpf_map_update_elem() is required to initialize atomic counters to zero to avoid offload endian issues\n", in nfp_bpf_map_update_value_ok() 124 nfp_bpf_stack_arg_ok(const char *fname, struct bpf_verifier_env *env, in nfp_bpf_stack_arg_ok() argument 131 pr_vlog(env, "%s: unsupported ptr type %d\n", in nfp_bpf_stack_arg_ok() 136 pr_vlog(env, " in nfp_bpf_stack_arg_ok() 157 nfp_bpf_map_call_ok(const char *fname, struct bpf_verifier_env *env, struct nfp_insn_meta *meta, u32 helper_tgt, const struct bpf_reg_state *reg1) nfp_bpf_map_call_ok() argument 170 nfp_bpf_check_helper_call(struct nfp_prog *nfp_prog, struct bpf_verifier_env *env, struct nfp_insn_meta *meta) nfp_bpf_check_helper_call() argument 311 nfp_bpf_check_exit(struct nfp_prog *nfp_prog, struct bpf_verifier_env *env) nfp_bpf_check_exit() argument 343 nfp_bpf_check_stack_access(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, const struct bpf_reg_state *reg, struct bpf_verifier_env *env) nfp_bpf_check_stack_access() argument 392 nfp_bpf_map_mark_used_one(struct bpf_verifier_env *env, struct nfp_bpf_map *nfp_map, unsigned int off, enum nfp_bpf_map_use use) nfp_bpf_map_mark_used_one() argument 417 nfp_bpf_map_mark_used(struct bpf_verifier_env *env, struct nfp_insn_meta *meta, const struct bpf_reg_state *reg, enum nfp_bpf_map_use use) nfp_bpf_map_mark_used() argument 451 nfp_bpf_check_ptr(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env, u8 reg_no) nfp_bpf_check_ptr() argument 502 nfp_bpf_check_store(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env) nfp_bpf_check_store() argument 526 nfp_bpf_check_xadd(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env) nfp_bpf_check_xadd() argument 551 nfp_bpf_check_alu(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, struct bpf_verifier_env *env) nfp_bpf_check_alu() argument 626 nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx, int prev_insn_idx) nfp_verify_insn() argument 668 nfp_assign_subprog_idx_and_regs(struct bpf_verifier_env *env, struct nfp_prog *nfp_prog) nfp_assign_subprog_idx_and_regs() argument 758 nfp_bpf_finalize(struct bpf_verifier_env *env) nfp_bpf_finalize() argument 802 nfp_bpf_opt_replace_insn(struct bpf_verifier_env *env, u32 off, struct bpf_insn *insn) nfp_bpf_opt_replace_insn() argument 836 nfp_bpf_opt_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) nfp_bpf_opt_remove_insns() argument [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | kobject_uevent.c | 117 struct kobj_uevent_env *env = NULL; in kobject_action_args() local 128 env = kzalloc(sizeof(*env), GFP_KERNEL); in kobject_action_args() 129 if (!env) in kobject_action_args() 134 add_uevent_var(env, "SYNTH_UUID=%.*s", UUID_STRING_LEN, buf)) in kobject_action_args() 168 if (add_uevent_var(env, "SYNTH_ARG_%.*s=%.*s", in kobject_action_args() 176 kfree(env); in kobject_action_args() 178 *ret_env = env; in kobject_action_args() 197 struct kobj_uevent_env *env; in kobject_synth_uevent() local 213 count - (action_args - buf), &env); in kobject_synth_uevent() 252 init_uevent_argv(struct kobj_uevent_env *env, const char *subsystem) init_uevent_argv() argument 279 alloc_uevent_skb(struct kobj_uevent_env *env, const char *action_string, const char *devpath) alloc_uevent_skb() argument 309 uevent_net_broadcast_untagged(struct kobj_uevent_env *env, const char *action_string, const char *devpath) uevent_net_broadcast_untagged() argument 342 uevent_net_broadcast_tagged(struct sock *usk, struct kobj_uevent_env *env, const char *action_string, const char *devpath) uevent_net_broadcast_tagged() argument 381 kobject_uevent_net_broadcast(struct kobject *kobj, struct kobj_uevent_env *env, const char *action_string, const char *devpath) kobject_uevent_net_broadcast() argument 419 zap_modalias_env(struct kobj_uevent_env *env) zap_modalias_env() argument 475 struct kobj_uevent_env *env; kobject_uevent_env() local 669 add_uevent_var(struct kobj_uevent_env *env, const char *format, ...) add_uevent_var() argument [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | kobject_uevent.c | 117 struct kobj_uevent_env *env = NULL; in kobject_action_args() local 128 env = kzalloc(sizeof(*env), GFP_KERNEL); in kobject_action_args() 129 if (!env) in kobject_action_args() 134 add_uevent_var(env, "SYNTH_UUID=%.*s", UUID_STRING_LEN, buf)) in kobject_action_args() 168 if (add_uevent_var(env, "SYNTH_ARG_%.*s=%.*s", in kobject_action_args() 176 kfree(env); in kobject_action_args() 178 *ret_env = env; in kobject_action_args() 197 struct kobj_uevent_env *env; in kobject_synth_uevent() local 213 count - (action_args - buf), &env); in kobject_synth_uevent() 252 init_uevent_argv(struct kobj_uevent_env *env, const char *subsystem) init_uevent_argv() argument 279 alloc_uevent_skb(struct kobj_uevent_env *env, const char *action_string, const char *devpath) alloc_uevent_skb() argument 309 uevent_net_broadcast_untagged(struct kobj_uevent_env *env, const char *action_string, const char *devpath) uevent_net_broadcast_untagged() argument 342 uevent_net_broadcast_tagged(struct sock *usk, struct kobj_uevent_env *env, const char *action_string, const char *devpath) uevent_net_broadcast_tagged() argument 381 kobject_uevent_net_broadcast(struct kobject *kobj, struct kobj_uevent_env *env, const char *action_string, const char *devpath) kobject_uevent_net_broadcast() argument 419 zap_modalias_env(struct kobj_uevent_env *env) zap_modalias_env() argument 460 struct kobj_uevent_env *env; kobject_uevent_env() local 654 add_uevent_var(struct kobj_uevent_env *env, const char *format, ...) add_uevent_var() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | veristat.c | 138 static struct env { struct 176 } env; variable 180 if (!env.verbose) in libbpf_print_fn() 182 if (level == LIBBPF_DEBUG && !env.debug) in libbpf_print_fn() 239 env.show_version = true; in parse_arg() 242 env.verbose = true; in parse_arg() 245 env.debug = true; in parse_arg() 246 env.verbose = true; in parse_arg() 249 env.quiet = true; in parse_arg() 252 err = parse_stats(arg, &env in parse_arg() [all...] |