+ struct dma_buf_sync sync = { .flags = DMA_BUF_SYNC_END | map->sync_flags };
+ int i, ret;
+
+ for (i = 0; i < map->nb_regions; i++) {
+ ret = ioctl(map->object[i], DMA_BUF_IOCTL_SYNC, &sync);
+ if (ret)
+ av_log(hwfc, AV_LOG_ERROR, "Failed to issue ioctl sync to DRM object "
+ "%d: %d.\n", map->object[i], errno);