Lines Matching refs:_x
51 #define GET_BIT(_x, _pos) \ argument
52 (((_x) >> (_pos)) & 1)
53 #define GET_BITS(_x, _pos_msb, _pos_lsb) \ argument
54 (((_x) >> (_pos_lsb)) & ((1 << ((_pos_msb) - (_pos_lsb) + 1)) - 1))
201 #define EDID_DETAILED_TIMING_PIXEL_CLOCK(_x) \ argument
202 (((((uint32_t)(_x).pixel_clock[1]) << 8) + \
203 (_x).pixel_clock[0]) * 10000)
207 #define EDID_DETAILED_TIMING_HORIZONTAL_ACTIVE(_x) \ argument
208 ((GET_BITS((_x).horizontal_active_blanking_hi, 7, 4) << 8) + \
209 (_x).horizontal_active)
210 #define EDID_DETAILED_TIMING_HORIZONTAL_BLANKING(_x) \ argument
211 ((GET_BITS((_x).horizontal_active_blanking_hi, 3, 0) << 8) + \
212 (_x).horizontal_blanking)
216 #define EDID_DETAILED_TIMING_VERTICAL_ACTIVE(_x) \ argument
217 ((GET_BITS((_x).vertical_active_blanking_hi, 7, 4) << 8) + \
218 (_x).vertical_active)
219 #define EDID_DETAILED_TIMING_VERTICAL_BLANKING(_x) \ argument
220 ((GET_BITS((_x).vertical_active_blanking_hi, 3, 0) << 8) + \
221 (_x).vertical_blanking)
226 #define EDID_DETAILED_TIMING_HSYNC_OFFSET(_x) \ argument
227 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 7, 6) << 8) + \
228 (_x).hsync_offset)
229 #define EDID_DETAILED_TIMING_HSYNC_PULSE_WIDTH(_x) \ argument
230 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 5, 4) << 8) + \
231 (_x).hsync_pulse_width)
232 #define EDID_DETAILED_TIMING_VSYNC_OFFSET(_x) \ argument
233 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 3, 2) << 4) + \
234 GET_BITS((_x).vsync_offset_pulse_width, 7, 4))
235 #define EDID_DETAILED_TIMING_VSYNC_PULSE_WIDTH(_x) \ argument
236 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 1, 0) << 4) + \
237 GET_BITS((_x).vsync_offset_pulse_width, 3, 0))
241 #define EDID_DETAILED_TIMING_HIMAGE_SIZE(_x) \ argument
242 ((GET_BITS((_x).himage_vimage_size_hi, 7, 4) << 8) + (_x).himage_size)
243 #define EDID_DETAILED_TIMING_VIMAGE_SIZE(_x) \ argument
244 ((GET_BITS((_x).himage_vimage_size_hi, 3, 0) << 8) + (_x).vimage_size)
248 #define EDID_DETAILED_TIMING_FLAG_INTERLACED(_x) \ argument
249 GET_BIT((_x).flags, 7)
250 #define EDID_DETAILED_TIMING_FLAG_STEREO(_x) \ argument
251 GET_BITS((_x).flags, 6, 5)
252 #define EDID_DETAILED_TIMING_FLAG_DIGITAL_COMPOSITE(_x) \ argument
253 GET_BITS((_x).flags, 4, 3)
254 #define EDID_DETAILED_TIMING_FLAG_POLARITY(_x) \ argument
255 GET_BITS((_x).flags, 2, 1)
256 #define EDID_DETAILED_TIMING_FLAG_VSYNC_POLARITY(_x) \ argument
257 GET_BIT((_x).flags, 2)
258 #define EDID_DETAILED_TIMING_FLAG_HSYNC_POLARITY(_x) \ argument
259 GET_BIT((_x).flags, 1)
260 #define EDID_DETAILED_TIMING_FLAG_INTERLEAVED(_x) \ argument
261 GET_BIT((_x).flags, 0)
376 #define EDID1_INFO_MANUFACTURER_NAME_ZERO(_x) \ argument
377 GET_BIT(((_x).manufacturer_name[0]), 7)
378 #define EDID1_INFO_MANUFACTURER_NAME_CHAR1(_x) \ argument
379 GET_BITS(((_x).manufacturer_name[0]), 6, 2)
380 #define EDID1_INFO_MANUFACTURER_NAME_CHAR2(_x) \ argument
381 ((GET_BITS(((_x).manufacturer_name[0]), 1, 0) << 3) + \
382 GET_BITS(((_x).manufacturer_name[1]), 7, 5))
383 #define EDID1_INFO_MANUFACTURER_NAME_CHAR3(_x) \ argument
384 GET_BITS(((_x).manufacturer_name[1]), 4, 0)
386 #define EDID1_INFO_PRODUCT_CODE(_x) \ argument
387 (((uint16_t)(_x).product_code[1] << 8) + (_x).product_code[0])
389 #define EDID1_INFO_SERIAL_NUMBER(_x) \ argument
390 (((uint32_t)(_x).serial_number[3] << 24) + \
391 ((_x).serial_number[2] << 16) + ((_x).serial_number[1] << 8) + \
392 (_x).serial_number[0])
398 #define EDID1_INFO_VIDEO_INPUT_DIGITAL(_x) \ argument
399 GET_BIT(((_x).video_input_definition), 7)
400 #define EDID1_INFO_VIDEO_INPUT_VOLTAGE_LEVEL(_x) \ argument
401 GET_BITS(((_x).video_input_definition), 6, 5)
402 #define EDID1_INFO_VIDEO_INPUT_BLANK_TO_BLACK(_x) \ argument
403 GET_BIT(((_x).video_input_definition), 4)
404 #define EDID1_INFO_VIDEO_INPUT_SEPARATE_SYNC(_x) \ argument
405 GET_BIT(((_x).video_input_definition), 3)
406 #define EDID1_INFO_VIDEO_INPUT_COMPOSITE_SYNC(_x) \ argument
407 GET_BIT(((_x).video_input_definition), 2)
408 #define EDID1_INFO_VIDEO_INPUT_SYNC_ON_GREEN(_x) \ argument
409 GET_BIT(((_x).video_input_definition), 1)
410 #define EDID1_INFO_VIDEO_INPUT_SERRATION_V(_x) \ argument
411 GET_BIT(((_x).video_input_definition), 0)
416 #define EDID1_INFO_FEATURE_STANDBY(_x) \ argument
417 GET_BIT(((_x).feature_support), 7)
418 #define EDID1_INFO_FEATURE_SUSPEND(_x) \ argument
419 GET_BIT(((_x).feature_support), 6)
420 #define EDID1_INFO_FEATURE_ACTIVE_OFF(_x) \ argument
421 GET_BIT(((_x).feature_support), 5)
422 #define EDID1_INFO_FEATURE_DISPLAY_TYPE(_x) \ argument
423 GET_BITS(((_x).feature_support), 4, 3)
424 #define EDID1_INFO_FEATURE_RGB(_x) \ argument
425 GET_BIT(((_x).feature_support), 2)
426 #define EDID1_INFO_FEATURE_PREFERRED_TIMING_MODE(_x) \ argument
427 GET_BIT(((_x).feature_support), 1)
428 #define EDID1_INFO_FEATURE_DEFAULT_GTF_SUPPORT(_x) \ argument
429 GET_BIT(((_x).feature_support), 0)
432 #define EDID1_INFO_ESTABLISHED_TIMING_720X400_70(_x) \ argument
433 GET_BIT(((_x).established_timings[0]), 7)
434 #define EDID1_INFO_ESTABLISHED_TIMING_720X400_88(_x) \ argument
435 GET_BIT(((_x).established_timings[0]), 6)
436 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_60(_x) \ argument
437 GET_BIT(((_x).established_timings[0]), 5)
438 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_67(_x) \ argument
439 GET_BIT(((_x).established_timings[0]), 4)
440 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_72(_x) \ argument
441 GET_BIT(((_x).established_timings[0]), 3)
442 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_75(_x) \ argument
443 GET_BIT(((_x).established_timings[0]), 2)
444 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_56(_x) \ argument
445 GET_BIT(((_x).established_timings[0]), 1)
446 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_60(_x) \ argument
447 GET_BIT(((_x).established_timings[0]), 0)
448 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_72(_x) \ argument
449 GET_BIT(((_x).established_timings[1]), 7)
450 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_75(_x) \ argument
451 GET_BIT(((_x).established_timings[1]), 6)
452 #define EDID1_INFO_ESTABLISHED_TIMING_832X624_75(_x) \ argument
453 GET_BIT(((_x).established_timings[1]), 5)
454 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_87I(_x) \ argument
455 GET_BIT(((_x).established_timings[1]), 4)
456 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_60(_x) \ argument
457 GET_BIT(((_x).established_timings[1]), 3)
458 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_70(_x) \ argument
459 GET_BIT(((_x).established_timings[1]), 2)
460 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_75(_x) \ argument
461 GET_BIT(((_x).established_timings[1]), 1)
462 #define EDID1_INFO_ESTABLISHED_TIMING_1280X1024_75(_x) \ argument
463 GET_BIT(((_x).established_timings[1]), 0)
464 #define EDID1_INFO_ESTABLISHED_TIMING_1152X870_75(_x) \ argument
465 GET_BIT(((_x).established_timings[2]), 7)
470 #define EDID1_INFO_STANDARD_TIMING_XRESOLUTION(_x, _i) \ argument
471 (((_x).standard_timings[_i]).xresolution)
472 #define EDID1_INFO_STANDARD_TIMING_ASPECT(_x, _i) \ argument
473 GET_BITS(((_x).standard_timings[_i].aspect_vfreq), 7, 6)
474 #define EDID1_INFO_STANDARD_TIMING_VFREQ(_x, _i) \ argument
475 GET_BITS(((_x).standard_timings[_i].aspect_vfreq), 5, 0)
508 #define EDID_CEA861_SUPPORTS_UNDERSCAN(_x) \ argument
509 GET_BIT(((_x).dtd_count), 7)
510 #define EDID_CEA861_SUPPORTS_BASIC_AUDIO(_x) \ argument
511 GET_BIT(((_x).dtd_count), 6)
512 #define EDID_CEA861_SUPPORTS_YUV444(_x) \ argument
513 GET_BIT(((_x).dtd_count), 5)
514 #define EDID_CEA861_SUPPORTS_YUV422(_x) \ argument
515 GET_BIT(((_x).dtd_count), 4)
516 #define EDID_CEA861_DTD_COUNT(_x) \ argument
517 GET_BITS(((_x).dtd_count), 3, 0)
519 #define EDID_CEA861_DB_TYPE(_x, offset) \ argument
520 GET_BITS((_x).data[offset], 7, 5)
521 #define EDID_CEA861_DB_LEN(_x, offset) \ argument
522 GET_BITS((_x).data[offset], 4, 0)