Lines Matching refs:_x
24 #define GET_BIT(_x, _pos) \ argument
25 (((_x) >> (_pos)) & 1)
26 #define GET_BITS(_x, _pos_msb, _pos_lsb) \ argument
27 (((_x) >> (_pos_lsb)) & ((1 << ((_pos_msb) - (_pos_lsb) + 1)) - 1))
40 #define EDID_DETAILED_TIMING_PIXEL_CLOCK(_x) \ argument
41 (((((uint32_t)(_x).pixel_clock[1]) << 8) + \
42 (_x).pixel_clock[0]) * 10000)
46 #define EDID_DETAILED_TIMING_HORIZONTAL_ACTIVE(_x) \ argument
47 ((GET_BITS((_x).horizontal_active_blanking_hi, 7, 4) << 8) + \
48 (_x).horizontal_active)
49 #define EDID_DETAILED_TIMING_HORIZONTAL_BLANKING(_x) \ argument
50 ((GET_BITS((_x).horizontal_active_blanking_hi, 3, 0) << 8) + \
51 (_x).horizontal_blanking)
55 #define EDID_DETAILED_TIMING_VERTICAL_ACTIVE(_x) \ argument
56 ((GET_BITS((_x).vertical_active_blanking_hi, 7, 4) << 8) + \
57 (_x).vertical_active)
58 #define EDID_DETAILED_TIMING_VERTICAL_BLANKING(_x) \ argument
59 ((GET_BITS((_x).vertical_active_blanking_hi, 3, 0) << 8) + \
60 (_x).vertical_blanking)
65 #define EDID_DETAILED_TIMING_HSYNC_OFFSET(_x) \ argument
66 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 7, 6) << 8) + \
67 (_x).hsync_offset)
68 #define EDID_DETAILED_TIMING_HSYNC_PULSE_WIDTH(_x) \ argument
69 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 5, 4) << 8) + \
70 (_x).hsync_pulse_width)
71 #define EDID_DETAILED_TIMING_VSYNC_OFFSET(_x) \ argument
72 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 3, 2) << 4) + \
73 GET_BITS((_x).vsync_offset_pulse_width, 7, 4))
74 #define EDID_DETAILED_TIMING_VSYNC_PULSE_WIDTH(_x) \ argument
75 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 1, 0) << 4) + \
76 GET_BITS((_x).vsync_offset_pulse_width, 3, 0))
80 #define EDID_DETAILED_TIMING_HIMAGE_SIZE(_x) \ argument
81 ((GET_BITS((_x).himage_vimage_size_hi, 7, 4) << 8) + (_x).himage_size)
82 #define EDID_DETAILED_TIMING_VIMAGE_SIZE(_x) \ argument
83 ((GET_BITS((_x).himage_vimage_size_hi, 3, 0) << 8) + (_x).vimage_size)
87 #define EDID_DETAILED_TIMING_FLAG_INTERLACED(_x) \ argument
88 GET_BIT((_x).flags, 7)
89 #define EDID_DETAILED_TIMING_FLAG_STEREO(_x) \ argument
90 GET_BITS((_x).flags, 6, 5)
91 #define EDID_DETAILED_TIMING_FLAG_DIGITAL_COMPOSITE(_x) \ argument
92 GET_BITS((_x).flags, 4, 3)
93 #define EDID_DETAILED_TIMING_FLAG_POLARITY(_x) \ argument
94 GET_BITS((_x).flags, 2, 1)
95 #define EDID_DETAILED_TIMING_FLAG_VSYNC_POLARITY(_x) \ argument
96 GET_BIT((_x).flags, 2)
97 #define EDID_DETAILED_TIMING_FLAG_HSYNC_POLARITY(_x) \ argument
98 GET_BIT((_x).flags, 1)
99 #define EDID_DETAILED_TIMING_FLAG_INTERLEAVED(_x) \ argument
100 GET_BIT((_x).flags, 0)
131 #define EDID1_INFO_MANUFACTURER_NAME_ZERO(_x) \ argument
132 GET_BIT(((_x).manufacturer_name[0]), 7)
133 #define EDID1_INFO_MANUFACTURER_NAME_CHAR1(_x) \ argument
134 GET_BITS(((_x).manufacturer_name[0]), 6, 2)
135 #define EDID1_INFO_MANUFACTURER_NAME_CHAR2(_x) \ argument
136 ((GET_BITS(((_x).manufacturer_name[0]), 1, 0) << 3) + \
137 GET_BITS(((_x).manufacturer_name[1]), 7, 5))
138 #define EDID1_INFO_MANUFACTURER_NAME_CHAR3(_x) \ argument
139 GET_BITS(((_x).manufacturer_name[1]), 4, 0)
141 #define EDID1_INFO_PRODUCT_CODE(_x) \ argument
142 (((uint16_t)(_x).product_code[1] << 8) + (_x).product_code[0])
144 #define EDID1_INFO_SERIAL_NUMBER(_x) \ argument
145 (((uint32_t)(_x).serial_number[3] << 24) + \
146 ((_x).serial_number[2] << 16) + ((_x).serial_number[1] << 8) + \
147 (_x).serial_number[0])
153 #define EDID1_INFO_VIDEO_INPUT_DIGITAL(_x) \ argument
154 GET_BIT(((_x).video_input_definition), 7)
155 #define EDID1_INFO_VIDEO_INPUT_VOLTAGE_LEVEL(_x) \ argument
156 GET_BITS(((_x).video_input_definition), 6, 5)
157 #define EDID1_INFO_VIDEO_INPUT_BLANK_TO_BLACK(_x) \ argument
158 GET_BIT(((_x).video_input_definition), 4)
159 #define EDID1_INFO_VIDEO_INPUT_SEPARATE_SYNC(_x) \ argument
160 GET_BIT(((_x).video_input_definition), 3)
161 #define EDID1_INFO_VIDEO_INPUT_COMPOSITE_SYNC(_x) \ argument
162 GET_BIT(((_x).video_input_definition), 2)
163 #define EDID1_INFO_VIDEO_INPUT_SYNC_ON_GREEN(_x) \ argument
164 GET_BIT(((_x).video_input_definition), 1)
165 #define EDID1_INFO_VIDEO_INPUT_SERRATION_V(_x) \ argument
166 GET_BIT(((_x).video_input_definition), 0)
171 #define EDID1_INFO_FEATURE_STANDBY(_x) \ argument
172 GET_BIT(((_x).feature_support), 7)
173 #define EDID1_INFO_FEATURE_SUSPEND(_x) \ argument
174 GET_BIT(((_x).feature_support), 6)
175 #define EDID1_INFO_FEATURE_ACTIVE_OFF(_x) \ argument
176 GET_BIT(((_x).feature_support), 5)
177 #define EDID1_INFO_FEATURE_DISPLAY_TYPE(_x) \ argument
178 GET_BITS(((_x).feature_support), 4, 3)
179 #define EDID1_INFO_FEATURE_RGB(_x) \ argument
180 GET_BIT(((_x).feature_support), 2)
181 #define EDID1_INFO_FEATURE_PREFERRED_TIMING_MODE(_x) \ argument
182 GET_BIT(((_x).feature_support), 1)
183 #define EDID1_INFO_FEATURE_DEFAULT_GTF_SUPPORT(_x) \ argument
184 GET_BIT(((_x).feature_support), 0)
187 #define EDID1_INFO_ESTABLISHED_TIMING_720X400_70(_x) \ argument
188 GET_BIT(((_x).established_timings[0]), 7)
189 #define EDID1_INFO_ESTABLISHED_TIMING_720X400_88(_x) \ argument
190 GET_BIT(((_x).established_timings[0]), 6)
191 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_60(_x) \ argument
192 GET_BIT(((_x).established_timings[0]), 5)
193 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_67(_x) \ argument
194 GET_BIT(((_x).established_timings[0]), 4)
195 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_72(_x) \ argument
196 GET_BIT(((_x).established_timings[0]), 3)
197 #define EDID1_INFO_ESTABLISHED_TIMING_640X480_75(_x) \ argument
198 GET_BIT(((_x).established_timings[0]), 2)
199 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_56(_x) \ argument
200 GET_BIT(((_x).established_timings[0]), 1)
201 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_60(_x) \ argument
202 GET_BIT(((_x).established_timings[0]), 0)
203 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_72(_x) \ argument
204 GET_BIT(((_x).established_timings[1]), 7)
205 #define EDID1_INFO_ESTABLISHED_TIMING_800X600_75(_x) \ argument
206 GET_BIT(((_x).established_timings[1]), 6)
207 #define EDID1_INFO_ESTABLISHED_TIMING_832X624_75(_x) \ argument
208 GET_BIT(((_x).established_timings[1]), 5)
209 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_87I(_x) \ argument
210 GET_BIT(((_x).established_timings[1]), 4)
211 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_60(_x) \ argument
212 GET_BIT(((_x).established_timings[1]), 3)
213 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_70(_x) \ argument
214 GET_BIT(((_x).established_timings[1]), 2)
215 #define EDID1_INFO_ESTABLISHED_TIMING_1024X768_75(_x) \ argument
216 GET_BIT(((_x).established_timings[1]), 1)
217 #define EDID1_INFO_ESTABLISHED_TIMING_1280X1024_75(_x) \ argument
218 GET_BIT(((_x).established_timings[1]), 0)
219 #define EDID1_INFO_ESTABLISHED_TIMING_1152X870_75(_x) \ argument
220 GET_BIT(((_x).established_timings[2]), 7)
225 #define EDID1_INFO_STANDARD_TIMING_XRESOLUTION(_x, _i) \ argument
226 (((_x).standard_timings[_i]).xresolution)
227 #define EDID1_INFO_STANDARD_TIMING_ASPECT(_x, _i) \ argument
228 GET_BITS(((_x).standard_timings[_i].aspect_vfreq), 7, 6)
229 #define EDID1_INFO_STANDARD_TIMING_VFREQ(_x, _i) \ argument
230 GET_BITS(((_x).standard_timings[_i].aspect_vfreq), 5, 0)
252 #define EDID_CEA861_SUPPORTS_UNDERSCAN(_x) \ argument
253 GET_BIT(((_x).dtd_count), 7)
254 #define EDID_CEA861_SUPPORTS_BASIC_AUDIO(_x) \ argument
255 GET_BIT(((_x).dtd_count), 6)
256 #define EDID_CEA861_SUPPORTS_YUV444(_x) \ argument
257 GET_BIT(((_x).dtd_count), 5)
258 #define EDID_CEA861_SUPPORTS_YUV422(_x) \ argument
259 GET_BIT(((_x).dtd_count), 4)
260 #define EDID_CEA861_DTD_COUNT(_x) \ argument
261 GET_BITS(((_x).dtd_count), 3, 0)
263 #define EDID_CEA861_DB_TYPE(_x, offset) \ argument
264 GET_BITS((_x).data[offset], 7, 5)
265 #define EDID_CEA861_DB_LEN(_x, offset) \ argument
266 GET_BITS((_x).data[offset], 4, 0)