Lines Matching refs:drvData
125 struct Apds9960DrvData *drvData = (struct Apds9960DrvData *)OsalMemCalloc(sizeof(*drvData)); in Apds9960BindDriver() local
126 if (drvData == NULL) { in Apds9960BindDriver()
131 drvData->ioService.Dispatch = DispatchApds9960; in Apds9960BindDriver()
132 drvData->device = device; in Apds9960BindDriver()
133 device->service = &drvData->ioService; in Apds9960BindDriver()
134 g_apds9960DrvData = drvData; in Apds9960BindDriver()
145 struct Apds9960DrvData *drvData = (struct Apds9960DrvData *)device->service; in Apds996InitDriver() local
146 CHECK_NULL_PTR_RETURN_VALUE(drvData, HDF_ERR_INVALID_PARAM); in Apds996InitDriver()
154 drvData->sensorCfg = ProximityCreateCfgData(device->property); in Apds996InitDriver()
155 if (drvData->sensorCfg == NULL || drvData->sensorCfg->root == NULL) { in Apds996InitDriver()
168 ret = InitApda9960(drvData->sensorCfg); in Apds996InitDriver()
182 struct Apds9960DrvData *drvData = (struct Apds9960DrvData *)device->service; in Apds996ReleaseDriver() local
183 CHECK_NULL_PTR_RETURN(drvData); in Apds996ReleaseDriver()
185 if (drvData->sensorCfg != NULL) { in Apds996ReleaseDriver()
186 ProximityReleaseCfgData(drvData->sensorCfg); in Apds996ReleaseDriver()
187 drvData->sensorCfg = NULL; in Apds996ReleaseDriver()
189 OsalMemFree(drvData); in Apds996ReleaseDriver()