Lines Matching refs:cptr
3271 int cptr; in ar9300_eeprom_restore_internal() local
3303 cptr = AR9300_BASE_ADDR_4K; in ar9300_eeprom_restore_internal()
3305 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal()
3307 cptr = AR9300_BASE_ADDR; in ar9300_eeprom_restore_internal()
3309 cptr); in ar9300_eeprom_restore_internal()
3310 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal()
3313 cptr = AR9300_BASE_ADDR_4K; in ar9300_eeprom_restore_internal()
3315 cptr); in ar9300_eeprom_restore_internal()
3316 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal()
3319 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal()
3321 cptr); in ar9300_eeprom_restore_internal()
3322 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal()
3326 cptr = AR9300_BASE_ADDR; in ar9300_eeprom_restore_internal()
3327 ath_dbg(common, EEPROM, "Trying OTP access at Address 0x%04x\n", cptr); in ar9300_eeprom_restore_internal()
3328 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal()
3331 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal()
3332 ath_dbg(common, EEPROM, "Trying OTP access at Address 0x%04x\n", cptr); in ar9300_eeprom_restore_internal()
3333 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal()
3342 if (!read(ah, cptr, word, COMP_HDR_LEN)) in ar9300_eeprom_restore_internal()
3352 cptr, code, reference, length, major, minor); in ar9300_eeprom_restore_internal()
3355 (length > cptr)) { in ar9300_eeprom_restore_internal()
3357 cptr -= COMP_HDR_LEN; in ar9300_eeprom_restore_internal()
3362 read(ah, cptr, word, COMP_HDR_LEN + osize + COMP_CKSUM_LEN); in ar9300_eeprom_restore_internal()
3374 cptr -= (COMP_HDR_LEN + osize + COMP_CKSUM_LEN); in ar9300_eeprom_restore_internal()
3378 return cptr; in ar9300_eeprom_restore_internal()