Lines Matching refs:device
147 static int32_t GyroBmi160BindDriver(struct HdfDeviceObject *device)
149 CHECK_NULL_PTR_RETURN_VALUE(device, HDF_ERR_INVALID_PARAM);
158 drvData->device = device;
159 device->service = &drvData->ioService;
165 static int32_t GyroBmi160InitDriver(struct HdfDeviceObject *device)
170 CHECK_NULL_PTR_RETURN_VALUE(device, HDF_ERR_INVALID_PARAM);
171 struct Bmi160DrvData *drvData = (struct Bmi160DrvData *)device->service;
180 drvData->sensorCfg = GyroCreateCfgData(device->property);
203 static void GyroBmi160ReleaseDriver(struct HdfDeviceObject *device)
205 CHECK_NULL_PTR_RETURN(device);
207 struct Bmi160DrvData *drvData = (struct Bmi160DrvData *)device->service;