Home
last modified time | relevance | path

Searched refs:feature (Results 1 - 24 of 24) sorted by relevance

/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/
H A Dcamera_fileformat.h26 RetCode CameraOpenDevice(struct CameraFeature feature);
27 RetCode CameraCloseDevice(struct CameraFeature feature);
29 RetCode CameraSetFormat(struct CameraFeature feature, CameraCtrl &ctrl);
30 RetCode CameraGetFormat(struct CameraFeature feature, CameraCtrl &ctrl);
31 RetCode CameraSetCrop(struct CameraFeature feature, CameraCtrl &ctrl);
32 RetCode CameraGetCrop(struct CameraFeature feature, CameraCtrl &ctrl);
33 RetCode CameraSetFPS(struct CameraFeature feature, CameraCtrl &ctrl);
34 RetCode CameraGetFPS(struct CameraFeature feature, CameraCtrl &ctrl);
35 RetCode CameraGetFmtDescs(struct CameraFeature feature, std::vector<CameraCtrl> &fmtDesc);
38 void CameraGetCurrentFormat(struct CameraFeature &feature, st
[all...]
H A Dcamera_control.h27 RetCode CameraPowerUp(struct CameraFeature feature);
28 RetCode CameraPowerDown(struct CameraFeature feature);
29 RetCode CameraQueryConfig(struct CameraFeature feature, CameraCtrl &ctrl);
30 RetCode CameraSetConfig(struct CameraFeature feature, CameraCtrl &ctrl);
31 RetCode CameraGetConfig(struct CameraFeature feature, CameraCtrl &ctrl);
32 RetCode CameraGetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count);
33 RetCode CameraSetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count);
34 RetCode CameraEnumDevices(struct CameraFeature feature, struct DeviceaInfo &device);
35 RetCode CameraGetAbility(struct CameraFeature feature);
36 RetCode CameraMatchDevice(struct CameraFeature feature);
[all...]
H A Dcamera_buffer.h28 RetCode CameraInitMemory(struct CameraFeature feature);
29 RetCode CameraReqMemory(struct CameraFeature feature, int unsigned buffCont);
30 RetCode CameraAllocBuffer(struct CameraFeature feature, const std::shared_ptr<FrameSpec> &frameSpec);
31 RetCode CameraQueryMemory(struct CameraFeature feature,
33 RetCode CameraStreamQueue(struct CameraFeature feature, const std::shared_ptr<FrameSpec> &frameSpec);
34 RetCode CameraStreamDequeue(struct CameraFeature feature);
35 RetCode CameraReleaseBuffers(struct CameraFeature feature);
H A Dcamera_stream.h26 RetCode CameraStreamOn(struct CameraFeature feature);
27 RetCode CameraStreamOff(struct CameraFeature feature);
H A Dcamera_dev.h82 int32_t SetDeviceInfo(struct CameraFeature *feature,
H A Dcamera_common.h211 int32_t SendDeviceInfo(struct HdfSBuf *reqData, struct CameraFeature feature, bool state);
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
H A Dcamera_dev.cpp51 struct CameraFeature feature = {}; in Start() local
66 ret = SetDeviceInfo(&feature, cameraId, 0, deviceName, false); in Start()
69 ret = myFileFormat_->CameraOpenDevice(feature); in Start()
81 struct CameraFeature feature = {}; in Stop() local
96 ret = SetDeviceInfo(&feature, cameraId, 0, deviceName, false); in Stop()
99 ret = myFileFormat_->CameraCloseDevice(feature); in Stop()
111 struct CameraFeature feature = {}; in Init() local
131 ret = mydev_->SetDeviceInfo(&feature, it, STREAM_TYPE, deviceName, true); in Init()
134 myControl_->CameraMatchDevice(feature); in Init()
144 struct CameraFeature feature in PowerUp() local
174 struct CameraFeature feature = {}; PowerDown() local
204 struct CameraFeature feature = {}; ReqBuffers() local
238 struct CameraFeature feature = {}; CreatBuffer() local
272 struct CameraFeature feature = {}; QueueBuffer() local
300 struct CameraFeature feature = {}; ReleaseBuffers() local
330 struct CameraFeature feature = {}; LoopBuffers() local
362 struct CameraFeature feature = {}; StartStream() local
400 struct CameraFeature feature = {}; StopStream() local
445 struct CameraFeature feature = {}; GetControls() local
474 struct CameraFeature feature = {}; UpdateSetting() local
503 struct CameraFeature feature = {}; QuerySetting() local
533 struct CameraFeature feature = {}; CameraGetNumberConfig() local
557 struct CameraFeature feature = {}; CameraSetNumberConfig() local
581 struct CameraFeature feature = {}; GetFmtDescs() local
610 struct CameraFeature feature = {}; ConfigSys() local
661 struct CameraFeature feature = {}; GetDeviceAbility() local
691 struct CameraFeature feature = {}; EnumDevices() local
770 SetDeviceInfo(struct CameraFeature *feature, const std::string &cameraId, int type, char *deviceName, bool state) SetDeviceInfo() argument
[all...]
H A Dcamera_fileformat.cpp23 void CameraFileFormat::CameraGetCurrentFormat(struct CameraFeature &feature, std::vector<CameraCtrl> &fmtDesc, in CameraGetCurrentFormat() argument
33 ret = Enumfrmivale(feature, fraMival); in CameraGetCurrentFormat()
48 RetCode CameraFileFormat::CameraSearchFormat(struct CameraFeature feature, std::vector<CameraCtrl> &fmtDesc) in CameraSearchFormat() argument
59 ret = EnumFmtDesc(feature, enumFmtDesc); in CameraSearchFormat()
66 ret = EnumFrmsize(feature, frmSize); in CameraSearchFormat()
70 CameraGetCurrentFormat(feature, fmtDesc, enumFmtDesc); in CameraSearchFormat()
80 RetCode CameraFileFormat::CameraGetFmtDescs(struct CameraFeature feature, std::vector<CameraCtrl> &fmtDesc) in CameraGetFmtDescs() argument
85 ret = CameraSearchFormat(feature, fmtDesc); in CameraGetFmtDescs()
94 RetCode CameraFileFormat::CameraOpenDevice(struct CameraFeature feature) in CameraOpenDevice() argument
104 ret = SendDeviceInfo(reqData, feature, fals in CameraOpenDevice()
117 CameraCloseDevice(struct CameraFeature feature) CameraCloseDevice() argument
140 CameraSetFormat(struct CameraFeature feature, CameraCtrl &ctrl) CameraSetFormat() argument
171 CameraGetFormat(struct CameraFeature feature, CameraCtrl &ctrl) CameraGetFormat() argument
207 CameraSetCrop(struct CameraFeature feature, CameraCtrl &ctrl) CameraSetCrop() argument
237 CameraGetCrop(struct CameraFeature feature, CameraCtrl &ctrl) CameraGetCrop() argument
267 CameraSetFPS(struct CameraFeature feature, CameraCtrl &ctrl) CameraSetFPS() argument
295 CameraGetFPS(struct CameraFeature feature, CameraCtrl &ctrl) CameraGetFPS() argument
323 EnumFmtDesc(struct CameraFeature feature, struct CameraFmtDesc &enumFmtDesc) EnumFmtDesc() argument
357 EnumFrmsize(struct CameraFeature feature, struct CameraFrmSizeDesc &frmSize) EnumFrmsize() argument
389 Enumfrmivale(struct CameraFeature feature, struct CameraFrmRatioDesc &fraMival) Enumfrmivale() argument
[all...]
H A Dcamera_stream.cpp26 RetCode CameraStreams::CameraStreamOn(struct CameraFeature feature) in CameraStreamOn() argument
36 ret = SendDeviceInfo(reqData, feature, true); in CameraStreamOn()
49 RetCode CameraStreams::CameraStreamOff(struct CameraFeature feature) in CameraStreamOff() argument
59 ret = SendDeviceInfo(reqData, feature, true); in CameraStreamOff()
H A Dcamera_buffer.cpp30 RetCode CameraBuffer::CameraInitMemory(struct CameraFeature feature) in CameraInitMemory() argument
40 ret = SendDeviceInfo(reqData, feature, true); in CameraInitMemory()
53 RetCode CameraBuffer::CameraReqMemory(struct CameraFeature feature, int unsigned buffCont) in CameraReqMemory() argument
69 ret = SendDeviceInfo(reqData, feature, true); in CameraReqMemory()
87 RetCode CameraBuffer::CameraQueryMemory(struct CameraFeature feature, in CameraQueryMemory() argument
98 ret = SendDeviceInfo(reqData, feature, true); in CameraQueryMemory()
136 RetCode CameraBuffer::CameraAllocBuffer(struct CameraFeature feature, const std::shared_ptr<FrameSpec>& frameSpec) in CameraAllocBuffer() argument
147 if (CameraQueryMemory(feature, buf, ALLOC_FLAG) != 0) { in CameraAllocBuffer()
182 RetCode CameraBuffer::CameraStreamQueue(struct CameraFeature feature, const std::shared_ptr<FrameSpec>& frameSpec) in CameraStreamQueue() argument
193 ret = SendDeviceInfo(reqData, feature, tru in CameraStreamQueue()
219 CameraStreamDequeue(struct CameraFeature feature) CameraStreamDequeue() argument
259 CameraReleaseBuffers(struct CameraFeature feature) CameraReleaseBuffers() argument
[all...]
H A Dcamera_control.cpp23 RetCode CameraControl::CameraPowerUp(struct CameraFeature feature) in CameraPowerUp() argument
33 ret = SendDeviceInfo(reqData, feature, true); in CameraPowerUp()
46 RetCode CameraControl::CameraPowerDown(struct CameraFeature feature) in CameraPowerDown() argument
56 ret = SendDeviceInfo(reqData, feature, true); in CameraPowerDown()
69 RetCode CameraControl::CameraQueryConfig(struct CameraFeature feature, CameraCtrl &ctrl) in CameraQueryConfig() argument
80 ret = SendDeviceInfo(reqData, feature, true); in CameraQueryConfig()
105 RetCode CameraControl::CameraSetConfig(struct CameraFeature feature, CameraCtrl &ctrl) in CameraSetConfig() argument
116 ret = SendDeviceInfo(reqData, feature, true); in CameraSetConfig()
132 RetCode CameraControl::CameraGetConfig(struct CameraFeature feature, CameraCtrl &ctrl) in CameraGetConfig() argument
143 ret = SendDeviceInfo(reqData, feature, tru in CameraGetConfig()
161 CameraGetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count) CameraGetConfigs() argument
184 CameraSetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count) CameraSetConfigs() argument
206 CameraEnumDevices(struct CameraFeature feature, struct DeviceaInfo &device) CameraEnumDevices() argument
232 CameraGetAbility(struct CameraFeature feature) CameraGetAbility() argument
260 CameraMatchDevice(struct CameraFeature feature) CameraMatchDevice() argument
[all...]
H A Dcamera_common.cpp137 int32_t SendDeviceInfo(struct HdfSBuf *reqData, struct CameraFeature feature, bool state) in SendDeviceInfo() argument
141 isFailed |= !HdfSbufWriteInt32(reqData, feature.type); in SendDeviceInfo()
143 isFailed |= !HdfSbufWriteInt32(reqData, feature.permissionId); in SendDeviceInfo()
144 isFailed |= !HdfSbufWriteString(reqData, feature.deviceName); in SendDeviceInfo()
145 isFailed |= !HdfSbufWriteString(reqData, feature.driverName); in SendDeviceInfo()
/drivers/peripheral/wlan/test/fuzztest/
H A Dwlan_common_fuzzer.cpp78 struct HdfFeatureInfo feature; in FuzzGetChipId() local
79 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzGetChipId()
80 feature.type = *const_cast<int32_t *>(reinterpret_cast<const int32_t *>(rawData)); in FuzzGetChipId()
82 interface->GetChipId(interface, &feature, &chipId); in FuzzGetChipId()
90 struct HdfFeatureInfo feature; in FuzzGetDeviceMacAddress() local
91 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzGetDeviceMacAddress()
92 feature.type = *const_cast<int32_t *>(reinterpret_cast<const int32_t *>(rawData)); in FuzzGetDeviceMacAddress()
94 interface->GetDeviceMacAddress(interface, &feature, mac, &macLen, in FuzzGetDeviceMacAddress()
102 struct HdfFeatureInfo feature; in FuzzGetFeatureType() local
103 feature in FuzzGetFeatureType()
112 struct HdfFeatureInfo feature; FuzzGetFreqsWithBand() local
128 struct HdfFeatureInfo feature; FuzzGetNetworkIfaceName() local
138 struct HdfFeatureInfo feature; FuzzSetMacAddress() local
150 struct HdfFeatureInfo feature; FuzzSetTxPower() local
162 struct HdfFeatureInfo feature; FuzzGetPowerMode() local
172 struct HdfFeatureInfo feature; FuzzSetPowerMode() local
[all...]
/drivers/hdf_core/framework/model/network/wifi/core/module/
H A Dwifi_feature.c17 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()
24 if (feature->init != NULL) { in AddFeature()
26 return feature->init(feature); in AddFeature()
29 HDF_LOGE("%s: feature has no init", __func__); in AddFeature()
/drivers/peripheral/wlan/test/fuzztest/ap_fuzzer/
H A Dap_fuzzer.cpp30 struct HdfFeatureInfo feature; in FuzzGetAssociatedStas() local
33 feature.type = *const_cast<int32_t *>(reinterpret_cast<const int32_t *>(rawData)); in FuzzGetAssociatedStas()
34 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzGetAssociatedStas()
36 interface->GetAssociatedStas(interface, &feature, staInfo, &staInfoLen, &num); in FuzzGetAssociatedStas()
44 struct HdfFeatureInfo feature; in FuzzSetCountryCode() local
45 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzSetCountryCode()
46 feature.type = *const_cast<uint32_t *>(reinterpret_cast<const uint32_t *>(rawData)); in FuzzSetCountryCode()
48 interface->SetCountryCode(interface, &feature, mac, macLen); in FuzzSetCountryCode()
/drivers/peripheral/wlan/test/fuzztest/sta_fuzzer/
H A Dsta_fuzzer.cpp28 struct HdfFeatureInfo feature; in FuzzStartScan() local
29 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzStartScan()
30 feature.type = *const_cast<int32_t *>(reinterpret_cast<const int32_t *>(rawData)); in FuzzStartScan()
32 interface->StartScan(interface, &feature, &scan); in FuzzStartScan()
38 struct HdfFeatureInfo feature; in FuzzSetScanningMacAddress() local
39 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzSetScanningMacAddress()
40 feature.type = *const_cast<int32_t *>(reinterpret_cast<const int32_t *>(rawData)); in FuzzSetScanningMacAddress()
48 interface->SetScanningMacAddress(interface, &feature, scanMac, macLen); in FuzzSetScanningMacAddress()
/drivers/hdf_core/framework/include/wifi/
H A Dwifi_module.h47 * @brief Defines a WLAN feature.
55 * @brief Initializes a feature.
57 * @param feature Indicates the pointer to the feature.
59 * @return Returns <b>0</b> if the feature is initialized; returns a negative value otherwise.
64 int32_t (*init)(struct WifiFeature *feature);
67 * @brief Deinitializes a feature.
69 * @param feature Indicates the pointer to the feature.
71 * @return Returns <b>0</b> if the feature i
[all...]
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/module/
H A Dhdf_module_test.c38 static int32_t P2pInit(struct WifiFeature *feature) in P2pInit() argument
40 (void)feature; in P2pInit()
44 static int32_t P2pDeinit(struct WifiFeature *feature) in P2pDeinit() argument
46 (void)feature; in P2pDeinit()
/drivers/hdf_core/framework/model/input/driver/
H A Dinput_config_parser.c195 BoardFeatureCfg *feature) in ParseFeature()
198 ret = parser->GetUint8(featureNode, "capacitanceTest", &feature->capacitanceTest, 0); in ParseFeature()
200 ret = parser->GetUint8(featureNode, "gestureMode", &feature->gestureMode, 0); in ParseFeature()
202 ret = parser->GetUint8(featureNode, "gloverMOde", &feature->gloverMOde, 0); in ParseFeature()
204 ret = parser->GetUint8(featureNode, "coverMode", &feature->coverMode, 0); in ParseFeature()
206 ret = parser->GetUint8(featureNode, "chargerMode", &feature->chargeMode, 0); in ParseFeature()
208 ret = parser->GetUint8(featureNode, "knuckleMode", &feature->knuckleMode, 0); in ParseFeature()
246 ret = ParseFeature(parser, featureNode, &config->feature); in ParseTouchBoardConfig()
194 ParseFeature(struct DeviceResourceIface *parser, const struct DeviceResourceNode *featureNode, BoardFeatureCfg *feature) ParseFeature() argument
H A Dinput_config.h85 BoardFeatureCfg feature; member
/drivers/peripheral/wlan/hal/src/
H A Dwifi_hal.c142 static int32_t FindValidNetwork(int32_t type, struct IWiFiBaseFeature **feature) in FindValidNetwork() argument
153 HDF_LOGI("%s: feature is existed. type: %d", __FUNCTION__, type); in FindValidNetwork()
154 if (memcpy_s((*feature)->ifName, IFNAME_MAX_LEN, networkNode->ifName, strlen(networkNode->ifName)) != EOK) { in FindValidNetwork()
158 (*feature)->type = type; in FindValidNetwork()
162 if (memcpy_s((*feature)->ifName, IFNAME_MAX_LEN, networkNode->ifName, strlen(networkNode->ifName)) != EOK) { in FindValidNetwork()
166 (*feature)->type = type; in FindValidNetwork()
167 networkNode->ifeature = *feature; in FindValidNetwork()
185 HDF_LOGE("%s: init feature failed, line: %d, error no: %d", __FUNCTION__, __LINE__, ret); in CreateFeatureInner()
191 HDF_LOGE("%s: create feature failed, line: %d, error no: %d", __FUNCTION__, __LINE__, ret); in CreateFeatureInner()
218 HDF_LOGE("%s: cannot find feature t in DestroyFeatureInner()
[all...]
/drivers/hdf_core/framework/model/network/wifi/core/components/p2p/
H A Dp2p.c382 static int32_t P2pInit(struct WifiFeature *feature) in P2pInit() argument
384 (void)feature; in P2pInit()
397 static int32_t P2pDeinit(struct WifiFeature *feature) in P2pDeinit() argument
399 (void)feature; in P2pDeinit()
/drivers/hdf_core/framework/model/network/wifi/core/components/sta/
H A Dsta.c636 static int32_t StaInit(struct WifiFeature *feature) in StaInit() argument
638 (void)feature; in StaInit()
652 static int32_t StaDeinit(struct WifiFeature *feature) in StaDeinit() argument
654 (void)feature; in StaDeinit()
/drivers/hdf_core/framework/model/network/wifi/core/components/softap/
H A Dap.c535 static int32_t ApInit(struct WifiFeature *feature) in ApInit() argument
537 (void)feature; in ApInit()
550 static int32_t ApDeinit(struct WifiFeature *feature) in ApDeinit() argument
552 (void)feature; in ApDeinit()

Completed in 11 milliseconds