Lines Matching defs:device
607 static int32_t I2sInit(struct I2sCntlr *cntlr, const struct HdfDeviceObject *device)
612 if (device->property == NULL || cntlr == NULL) {
623 ret = I2sGetConfigInfoFromHcs(cntlr, device->property);
630 ret = I2sGetRegCfgFromHcs(configInfo, device->property);
659 static int32_t HdfI2sDeviceBind(struct HdfDeviceObject *device)
661 if (device == NULL) {
662 I2S_PRINT_LOG_ERR("%s: device NULL", __func__);
665 return (I2sCntlrCreate(device) == NULL) ? HDF_FAILURE : HDF_SUCCESS;
668 static int32_t HdfI2sDeviceInit(struct HdfDeviceObject *device)
672 if (device == NULL) {
673 I2S_PRINT_LOG_ERR("%s: device NULL", __func__);
677 cntlr = I2sCntlrFromDevice(device);
683 int32_t ret = I2sInit(cntlr, device);
691 static void HdfI2sDeviceRelease(struct HdfDeviceObject *device)
694 if (device == NULL) {
695 I2S_PRINT_LOG_ERR("%s: device is NULL", __func__);
699 cntlr = I2sCntlrFromDevice(device);