Lines Matching defs:data
2029 * drm_edid_is_valid - sanity check EDID data
2030 * @edid: EDID data
2034 * Return: True if the EDID data is valid, false otherwise.
2055 * drm_edid_valid - sanity check EDID data
2056 * @drm_edid: EDID data
2061 * Return: True if the EDID data is valid, false otherwise.
2127 * @data: I2C device adapter
2128 * @buf: EDID data buffer to be filled
2130 * @len: EDID data buffer length to fetch
2137 drm_do_probe_ddc_edid(void *data, u8 *buf, unsigned int block, size_t len)
2139 struct i2c_adapter *adapter = data;
2202 /* Calculate real checksum for the last edid extension block data */
2467 * drm_do_get_edid - get EDID data using a custom EDID block read function
2470 * @context: private data passed to the block read function
2474 * to get EDID data using a custom block read function.
2495 * drm_edid_raw - Get a pointer to the raw EDID data.
2498 * Get a pointer to the raw EDID data.
2502 * Return: Pointer to raw EDID data.
2520 /* Allocate struct drm_edid container *without* duplicating the edid data */
2539 * @edid: Pointer to raw EDID data
2543 * the actual size that has been allocated for the data. There is no validation
2544 * of the raw EDID data against the size, but at least the EDID base block must
2617 * drm_get_edid - get EDID data, if available
2621 * Poke the given I2C channel to grab EDID data if possible. If found,
2644 * drm_edid_read_custom - Read EDID data using given EDID block read function
2647 * @context: Private data passed to the block read function
2651 * to get EDID data using a custom block read function.
2690 * drm_edid_read_ddc - Read EDID data using given I2C adapter
2727 * drm_edid_read - Read EDID data using connector's I2C adapter
2824 * drm_get_edid_switcheroo - get EDID data for a vga_switcheroo output
2853 * drm_edid_read_switcheroo - get EDID data for a vga_switcheroo output
3016 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.pad1) != 2);
3017 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.type) != 3);
3020 descriptor->data.other_data.pad1 == 0 &&
3021 descriptor->data.other_data.type == type;
3091 is_rb(const struct detailed_timing *descriptor, void *data)
3093 bool *res = data;
3098 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.flags) != 10);
3099 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.formula.cvt.flags) != 15);
3101 if (descriptor->data.other_data.data.range.flags == DRM_EDID_CVT_SUPPORT_FLAG &&
3102 descriptor->data.other_data.data.range.formula.cvt.flags & DRM_EDID_CVT_FLAGS_REDUCED_BLANKING)
3121 find_gtf2(const struct detailed_timing *descriptor, void *data)
3123 const struct detailed_timing **res = data;
3128 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.flags) != 10);
3130 if (descriptor->data.other_data.data.range.flags == DRM_EDID_SECONDARY_GTF_SUPPORT_FLAG)
3142 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.formula.gtf2.hfreq_start_khz) != 12);
3144 return descriptor ? descriptor->data.other_data.data.range.formula.gtf2.hfreq_start_khz * 2 : 0;
3154 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.formula.gtf2.c) != 13);
3156 return descriptor ? descriptor->data.other_data.data.range.formula.gtf2.c : 0;
3166 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.formula.gtf2.m) != 14);
3168 return descriptor ? le16_to_cpu(descriptor->data.other_data.data.range.formula.gtf2.m) : 0;
3178 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.formula.gtf2.k) != 16);
3180 return descriptor ? descriptor->data.other_data.data.range.formula.gtf2.k : 0;
3190 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.formula.gtf2.j) != 17);
3192 return descriptor ? descriptor->data.other_data.data.range.formula.gtf2.j : 0;
3196 get_timing_level(const struct detailed_timing *descriptor, void *data)
3198 int *res = data;
3203 BUILD_BUG_ON(offsetof(typeof(*descriptor), data.other_data.data.range.flags) != 10);
3205 switch (descriptor->data.other_data.data.range.flags) {
3445 const struct detailed_pixel_timing *pt = &timing->data.pixel_data;
3771 const struct detailed_non_pixel *data = &timing->data.other_data;
3772 const struct detailed_data_monitor_range *range = &data->data.range;
3905 const struct detailed_non_pixel *data = &timing->data.other_data;
3913 const struct std_timing *std = &data->data.timings[i];
3971 cvt = &(timing->data.other_data.data.cvt[i]);
4117 * FIXME: Prefer not returning pointers to raw EDID data.
4144 /* Return true if the EDID has a CTA extension or a DisplayID CTA data block */
4531 * @svds: start of the data block of CEA YCBCR 420 VDB
4750 * do_hdmi_vsdb_modes - Parse the HDMI Vendor Specific data block
4888 * the DispID CEA data block. And the only value
4926 u8 data[];
4944 return db->data;
4951 db->data[0] == tag;
4956 const u8 *data = cea_db_data(db);
4960 oui(data[2], data[1], data[0]) == vendor_oui;
5192 /* Need to have the data block collection, and at least 3 bytes. */
5220 const u8 *data = cea_db_data(db) + 1;
5245 map |= (u64)data[i] << (8 * i);
5442 monitor_name(const struct detailed_timing *timing, void *data)
5444 const char **res = data;
5449 *res = timing->data.other_data.data.str.str;
5550 const u8 *data = cea_db_data(db);
5560 data, sad_count * 3);
5566 eld[DRM_ELD_SPEAKER] = data[0];
5612 const u8 *sad = &db->data[j * 3];
5659 *sadb = kmemdup(db->data, cea_db_payload_len(db),
5744 * search it from all data blocks of CEA extension.
5803 const u8 *data = cea_db_data(db);
5808 (data[i] >> 3) & 0xf);
6287 const u8 *data = (const u8 *)db;
6290 drm_parse_hdmi_vsdb_video(connector, data);
6293 drm_parse_hdmi_forum_scds(connector, data);
6295 drm_parse_microsoft_vsdb(connector, data);
6301 drm_parse_vcdb(connector, data);
6303 drm_parse_hdr_metadata_block(connector, data);
6321 const struct detailed_non_pixel *data = &timing->data.other_data;
6322 const struct detailed_data_monitor_range *range = &data->data.range;
6344 if (data->pad2 & DRM_EDID_RANGE_OFFSET_MIN_VFREQ)
6346 if (data->pad2 & DRM_EDID_RANGE_OFFSET_MAX_VFREQ)
6765 const struct edid *old_edid = connector->edid_blob_ptr->data;
6852 drm_edid = drm_edid_alloc(connector->edid_blob_ptr->data,
6889 * drm_add_edid_modes - add modes from EDID data, if available
6891 * @edid: EDID data
7056 * data from a DRM display mode
7216 * data from a DRM display mode