Lines Matching defs:count
130 static int32_t GetLightInfo(struct LightInfo **lightInfo, uint32_t *count)
132 if ((lightInfo == NULL) || (count == NULL)) {
140 *count = priv->lightNum;
170 *count = priv->lightNum;
260 static int32_t OnMultiLightsValidityJudgment(uint32_t lightId, const struct LightColor *colors, const uint32_t count)
272 if (count == 0 || count > MULTI_LIGHT_MAX_NUMBER) {
273 HDF_LOGE("%{public}s: count out of range", __func__);
280 static int32_t OnMultiLights(uint32_t lightId, const struct LightColor *colors, const uint32_t count)
285 ret = OnMultiLightsValidityJudgment(lightId, colors, count);
294 sbuf = HdfSbufObtain(sizeof(struct LightColor) * count);
318 if (!HdfSbufWriteInt32(sbuf, count)) {
319 HDF_LOGE("%{public}s: light write count failed", __func__);