Lines Matching refs:offset

77 	u32 cksum, offset, eep_max = AR5K_EEPROM_INFO_MAX;  in ath5k_eeprom_init_header()  local
118 for (cksum = 0, offset = 0; offset < eep_max; offset++) { in ath5k_eeprom_init_header()
119 AR5K_EEPROM_READ(AR5K_EEPROM_INFO(offset), val); in ath5k_eeprom_init_header()
189 static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, in ath5k_eeprom_read_ants() argument
193 u32 o = *offset; in ath5k_eeprom_read_ants()
240 *offset = o; in ath5k_eeprom_read_ants()
249 static int ath5k_eeprom_read_modes(struct ath5k_hw *ah, u32 *offset, in ath5k_eeprom_read_modes() argument
253 u32 o = *offset; in ath5k_eeprom_read_modes()
460 *offset = o; in ath5k_eeprom_read_modes()
472 u32 offset; in ath5k_eeprom_init_modes() local
486 offset = mode_offset[mode]; in ath5k_eeprom_init_modes()
488 ret = ath5k_eeprom_read_ants(ah, &offset, mode); in ath5k_eeprom_init_modes()
492 ret = ath5k_eeprom_read_modes(ah, &offset, mode); in ath5k_eeprom_init_modes()
510 ath5k_eeprom_read_freq_list(struct ath5k_hw *ah, int *offset, int max, in ath5k_eeprom_read_freq_list() argument
514 int o = *offset; in ath5k_eeprom_read_freq_list()
541 *offset = o; in ath5k_eeprom_read_freq_list()
548 ath5k_eeprom_init_11a_pcal_freq(struct ath5k_hw *ah, int offset) in ath5k_eeprom_init_11a_pcal_freq() argument
557 ath5k_eeprom_read_freq_list(ah, &offset, in ath5k_eeprom_init_11a_pcal_freq()
563 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_init_11a_pcal_freq()
568 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_init_11a_pcal_freq()
573 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_init_11a_pcal_freq()
578 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_init_11a_pcal_freq()
584 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_init_11a_pcal_freq()
601 ath5k_eeprom_init_11bg_2413(struct ath5k_hw *ah, unsigned int mode, int offset) in ath5k_eeprom_init_11bg_2413() argument
617 ath5k_eeprom_read_freq_list(ah, &offset, in ath5k_eeprom_init_11bg_2413()
797 int offset, ret; in ath5k_eeprom_read_pcal_info_5111() local
801 offset = AR5K_EEPROM_GROUPS_START(ee->ee_version); in ath5k_eeprom_read_pcal_info_5111()
808 offset + AR5K_EEPROM_GROUP1_OFFSET); in ath5k_eeprom_read_pcal_info_5111()
812 offset += AR5K_EEPROM_GROUP2_OFFSET; in ath5k_eeprom_read_pcal_info_5111()
821 offset += AR5K_EEPROM_GROUP3_OFFSET; in ath5k_eeprom_read_pcal_info_5111()
834 offset += AR5K_EEPROM_GROUP4_OFFSET; in ath5k_eeprom_read_pcal_info_5111()
850 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5111()
855 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5111()
861 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5111()
866 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5111()
871 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5111()
1022 u32 offset; in ath5k_eeprom_read_pcal_info_5112() local
1047 offset = AR5K_EEPROM_GROUPS_START(ee->ee_version); in ath5k_eeprom_read_pcal_info_5112()
1048 ath5k_eeprom_init_11a_pcal_freq(ah, offset); in ath5k_eeprom_read_pcal_info_5112()
1050 offset += AR5K_EEPROM_GROUP2_OFFSET; in ath5k_eeprom_read_pcal_info_5112()
1054 offset = AR5K_EEPROM_GROUPS_START(ee->ee_version); in ath5k_eeprom_read_pcal_info_5112()
1056 offset += AR5K_EEPROM_GROUP3_OFFSET; in ath5k_eeprom_read_pcal_info_5112()
1062 offset = AR5K_EEPROM_GROUPS_START(ee->ee_version); in ath5k_eeprom_read_pcal_info_5112()
1064 offset += AR5K_EEPROM_GROUP4_OFFSET; in ath5k_eeprom_read_pcal_info_5112()
1066 offset += AR5K_EEPROM_GROUP2_OFFSET; in ath5k_eeprom_read_pcal_info_5112()
1082 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5112()
1090 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5112()
1098 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5112()
1102 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_5112()
1167 u32 offset = AR5K_EEPROM_CAL_DATA_START(ee->ee_misc4); in ath5k_cal_data_offset_2413() local
1172 offset += ath5k_pdgains_size_2413(ee, in ath5k_cal_data_offset_2413()
1178 offset += ath5k_pdgains_size_2413(ee, in ath5k_cal_data_offset_2413()
1188 return offset; in ath5k_cal_data_offset_2413()
1285 u32 offset; in ath5k_eeprom_read_pcal_info_2413() local
1306 offset = ath5k_cal_data_offset_2413(ee, mode); in ath5k_eeprom_read_pcal_info_2413()
1312 ath5k_eeprom_init_11a_pcal_freq(ah, offset); in ath5k_eeprom_read_pcal_info_2413()
1313 offset += AR5K_EEPROM_N_5GHZ_CHAN / 2; in ath5k_eeprom_read_pcal_info_2413()
1320 ath5k_eeprom_init_11bg_2413(ah, mode, offset); in ath5k_eeprom_read_pcal_info_2413()
1321 offset += AR5K_EEPROM_N_2GHZ_CHAN_2413 / 2; in ath5k_eeprom_read_pcal_info_2413()
1328 ath5k_eeprom_init_11bg_2413(ah, mode, offset); in ath5k_eeprom_read_pcal_info_2413()
1329 offset += AR5K_EEPROM_N_2GHZ_CHAN_2413 / 2; in ath5k_eeprom_read_pcal_info_2413()
1343 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1348 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1353 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1369 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1375 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1381 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1394 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1406 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1412 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1427 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1434 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1440 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1447 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1451 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_pcal_info_2413()
1475 u32 offset; in ath5k_eeprom_read_target_rate_pwr_info() local
1479 offset = AR5K_EEPROM_TARGET_PWRSTART(ee->ee_misc1); in ath5k_eeprom_read_target_rate_pwr_info()
1483 offset += AR5K_EEPROM_TARGET_PWR_OFF_11A(ee->ee_version); in ath5k_eeprom_read_target_rate_pwr_info()
1488 offset += AR5K_EEPROM_TARGET_PWR_OFF_11B(ee->ee_version); in ath5k_eeprom_read_target_rate_pwr_info()
1493 offset += AR5K_EEPROM_TARGET_PWR_OFF_11G(ee->ee_version); in ath5k_eeprom_read_target_rate_pwr_info()
1504 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_target_rate_pwr_info()
1511 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_target_rate_pwr_info()
1525 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_target_rate_pwr_info()
1532 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_target_rate_pwr_info()
1605 u32 offset; in ath5k_eeprom_read_ctl_info() local
1610 offset = AR5K_EEPROM_CTL(ee->ee_version); in ath5k_eeprom_read_ctl_info()
1613 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1618 offset = AR5K_EEPROM_GROUP8_OFFSET; in ath5k_eeprom_read_ctl_info()
1620 offset += AR5K_EEPROM_TARGET_PWRSTART(ee->ee_misc1) - in ath5k_eeprom_read_ctl_info()
1623 offset += AR5K_EEPROM_GROUPS_START(ee->ee_version); in ath5k_eeprom_read_ctl_info()
1638 offset += 8; in ath5k_eeprom_read_ctl_info()
1640 offset += 7; in ath5k_eeprom_read_ctl_info()
1646 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1651 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1658 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1663 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1668 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1673 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1680 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1685 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1690 AR5K_EEPROM_READ(offset++, val); in ath5k_eeprom_read_ctl_info()
1708 u32 offset; in ath5k_eeprom_read_spur_chans() local
1712 offset = AR5K_EEPROM_CTL(ee->ee_version) + in ath5k_eeprom_read_spur_chans()
1724 AR5K_EEPROM_READ(offset, val); in ath5k_eeprom_read_spur_chans()
1726 AR5K_EEPROM_READ(offset + AR5K_EEPROM_N_SPUR_CHANS, in ath5k_eeprom_read_spur_chans()
1729 offset++; in ath5k_eeprom_read_spur_chans()