Lines Matching refs:priv

489      static int32_t ReadLightInfo(struct HdfSBuf *reply, struct LightDevice *priv)
494 if (!HdfSbufReadUint32(reply, &priv->lightNum)) {
499 if (priv->lightInfoEntry != NULL) {
500 OsalMemFree(priv->lightInfoEntry);
501 priv->lightInfoEntry = NULL;
504priv->lightInfoEntry = (struct LightInfo *)OsalMemCalloc(sizeof(*priv->lightInfoEntry) * priv->lig…
505 if (priv->lightInfoEntry == NULL) {
510 pos = priv->lightInfoEntry;
512 for (uint32_t i = 0; i < priv->lightNum; ++i) {
546 struct LightDevice *priv = GetLightDevicePriv();
548 if (priv->lightNum > 0) {
549 *count = priv->lightNum;
550 *lightInfo = priv->lightInfoEntry;
554 (void)OsalMutexLock(&priv->mutex);
558 (void)OsalMutexUnlock(&priv->mutex);
566 (void)OsalMutexUnlock(&priv->mutex);
570 if (ReadLightInfo(reply, priv) != HDF_SUCCESS) {
572 (void)OsalMutexUnlock(&priv->mutex);
577 (void)OsalMutexUnlock(&priv->mutex);
579 *count = priv->lightNum;
580 *lightInfo = priv->lightInfoEntry;
604 struct LightDevice *priv = GetLightDevicePriv();
605 (void)OsalMutexLock(&priv->mutex);
610 (void)OsalMutexUnlock(&priv->mutex);
617 (void)OsalMutexUnlock(&priv->mutex);
624 (void)OsalMutexUnlock(&priv->mutex);
631 (void)OsalMutexUnlock(&priv->mutex);
640 (void)OsalMutexUnlock(&priv->mutex);
663 struct LightDevice *priv = GetLightDevicePriv();
664 (void)OsalMutexLock(&priv->mutex);
669 (void)OsalMutexUnlock(&priv->mutex);
676 (void)OsalMutexUnlock(&priv->mutex);
683 (void)OsalMutexUnlock(&priv->mutex);
692 (void)OsalMutexUnlock(&priv->mutex);
713 struct LightDevice *priv = GetLightDevicePriv();
714 (void)OsalMutexLock(&priv->mutex);
747 (void)OsalMutexUnlock(&priv->mutex);