Lines Matching defs:device
445 static int32_t Hi35xxAttach(struct UartHost *host, struct HdfDeviceObject *device)
451 if (device->property == NULL) {
470 ret = UartGetConfigFromHcs(port, device->property);
519 static int32_t HdfUartDeviceBind(struct HdfDeviceObject *device)
522 if (device == NULL) {
525 return (UartHostCreate(device) == NULL) ? HDF_FAILURE : HDF_SUCCESS;
528 int32_t HdfUartDeviceInit(struct HdfDeviceObject *device)
533 if (device == NULL) {
534 HDF_LOGE("%s: device is null", __func__);
537 host = UartHostFromDevice(device);
542 ret = Hi35xxAttach(host, device);
548 HDF_LOGI("%s: uart device init success.", __func__);
552 void HdfUartDeviceRelease(struct HdfDeviceObject *device)
557 if (device == NULL) {
558 HDF_LOGE("%s: device is null", __func__);
561 host = UartHostFromDevice(device);