Lines Matching refs:efuse_addr

42 				  u16 efuse_addr, u8 word_en, u8 *data);
200 u16 efuse_addr = 0; in read_efuse() local
239 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
243 "Addr=%d\n", efuse_addr); in read_efuse()
244 efuse_addr++; in read_efuse()
247 while ((*rtemp8 != 0xFF) && (efuse_addr < efuse_len)) { in read_efuse()
251 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
254 efuse_addr++; in read_efuse()
255 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
258 (efuse_addr < efuse_len)) { in read_efuse()
259 efuse_addr++; in read_efuse()
265 efuse_addr++; in read_efuse()
280 "Addr=%d\n", efuse_addr); in read_efuse()
282 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
283 efuse_addr++; in read_efuse()
288 if (efuse_addr >= efuse_len) in read_efuse()
293 "Addr=%d\n", efuse_addr); in read_efuse()
295 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
296 efuse_addr++; in read_efuse()
301 if (efuse_addr >= efuse_len) in read_efuse()
310 "Addr=%d\n", efuse_addr); in read_efuse()
311 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
312 if (*rtemp8 != 0xFF && (efuse_addr < efuse_len)) { in read_efuse()
314 efuse_addr++; in read_efuse()
652 static void efuse_read_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr, in efuse_read_data_case1() argument
668 if (efuse_one_byte_read(hw, *efuse_addr + 1 + tmpidx, in efuse_read_data_case1()
679 *efuse_addr = *efuse_addr + (word_cnts * 2) + 1; in efuse_read_data_case1()
684 *efuse_addr = *efuse_addr + (word_cnts * 2) + 1; in efuse_read_data_case1()
696 u16 efuse_addr = 0; in efuse_pg_packet_read() local
707 while (continual && (efuse_addr < EFUSE_MAX_SIZE)) { in efuse_pg_packet_read()
709 if (efuse_one_byte_read(hw, efuse_addr, &efuse_data) in efuse_pg_packet_read()
711 efuse_read_data_case1(hw, &efuse_addr, in efuse_pg_packet_read()
718 efuse_addr = efuse_addr + (word_cnts * 2) + 1; in efuse_pg_packet_read()
734 static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr, in efuse_write_data_case1() argument
755 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1; in efuse_write_data_case1()
760 (*efuse_addr + 1 + tmpindex), in efuse_write_data_case1()
767 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1; in efuse_write_data_case1()
790 *efuse_addr + 1, in efuse_write_data_case1()
821 *efuse_addr = efuse_get_current_size(hw); in efuse_write_data_case1()
834 *efuse_addr += (2 * tmp_word_cnts) + 1; in efuse_write_data_case1()
844 static void efuse_write_data_case2(struct ieee80211_hw *hw, u16 *efuse_addr, in efuse_write_data_case2() argument
858 efuse_one_byte_write(hw, *efuse_addr, pg_header); in efuse_write_data_case2()
859 efuse_one_byte_read(hw, *efuse_addr, &tmp_header); in efuse_write_data_case2()
880 *efuse_addr + 1, in efuse_write_data_case2()
891 *efuse_addr = efuse_get_current_size(hw); in efuse_write_data_case2()
893 *efuse_addr = *efuse_addr + in efuse_write_data_case2()
897 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1; in efuse_write_data_case2()
919 u16 efuse_addr = 0; in efuse_pg_packet_write() local
942 while (continual && (efuse_addr < (EFUSE_MAX_SIZE - in efuse_pg_packet_write()
949 if (efuse_one_byte_read(hw, efuse_addr, &efuse_data) && in efuse_pg_packet_write()
951 efuse_write_data_case1(hw, &efuse_addr, in efuse_pg_packet_write()
959 efuse_write_data_case2(hw, &efuse_addr, in efuse_pg_packet_write()
970 enable_efuse_data_write(hw, efuse_addr + 1, in efuse_pg_packet_write()
977 efuse_addr = in efuse_pg_packet_write()
978 efuse_addr + (2 * target_word_cnts) + 1; in efuse_pg_packet_write()
997 if (efuse_addr >= (EFUSE_MAX_SIZE - in efuse_pg_packet_write()
1000 "efuse_addr(%#x) Out of size!!\n", efuse_addr); in efuse_pg_packet_write()
1031 u16 efuse_addr, u8 word_en, u8 *data) in enable_efuse_data_write() argument
1035 u16 start_addr = efuse_addr; in enable_efuse_data_write()
1041 "word_en = %x efuse_addr=%x\n", word_en, efuse_addr); in enable_efuse_data_write()
1180 u16 efuse_addr = 0; in efuse_get_current_size() local
1184 while (continual && efuse_one_byte_read(hw, efuse_addr, &efuse_data) && in efuse_get_current_size()
1185 (efuse_addr < EFUSE_MAX_SIZE)) { in efuse_get_current_size()
1189 efuse_addr = efuse_addr + (word_cnts * 2) + 1; in efuse_get_current_size()
1195 return efuse_addr; in efuse_get_current_size()