/drivers/hdf_core/adapter/uhdf2/shared/src/ |
H A D | dev_attribute_serialize.c | 39 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() 98 HDF_LOGE("%s: Read from sbuf failed, deviceMatchAttr is null", __func__); in DeviceAttributeSet() 101 attribute->deviceMatchAttr = strdup(deviceMatchAttr); in DeviceAttributeSet() 102 if (attribute->deviceMatchAttr == NULL) { in DeviceAttributeSet() 103 HDF_LOGE("Read from sbuf failed, strdup deviceMatchAttr fail"); in DeviceAttributeSet() 123 if (attribute->deviceMatchAttr in DeviceAttributeDeserialize() [all...] |
/drivers/hdf_core/framework/model/usb/include/ |
H A D | usb_ddk_pnp_loader.h | 21 const char *deviceMatchAttr; member 59 const char *deviceMatchAttr; member
|
H A D | usb_pnp_manager.h | 19 const char *deviceMatchAttr; member
|
/drivers/peripheral/usb/hdf_usb/include/ |
H A D | usb_ddk_pnp_loader.h | 21 const char *deviceMatchAttr; member 59 const char *deviceMatchAttr; member
|
H A D | usb_pnp_manager.h | 19 const char *deviceMatchAttr; member
|
/drivers/hdf_core/framework/core/shared/include/ |
H A D | hdf_attribute_macro.h | 39 const char *deviceMatchAttr; member 57 deviceNode->deviceMatchAttr = HCS_PROP(node, deviceMatchAttr); \
|
/drivers/hdf_core/adapter/platform/watchdog/ |
H A D | watchdog_stm32f4xx.c | 73 static uint32_t GetWatchdogDeviceInfoResource(WatchdogDeviceInfo *device, const char *deviceMatchAttr) in GetWatchdogDeviceInfoResource() argument 76 if (device == NULL || deviceMatchAttr == NULL) { in GetWatchdogDeviceInfoResource() 77 HDF_LOGE("device or deviceMatchAttr is NULL\r\n"); 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/framework/model/usb/src/ |
H A D | usb_ddk_pnp_loader.c | 38 const char *deviceMatchAttr, struct UsbPnpNotifyServiceInfo serviceInfo) in UsbDdkPnpLoaderBufCreate() 58 if (!HdfSbufWriteString(pnpData, deviceMatchAttr)) { in UsbDdkPnpLoaderBufCreate() 59 HDF_LOGE("%s: write deviceMatchAttr failed!", __func__); in UsbDdkPnpLoaderBufCreate() 515 if (devResIface->GetString(node, "deviceMatchAttr", &table->deviceMatchAttr, "") != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdTable() 516 HDF_LOGE("%s: read deviceMatchAttr fail!", __func__); in UsbDdkPnpLoaderParseIdTable() 682 const char *deviceMatchAttr = HdfSbufReadString(data); in UsbDdkPnpLoaderDispatchPnpDevice() local 683 if (deviceMatchAttr == NULL) { in UsbDdkPnpLoaderDispatchPnpDevice() 695 managerInfo.deviceMatchAttr = deviceMatchAttr; in UsbDdkPnpLoaderDispatchPnpDevice() 37 UsbDdkPnpLoaderBufCreate(const char *moduleName, const char *serviceName, const char *deviceMatchAttr, struct UsbPnpNotifyServiceInfo serviceInfo) UsbDdkPnpLoaderBufCreate() argument [all...] |
/drivers/hdf_core/adapter/platform/i2c/ |
H A D | i2c_stm32f4xx.c | 79 static uint32_t GetI2cDeviceResource(struct RealI2cResource *i2cResource, const char *deviceMatchAttr) in GetI2cDeviceResource() argument 83 if (i2cResource == NULL || deviceMatchAttr == NULL) { in GetI2cDeviceResource() 84 HDF_LOGE("device or deviceMatchAttr is NULL\r\n"); 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 D | i2c_bes.c | 155 const char *deviceMatchAttr) in GetI2cDeviceResource() 160 if (device == NULL || deviceMatchAttr == NULL) { in GetI2cDeviceResource() 161 HDF_LOGE("device or deviceMatchAttr is NULL"); in GetI2cDeviceResource() 166 HCS_FOREACH_CHILD_VARGS(PLATFORM_I2C_CONFIG, I2C_FIND_CONFIG, deviceMatchAttr, resource, result, tempPin); in GetI2cDeviceResource() 169 HDF_LOGE("resourceNode %s is NULL", deviceMatchAttr); in GetI2cDeviceResource() 256 ret = GetI2cDeviceResource(i2cDevice, device->deviceMatchAttr); in AttachI2cDevice() 154 GetI2cDeviceResource(struct I2cDevice *device, const char *deviceMatchAttr) GetI2cDeviceResource() argument
|
/drivers/hdf_core/adapter/platform/pwm/ |
H A D | pwm_bes.c | 99 static uint32_t GetPwmDeviceResource(struct PwmDevice *device, const char *deviceMatchAttr) in GetPwmDeviceResource() argument 103 if (device == NULL || deviceMatchAttr == NULL) { in GetPwmDeviceResource() 104 HDF_LOGE("%s: device or deviceMatchAttr is NULL", __func__); 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 D | pwm_stm32f4xx.c | 212 static uint32_t GetPwmDeviceResource(PwmDevice *device, const char *deviceMatchAttr)
in GetPwmDeviceResource() argument 216 if (device == NULL || deviceMatchAttr == NULL) {
in GetPwmDeviceResource() 217 HDF_LOGE("%s: device or deviceMatchAttr is NULL", __func__);
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/interfaces/inner_api/host/shared/ |
H A D | hdf_device_info.h | 40 const char *deviceMatchAttr; member
|
H A D | hdf_device_desc.h | 101 const char *deviceMatchAttr; member
|
/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_device_node.c | 285 devNode->deviceObject.deviceMatchAttr = deviceInfo->deviceMatchAttr; in HdfDeviceNodeNewInstance() 287 devNode->deviceObject.property = HcsGetNodeByMatchAttr(HdfGetHcsRootNode(), deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance() 290 deviceInfo->moduleName, deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance()
|
H A D | hdf_device_object.c | 178 deviceObject->deviceMatchAttr = NULL; in HdfDeviceObjectConstruct()
|
/drivers/hdf_core/framework/core/shared/src/ |
H A D | hdf_device_info.c | 31 deviceInfo->deviceMatchAttr = NULL; in HdfDeviceInfoConstruct()
|
/drivers/hdf_core/framework/core/common/src/ |
H A D | hdf_attribute_macro.c | 141 deviceNodeInfo->deviceMatchAttr = deviceNode->deviceMatchAttr; in GetDeviceNodeInfo()
|
H A D | hdf_attribute.c | 26 #define ATTR_DEV_MATCHATTR "deviceMatchAttr" 165 HcsGetString(deviceNode, ATTR_DEV_MATCHATTR, &deviceNodeInfo->deviceMatchAttr, NULL); in GetDeviceNodeInfo()
|
/drivers/hdf_core/adapter/platform/spi/ |
H A D | spi_stm32f4xx.c | 437 static int32_t GetSpiDeviceResource(SpiDevice *spiDevice, const char *deviceMatchAttr)
in GetSpiDeviceResource() argument 441 if (spiDevice == NULL || deviceMatchAttr == NULL) {
in GetSpiDeviceResource() 442 HDF_LOGE("device or deviceMatchAttr is NULL\r\n");
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);
|
H A D | spi_bes.c | 447 static int32_t GetSpiDeviceResource(struct SpiDevice *spiDevice, const char *deviceMatchAttr) in GetSpiDeviceResource() argument 452 if (spiDevice == NULL || deviceMatchAttr == NULL) { in GetSpiDeviceResource() 453 HDF_LOGE("device or deviceMatchAttr is NULL\r\n"); 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/ |
H A D | uart_stm32f4xx.c | 446 static uint32_t GetUartDeviceResource(UartDevice *device, const char *deviceMatchAttr)
in GetUartDeviceResource() argument 450 if (device == NULL || deviceMatchAttr == NULL) {
in GetUartDeviceResource() 451 HDF_LOGE("device or deviceMatchAttr is NULL\r\n");
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);
|
H A D | uart_bes.c | 482 static uint32_t GetUartDeviceResource(struct UartDevice *device, const char *deviceMatchAttr) in GetUartDeviceResource() argument 486 if (device == NULL || deviceMatchAttr == NULL) { in GetUartDeviceResource() 487 HDF_LOGE("device or deviceMatchAttr is NULL\r\n"); 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);
|
/drivers/hdf_core/framework/model/storage/src/mmc/ |
H A D | mmc_core.c | 1006 HCS_FOREACH_CHILD_VARGS(MMC_CNTLR_PARSE_CONFIG, MMC_FIND_CONFIG, obj->deviceMatchAttr, cntlr); in MmcCntlrParse()
|