Home
last modified time | relevance | path

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

12

/drivers/hdf_core/adapter/uhdf2/shared/src/
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()
148 if (attribute->deviceMatchAttr != NULL) { in DeviceSerializedAttributeRelease()
149 OsalMemFree((void *)attribute->deviceMatchAttr); in DeviceSerializedAttributeRelease()
/drivers/hdf_core/framework/core/shared/include/
Dhdf_attribute_macro.h39 const char *deviceMatchAttr; member
57 deviceNode->deviceMatchAttr = HCS_PROP(node, deviceMatchAttr); \
/drivers/hdf_core/framework/model/usb/include/
Dusb_ddk_pnp_loader.h21 const char *deviceMatchAttr; member
59 const char *deviceMatchAttr; member
Dusb_pnp_manager.h19 const char *deviceMatchAttr; member
/drivers/hdf_core/adapter/platform/watchdog/
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);
/drivers/hdf_core/adapter/uhdf2/hcs/default/
Ddevice_info.hcs15 deviceMatchAttr = "";
/drivers/hdf_core/framework/sample/config/device_info/
Ddevice_info.hcs13 deviceMatchAttr = "sample_uart_5";
/drivers/hdf_core/adapter/platform/pwm/
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);
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);
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/
DLiteos_Device_Info_Hcs.template12 deviceMatchAttr = ""; // ����˽������ƥ��Ĺؼ��֣����������˽���������ñ��е�match_attrֵ���
Dhdf_driver_manager_config.template15 deviceMatchAttr = "";
Dexists_model_hcs_info.template10deviceMatchAttr = ""; // Keyword matching the private data of the driver. Th…
Ddevice_info_hcs.template12deviceMatchAttr = ""; // Keyword matching the private data of the driver.…
/drivers/hdf_core/framework/core/host/src/
Dhdf_device_node.c273 devNode->deviceObject.deviceMatchAttr = deviceInfo->deviceMatchAttr; in HdfDeviceNodeNewInstance()
275 …e->deviceObject.property = HcsGetNodeByMatchAttr(HdfGetHcsRootNode(), deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance()
278 deviceInfo->moduleName, deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance()
/drivers/hdf_core/framework/model/usb/src/
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()
/drivers/hdf_core/adapter/platform/i2c/
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()
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()
/drivers/hdf_core/interfaces/inner_api/host/shared/
Dhdf_device_info.h40 const char *deviceMatchAttr; member
Dhdf_device_desc.h98 const char *deviceMatchAttr; member
/drivers/hdf_core/framework/core/shared/src/
Dhdf_device_info.c31 deviceInfo->deviceMatchAttr = NULL; in HdfDeviceInfoConstruct()
/drivers/hdf_core/framework/core/common/src/
Dhdf_attribute_macro.c141 deviceNodeInfo->deviceMatchAttr = deviceNode->deviceMatchAttr; in GetDeviceNodeInfo()
/drivers/hdf_core/adapter/platform/spi/
Dspi_stm32f4xx.c437 static int32_t GetSpiDeviceResource(SpiDevice *spiDevice, const char *deviceMatchAttr) in GetSpiDeviceResource() argument
441 if (spiDevice == NULL || deviceMatchAttr == NULL) { in GetSpiDeviceResource()
447 …HCS_FOREACH_CHILD_VARGS(PLATFORM_SPI_CONFIG, SPI_FIND_CONFIG, deviceMatchAttr, resource, spiDevice… in GetSpiDeviceResource()
450 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetSpiDeviceResource()
516 ret = GetSpiDeviceResource(spiDevice, device->deviceMatchAttr);
Dspi_bes.c447 static int32_t GetSpiDeviceResource(struct SpiDevice *spiDevice, const char *deviceMatchAttr) in GetSpiDeviceResource() argument
452 if (spiDevice == NULL || deviceMatchAttr == NULL) { in GetSpiDeviceResource()
458 HCS_FOREACH_CHILD_VARGS(PLATFORM_SPI_CONFIG, SPI_FIND_CONFIG, deviceMatchAttr, resource); in GetSpiDeviceResource()
462 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetSpiDeviceResource()
579 ret = GetSpiDeviceResource(spiDevice, device->deviceMatchAttr);
/drivers/hdf_core/adapter/platform/uart/
Duart_bes.c482 static uint32_t GetUartDeviceResource(struct UartDevice *device, const char *deviceMatchAttr) in GetUartDeviceResource() argument
486 if (device == NULL || deviceMatchAttr == NULL) { in GetUartDeviceResource()
492 HCS_FOREACH_CHILD_VARGS(PLATFORM_UART_CONFIG, UART_FIND_CONFIG, deviceMatchAttr, resource); in GetUartDeviceResource()
495 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetUartDeviceResource()
585 ret = GetUartDeviceResource(uartDevice, device->deviceMatchAttr);
Duart_stm32f4xx.c446 static uint32_t GetUartDeviceResource(UartDevice *device, const char *deviceMatchAttr) in GetUartDeviceResource() argument
450 if (device == NULL || deviceMatchAttr == NULL) { in GetUartDeviceResource()
456 HCS_FOREACH_CHILD_VARGS(PLATFORM_UART_CONFIG, UART_FIND_CONFIG, deviceMatchAttr, resource); in GetUartDeviceResource()
459 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetUartDeviceResource()
539 ret = GetUartDeviceResource(uartDevice, device->deviceMatchAttr);

12