/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
H A D | code_generator.cpp | 146 Logger::E(TAG, "the generate mode is not supported, please check option");
in GetCodeGenPoilcy() 161 GenMode mode = GenMode::IPC;
in GenIpcCCode() local 164 cCodeEmitters_["types"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 168 cCodeEmitters_["interface"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 169 cCodeEmitters_["proxy"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 170 cCodeEmitters_["driver"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 171 cCodeEmitters_["stub"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 172 cCodeEmitters_["service"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 176 cCodeEmitters_["interface"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 177 cCodeEmitters_["proxy"]->OutPut(ast, outDir, mode);
in GenIpcCCode() 189 GenMode mode = GenMode::IPC; GenIpcCppCode() local 217 GenMode mode = GenMode::IPC; GenIpcJavaCode() local 236 GenMode mode = GenMode::PASSTHROUGH; GenPassthroughCCode() local 260 GenMode mode = GenMode::PASSTHROUGH; GenPassthroughCppCode() local 284 GenMode mode = GenMode::KERNEL; GenKernelCode() local 305 GenMode mode = GenMode::LOW; GenLowCCode() local [all...] |
/drivers/peripheral/usb/hdi_service/src/ |
H A D | usbd_port.cpp | 49 if (path_ == "/data/service/el1/public/usb/mode") {
in IfCanSwitch() 71 int32_t UsbdPort::WritePortFile(int32_t powerRole, int32_t dataRole, int32_t mode)
in WritePortFile() argument 75 if (mode == PORT_MODE_HOST || mode == PORT_MODE_DEVICE) {
in WritePortFile() 76 switch (mode) {
in WritePortFile() 109 int32_t UsbdPort::ReadPortFile(int32_t &powerRole, int32_t &dataRole, int32_t &mode)
in ReadPortFile() argument 129 mode = PORT_MODE_HOST;
in ReadPortFile() 136 mode = PORT_MODE_DEVICE;
in ReadPortFile() 140 HDF_LOGE("%{public}s: read invalid mode: %{public}s", __func__, modeBuf);
in ReadPortFile() 157 int32_t mode in SetPortInit() local 196 QueryPort(int32_t &portId, int32_t &powerRole, int32_t &dataRole, int32_t &mode) QueryPort() argument 206 UpdatePort(int32_t mode, const sptr<IUsbdSubscriber> &subscriber) UpdatePort() argument [all...] |
/drivers/hdf_core/adapter/khdf/liteos/manager/src/ |
H A D | devmgr_pm_reg.c | 38 UINT32 DevmgrPmSuspend(UINT32 mode) in DevmgrPmSuspend() argument 40 if (mode != LOS_SYS_LIGHT_SLEEP) { in DevmgrPmSuspend() 41 HDF_LOGI("%s: hdf Suspend %u", __func__, mode); in DevmgrPmSuspend() 60 void DevmgrPmResume(UINT32 mode) in DevmgrPmResume() argument 62 if (mode != LOS_SYS_LIGHT_SLEEP) { in DevmgrPmResume() 63 HDF_LOGI("%s: hdf resume %d", __func__, mode); in DevmgrPmResume()
|
/drivers/hdf_core/framework/model/display/driver/ |
H A D | hdf_drm_panel.c | 102 struct drm_display_mode *mode = NULL; in HdfDrmPanelGetModes() local 116 mode = drm_mode_duplicate(connector->dev, &hdfDrmPanel->mode); in HdfDrmPanelGetModes() 117 if (!mode) { in HdfDrmPanelGetModes() 118 HDF_LOGE("failed to add mode %ux%ux@%u", in HdfDrmPanelGetModes() 119 hdfDrmPanel->mode.hdisplay, hdfDrmPanel->mode.vdisplay, in HdfDrmPanelGetModes() 120 drm_mode_vrefresh(mode)); in HdfDrmPanelGetModes() 123 drm_mode_set_name(mode); in HdfDrmPanelGetModes() 124 mode in HdfDrmPanelGetModes() [all...] |
/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
H A D | ast_pointer_type.cpp | 28 std::string ASTPointerType::EmitCType(TypeMode mode) const in EmitCType() 30 switch (mode) { in EmitCType() 44 std::string ASTPointerType::EmitCppType(TypeMode mode) const in EmitCppType() 46 switch (mode) { in EmitCppType()
|
H A D | ast_map_type.h | 49 std::string EmitCType(TypeMode mode = TypeMode::NO_MODE) const override; 51 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 53 std::string EmitJavaType(TypeMode mode, bool isInnerType = false) const override; 76 void RegisterWriteMethod(Language language, SerMode mode, UtilMethodMap &methods) const override; 78 void RegisterReadMethod(Language language, SerMode mode, UtilMethodMap &methods) const override;
|
/drivers/hdf_core/framework/support/platform/src/fwk/ |
H A D | platform_event.c | 26 uint32_t mode; member 62 if ((waiter->mode & PLAT_EVENT_MODE_ASYNC) != 0) { in PlatformEventClearWaiters() 98 if (((pos->mode & PLAT_EVENT_MODE_AND) == 0) && in PlatformEventPost() 103 if (((pos->mode & PLAT_EVENT_MODE_AND) != 0) && in PlatformEventPost() 111 if ((waiter->mode & PLAT_EVENT_MODE_ASYNC) != 0) { in PlatformEventPost() 123 if ((waiter->mode & PLAT_EVENT_MODE_ASYNC) == 0) { in PlatformEventPost() 134 static int32_t PlatformEventRead(struct PlatformEvent *pe, uint32_t *events, uint32_t mask, int32_t mode) in PlatformEventRead() argument 142 if (((uint32_t)mode & (uint32_t)PLAT_EVENT_MODE_AND) == 0) { in PlatformEventRead() 159 uint32_t *events, uint32_t mask, int32_t mode, uint32_t tms) in PlatformEventReadSlowlly() 165 waiter.mode in PlatformEventReadSlowlly() 158 PlatformEventReadSlowlly(struct PlatformEvent *pe, uint32_t *events, uint32_t mask, int32_t mode, uint32_t tms) PlatformEventReadSlowlly() argument 190 PlatformEventWait(struct PlatformEvent *pe, uint32_t mask, int32_t mode, uint32_t tms, uint32_t *events) PlatformEventWait() argument [all...] |
/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_timer.c | 41 OsalTimerMode mode; member 49 OsalTimerMode mode; in osal_timer_callback() local 60 mode = ktimer->mode; in osal_timer_callback() 69 if (mode == OSAL_TIMER_LOOP) { in osal_timer_callback() 108 static int32_t OsalTimerStart(OsalTimer *timer, OsalTimerMode mode) in OsalTimerStart() argument 121 ktimer->mode = mode; in OsalTimerStart() 176 if (ktimer->mode == OSAL_TIMER_ONCE) in OsalTimerDelete()
|
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/ |
H A D | drm_connector.cpp | 60 drmModeModeInfoPtr mode = c.modes + i;
in InitModes() local 61 DISPLAY_LOGD("mode: hdisplay %{public}d, vdisplay %{public}d vrefresh %{public}d type %{public}d",
in InitModes() 62 mode->hdisplay, mode->vdisplay, mode->vrefresh, mode->type);
in InitModes() 63 if ((mPreferenceId == INVALID_MODE_ID) && (mode->type & DRM_MODE_TYPE_PREFERRED)) {
in InitModes() 67 mModes.emplace(i, DrmMode { *mode, i });
in InitModes() 69 DISPLAY_LOGD("mode count %{public}zd", mModes.size());
in InitModes() 80 DISPLAY_CHK_RETURN((ret != DISPLAY_SUCCESS), DISPLAY_FAILURE, DISPLAY_LOGE("can not get mode pro in Init() 235 DrmMode mode = modeMap.second; GetDisplaySupportedModes() local 257 GetModeFromId(int32_t id, DrmMode &mode) GetModeFromId() argument 276 DrmModeBlock(DrmMode &mode) DrmModeBlock() argument 282 Init(DrmMode &mode) Init() argument [all...] |
/drivers/hdf_core/adapter/khdf/linux/platform/spi/ |
H A D | spi_adapter.c | 40 static uint16_t HdfSpiModeToLinuxMode(uint16_t mode) in HdfSpiModeToLinuxMode() argument 42 return ((!!(mode & SPI_CLK_PHASE) ? SPI_CPHA : 0) | in HdfSpiModeToLinuxMode() 43 (!!(mode & SPI_CLK_POLARITY) ? SPI_CPOL : 0) | in HdfSpiModeToLinuxMode() 44 (!!(mode & SPI_MODE_CS_HIGH) ? SPI_CS_HIGH : 0) | in HdfSpiModeToLinuxMode() 45 (!!(mode & SPI_MODE_LSBFE) ? SPI_LSB_FIRST : 0) | in HdfSpiModeToLinuxMode() 46 (!!(mode & SPI_MODE_3WIRE) ? SPI_3WIRE : 0) | in HdfSpiModeToLinuxMode() 47 (!!(mode & SPI_MODE_LOOP) ? SPI_LOOP : 0) | in HdfSpiModeToLinuxMode() 48 (!!(mode & SPI_MODE_NOCS) ? SPI_NO_CS : 0) | in HdfSpiModeToLinuxMode() 49 (!!(mode & SPI_MODE_READY) ? SPI_READY : 0)); in HdfSpiModeToLinuxMode() 52 static uint16_t LinuxSpiModeToHdfMode(uint16_t mode) in LinuxSpiModeToHdfMode() argument [all...] |
/drivers/hdf_core/framework/model/network/wifi/include/ |
H A D | hdf_wifi_config.h | 24 uint8_t mode; member 29 uint8_t mode; member 36 uint8_t mode; member 40 uint8_t mode; member 44 uint8_t mode; member
|
H A D | hdf_wlan_config.h | 19 uint8_t mode; member 24 uint8_t mode; member 31 uint8_t mode; member 35 uint8_t mode; member 39 uint8_t mode; member
|
/drivers/hdf_core/adapter/platform/gpio/ |
H A D | gpio_gr5xx.c | 31 app_io_mode_t mode; member 59 g_portCfg[cnt].mode = IO_MODE_DEFAULT; in PortConfigInit() 80 ioInit.mode = IO_MODE_DEFAULT; in GpioDevSetDir() 83 ioInit.mode = APP_IO_MODE_INPUT; in GpioDevSetDir() 85 ioInit.mode = APP_IO_MODE_OUT_PUT; in GpioDevSetDir() 88 g_portCfg[gpio].mode = ioInit.mode; in GpioDevSetDir() 104 *dir = g_portCfg[gpio].mode; in GpioDevGetDir() 203 gpioteParam.mode = g_portCfg[gpio].mode; in GpioDevEnableIrq() 235 GpioDevSetIrq(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t mode) GpioDevSetIrq() argument [all...] |
/drivers/peripheral/distributed_camera/hdi_service/test/sample/ |
H A D | stream_customer.cpp | 25 sptr<OHOS::IBufferProducer> StreamCustomer::CreateProducer(CaptureMode mode, in CreateProducer() argument 33 if (mode == CAPTURE_SNAPSHOT) { in CreateProducer() 35 } else if (mode == CAPTURE_VIDEO) { in CreateProducer()
|
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/ |
H A D | vibrator_driver.c | 139 if (drvData->mode != VIBRATOR_MODE_BUTT) { in StartOnce() 145 drvData->mode = VIBRATOR_MODE_ONCE; in StartOnce() 176 if (drvData->mode != VIBRATOR_MODE_BUTT) { in StartEffect() 182 drvData->mode = VIBRATOR_MODE_PRESET; in StartEffect() 202 int32_t mode; in Stop() local 209 if (!HdfSbufReadInt32(data, &mode)) { in Stop() 210 HDF_LOGE("%s: sbuf read mode failed!", __func__); in Stop() 214 if ((mode != VIBRATOR_MODE_ONCE) && (mode != VIBRATOR_MODE_PRESET)) { in Stop() 215 HDF_LOGE("%s: vibrator stop mode faile in Stop() [all...] |
/drivers/hdf_core/framework/model/camera/parser/include/ |
H A D | camera_config_parser.h | 110 uint8_t mode; member 116 uint8_t mode; member 122 uint8_t mode; member 128 uint8_t mode; member 134 uint8_t mode; member 140 uint8_t mode; member
|
/drivers/peripheral/display/hal/default_standard/src/display_device/fbdev/ |
H A D | fb_display.cpp | 62 DisplayModeInfo mode;
in Init() local 63 mode.freshRate = defaultFreshRate;
in Init() 64 mode.width = varInfo.xres;
in Init() 65 mode.height = varInfo.yres;
in Init() 66 mode.id = 0;
in Init() 67 modes_.push_back(mode);
in Init() 68 DISPLAY_LOGD("xres : %{public}d yres : %{public}d fps : %{public}d", varInfo.xres, varInfo.yres, mode.freshRate);
in Init() 118 DISPLAY_LOGE("now has not active mode");
in GetDisplayMode()
|
/drivers/hdf_core/adapter/khdf/liteos_m/core/common/src/ |
H A D | devmgr_service_start.c | 90 UINT32 DevmgrPmSuspend(UINT32 mode) in DevmgrPmSuspend() argument 92 if (mode != LOS_SYS_DEEP_SLEEP) { in DevmgrPmSuspend() 112 void DevmgrPmResume(UINT32 mode) in DevmgrPmResume() argument 114 if (mode != LOS_SYS_DEEP_SLEEP) { in DevmgrPmResume()
|
/drivers/hdf_core/framework/support/platform/src/pcie/ |
H A D | pcie_if.c | 39 int32_t PcieRead(DevHandle handle, uint32_t mode, uint32_t pos, uint8_t *data, uint32_t len) in PcieRead() argument 41 return PcieCntlrRead((struct PcieCntlr *)handle, mode, pos, data, len); in PcieRead() 44 int32_t PcieWrite(DevHandle handle, uint32_t mode, uint32_t pos, uint8_t *data, uint32_t len) in PcieWrite() argument 46 return PcieCntlrWrite((struct PcieCntlr *)handle, mode, pos, data, len); in PcieWrite()
|
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/strategy/ |
H A D | stream_pipeline_strategy.h | 27 virtual std::shared_ptr<PipelineSpec> GeneratePipelineSpec(const int32_t& mode); 32 virtual RetCode CheckPipelineSpecExist(const int32_t mode, const std::vector<int32_t>& types); 38 virtual std::string ConstructKeyStrIndex(const int32_t& mode); 41 virtual RetCode SelectPipelineSpec(const int32_t& mode, PipelineSpec& pipe);
|
/drivers/peripheral/usb/hdi_service/include/ |
H A D | usbd_port.h | 59 int32_t QueryPort(int32_t &portId, int32_t &powerRole, int32_t &dataRole, int32_t &mode);
60 int32_t UpdatePort(int32_t mode, const sptr<HDI::Usb::V1_1::IUsbdSubscriber> &subscriber);
73 int32_t WritePortFile(int32_t powerRole, int32_t dataRole, int32_t mode);
74 int32_t ReadPortFile(int32_t &powerRole, int32_t &dataRole, int32_t &mode);
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_hal_p2p_struct.h | 80 int mode; // [join|auth] member 108 int mode; /* 0/1, upnp/bonjour */ member 121 int mode; /* 0/1 : PIN_KEYPAD/PIN_DISPLAY */ member 140 int mode; /* 0/1/2 : Pbc/display/keypad */ member
|
/drivers/peripheral/camera/vdi_base/common/pipeline_core/ipp/src/ |
H A D | ipp_algo_parser.cpp | 114 const char* mode = nullptr; in ConstructPlugin() local 115 ret = devResInstance_->GetString(node, "mode", &mode, nullptr); in ConstructPlugin() 117 CAMERA_LOGE("get algo mode failed"); in ConstructPlugin() 120 auto it = algoModeMap_.find(std::string(mode)); in ConstructPlugin() 122 CAMERA_LOGE("invalid mode %{public}s", mode); in ConstructPlugin() 130 std::shared_ptr<AlgoPlugin> plugin = std::make_shared<AlgoPlugin>(name, description, algoModeMap_[mode], nodeName); in ConstructPlugin()
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/ |
H A D | camera_common.h | 67 uint8_t mode; member 76 uint8_t mode; member 90 uint8_t mode; member 100 uint8_t mode; member 107 uint8_t mode; member 115 uint8_t mode; member
|
/drivers/peripheral/sensor/chipset/ppg/ |
H A D | ppg_cs1262_fw.c | 58 { .mode = HEART_RATE_MODE, .regTab = &g_heartRegTab },
83 int32_t Cs1262Loadfw(enum PpgMode mode, Cs1262RegConfigTab **configTab)
in Cs1262Loadfw() argument 88 if (g_ppgModeTab[index].mode == mode) {
in Cs1262Loadfw() 91 HDF_LOGE("%s: validateTab fail mode = %d", __func__, mode);
in Cs1262Loadfw() 99 HDF_LOGE("%s: Cs1262Loadfw not match, mode = %d", __func__, mode);
in Cs1262Loadfw()
|