/drivers/hdf_core/framework/support/platform/include/uart/ |
D | uart_core.h | 25 struct UartHost { struct 35 int32_t (*Init)(struct UartHost *host); argument 36 int32_t (*Deinit)(struct UartHost *host); 37 int32_t (*Read)(struct UartHost *host, uint8_t *data, uint32_t size); 38 int32_t (*Write)(struct UartHost *host, uint8_t *data, uint32_t size); 39 int32_t (*GetBaud)(struct UartHost *host, uint32_t *baudRate); 40 int32_t (*SetBaud)(struct UartHost *host, uint32_t baudRate); 41 int32_t (*GetAttribute)(struct UartHost *host, struct UartAttribute *attribute); 42 int32_t (*SetAttribute)(struct UartHost *host, struct UartAttribute *attribute); 43 int32_t (*SetTransMode)(struct UartHost *host, enum UartTransMode mode); [all …]
|
/drivers/hdf_core/framework/support/platform/src/uart/ |
D | uart_if.c | 51 ret = UartHostRequest((struct UartHost *)handle); in UartOpen() 67 ret = UartHostRelease((struct UartHost *)handle); in UartClose() 76 return UartHostRead((struct UartHost *)handle, data, size); in UartRead() 81 return UartHostWrite((struct UartHost *)handle, data, size); in UartWrite() 86 return UartHostGetBaud((struct UartHost *)handle, baudRate); in UartGetBaud() 91 return UartHostSetBaud((struct UartHost *)handle, baudRate); in UartSetBaud() 96 return UartHostGetAttribute((struct UartHost *)handle, attribute); in UartGetAttribute() 101 return UartHostSetAttribute((struct UartHost *)handle, attribute); in UartSetAttribute() 106 return UartHostSetTransMode((struct UartHost *)handle, mode); in UartSetTransMode()
|
D | uart_core.c | 16 int32_t UartHostRequest(struct UartHost *host) in UartHostRequest() 46 int32_t UartHostRelease(struct UartHost *host) in UartHostRelease() 70 void UartHostDestroy(struct UartHost *host) in UartHostDestroy() 79 struct UartHost *UartHostCreate(struct HdfDeviceObject *device) in UartHostCreate() 81 struct UartHost *host = NULL; in UartHostCreate() 88 host = (struct UartHost *)OsalMemCalloc(sizeof(*host)); in UartHostCreate()
|
D | uart_service.c | 17 static int32_t UartIoRead(struct UartHost *host, struct HdfSBuf *data, struct HdfSBuf *reply) in UartIoRead() 56 static int32_t UartIoWrite(struct UartHost *host, struct HdfSBuf *data) in UartIoWrite() 68 static int32_t UartIoGetBaud(struct UartHost *host, struct HdfSBuf *reply) in UartIoGetBaud() 85 static int32_t UartIoSetBaud(struct UartHost *host, struct HdfSBuf *data) in UartIoSetBaud() 96 static int32_t UartIoGetAttribute(struct UartHost *host, struct HdfSBuf *reply) in UartIoGetAttribute() 113 static int32_t UartIoSetAttribute(struct UartHost *host, struct HdfSBuf *data) in UartIoSetAttribute() 131 static int32_t UartIoSetTransMode(struct UartHost *host, struct HdfSBuf *data) in UartIoSetTransMode() 144 struct UartHost *host = NULL; in UartIoDispatch() 161 host = (struct UartHost *)client->device->service; in UartIoDispatch()
|
/drivers/hdf_core/framework/sample/platform/uart/src/ |
D | uart_dev_sample.c | 22 struct UartHost *host = NULL; in UartSampleDevOpen() 28 host = (struct UartHost *)drv->priv; in UartSampleDevOpen() 39 struct UartHost *host = NULL; in UartSampleRelease() 45 host = (struct UartHost *)drv->priv; in UartSampleRelease() 57 struct UartHost *host = NULL; in UartSampleRead() 63 host = (struct UartHost *)drv->priv; in UartSampleRead() 85 struct UartHost *host = NULL; in UartSampleWrite() 91 host = (struct UartHost *)drv->priv; in UartSampleWrite() 115 struct UartHost *host = NULL; in UartSampleDevIoctl() 120 host = (struct UartHost *)drv->priv; in UartSampleDevIoctl() [all …]
|
D | uart_sample.c | 44 static int32_t SampleUartHostInit(struct UartHost *host); 45 static int32_t SampleUartHostDeinit(struct UartHost *host); 46 static int32_t SampleUartHostWrite(struct UartHost *host, uint8_t *data, uint32_t size); 47 static int32_t SampleUartHostSetBaud(struct UartHost *host, uint32_t baudRate); 48 static int32_t SampleUartHostGetBaud(struct UartHost *host, uint32_t *baudRate); 64 static int32_t SampleUartHostInit(struct UartHost *host) in SampleUartHostInit() 74 static int32_t SampleUartHostDeinit(struct UartHost *host) in SampleUartHostDeinit() 84 static int32_t SampleUartHostWrite(struct UartHost *host, uint8_t *data, uint32_t size) in SampleUartHostWrite() 107 static int32_t SampleUartHostSetBaud(struct UartHost *host, uint32_t baudRate) in SampleUartHostSetBaud() 137 static int32_t SampleUartHostGetBaud(struct UartHost *host, uint32_t *baudRate) in SampleUartHostGetBaud() [all …]
|
D | uart_dispatch_sample.c | 48 struct UartHost *uartHost = (struct UartHost *)client->device->service; in SampleDispatch()
|
/drivers/hdf_core/adapter/khdf/liteos/platform/src/ |
D | uart_dev.c | 44 struct UartHost *host = NULL; in UartDevOpen() 51 host = (struct UartHost *)drv->priv; in UartDevOpen() 57 struct UartHost *host = NULL; in UartDevRelease() 64 host = (struct UartHost *)drv->priv; in UartDevRelease() 74 struct UartHost *host = NULL; in UartDevRead() 81 host = (struct UartHost *)drv->priv; in UartDevRead() 104 struct UartHost *host = NULL; in UartDevWrite() 111 host = (struct UartHost *)drv->priv; in UartDevWrite() 132 static int32_t UartCfgAttr(struct UartHost *host, unsigned long arg) in UartCfgAttr() 153 struct UartHost *host = NULL; in UartDevIoctl() [all …]
|
/drivers/hdf_core/adapter/platform/uart/ |
D | uart_wm.c | 209 static int32_t UartHostDevInit(struct UartHost *host); 210 static int32_t UartHostDevDeinit(struct UartHost *host); 211 static int32_t UartHostDevWrite(struct UartHost *host, uint8_t *data, uint32_t size); 212 static int32_t UartHostDevSetBaud(struct UartHost *host, uint32_t baudRate); 213 static int32_t UartHostDevGetBaud(struct UartHost *host, uint32_t *baudRate); 214 static int32_t UartHostDevRead(struct UartHost *host, uint8_t *data, uint32_t size); 215 static int32_t UartHostDevSetAttribute(struct UartHost *host, struct UartAttribute *attribute); 216 static int32_t UartHostDevGetAttribute(struct UartHost *host, struct UartAttribute *attribute); 217 static int32_t UartHostDevSetTransMode(struct UartHost *host, enum UartTransMode mode); 232 static int InitUartDevice(struct UartHost *host) in InitUartDevice() [all …]
|
D | uart_bes.c | 401 static int32_t UartHostDevInit(struct UartHost *host); 402 static int32_t UartHostDevDeinit(struct UartHost *host); 403 static int32_t UartHostDevWrite(struct UartHost *host, uint8_t *data, uint32_t size); 404 static int32_t UartHostDevSetBaud(struct UartHost *host, uint32_t baudRate); 405 static int32_t UartHostDevGetBaud(struct UartHost *host, uint32_t *baudRate); 406 static int32_t UartHostDevRead(struct UartHost *host, uint8_t *data, uint32_t size); 407 static int32_t UartHostDevSetAttribute(struct UartHost *host, struct UartAttribute *attribute); 408 static int32_t UartHostDevGetAttribute(struct UartHost *host, struct UartAttribute *attribute); 409 static int32_t UartHostDevSetTransMode(struct UartHost *host, enum UartTransMode mode); 424 static int InitUartDevice(struct UartHost *host) in InitUartDevice() [all …]
|
D | uart_stm32f4xx.c | 302 static int32_t UartHostDevInit(struct UartHost *host); 303 static int32_t UartHostDevDeinit(struct UartHost *host); 304 static int32_t UartHostDevWrite(struct UartHost *host, uint8_t *data, uint32_t size); 305 static int32_t UartHostDevSetBaud(struct UartHost *host, uint32_t baudRate); 306 static int32_t UartHostDevGetBaud(struct UartHost *host, uint32_t *baudRate); 307 static int32_t UartHostDevRead(struct UartHost *host, uint8_t *data, uint32_t size); 308 static int32_t UartHostDevSetAttribute(struct UartHost *host, struct UartAttribute *attribute); 309 static int32_t UartHostDevGetAttribute(struct UartHost *host, struct UartAttribute *attribute); 310 static int32_t UartHostDevSetTransMode(struct UartHost *host, enum UartTransMode mode); 324 static int InitUartDevice(struct UartHost *host) in InitUartDevice() [all …]
|
D | uart_gr5xx.c | 175 static int32_t UartHostDevRead(struct UartHost *host, uint8_t *data, uint32_t size) in UartHostDevRead() 214 static int32_t UartHostDevWrite(struct UartHost *host, uint8_t *data, uint32_t size) in UartHostDevWrite() 241 static int32_t UartHostDevGetBaud(struct UartHost *host, uint32_t *baudRate) in UartHostDevGetBaud() 260 static int32_t UartHostDevSetBaud(struct UartHost *host, uint32_t baudRate) in UartHostDevSetBaud() 292 static int32_t UartHostDevGetAttribute(struct UartHost *host, struct UartAttribute *attribute) in UartHostDevGetAttribute() 310 static int32_t UartHostDevSetAttribute(struct UartHost *host, struct UartAttribute *attribute) in UartHostDevSetAttribute() 337 static int32_t UartHostDevSetTransMode(struct UartHost *host, enum UartTransMode mode) in UartHostDevSetTransMode() 402 static int32_t UartHostDevInit(struct UartHost *host) in UartHostDevInit() 453 static int32_t UartHostDevDeinit(struct UartHost *host) in UartHostDevDeinit() 476 static int32_t UartHostDevPollEvent(struct UartHost *host, void *filep, void *table) in UartHostDevPollEvent() [all …]
|
D | uart_asr.c | 228 static int32_t UartHostDevRead(struct UartHost *host, uint8_t *data, uint32_t size) in UartHostDevRead() 266 static int32_t UartHostDevWrite(struct UartHost *host, uint8_t *data, uint32_t size) in UartHostDevWrite() 293 static int32_t UartHostDevGetBaud(struct UartHost *host, uint32_t *baudRate) in UartHostDevGetBaud() 312 static int32_t UartHostDevSetBaud(struct UartHost *host, uint32_t baudRate) in UartHostDevSetBaud() 344 static int32_t UartHostDevGetAttribute(struct UartHost *host, struct UartAttribute *attribute) in UartHostDevGetAttribute() 362 static int32_t UartHostDevSetAttribute(struct UartHost *host, struct UartAttribute *attribute) in UartHostDevSetAttribute() 389 static int32_t UartHostDevSetTransMode(struct UartHost *host, enum UartTransMode mode) in UartHostDevSetTransMode() 446 static int32_t UartHostDevInit(struct UartHost *host) in UartHostDevInit() 495 static int32_t UartHostDevDeinit(struct UartHost *host) in UartHostDevDeinit() 579 static int32_t UartDevAttach(struct UartHost *host, struct HdfDeviceObject *device) in UartDevAttach() [all …]
|
/drivers/hdf_core/framework/sample/platform/uart/include/ |
D | uart_dev_sample.h | 26 void AddUartDevice(struct UartHost *host); 27 void RemoveUartDevice(struct UartHost *host);
|
/drivers/hdf_core/adapter/khdf/liteos/platform/include/ |
D | uart_dev.h | 70 void UartAddDev(struct UartHost *host); 71 void UartRemoveDev(struct UartHost *host);
|
/drivers/hdf_core/adapter/khdf/linux/platform/uart/ |
D | uart_adapter.c | 39 static int32_t UartAdapterInit(struct UartHost *host) in UartAdapterInit() 65 static int32_t UartAdapterDeInit(struct UartHost *host) in UartAdapterDeInit() 85 static int32_t UartAdapterRead(struct UartHost *host, uint8_t *data, uint32_t size) in UartAdapterRead() 114 static int32_t UartAdapterWrite(struct UartHost *host, uint8_t *data, uint32_t size) in UartAdapterWrite() 209 static int32_t UartAdapterGetBaud(struct UartHost *host, uint32_t *baudRate) in UartAdapterGetBaud() 281 static int32_t UartAdapterSetBaud(struct UartHost *host, uint32_t baudRate) in UartAdapterSetBaud() 380 static int32_t UartAdapterGetAttribute(struct UartHost *host, struct UartAttribute *attribute) in UartAdapterGetAttribute() 408 static int32_t UartAdapterSetAttribute(struct UartHost *host, struct UartAttribute *attribute) in UartAdapterSetAttribute() 453 static int32_t UartAdapterSetTransMode(struct UartHost *host, enum UartTransMode mode) in UartAdapterSetTransMode() 486 struct UartHost *host = NULL; in HdfUartInit() [all …]
|