Home
last modified time | relevance | path

Searched refs:driverName (Results 1 – 25 of 35) sorted by relevance

12

/drivers/hdf_core/framework/model/network/ethernet/src/
Deth_chip_driver.c16 static struct HdfEthChipDriverFactory *HdfEthGetChipDriverByName(const char *driverName) in HdfEthGetChipDriverByName() argument
19 if (driverName == NULL) { in HdfEthGetChipDriverByName()
25 if (g_ethChipDriverFactory[i] != NULL && g_ethChipDriverFactory[i]->driverName != NULL) { in HdfEthGetChipDriverByName()
27 if (strcmp(factory->driverName, driverName) == 0) { in HdfEthGetChipDriverByName()
38 if (obj == NULL || obj->driverName == NULL) { in HdfEthRegChipDriver()
42 if (HdfEthGetChipDriverByName(obj->driverName) != NULL) { in HdfEthRegChipDriver()
43 … HDF_LOGW("%s: chipDriver factory is already registered. name = %s", __func__, obj->driverName); in HdfEthRegChipDriver()
49 HDF_LOGI("%s:Chip driver %s registered.", __func__, obj->driverName); in HdfEthRegChipDriver()
Dhdf_eth_core.c16 static struct HdfEthChipDriverFactory *HdfEthGetDriverFactory(const char *driverName) in HdfEthGetDriverFactory() argument
19 if (driverName == NULL) { in HdfEthGetDriverFactory()
28 return initMgr->GetEthChipDriverByName(driverName); in HdfEthGetDriverFactory()
/drivers/hdf_core/framework/model/network/wifi/platform/src/
Dhdf_wlan_chipdriver_manager.c21 static struct HdfChipDriverFactory *HdfWlanGetChipDriverByName(const char *driverName) in HdfWlanGetChipDriverByName() argument
24 if (driverName == NULL) { in HdfWlanGetChipDriverByName()
30 …wlanChipDriverManagerFactory[i] != NULL && g_wlanChipDriverManagerFactory[i]->driverName != NULL) { in HdfWlanGetChipDriverByName()
32 if (strcmp(factory->driverName, driverName) == 0) { in HdfWlanGetChipDriverByName()
44 if (obj == NULL || obj->driverName == NULL) { in HdfWlanRegChipDriver()
48 if (HdfWlanGetChipDriverByName(obj->driverName) != NULL) { in HdfWlanRegChipDriver()
49 HDF_LOGI("%s: Chipdriver factory is already registered.name=%s", __func__, obj->driverName); in HdfWlanRegChipDriver()
55 HDF_LOGI("%s: Chip driver %s registered.", __func__, obj->driverName); in HdfWlanRegChipDriver()
/drivers/hdf_core/framework/core/manager/src/
Ddriver_manager.c98 static struct HdfDriver *HdfDriverManagerFoundDriver(const char *driverName) in HdfDriverManagerFoundDriver() argument
105 !strcmp(driver->entry->moduleName, driverName)) { in HdfDriverManagerFoundDriver()
113 struct HdfDriver *HdfDriverManagerGetDriver(const char *driverName) in HdfDriverManagerGetDriver() argument
116 if (driverName == NULL) { in HdfDriverManagerGetDriver()
119 driver = HdfDriverManagerFoundDriver(driverName); in HdfDriverManagerGetDriver()
125 HDF_LOGI("%s:try to dynamic load driver %s", __func__, driverName); in HdfDriverManagerGetDriver()
126 …if (HdfSysEventSend(HDF_SYSEVENT_CLASS_MODULE, KEVENT_MODULE_INSTALL, driverName, true) != HDF_SUC… in HdfDriverManagerGetDriver()
130 driver = HdfDriverManagerFoundDriver(driverName); in HdfDriverManagerGetDriver()
133 HDF_LOGE("%s:driver %s not found", __func__, driverName); in HdfDriverManagerGetDriver()
/drivers/hdf_core/framework/model/camera/utils/include/
Dcamera_utils.h33 int32_t GetDeviceNum(const char *driverName, int camId, int type);
34 int32_t GetStreamNum(const char *driverName, struct CameraDeviceDriver *deviceDriver);
35 int32_t GetUvcNum(const char *driverName, struct CameraDeviceDriver *deviceDriver);
36 int32_t CheckFrameRate(int camId, const char *driverName, int type, struct CameraCtrlConfig *ctrlCo…
38 const char **driverName, int32_t *camId, struct CameraDevice **camDev);
40 …ameraGetNames(int type, struct HdfSBuf *reqData, const char **deviceName, const char **driverName);
42 int type, int32_t camId, const char *driverName, struct DeviceOps **devOps);
/drivers/hdf_core/framework/model/camera/utils/src/
Dcamera_utils.c288 static int32_t GetSensorNum(const char *driverName, int camId, struct CameraConfigRoot *rootConfig) in GetSensorNum() argument
293 if (strcmp(rootConfig->deviceConfig[camId].sensor.sensor[j].name, driverName) == 0) { in GetSensorNum()
301 static int32_t GetIspNum(const char *driverName, int camId, struct CameraConfigRoot *rootConfig) in GetIspNum() argument
306 if (strcmp(rootConfig->deviceConfig[camId].isp.isp[j].name, driverName) == 0) { in GetIspNum()
314 static int32_t GetVcmNum(const char *driverName, int camId, struct CameraConfigRoot *rootConfig) in GetVcmNum() argument
319 if (strcmp(rootConfig->deviceConfig[camId].vcm.vcm[j].name, driverName) == 0) { in GetVcmNum()
327 static int32_t GetLensNum(const char *driverName, int camId, struct CameraConfigRoot *rootConfig) in GetLensNum() argument
332 if (strcmp(rootConfig->deviceConfig[camId].lens.lens[j].name, driverName) == 0) { in GetLensNum()
340 static int32_t GetFlashNum(const char *driverName, int camId, struct CameraConfigRoot *rootConfig) in GetFlashNum() argument
345 if (strcmp(rootConfig->deviceConfig[camId].flash.flash[j].name, driverName) == 0) { in GetFlashNum()
[all …]
/drivers/peripheral/audio/hal/hdi_binder/server/src/
Dhdf_audio_pnp_server.c136 int32_t AudioUhdfUnloadDriver(const char *driverName) in AudioUhdfUnloadDriver() argument
141 if (driverName == NULL) { in AudioUhdfUnloadDriver()
159 if (!HdfSbufWriteString(sBuf, driverName)) { in AudioUhdfUnloadDriver()
179 int32_t AudioUhdfLoadDriver(const char *driverName) in AudioUhdfLoadDriver() argument
183 if (driverName == NULL) { in AudioUhdfLoadDriver()
188 serv = HdfIoServiceBind(driverName); in AudioUhdfLoadDriver()
190 AUDIO_FUNC_LOGE("error HdfIoServiceBind %{public}s", driverName); in AudioUhdfLoadDriver()
/drivers/hdf_core/framework/model/camera/device_impl/src/
Dcamera_stream.c28 num = GetStreamNum(comDev->driverName, deviceDriver); in StreamGetImageSetting()
71 num = GetStreamNum(comDev->driverName, deviceDriver); in StreamSetImageSetting()
132 static int32_t CameraReceiveFmtData(int camId, const char *driverName, in CameraReceiveFmtData() argument
149 ret = CameraReceiveFmtData(comDev->camId, comDev->driverName, comDev->reqData, &ctrlConfig); in CameraSetFormat()
238 static int32_t CameraSetFPSData(int camId, const char *driverName, in CameraSetFPSData() argument
247 ret = CheckFrameRate(camId, driverName, STREAM_TYPE, ctrlConfig); in CameraSetFPSData()
256 ret = CameraSetFPSData(comDev->camId, comDev->driverName, comDev->reqData, &ctrlConfig); in CameraSetFPS()
266 static int32_t CameraStreamEnumFmt(struct CameraDevice *camDev, const char *driverName, int camId, in CameraStreamEnumFmt() argument
276 num = GetStreamNum(driverName, deviceDriver); in CameraStreamEnumFmt()
293 static int32_t CameraEnumFmtData(struct CameraDevice *camDev, const char *driverName, int camId, in CameraEnumFmtData() argument
[all …]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/
Dcamera_common.h68 char driverName[DRIVER_NAME_NUM]; member
77 char driverName[DRIVER_NAME_NUM]; member
91 char driverName[DRIVER_NAME_NUM]; member
101 char driverName[DRIVER_NAME_NUM]; member
108 char driverName[DRIVER_NAME_NUM]; member
116 char driverName[DRIVER_NAME_NUM]; member
139 char driverName[DRIVER_NAME_NUM]; member
/drivers/peripheral/audio/hal/hdi_binder/server/include/
Dhdf_audio_pnp_server.h29 int32_t AudioUhdfUnloadDriver(const char *driverName);
30 int32_t AudioUhdfLoadDriver(const char *driverName);
/drivers/hdf_core/framework/model/network/wifi/core/
Dhdf_wifi_core.c72 data->driverName = tmpChipList->chipInst[0].driverName; in HdfWlanBusInit()
73 HDF_LOGI("%s: Driver name = %s", __func__, data->driverName); in HdfWlanBusInit()
166 static struct HdfChipDriverFactory *HdfWlanGetDriverFactory(const char *driverName) in HdfWlanGetDriverFactory() argument
169 if (driverName == NULL) { in HdfWlanGetDriverFactory()
179 return initMgr->GetChipDriverByName(driverName); in HdfWlanGetDriverFactory()
233 HDF_LOGE("%s:chip driver %s build fail!", __func__, factory->driverName); in HdfWlanInitInterface()
239 HDF_LOGI("%s: chip driver %s not 'init' api", __func__, factory->driverName); in HdfWlanInitInterface()
260 HDF_LOGE("%s:init chip %s failed! ret=%d", __func__, factory->driverName, ret); in HdfWlanInitInterface()
315 …_LOGE("%s:Init NetInterface failed!driverName=%s,portIndex=%hhu", __func__, device->driverName, i); in HdfWlanInitInterfaces()
318 HDF_LOGI("%s: %s init interfaces finished!", __func__, chipDriverFact->driverName); in HdfWlanInitInterfaces()
[all …]
/drivers/hdf_core/framework/core/host/src/
Dhdf_device_object.c181 struct HdfDeviceObject *HdfDeviceObjectAlloc(struct HdfDeviceObject *parent, const char *driverName) in HdfDeviceObjectAlloc() argument
200 newNode->driverName = HdfStringCopy(driverName); in HdfDeviceObjectAlloc()
201 if (newNode->driverName == NULL) { in HdfDeviceObjectAlloc()
231 …if (dev == NULL || devNode->driverName == NULL || devNode->device == NULL || driverLoader == NULL … in HdfDeviceObjectRegister()
237 devNode->driver = driverLoader->GetDriver(devNode->driverName); in HdfDeviceObjectRegister()
239 HDF_LOGE("can not found driver %s", devNode->driverName); in HdfDeviceObjectRegister()
245 HDF_LOGE("failed to attach device %s", devNode->driverName); in HdfDeviceObjectRegister()
/drivers/hdf_core/framework/model/camera/core/include/
Dcamera_core.h14 int32_t HdfCameraDeinitDevice(const char *driverName);
/drivers/hdf_core/interfaces/inner_api/host/shared/
Dhdf_driver.h27 struct HdfDriver *HdfDriverManagerGetDriver(const char *driverName);
Dhdf_device_object.h17 struct HdfDeviceObject *HdfDeviceObjectAlloc(struct HdfDeviceObject *parent, const char *driverName
Dhdf_device_node.h45 char *driverName; member
/drivers/hdf_core/framework/core/host/include/
Dhdf_driver_loader.h18 struct HdfDriver *(*GetDriver)(const char *driverName);
/drivers/hdf_core/framework/include/wifi/
Dhdf_wifi_product.h72 const char *driverName; /**< Driver name */ member
Dhdf_wlan_chipdriver_manager.h75 const char *driverName; /**< Driver name */ member
/drivers/hdf_core/framework/include/ethernet/
Deth_chip_driver.h38 const char *driverName; member
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
Dcamera_control.cpp291 …isFailed |= strncpy_s(device.sensor.driverName, DRIVER_NAME_NUM, HdfSbufReadString(respData), DRIV… in ReadSensorSbufData()
300 …device.sensor.mode, device.sensor.driverName, device.sensor.id, device.sensor.exposure, device.sen… in ReadSensorSbufData()
315 …isFailed |= strncpy_s(device.isp.driverName, DRIVER_NAME_NUM, HdfSbufReadString(respData), DRIVER_… in ReadIspSbufData()
339 …isFailed |= strncpy_s(device.vcm.driverName, DRIVER_NAME_NUM, HdfSbufReadString(respData), DRIVER_… in ReadVcmSbufData()
359 …isFailed |= strncpy_s(device.lens.driverName, DRIVER_NAME_NUM, HdfSbufReadString(respData), DRIVER… in ReadLensSbufData()
376 …isFailed |= strncpy_s(device.flash.driverName, DRIVER_NAME_NUM, HdfSbufReadString(respData), DRIVE… in ReadFlashSbufData()
395 …isFailed |= strncpy_s(device.stream.driverName, DRIVER_NAME_NUM, HdfSbufReadString(respData), DRIV… in ReadStreamSbufData()
/drivers/hdf_core/framework/model/network/ethernet/include/
Deth_device.h56 const char *driverName; member
/drivers/hdf_core/framework/model/audio/dispatch/src/
Daudio_control_dispatch.c150 const char *driverName = NULL; in ControlHostElemUnloadCard() local
160 driverName = HdfSbufReadString(reqData); in ControlHostElemUnloadCard()
161 if (driverName == NULL) { in ControlHostElemUnloadCard()
166 audioDriverService = DevSvcManagerClntGetDeviceObject(driverName); in ControlHostElemUnloadCard()
168 ADM_LOG_ERR("get hdmi device fail! %s", driverName); in ControlHostElemUnloadCard()
/drivers/hdf_core/framework/model/network/wifi/include/
Dhdf_wlan_config.h106 const char *driverName; member
/drivers/hdf_core/framework/model/network/wifi/bus/
Dhdf_usb_intf.c183 dev->priData.driverName = tmpChipList->chipInst[cnt].driverName; in HdfGetDevHandle()

12