Lines Matching defs:sbuf
86 HDF_LOGE("%s: sbuf read lightNum failed", __func__);
148 HDF_LOGE("%s: get sbuf failed", __func__);
283 struct HdfSBuf *sbuf = NULL;
294 sbuf = HdfSbufObtain(sizeof(struct LightColor) * count);
295 if (sbuf == NULL) {
300 if (!HdfSbufWriteInt32(sbuf, lightId)) {
306 if (!HdfSbufWriteInt32(sbuf, LIGHT_OPS_IO_CMD_ENABLE_MULTI_LIGHTS)) {
312 if (!HdfSbufWriteBuffer(sbuf, colors, sizeof(*colors))) {
318 if (!HdfSbufWriteInt32(sbuf, count)) {
324 ret = SendLightMsg(LIGHT_IO_CMD_OPS, sbuf, NULL);
330 HdfSbufRecycle(sbuf);