/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | spi_driver_test.c | 19 static struct SpiTestConfig g_config; variable 35 HDF_LOGD("SpiTestDispatch: sizeof(g_config): %d, len: %d", sizeof(g_config), g_config.len); in SpiTestDispatch() 36 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in SpiTestDispatch() 40 if (!HdfSbufWriteBuffer(reply, g_config.wbuf, g_config.len)) { in SpiTestDispatch() 83 ret = face->GetUint8Array(node, "wbuf", g_config.wbuf, config->len, 0); in SpiTestInitFromHcs() 109 ret = SpiTestInitFromHcs(&g_config, device->property); in SpiTestBind() 133 OsalMemFree(g_config.wbuf); in SpiTestRelease() 134 g_config.wbuf = NULL; in SpiTestRelease()
|
D | uart_driver_test.c | 16 static struct UartTestConfig g_config; variable 27 if (!HdfSbufWriteUint32(reply, g_config.port)) { in UartTestDispatch() 31 if (!HdfSbufWriteUint32(reply, g_config.len)) { in UartTestDispatch() 35 if (!HdfSbufWriteBuffer(reply, g_config.wbuf, g_config.len)) { in UartTestDispatch() 103 ret = UartTestReadConfig(&g_config, device->property); in UartTestBind() 126 OsalMemFree(g_config.wbuf); in UartTestRelease() 127 g_config.wbuf = NULL; in UartTestRelease()
|
D | watchdog_driver_test.c | 17 static struct WatchdogTestConfig g_config; variable 29 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in WatchdogTestDispatch() 84 ret = WatchdogTestReadConfig(&g_config, device->property); in WatchdogTestBind()
|
D | dac_driver_test.c | 17 static struct DacTestConfig g_config; variable 30 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in DacTestDispatch() 96 ret = DacTestReadConfig(&g_config, device->property); in DacTestBind()
|
D | adc_driver_test.c | 17 static struct AdcTestConfig g_config; variable 29 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in AdcTestDispatch() 95 ret = AdcTestReadConfig(&g_config, device->property); in AdcTestBind()
|
D | i3c_driver_test.c | 17 static struct I3cTestConfig g_config; variable 30 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in I3cTestDispatch() 95 ret = I3cTestReadConfig(&g_config, device->property); in I3cTestBind()
|
D | timer_driver_test.c | 17 static struct TimerTestConfig g_config; variable 28 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in TimerTestDispatch() 88 ret = TimerTestReadConfig(&g_config, device->property); in TimerTestBind()
|
D | i2c_driver_test.c | 15 static struct I2cTestConfig g_config; variable 28 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in I2cTestDispatch() 94 ret = I2cTestReadConfig(&g_config, device->property); in I2cTestBind()
|
D | pin_driver_test.c | 19 static struct PinTestConfig g_config; variable 30 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in PinTestDispatch() 96 ret = PinTestReadConfig(&g_config, device->property); in PinTestBind()
|
D | pwm_driver_test.c | 17 static struct PwmTestConfig g_config; variable 28 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in PwmTestDispatch() 102 ret = PwmTestReadConfig(&g_config, device->property); in PwmTestBind()
|
D | pcie_driver_test.c | 17 static struct PcieTestConfig g_config; variable 29 if (!HdfSbufWriteUint32(reply, g_config.busNum)) { in PcieTestDispatch() 52 ret = drsOps->GetUint32(node, "busNum", &(g_config.busNum), 0); in PcieTestReadConfig()
|
D | gpio_driver_test.c | 16 static struct GpioTestConfig g_config; variable 29 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in GpioTestDispatch() 131 ret = GpioTestReadConfig(&g_config, device->property); in GpioTestBind()
|
D | rtc_driver_test.c | 20 static struct RtcTestConfig g_config; variable 31 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in RtcTestDispatch() 131 ret = RtcTestReadConfig(&g_config, device->property); in RtcTestBind()
|
/drivers/hdf_core/framework/test/unittest/platform/config/ |
D | can_test_config.c | 15 static struct CanTestConfig g_config; variable 32 if (!HdfSbufWriteBuffer(reply, &g_config, sizeof(g_config))) { in CanTestDispatch() 88 CanTestSetDftConfig(&g_config); in CanTestBind() 90 ret = CanTestReadConfig(&g_config, device->property); in CanTestBind()
|