Home
last modified time | relevance | path

Searched refs:rspData (Results 1 – 25 of 33) sorted by relevance

12

/drivers/hdf_core/framework/model/camera/dispatch/src/
Dcamera_dispatch.c80 …ameraOpenCamera(struct HdfDeviceIoClient *client, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in CameraOpenCamera() argument
127 …raCmdOpenCamera(struct HdfDeviceIoClient *client, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in CameraCmdOpenCamera() argument
133 if (client == NULL || reqData == NULL || rspData == NULL) { in CameraCmdOpenCamera()
147 ret = CameraOpenCamera(client, reqData, rspData); in CameraCmdOpenCamera()
153 struct HdfSBuf *reqData, const struct HdfSBuf *rspData) in CameraCmdCloseCamera() argument
159 if (client == NULL || reqData == NULL || rspData == NULL) { in CameraCmdCloseCamera()
182 …ameraCmdPowerUp(struct HdfDeviceIoClient *client, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in CameraCmdPowerUp() argument
187 ret = CameraDispatchCommonInfo(client, reqData, rspData, &comDev); in CameraCmdPowerUp()
194 …eraCmdPowerDown(struct HdfDeviceIoClient *client, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in CameraCmdPowerDown() argument
199 ret = CameraDispatchCommonInfo(client, reqData, rspData, &comDev); in CameraCmdPowerDown()
[all …]
/drivers/hdf_core/framework/model/audio/dispatch/src/
Daudio_control_dispatch.c51 static int32_t FillElemInfoBuf(struct HdfSBuf *rspData, struct AudioCtrlElemInfo *eInfo) in FillElemInfoBuf() argument
53 if (!HdfSbufWriteInt32(rspData, eInfo->type)) { in FillElemInfoBuf()
58 if (!HdfSbufWriteInt32(rspData, eInfo->max)) { in FillElemInfoBuf()
63 if (!HdfSbufWriteInt32(rspData, eInfo->min)) { in FillElemInfoBuf()
68 if (!HdfSbufWriteUint32(rspData, eInfo->count)) { in FillElemInfoBuf()
76 static int32_t ControlHostElemInfoSub(struct HdfSBuf *rspData, const struct AudioCtrlElemId id) in ControlHostElemInfoSub() argument
82 if (rspData == NULL) { in ControlHostElemInfoSub()
102 result = FillElemInfoBuf(rspData, &elemInfo); in ControlHostElemInfoSub()
112 struct HdfSBuf *reqData, struct HdfSBuf *rspData) in ControlHostElemInfo() argument
144 return ControlHostElemInfoSub(rspData, id); in ControlHostElemInfo()
[all …]
/drivers/hdf_core/framework/model/camera/device_impl/src/
Dcamera_isp.c25 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdIspQueryConfig() local
30 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].ctrlId); in CameraCmdIspQueryConfig()
31 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].max); in CameraCmdIspQueryConfig()
32 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].min); in CameraCmdIspQueryConfig()
33 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].step); in CameraCmdIspQueryConfig()
34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].def); in CameraCmdIspQueryConfig()
123 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdIspGetConfig() local
133 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdIspGetConfig()
242 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdIspEnumDevice() local
244 isFailed |= !HdfSbufWriteUint8(rspData, deviceConfig->isp.mode); in CameraCmdIspEnumDevice()
[all …]
Dcamera_uvc.c43 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdUvcQueryConfig() local
53 isFailed |= !HdfSbufWriteUint32(rspData, queryctrl.id); in CameraCmdUvcQueryConfig()
54 isFailed |= !HdfSbufWriteUint32(rspData, queryctrl.maximum); in CameraCmdUvcQueryConfig()
55 isFailed |= !HdfSbufWriteUint32(rspData, queryctrl.minimum); in CameraCmdUvcQueryConfig()
56 isFailed |= !HdfSbufWriteUint32(rspData, queryctrl.step); in CameraCmdUvcQueryConfig()
57 isFailed |= !HdfSbufWriteUint32(rspData, queryctrl.defaultValue); in CameraCmdUvcQueryConfig()
83 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdUvcGetConfig() local
91 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdUvcGetConfig()
104 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdUvcEnumDevice() local
109 isFailed |= !HdfSbufWriteString(rspData, deviceDriver->uvc[devId]->kernelDrvName); in CameraCmdUvcEnumDevice()
Dcamera_flash.c25 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdFlashQueryConfig() local
30 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].ctrlId); in CameraCmdFlashQueryConfig()
31 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].max); in CameraCmdFlashQueryConfig()
32 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].min); in CameraCmdFlashQueryConfig()
33 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].step); in CameraCmdFlashQueryConfig()
34 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].def); in CameraCmdFlashQueryConfig()
81 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdFlashGetConfig() local
91 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdFlashGetConfig()
158 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdFlashEnumDevice() local
160 isFailed |= !HdfSbufWriteUint8(rspData, deviceConfig->flash.mode); in CameraCmdFlashEnumDevice()
[all …]
Dcamera_sensor.c25 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdSensorQueryConfig() local
30 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].ctrlId); in CameraCmdSensorQueryConfig()
31 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].max); in CameraCmdSensorQueryConfig()
32 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].min); in CameraCmdSensorQueryConfig()
33 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].step); in CameraCmdSensorQueryConfig()
34 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].def); in CameraCmdSensorQueryConfig()
96 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdSensorGetConfig() local
106 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdSensorGetConfig()
188 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdSensorEnumDevice() local
190 isFailed |= !HdfSbufWriteUint8(rspData, deviceConfig->sensor.mode); in CameraCmdSensorEnumDevice()
[all …]
Dcamera_vcm.c25 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdVcmQueryConfig() local
30 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].ctrlId); in CameraCmdVcmQueryConfig()
31 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].max); in CameraCmdVcmQueryConfig()
32 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].min); in CameraCmdVcmQueryConfig()
33 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].step); in CameraCmdVcmQueryConfig()
34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].def); in CameraCmdVcmQueryConfig()
96 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdVcmGetConfig() local
106 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdVcmGetConfig()
190 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdVcmEnumDevice() local
192 isFailed |= !HdfSbufWriteUint8(rspData, deviceConfig->vcm.mode); in CameraCmdVcmEnumDevice()
[all …]
Dcamera_lens.c25 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdLensQueryConfig() local
30 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].ctrlId); in CameraCmdLensQueryConfig()
31 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].max); in CameraCmdLensQueryConfig()
32 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].min); in CameraCmdLensQueryConfig()
33 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].step); in CameraCmdLensQueryConfig()
34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].def); in CameraCmdLensQueryConfig()
81 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdLensGetConfig() local
91 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdLensGetConfig()
165 struct HdfSBuf *rspData = subDev.rspData; in CameraCmdLensEnumDevice() local
167 isFailed |= !HdfSbufWriteUint8(rspData, deviceConfig->lens.mode); in CameraCmdLensEnumDevice()
[all …]
Dcamera_stream.c105 static int32_t CameraSendFmtData(struct HdfSBuf *rspData, struct CameraCtrlConfig ctrlConfig) in CameraSendFmtData() argument
109 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.format); in CameraSendFmtData()
110 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.width); in CameraSendFmtData()
111 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.height); in CameraSendFmtData()
112 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.sizeImage); in CameraSendFmtData()
127 ret = CameraSendFmtData(comDev->rspData, ctrlConfig); in CameraGetFormat()
159 static int32_t CameraSendCropData(struct HdfSBuf *rspData, struct CameraCtrlConfig ctrlConfig) in CameraSendCropData() argument
163 isFailed |= !HdfSbufWriteInt32(rspData, ctrlConfig.pixelFormat.crop.left); in CameraSendCropData()
164 isFailed |= !HdfSbufWriteInt32(rspData, ctrlConfig.pixelFormat.crop.top); in CameraSendCropData()
165 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.crop.width); in CameraSendCropData()
[all …]
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/message/
Dhdf_single_node_message_test.c38 …rorCode FuncNoLoad(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in FuncNoLoad() argument
41 (void)rspData; in FuncNoLoad()
46 …Code FuncSmallLoad(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in FuncSmallLoad() argument
53 (void)rspData; in FuncSmallLoad()
167 struct HdfSBuf *rspData = NULL; in MessageSingleNodeTest002() local
174 rspData = HdfSbufObtainDefaultSize(); in MessageSingleNodeTest002()
176 …_FUNCTION_FAILED(errCode, g_serviceA->SendSyncMessage(g_serviceA, SERVICE_ID_B, 0, NULL, rspData)); in MessageSingleNodeTest002()
179 if (rspData != NULL) { in MessageSingleNodeTest002()
180 HdfSbufRecycle(rspData); in MessageSingleNodeTest002()
181 rspData = NULL; in MessageSingleNodeTest002()
[all …]
/drivers/hdf_core/framework/model/network/wifi/core/module/
Dwifi_base.c166 …32_t WifiCmdNewKey(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdNewKey() argument
176 (void)rspData; in WifiCmdNewKey()
212 …32_t WifiCmdDelKey(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdDelKey() argument
221 (void)rspData; in WifiCmdDelKey()
272 …32_t WifiCmdSetKey(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdSetKey() argument
283 (void)rspData; in WifiCmdSetKey()
320 …t WifiCmdSendEapol(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdSendEapol() argument
327 (void)rspData; in WifiCmdSendEapol()
352 …ifiCmdReceiveEapol(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdReceiveEapol() argument
360 if (reqData == NULL || rspData == NULL) { in WifiCmdReceiveEapol()
[all …]
/drivers/hdf_core/framework/model/network/wifi/core/components/p2p/
Dp2p.c34 …CmdRemainOnChannel(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdRemainOnChannel() argument
42 if (reqData == NULL || rspData == NULL) { in WifiCmdRemainOnChannel()
85 …iCmdProbeReqReport(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdProbeReqReport() argument
93 if (reqData == NULL || rspData == NULL) { in WifiCmdProbeReqReport()
132 struct HdfSBuf *rspData) in WifiCmdCancelRemainOnChannel() argument
139 if (reqData == NULL || rspData == NULL) { in WifiCmdCancelRemainOnChannel()
175 …t32_t WifiCmdAddIf(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdAddIf() argument
184 if (reqData == NULL || rspData == NULL) { in WifiCmdAddIf()
225 …_t WifiCmdRemoveIf(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdRemoveIf() argument
233 if (reqData == NULL || rspData == NULL) { in WifiCmdRemoveIf()
[all …]
/drivers/hdf_core/framework/model/display/driver/backlight/
Dhdf_bl.c29 struct HdfSBuf *reqData, struct HdfSBuf *rspData);
271 struct HdfSBuf *reqData, struct HdfSBuf *rspData) in HdfGetBrightness() argument
292 if (!HdfSbufWriteUint32(rspData, brightness)) { in HdfGetBrightness()
300 struct HdfSBuf *reqData, struct HdfSBuf *rspData) in HdfGetMinBrightness() argument
303 return HdfGetBrightness(MIN_BRIGHTNESS, reqData, rspData); in HdfGetMinBrightness()
307 struct HdfSBuf *reqData, struct HdfSBuf *rspData) in HdfGetCurrBrightness() argument
310 return HdfGetBrightness(CURRENT_BRIGHTNESS, reqData, rspData); in HdfGetCurrBrightness()
314 struct HdfSBuf *reqData, struct HdfSBuf *rspData) in HdfGetDefBrightness() argument
317 return HdfGetBrightness(DEFAULT_BRIGHTNESS, reqData, rspData); in HdfGetDefBrightness()
321 struct HdfSBuf *reqData, struct HdfSBuf *rspData) in HdfGetMaxBrightness() argument
[all …]
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/
Dsidecar.c73 …Message(struct HdfDeviceIoClient *client, int id, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in DispatchToMessage() argument
91 context->rspData = rspData; in DispatchToMessage()
126 context->rspData = recvData; in SideCarSendSyncMessage()
150 struct HdfSBuf *rspData = NULL; in SideCarSendAsyncMessageInner() local
162 rspData = HdfSbufObtainDefaultSize(); in SideCarSendAsyncMessageInner()
163 if (rspData == NULL) { in SideCarSendAsyncMessageInner()
169 context->rspData = rspData; in SideCarSendAsyncMessageInner()
184 HdfSbufRecycle(rspData); in SideCarSendAsyncMessageInner()
/drivers/hdf_core/framework/model/network/wifi/core/components/sta/
Dsta.c203 …t32_t WifiCmdAssoc(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdAssoc() argument
212 (void)rspData; in WifiCmdAssoc()
255 … WifiCmdDisconnect(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdDisconnect() argument
262 (void)rspData; in WifiCmdDisconnect()
290 …nt32_t WifiCmdScan(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdScan() argument
297 (void)rspData; in WifiCmdScan()
325 …t WifiCmdAbortScan(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdAbortScan() argument
331 (void)rspData; in WifiCmdAbortScan()
350 struct HdfSBuf *rspData) in WifiCmdSetScanningMacAddress() argument
360 if (reqData == NULL || rspData == NULL) { in WifiCmdSetScanningMacAddress()
[all …]
/drivers/hdf_core/framework/model/network/wifi/platform/include/message/
Dsidecar.h43 …essage(struct HdfDeviceIoClient *client, int id, struct HdfSBuf *reqData, struct HdfSBuf *rspData);
49 …(*MessageCallBack)(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData,
52 …(*MessageHandler)(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData);
61 struct HdfSBuf *rspData; member
/drivers/hdf_core/framework/model/network/wifi/core/components/softap/
Dap.c240 …t32_t WifiCmdSetAp(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdSetAp() argument
247 (void)rspData; in WifiCmdSetAp()
274 …32_t WifiCmdStopAp(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdStopAp() argument
279 (void)rspData; in WifiCmdStopAp()
298 …ifiCmdChangeBeacon(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdChangeBeacon() argument
304 (void)rspData; in WifiCmdChangeBeacon()
339 …t WifiCmdStaRemove(const RequestContext *context, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in WifiCmdStaRemove() argument
347 (void)rspData; in WifiCmdStaRemove()
373 static int32_t GetAssociatedStas(struct NetDevice *netdev, uint32_t num, struct HdfSBuf *rspData) in GetAssociatedStas() argument
388 if (!HdfSbufWriteBuffer(rspData, staInfo, sizeof(WifiStaInfo) * num)) { in GetAssociatedStas()
[all …]
/drivers/hdf_core/framework/model/misc/dsoftbus/include/
Dmodule_manager.h28 typedef void (*SoftbusDriverModuleProcess)(const struct HdfSBuf *reqData, struct HdfSBuf *rspData);
39 …busDispatchModuleCommand(int32_t moduleId, const struct HdfSBuf *reqData, struct HdfSBuf *rspData);
Dwlan_param_monitor.h21 void SoftbusWlanParamMonitorProcess(const struct HdfSBuf *reqData, struct HdfSBuf *rspData);
/drivers/hdf_core/framework/model/misc/dsoftbus/src/
Dwlan_param_monitor.c63 void SoftbusWlanParamMonitorProcess(const struct HdfSBuf *reqData, struct HdfSBuf *rspData) in SoftbusWlanParamMonitorProcess() argument
69 (void)rspData; in SoftbusWlanParamMonitorProcess()
Dhdf_dsoftbus_driver.c27 struct HdfSBuf *reqData, struct HdfSBuf *rspData) in DispatchCommand() argument
30 SoftbusDispatchModuleCommand(moduleId, reqData, rspData); in DispatchCommand()
Dmodule_manager.c38 …tbusDispatchModuleCommand(int32_t moduleId, const struct HdfSBuf *reqData, struct HdfSBuf *rspData) in SoftbusDispatchModuleCommand() argument
50 g_modules[i].process(reqData, rspData); in SoftbusDispatchModuleCommand()
/drivers/hdf_core/framework/model/display/driver/
Dhdf_disp.c207 …_t SetPowerStatus(struct HdfDeviceObject *device, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in SetPowerStatus() argument
212 (void)rspData; in SetPowerStatus()
225 …_t GetPowerStatus(struct HdfDeviceObject *device, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in GetPowerStatus() argument
249 if (!HdfSbufWriteUint32(rspData, powerStatus)) { in GetPowerStatus()
256 …32_t SetBacklight(struct HdfDeviceObject *device, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in SetBacklight() argument
261 (void)rspData; in SetBacklight()
276 …32_t GetBacklight(struct HdfDeviceObject *device, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in GetBacklight() argument
301 if (!HdfSbufWriteUint32(rspData, currLevel)) { in GetBacklight()
308 …c int32_t GetInfo(struct HdfDeviceObject *device, struct HdfSBuf *reqData, struct HdfSBuf *rspData) in GetInfo() argument
311 (void)rspData; in GetInfo()
[all …]
/drivers/hdf_core/framework/model/camera/dispatch/include/
Dcamera_dispatch.h24 struct HdfSBuf *reqData, struct HdfSBuf *rspData);
/drivers/hdf_core/framework/model/camera/device_impl/include/
Dcamera_common_device.h27 struct HdfSBuf *rspData; member

12