/drivers/hdf_core/framework/model/network/wifi/core/module/ |
H A D | wifi_module.c | 23 int32_t DelFeature(struct WifiModule *module, uint16_t featureType); 24 int32_t AddFeature(struct WifiModule *module, uint16_t featureType, struct WifiFeature *featureData); 26 static int32_t InitFeatures(struct WifiModule *module) in InitFeatures() argument 31 if (module == NULL) { in InitFeatures() 32 HDF_LOGE("%s: input module is NULL", __func__); in InitFeatures() 41 module->feList.fe[HDF_WIFI_FEATURE_AP] = GetWifiApFeature(); in InitFeatures() 42 module->feList.fe[HDF_WIFI_FEATURE_STA] = GetWifiStaFeature(); in InitFeatures() 43 module->feList.fe[HDF_WIFI_FEATURE_P2P] = GetWifiP2pFeature(); in InitFeatures() 46 if ((module->moduleConfig.hslConfig->featureMap & (1 << i)) && module in InitFeatures() 54 DeInitFeatures(struct WifiModule *module) DeInitFeatures() argument 78 InitWifiModule(struct WifiModule *module, const struct HdfConfigWlanModuleConfig *config) InitWifiModule() argument [all...] |
H A D | wifi_feature.c | 17 int32_t AddFeature(struct WifiModule *module, uint16_t featureType, struct WifiFeature *feature) in AddFeature() argument 19 if ((module == NULL) || (feature == NULL) || (featureType >= HDF_WIFI_FEATURE_NUM)) { in AddFeature() 23 module->feList.fe[featureType] = (struct WifiFeature *)feature; in AddFeature() 33 int32_t DelFeature(struct WifiModule *module, uint16_t featureType) in DelFeature() argument 36 if ((module == NULL) || (featureType >= HDF_WIFI_FEATURE_NUM)) { in DelFeature() 41 featureData = module->feList.fe[featureType]; in DelFeature() 43 featureData->deInit(module->feList.fe[featureType]); in DelFeature()
|
/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
H A D | thermal_log.h | 94 // In order to improve performance, do not check the module range, module should less than THERMALMGR_MODULE_BUTT. 95 #define THERMAL_HILOGF(module, ...) \ 96 ((void)HILOG_IMPL(LOG_CORE, LOG_FATAL, THERMAL_LABEL[module].domainId, THERMAL_LABEL[module].tag, ##__VA_ARGS__)) 97 #define THERMAL_HILOGE(module, ...) \ 98 ((void)HILOG_IMPL(LOG_CORE, LOG_ERROR, THERMAL_LABEL[module].domainId, THERMAL_LABEL[module].tag, ##__VA_ARGS__)) 99 #define THERMAL_HILOGW(module, ...) \ 100 ((void)HILOG_IMPL(LOG_CORE, LOG_WARN, THERMAL_LABEL[module] [all...] |
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/module/ |
H A D | hdf_module_test.c | 79 struct WifiModule *module = NULL; in WiFiModuleTestCreateModule() local 85 module = OsalMemCalloc(sizeof(struct WifiModule)); in WiFiModuleTestCreateModule() 86 if (module == NULL) { in WiFiModuleTestCreateModule() 91 ret = InitWifiModule(module, g_hdfWlanModuleCfg); in WiFiModuleTestCreateModule() 94 OsalMemFree(module); in WiFiModuleTestCreateModule() 97 OsalMemFree(module); in WiFiModuleTestCreateModule() 98 module = NULL; in WiFiModuleTestCreateModule() 105 struct WifiModule *module = HdfWlanGetModule(); in WiFiModuleTestAddFeature() local 106 if (module == NULL) { in WiFiModuleTestAddFeature() 107 HDF_LOGE("%s:Cannot get module!", __func_ in WiFiModuleTestAddFeature() 119 struct WifiModule *module = HdfWlanGetModule(); WiFiModuleTestDelFeature() local [all...] |
/drivers/hdf_core/adapter/khdf/linux/include/core/ |
H A D | hdf_driver_module.h | 23 #include <linux/module.h> 27 #define HDF_DRIVER_MODULE(module) \ 30 HDF_LOGI("hdf driver " #module " register"); \ 31 return HdfRegisterDriverEntry(&(module)); \ 35 HDF_LOGI("hdf driver " #module " unregister"); \ 36 HdfUnregisterDriverEntry(&(module)); \
|
/drivers/external_device_manager/utils/include/ |
H A D | hilog_wrapper.h | 45 // 0xD002550: part:ExternalDeviceManager module:Edm. 111 // In order to improve performance, do not check the module range, module should less than EDM_MODULE_BUTT. 112 #define EDM_LOGF(module, fmt, ...) \ 113 (void)HILOG_IMPL(LOG_CORE, LOG_FATAL, EDM_MGR_LABEL[module].domain, EDM_MGR_LABEL[module].tag, \ 115 #define EDM_LOGE(module, fmt, ...) \ 116 (void)HILOG_IMPL(LOG_CORE, LOG_ERROR, EDM_MGR_LABEL[module].domain, EDM_MGR_LABEL[module].tag, \ 118 #define EDM_LOGW(module, fm [all...] |
/drivers/hdf_core/adapter/khdf/liteos/platform/src/ |
H A D | platform_trace.c | 72 dprintf("meaning of module num 0x%x is %s\t", explains[i].moduleInfo, explains[i].moduleMean); in TraceMeanPrint() 89 void PlatformTraceAddUintMsg(int module, int moduleFun, const unsigned int infos[], uint8_t size) in PlatformTraceAddUintMsg() argument 96 if ((module < PLATFORM_TRACE_MODULE_I2S) || (module >= PLATFORM_TRACE_MODULE_MAX)) { in PlatformTraceAddUintMsg() 97 HDF_LOGE("PlatformTraceAddUintMsg %d module illegal", module); in PlatformTraceAddUintMsg() 107 LOS_TRACE_EASY(TRACE_SYS_FLAG, PLATFORM_TRACE_IDENTIFY, module, moduleFun, in PlatformTraceAddUintMsg() 111 LOS_TRACE_EASY(TRACE_SYS_FLAG, PLATFORM_TRACE_IDENTIFY, module, moduleFun, in PlatformTraceAddUintMsg() 115 LOS_TRACE_EASY(TRACE_SYS_FLAG, PLATFORM_TRACE_IDENTIFY, module, moduleFun, in PlatformTraceAddUintMsg() 120 LOS_TRACE_EASY(TRACE_SYS_FLAG, PLATFORM_TRACE_IDENTIFY, module, moduleFu in PlatformTraceAddUintMsg() 137 PlatformTraceAddMsg(const char *module, const char *moduleFun, const char *fmt, ...) PlatformTraceAddMsg() argument [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 31 self.root, self.vendor, self.module, self.driver, \
50 file_path[self.module + "_dot_configs"] = \
59 adapter_model_path = os.path.join(adapter_hdf, 'model', self.module)
70 self.root, self.vendor, self.module,
79 {"module_upper": self.module.upper(),
100 file_path[self.module + "_dot_configs"] = dot_file_list
107 if self.module == "audio":
108 args_tuple = (driver_file_path, driver_head_path, self.module,
111 elif self.module == "input":
114 self.module, sel [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_manager_config_file.py | 75 def _begin_end(module, driver): 76 dev_id = hdf_utils.get_id(module, driver) 81 def _create_device(self, module, driver): 90 begin, end = self._begin_end(module, driver) 102 def add_device(self, module, driver): 103 device_config = self._create_device(module, driver) 115 def delete_device(self, module, driver): 116 begin, end = self._begin_end(module, driver) 122 def _create_host(self, module): 125 mod_converter = hdf_utils.WordsConverter(module) [all...] |
H A D | hdf_add_handler.py | 38 'module': self._add_module_handler, 98 root, vendor, module, driver, board, kernel, _ = args_tuple 110 root, module) 112 raise HdfToolException('module "%s" already exist' % module, 128 config_file_json[module] = config_file_out 136 root, vendor, module, driver, board, kernel, _ = args_tuple 150 # create module folder under the adapter path 151 adapter_model_path = os.path.join(adapter_hdf, 'model', module) 160 # create files in the module unde [all...] |
H A D | hdf_vendor_mk_file.py | 30 def _begin_end(self, module): 31 module_id = hdf_utils.get_id(module) 36 def _create_module(self, module, need_content=True): 37 begin, end = self._begin_end(module) 41 module_converter = hdf_utils.WordsConverter(module) 52 def add_module(self, module): 53 module_ = self._create_module(module) 62 def delete_module(self, file_path, module): 63 module_content = self._create_module(module, False)
|
H A D | hdf_driver_config_file.py | 23 def __init__(self, root, board, module, driver, kernel, only_path=False): 26 self.module = module 36 self.drv_dir = os.path.join(self.config_dir, self.module) 58 self.manager_hcs.add_device(self.module, self.driver) 59 self.hdf_hcs.add_driver(self.module, self.driver) 65 self.manager_hcs.delete_device(self.module, self.driver) 66 self.hdf_hcs.delete_driver(self.module, self.driver)
|
H A D | hdf_delete_handler.py | 39 'module': self._delete_module_handler, 81 root, _, module, _, _, kernel, device = self.get_args() 92 root=root, vendor="", module="", 94 delete_driver(module=driver_name, temp_flag="device") 97 temp_res = self.sensor_device_rely(module, kernel, device) 119 def sensor_device_rely(self, module, kernel, device): 127 lambda model_dir: module in model_dir, 164 for module in os.listdir(vendor_hdf_dir): 165 mod_dir = os.path.join(vendor_hdf_dir, module) 190 root, _, module, [all...] |
H A D | hdf_module_mk_file.py | 21 def __init__(self, root, vendor, module): 22 self.module = module 23 self.file_path = hdf_utils.get_module_mk_path(root, vendor, module) 30 driver_id = hdf_utils.get_id(self.module, driver)
|
H A D | hdf_vendor_makefile.py | 37 def _begin_end(self, module):
38 module_id = hdf_utils.get_id(self.vendor, module)
49 def delete_module(self, module):
50 module_converter = hdf_utils.WordsConverter(module)
|
/drivers/hdf_core/framework/support/platform/src/fwk/ |
H A D | platform_trace_unopen.c | 52 void PlatformTraceAddMsg(const char *module, const char *moduleFun, const char *fmt, ...) in PlatformTraceAddMsg() argument 54 (void)module; in PlatformTraceAddMsg() 59 void PlatformTraceAddUintMsg(int module, int moduleFun, const unsigned int infos[], uint8_t size) in PlatformTraceAddUintMsg() argument 61 (void)module; in PlatformTraceAddUintMsg()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/linux/ |
H A D | kconfig_file_add_config.py | 24 def kconfig_file_operation(path, module, driver, template_path):
33 "model_name_upper": module.upper(),
34 "model_name_lower": module.lower(),
39 if module == "display":
41 old_str = replace_str % module.upper()
|
H A D | mk_file_add_config.py | 116 source_path, head_path, module, driver, root, devices, board = args_tuple
141 'model_name_upper': module.upper(),
159 def linux_makefile_operation(path, driver_file_path, head_path, module, driver):
163 result_tuple = find_makefile_file_end_index(date_lines, model_name=module)
169 if module == "sensor":
175 str_start = source_file_path.find(module) + len(module) + 1
177 'model_name_upper': module.upper(),
190 'model_name_upper': module.upper(),
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/liteos/ |
H A D | mk_file_add_config.py | 41 source_path, head_path, module, driver, root, devices, kernel = args_tuple
47 result_tuple = find_makefile_file_end_index(date_lines, model_name=module)
81 'model_name_upper': module.upper(),
91 module, driver, root_path):
98 result_tuple = find_makefile_file_end_index(date_lines, model_name=module)
100 makefile_add_template = get_liteos_mk_template(module)
105 'model_name_upper': module.upper(),
108 if module == "display":
116 elif module == "sensor":
118 'source_file_path': source_file_path.split(module, [all...] |
H A D | gn_file_add_config.py | 41 source_path, head_path, module, driver, root, devices, kernel = args_tuple
44 result_tuple = find_build_file_end_index(date_lines, model_name=module)
79 'model_name_upper': module.upper(),
160 def build_file_operation(path, driver_file_path, head_path, module, driver):
168 result_tuple = find_build_file_end_index(date_lines, model_name=module)
171 frameworks_value, source_file_path, module, driver, head_path)
174 date_lines, model_name=module, pre_str="PERIPHERAL")
183 'model_name_upper': module.upper(),
219 def input_build_file_operation(path, driver_file_path, head_path, module, driver):
226 result_tuple = find_build_file_end_index(date_lines, model_name=module)
[all...] |
/drivers/hdf_core/adapter/khdf/linux/platform/fwk/ |
H A D | platform_trace.c | 29 void PlatformTraceAddMsg(const char *module, const char *moduleFun, const char *fmt, ...) in PlatformTraceAddMsg() argument 34 if ((module == NULL) || (moduleFun == NULL)) { in PlatformTraceAddMsg() 35 HDF_LOGE("PlatformTraceAddMsg: params illegal!", module, moduleFun); in PlatformTraceAddMsg() 40 "module:%s function:%s params: ", module, moduleFun); in PlatformTraceAddMsg() 42 HDF_LOGE("PlatformTraceAddMsg[%s][%s]: generate messages fail[%d]!", module, moduleFun, length); in PlatformTraceAddMsg() 50 HDF_LOGE("PlatformTraceAddMsg[%s][%s]: generate messages fail[%d]!", module, moduleFun, length); in PlatformTraceAddMsg() 57 void PlatformTraceAddUintMsg(int module, int moduleFun, const unsigned int infos[], uint8_t size) in PlatformTraceAddUintMsg() argument 62 const char *moduleMean = PlatformTraceModuleExplainGet(module); in PlatformTraceAddUintMsg() 65 HDF_LOGE("PlatformTraceAddUintMsg: module[ in PlatformTraceAddUintMsg() [all...] |
/drivers/hdf_core/framework/core/host/test/sample/ |
H A D | vdi_sample2_driver.cpp | 42 sampleB->module = new VdiSample(1); in SampleAOpen() 50 VdiSample *sample = reinterpret_cast<VdiSample *>(sampleB->module); in SampleAClose() 52 sampleB->module = nullptr; in SampleAClose() 63 .module = nullptr,
|
/drivers/hdf_core/framework/include/wifi/ |
H A D | wifi_module.h | 15 * Based on the unified APIs provided by the WLAN module, developers of the Hardware Driver Interface 26 * @brief Provides features of the WLAN module and functions to create and delete modules. 28 * The {@link WifiModule} object is a core abstraction of the WLAN driver. It contains a module that communicates 90 * @brief Defines WLAN module APIs. 92 * The APIs can be used to obtain, initialize, update, and perform other operations on a WLAN module. 99 * @brief Deinitializes a WLAN module. 101 * @param module Indicates the pointer to the WLAN module. 103 * @return Returns <b>0</b> if the WLAN module is deinitialized; returns a negative value otherwise. 108 int32_t (*deInit)(struct WifiModule *module); [all...] |
/drivers/hdf_core/framework/core/common/include/host/ |
H A D | hdf_device_section.h | 15 #define HDF_DRIVER_INIT(module) \ 16 const size_t USED_ATTR module##HdfEntry HDF_SECTION = (size_t)(&(module))
|
/drivers/hdf_core/interfaces/inner_api/host/uhdf/ |
H A D | hdf_device_section.h | 21 #define HDF_DRIVER_INIT(module) struct HdfDriverEntry *driverDesc = &(module)
|