Home
last modified time | relevance | path

Searched refs:deviceMatchAttr (Results 1 – 25 of 102) sorted by relevance

12345

/ohos5.0/drivers/hdf_core/adapter/uhdf2/shared/src/
H A Ddev_attribute_serialize.c39 if (attribute->deviceMatchAttr != NULL) { in DeviceAttributeSerialize()
41 !HdfSbufWriteString(sbuf, attribute->deviceMatchAttr)) { in DeviceAttributeSerialize()
96 const char *deviceMatchAttr = HdfSbufReadString(sbuf); in DeviceAttributeSet() local
97 if (deviceMatchAttr == NULL) { in DeviceAttributeSet()
101 attribute->deviceMatchAttr = strdup(deviceMatchAttr); in DeviceAttributeSet()
102 if (attribute->deviceMatchAttr == NULL) { in DeviceAttributeSet()
123 if (attribute->deviceMatchAttr == NULL) { in DeviceAttributeDeserialize()
156 if (attribute->deviceMatchAttr != NULL) { in DeviceSerializedAttributeRelease()
157 OsalMemFree((void *)attribute->deviceMatchAttr); in DeviceSerializedAttributeRelease()
/ohos5.0/drivers/hdf_core/adapter/platform/watchdog/
H A Dwatchdog_stm32f4xx.c73 …tic uint32_t GetWatchdogDeviceInfoResource(WatchdogDeviceInfo *device, const char *deviceMatchAttr) in GetWatchdogDeviceInfoResource() argument
76 if (device == NULL || deviceMatchAttr == NULL) { in GetWatchdogDeviceInfoResource()
81 … HCS_FOREACH_CHILD_VARGS(PLATFORM_WATCHDOG_CONFIG, WATCHDOG_FIND_CONFIG, deviceMatchAttr, device); in GetWatchdogDeviceInfoResource()
84 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetWatchdogDeviceInfoResource()
127 if (device == NULL || device->deviceMatchAttr == NULL) {
142 ret = GetWatchdogDeviceInfoResource(watchdogdeviceinfo, device->deviceMatchAttr);
/ohos5.0/drivers/hdf_core/framework/core/shared/include/
H A Dhdf_attribute_macro.h39 const char *deviceMatchAttr; member
57 deviceNode->deviceMatchAttr = HCS_PROP(node, deviceMatchAttr); \
/ohos5.0/drivers/hdf_core/framework/model/usb/src/
H A Dusb_ddk_pnp_loader.c38 const char *deviceMatchAttr, struct UsbPnpNotifyServiceInfo serviceInfo) in UsbDdkPnpLoaderBufCreate() argument
58 if (!HdfSbufWriteString(pnpData, deviceMatchAttr)) { in UsbDdkPnpLoaderBufCreate()
515 … if (devResIface->GetString(node, "deviceMatchAttr", &table->deviceMatchAttr, "") != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdTable()
682 const char *deviceMatchAttr = HdfSbufReadString(data); in UsbDdkPnpLoaderDispatchPnpDevice() local
683 if (deviceMatchAttr == NULL) { in UsbDdkPnpLoaderDispatchPnpDevice()
695 managerInfo.deviceMatchAttr = deviceMatchAttr; in UsbDdkPnpLoaderDispatchPnpDevice()
719 deviceTableListTemp->deviceMatchAttr = idTable->deviceMatchAttr; in UsbDdkPnpLoaderDeviceListAdd()
754 (strcmp(deviceListTablePos->deviceMatchAttr, idTable->deviceMatchAttr) == 0) && in UsbDdkPnpLoaderAddInterface()
789 …pLoaderBufCreate(idTable->moduleName, idTable->serviceName, idTable->deviceMatchAttr, serviceInfo); in UsbDdkPnpLoaderrAddPnpDevice()
868 deviceListTablePos->deviceMatchAttr, serviceInfo); in UsbDdkPnpLoaderRemoveHandle()
/ohos5.0/drivers/hdf_core/adapter/platform/pwm/
H A Dpwm_bes.c99 static uint32_t GetPwmDeviceResource(struct PwmDevice *device, const char *deviceMatchAttr) in GetPwmDeviceResource() argument
103 if (device == NULL || deviceMatchAttr == NULL) { in GetPwmDeviceResource()
109 HCS_FOREACH_CHILD_VARGS(PLATFORM_PWM_CONFIG, PWM_FIND_CONFIG, deviceMatchAttr, resource); in GetPwmDeviceResource()
112 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetPwmDeviceResource()
173 ret = GetPwmDeviceResource(pwmDevice, device->deviceMatchAttr);
H A Dpwm_stm32f4xx.c212 static uint32_t GetPwmDeviceResource(PwmDevice *device, const char *deviceMatchAttr) in GetPwmDeviceResource() argument
216 if (device == NULL || deviceMatchAttr == NULL) { in GetPwmDeviceResource()
222 HCS_FOREACH_CHILD_VARGS(PLATFORM_PWM_CONFIG, PWM_FIND_CONFIG, deviceMatchAttr, resource); in GetPwmDeviceResource()
225 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetPwmDeviceResource()
295 ret = GetPwmDeviceResource(pwmDevice, device->deviceMatchAttr);
/ohos5.0/drivers/hdf_core/adapter/platform/i2c/
H A Di2c_stm32f4xx.c79 …tic uint32_t GetI2cDeviceResource(struct RealI2cResource *i2cResource, const char *deviceMatchAttr) in GetI2cDeviceResource() argument
83 if (i2cResource == NULL || deviceMatchAttr == NULL) { in GetI2cDeviceResource()
89 HCS_FOREACH_CHILD_VARGS(PLATFORM_I2C_CONFIG, I2C_FIND_CONFIG, deviceMatchAttr, resource); in GetI2cDeviceResource()
92 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetI2cDeviceResource()
154 ret = GetI2cDeviceResource(i2cResource, device->deviceMatchAttr); in AttachI2cDevice()
H A Di2c_bes.c155 const char *deviceMatchAttr) in GetI2cDeviceResource() argument
160 if (device == NULL || deviceMatchAttr == NULL) { in GetI2cDeviceResource()
166 …HCS_FOREACH_CHILD_VARGS(PLATFORM_I2C_CONFIG, I2C_FIND_CONFIG, deviceMatchAttr, resource, result, t… in GetI2cDeviceResource()
169 HDF_LOGE("resourceNode %s is NULL", deviceMatchAttr); in GetI2cDeviceResource()
256 ret = GetI2cDeviceResource(i2cDevice, device->deviceMatchAttr); in AttachI2cDevice()
/ohos5.0/drivers/hdf_core/framework/model/usb/include/
H A Dusb_ddk_pnp_loader.h21 const char *deviceMatchAttr; member
59 const char *deviceMatchAttr; member
H A Dusb_pnp_manager.h19 const char *deviceMatchAttr; member
/ohos5.0/drivers/peripheral/usb/hdf_usb/include/
H A Dusb_ddk_pnp_loader.h21 const char *deviceMatchAttr; member
59 const char *deviceMatchAttr; member
H A Dusb_pnp_manager.h19 const char *deviceMatchAttr; member
/ohos5.0/drivers/hdf_core/framework/core/host/src/
H A Dhdf_device_node.c285 devNode->deviceObject.deviceMatchAttr = deviceInfo->deviceMatchAttr; in HdfDeviceNodeNewInstance()
287 …e->deviceObject.property = HcsGetNodeByMatchAttr(HdfGetHcsRootNode(), deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance()
290 deviceInfo->moduleName, deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance()
/ohos5.0/docs/zh-cn/device-dev/driver/
H A Ddriver-platform-mipidsi-develop.md141deviceMatchAttr字段来完成的。只有当deviceNode下的deviceMatchAttr字段与配置属性文件中的match_attr字段完全相同时,驱动才能正确读取配置数据。器件属性…
154 | deviceMatchAttr | 驱动私有数据匹配的关键字,MIPI DSI控制器没有使用,可忽略 |
H A Ddriver-platform-pwm-develop.md113 | deviceMatchAttr | 驱动私有数据匹配的关键字,PWM控制器设置为hisilicon_hi35xx_pwm_X,X代表PWM控制器编号 |
133deviceMatchAttr = "hisilicon_hi35xx_pwm_0"; // 【必要】用于配置控制器私有数据,要与pwm_config.hcs中对应控制器保持一致,具体的控制…
141 deviceMatchAttr = "hisilicon_hi35xx_pwm_1";
165 … match_attr = "hisilicon_hi35xx_pwm_0"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
H A Ddriver-platform-i2c-develop.md172 | deviceMatchAttr | 驱动私有数据匹配的关键字,I2C管理器设置为hdf_platform_i2c_manager |
189 deviceMatchAttr = "hdf_platform_i2c_manager";
197deviceMatchAttr = "hisilicon_hi35xx_i2c"; //【必要】用于配置控制器私有数据,要与i2c_config.hcs中对应控制器保持一致,
211 … match_attr = "hisilicon_hi35xx_i2c"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
H A Ddriver-platform-mmc-develop.md147 | deviceMatchAttr | 驱动私有数据匹配的关键字,MMC控制器控制器设置为hi3516_mmc_X,X代表控制器类型名 |
167deviceMatchAttr = "hi3516_mmc_emmc"; // 【必要】用于配置控制器私有数据,要与mmc_config.hcs中对应控制器保持一致。emmc类型。
175 deviceMatchAttr = "hi3516_mmc_sd"; // SD类型
183 deviceMatchAttr = "hi3516_mmc_sdio"; // SDIO类型
218 … match_attr = "hi3516_mmc_emmc"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
H A Ddriver-platform-watchdog-develop.md123 | deviceMatchAttr | 驱动私有数据匹配的关键字,Watchdog控制器设置为hisilicon_hi35xx_watchdog_X,X代表Watchdog控制器编号 |
140deviceMatchAttr = "hisilicon_hi35xx_watchdog_0"; // 【必要】用于配置控制器私有数据,必须和驱动私有数据配置表watchdog_config…
162 … match_attr = "hisilicon_hi35xx_watchdog_0"; // 【必要】必须和device_info.hcs中的deviceMatchAttr值一致
H A Ddriver-platform-mipicsi-develop.md157 …_info.hcs文件中添加deviceNode描述。deviceNode与配置属性的对应关系是依靠deviceMatchAttr字段来完成的。只有当deviceNode下的deviceMatch…
160 …>本例中MIPI控制器配置属性在源文件中,没有新增配置文件,驱动适配者如有需要,可在device_info.hcs文件的deviceNode增加deviceMatchAttr字段,同时新增mipi…
173 | deviceMatchAttr | 驱动私有数据匹配的关键字,MIPI CSI控制器没有使用,可忽略 |
H A Ddriver-platform-spi-develop.md165 | deviceMatchAttr | 驱动私有数据匹配的关键字,SPI控制器设置为hisilicon_hi35xx_spi_X,X代表SPI控制器编号 |
183 deviceMatchAttr = "hisilicon_hi35xx_spi_0";
191deviceMatchAttr = "hisilicon_hi35xx_spi_1"; // 驱动私有数据匹配的关键字,必须和驱动私有数据配置表中的match_attr值一致。
233 … match_attr = "hisilicon_hi35xx_spi_0"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
H A Ddriver-platform-regulator-develop.md122 | deviceMatchAttr | 驱动私有数据匹配的关键字,Regulator管理器设置为hdf_platform_regulator_manager |
141deviceMatchAttr = "hdf_platform_regulator_manager"; // 【必要】用于配置控制器私有数据,要与regulator_config.hcs中对应控…
148 deviceMatchAttr = "linux_regulator_adapter";
/ohos5.0/docs/zh-cn/device-dev/guide/
H A Ddevice-outerdriver-demo.md43 …要提供给HDF框架使用,包含了Input模型各层驱动注册到HDF框架所必需的信息,开发者无特殊场景需求无需改动。各驱动层私有配置信息通过“deviceMatchAttr”字段与input\_con…
59 deviceMatchAttr = ""; // manager目前不需要私有配置,因此为空
71 deviceMatchAttr = "touch_device1"; // 与私有配置信息中的“match_attr”字段保持一致
83 deviceMatchAttr = "zsj_gt911_5p5"; // 与私有配置信息中的“match_attr”字段保持一致
99deviceMatchAttr”需要与私有配置信息中的“match\_attr”字段保持一致。
/ohos5.0/docs/zh-cn/contribute/
H A DOpenHarmony-hdf-coding-guide.md169 deviceMatchAttr = "";
181 deviceMatchAttr = "sample_config"; // 驱动私有数据匹配的关键字,必须和驱动私有数据配置表中的match_attr值相等
396 #### 【规则】驱动私有配置信息中的matchAttr字段值,必须与device_info.hcs中配置的deviceMatchAttr字段值一致
406 match_attr = "sample_config"; // 该字段的值必须和device_info.hcs中的deviceMatchAttr值一致
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hcs/default/
H A Ddevice_info.hcs15 deviceMatchAttr = "";
/ohos5.0/drivers/hdf_core/framework/sample/config/device_info/
H A Ddevice_info.hcs13 deviceMatchAttr = "sample_uart_5";

12345