Lines Matching refs:offset

71 	/* absolute offset tables */
106 /* relative offset tables */
107 COMBIOS_ASIC_INIT_3_TABLE, /* offset from misc info */
108 COMBIOS_ASIC_INIT_4_TABLE, /* offset from misc info */
109 COMBIOS_DETECTED_MEM_TABLE, /* offset from misc info */
110 COMBIOS_ASIC_INIT_5_TABLE, /* offset from misc info */
111 COMBIOS_RAM_RESET_TABLE, /* offset from mem config */
112 COMBIOS_POWERPLAY_INFO_TABLE, /* offset from mobile info */
113 COMBIOS_GPIO_INFO_TABLE, /* offset from mobile info */
114 COMBIOS_LCD_DDC_INFO_TABLE, /* offset from mobile info */
115 COMBIOS_TMDS_POWER_TABLE, /* offset from mobile info */
116 COMBIOS_TMDS_POWER_ON_TABLE, /* offset from tmds power */
117 COMBIOS_TMDS_POWER_OFF_TABLE, /* offset from tmds power */
157 uint16_t offset = 0, check_offset;
163 /* absolute offset tables */
167 offset = check_offset;
172 offset = check_offset;
177 offset = check_offset;
182 offset = check_offset;
187 offset = check_offset;
192 offset = check_offset;
197 offset = check_offset;
202 offset = check_offset;
207 offset = check_offset;
212 offset = check_offset;
217 offset = check_offset;
222 offset = check_offset;
227 offset = check_offset;
232 offset = check_offset;
237 offset = check_offset;
242 offset = check_offset;
247 offset = check_offset;
252 offset = check_offset;
257 offset = check_offset;
262 offset = check_offset;
267 offset = check_offset;
272 offset = check_offset;
277 offset = check_offset;
282 offset = check_offset;
287 offset = check_offset;
292 offset = check_offset;
297 offset = check_offset;
302 offset = check_offset;
307 offset = check_offset;
312 offset = check_offset;
317 offset = check_offset;
322 offset = check_offset;
327 offset = check_offset;
332 offset = check_offset;
334 /* relative offset tables */
335 case COMBIOS_ASIC_INIT_3_TABLE: /* offset from misc info */
343 offset = check_offset;
347 case COMBIOS_ASIC_INIT_4_TABLE: /* offset from misc info */
355 offset = check_offset;
359 case COMBIOS_DETECTED_MEM_TABLE: /* offset from misc info */
367 offset = check_offset;
371 case COMBIOS_ASIC_INIT_5_TABLE: /* offset from misc info */
379 offset = check_offset;
383 case COMBIOS_RAM_RESET_TABLE: /* offset from mem config */
390 offset = check_offset;
393 case COMBIOS_POWERPLAY_INFO_TABLE: /* offset from mobile info */
399 offset = check_offset;
402 case COMBIOS_GPIO_INFO_TABLE: /* offset from mobile info */
408 offset = check_offset;
411 case COMBIOS_LCD_DDC_INFO_TABLE: /* offset from mobile info */
417 offset = check_offset;
420 case COMBIOS_TMDS_POWER_TABLE: /* offset from mobile info */
426 offset = check_offset;
429 case COMBIOS_TMDS_POWER_ON_TABLE: /* offset from tmds power */
435 offset = check_offset;
438 case COMBIOS_TMDS_POWER_OFF_TABLE: /* offset from tmds power */
444 offset = check_offset;
451 return offset;
733 u16 offset;
739 offset = combios_get_table_offset(dev, COMBIOS_I2C_INFO_TABLE);
740 if (offset) {
741 blocks = RBIOS8(offset + 2);
743 id = RBIOS8(offset + 3 + (i * 5) + 0);
745 clk = RBIOS8(offset + 3 + (i * 5) + 3);
746 data = RBIOS8(offset + 3 + (i * 5) + 4);
1491 uint16_t offset;
1503 offset = combios_get_table_offset(dev, COMBIOS_EXT_TMDS_INFO_TABLE);
1504 if (offset) {
1505 ver = RBIOS8(offset);
1507 tmds->slave_addr = RBIOS8(offset + 4 + 2);
1509 gpio = RBIOS8(offset + 4 + 3);
2716 u16 offset, misc, misc2 = 0;
2741 offset = combios_get_table_offset(dev, COMBIOS_OVERDRIVE_INFO_TABLE);
2742 if (offset) {
2745 rev = RBIOS8(offset);
2748 thermal_controller = RBIOS8(offset + 3);
2749 gpio = RBIOS8(offset + 4) & 0x3f;
2750 i2c_addr = RBIOS8(offset + 5);
2752 thermal_controller = RBIOS8(offset + 4);
2753 gpio = RBIOS8(offset + 5) & 0x3f;
2754 i2c_addr = RBIOS8(offset + 6);
2756 thermal_controller = RBIOS8(offset + 4);
2757 gpio = RBIOS8(offset + 5) & 0x3f;
2758 i2c_addr = RBIOS8(offset + 6);
2759 clk_bit = RBIOS8(offset + 0xa);
2760 data_bit = RBIOS8(offset + 0xb);
2811 offset = combios_get_table_offset(dev, COMBIOS_POWERPLAY_INFO_TABLE);
2812 if (offset) {
2813 rev = RBIOS8(offset);
2814 blocks = RBIOS8(offset + 0x2);
2817 rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2);
2818 rdev->pm.power_state[state_index].clock_info[0].sclk = RBIOS32(offset + 0x5 + 0x6);
2824 misc = RBIOS16(offset + 0x5 + 0x0);
2826 misc2 = RBIOS16(offset + 0x5 + 0xe);
2840 RBIOS16(offset + 0x5 + 0xb) * 4;
2841 tmp = RBIOS8(offset + 0x5 + 0xd);
2844 u8 entries = RBIOS8(offset + 0x5 + 0xb);
2845 u16 voltage_table_offset = RBIOS16(offset + 0x5 + 0xc);
2876 RBIOS8(offset + 0x5 + 0x10);
2969 uint16_t offset;
2979 offset = combios_get_table_offset(dev, COMBIOS_TMDS_POWER_ON_TABLE);
2980 rev = RBIOS8(offset);
2981 if (offset) {
2982 rev = RBIOS8(offset);
2984 blocks = RBIOS8(offset + 3);
2985 index = offset + 4;
3038 offset = combios_get_table_offset(dev, COMBIOS_EXT_TMDS_INFO_TABLE);
3039 if (offset) {
3040 index = offset + 10;
3095 static void combios_parse_mmio_table(struct drm_device *dev, uint16_t offset)
3099 if (offset) {
3100 while (RBIOS16(offset)) {
3101 uint16_t cmd = ((RBIOS16(offset) & 0xe000) >> 13);
3102 uint32_t addr = (RBIOS16(offset) & 0x1fff);
3106 offset += 2;
3109 val = RBIOS32(offset);
3110 offset += 4;
3114 val = RBIOS32(offset);
3115 offset += 4;
3119 and_mask = RBIOS32(offset);
3120 offset += 4;
3121 or_mask = RBIOS32(offset);
3122 offset += 4;
3129 and_mask = RBIOS32(offset);
3130 offset += 4;
3131 or_mask = RBIOS32(offset);
3132 offset += 4;
3139 val = RBIOS16(offset);
3140 offset += 2;
3144 val = RBIOS16(offset);
3145 offset += 2;
3174 static void combios_parse_pll_table(struct drm_device *dev, uint16_t offset)
3178 if (offset) {
3179 while (RBIOS8(offset)) {
3180 uint8_t cmd = ((RBIOS8(offset) & 0xc0) >> 6);
3181 uint8_t addr = (RBIOS8(offset) & 0x3f);
3185 offset++;
3188 val = RBIOS32(offset);
3189 offset += 4;
3193 shift = RBIOS8(offset) * 8;
3194 offset++;
3195 and_mask = RBIOS8(offset) << shift;
3197 offset++;
3198 or_mask = RBIOS8(offset) << shift;
3199 offset++;
3265 uint16_t offset)
3270 if (offset) {
3271 uint8_t val = RBIOS8(offset);
3273 offset++;
3292 uint32_t or_mask = RBIOS16(offset);
3293 offset += 2;
3306 val = RBIOS8(offset);
3347 uint16_t offset;
3356 offset = combios_get_table_offset(dev, COMBIOS_DETECTED_MEM_TABLE);
3357 if (offset) {
3358 rev = RBIOS8(offset);
3360 mem_cntl = RBIOS32(offset + 1);
3361 mem_size = RBIOS16(offset + 5);
3369 offset =
3371 if (offset) {
3372 rev = RBIOS8(offset - 1);
3379 while (RBIOS8(offset)) {
3380 ram = RBIOS8(offset);
3382 RBIOS8(offset + 1);
3390 offset += 2;
3393 mem_size = RBIOS8(offset);
3395 mem_size = RBIOS8(offset);