Lines Matching defs:blob
703 struct drm_mode_get_blob blob;
706 memclear(blob);
707 blob.blob_id = blob_id;
709 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPROPBLOB, &blob))
712 if (blob.length)
713 blob.data = VOID2U64(drmMalloc(blob.length));
715 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPROPBLOB, &blob)) {
723 r->id = blob.blob_id;
724 r->length = blob.length;
725 r->data = drmAllocCpy(U642VOID(blob.data), 1, blob.length);
728 drmFree(U642VOID(blob.data));
733 get_formats_ptr(const struct drm_format_modifier_blob *blob)
735 return (const uint32_t *)(((uint8_t *)blob) + blob->formats_offset);
739 get_modifiers_ptr(const struct drm_format_modifier_blob *blob)
741 return (const struct drm_format_modifier *)(((uint8_t *)blob) +
742 blob->modifiers_offset);
745 static bool _drmModeFormatModifierGetNext(const drmModePropertyBlobRes *blob,
752 assert(blob && iter);
754 fmt_mod_blob = blob->data;
804 * @blob: valid kernel blob holding formats and modifiers
809 drm_public bool drmModeFormatModifierBlobIterNext(const drmModePropertyBlobRes *blob,
815 if (!blob || !iter)
829 has_fmt = _drmModeFormatModifierGetNext(blob, &tmp);