Lines Matching refs:efuse_addr

80 				  u16 efuse_addr, u8 word_en, u8 *data);
240 u16 efuse_addr = 0; in read_efuse() local
279 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
283 "Addr=%d\n", efuse_addr); in read_efuse()
284 efuse_addr++; in read_efuse()
287 while ((*rtemp8 != 0xFF) && (efuse_addr < efuse_len)) { in read_efuse()
291 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
294 efuse_addr++; in read_efuse()
295 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
298 (efuse_addr < efuse_len)) { in read_efuse()
299 efuse_addr++; in read_efuse()
305 efuse_addr++; in read_efuse()
320 "Addr=%d\n", efuse_addr); in read_efuse()
322 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
323 efuse_addr++; in read_efuse()
328 if (efuse_addr >= efuse_len) in read_efuse()
333 "Addr=%d\n", efuse_addr); in read_efuse()
335 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
336 efuse_addr++; in read_efuse()
341 if (efuse_addr >= efuse_len) in read_efuse()
350 "Addr=%d\n", efuse_addr); in read_efuse()
351 read_efuse_byte(hw, efuse_addr, rtemp8); in read_efuse()
352 if (*rtemp8 != 0xFF && (efuse_addr < efuse_len)) { in read_efuse()
354 efuse_addr++; in read_efuse()
691 static void efuse_read_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr, in efuse_read_data_case1() argument
707 if (efuse_one_byte_read(hw, *efuse_addr + 1 + tmpidx, in efuse_read_data_case1()
718 *efuse_addr = *efuse_addr + (word_cnts * 2) + 1; in efuse_read_data_case1()
723 *efuse_addr = *efuse_addr + (word_cnts * 2) + 1; in efuse_read_data_case1()
735 u16 efuse_addr = 0; in efuse_pg_packet_read() local
746 while (continual && (efuse_addr < EFUSE_MAX_SIZE)) { in efuse_pg_packet_read()
748 if (efuse_one_byte_read(hw, efuse_addr, &efuse_data) in efuse_pg_packet_read()
750 efuse_read_data_case1(hw, &efuse_addr, in efuse_pg_packet_read()
757 efuse_addr = efuse_addr + (word_cnts * 2) + 1; in efuse_pg_packet_read()
773 static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr, in efuse_write_data_case1() argument
794 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1; in efuse_write_data_case1()
799 (*efuse_addr + 1 + tmpindex), in efuse_write_data_case1()
806 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1; in efuse_write_data_case1()
829 *efuse_addr + 1, in efuse_write_data_case1()
859 *efuse_addr = efuse_get_current_size(hw); in efuse_write_data_case1()
872 *efuse_addr += (2 * tmp_word_cnts) + 1; in efuse_write_data_case1()
882 static void efuse_write_data_case2(struct ieee80211_hw *hw, u16 *efuse_addr, in efuse_write_data_case2() argument
896 efuse_one_byte_write(hw, *efuse_addr, pg_header); in efuse_write_data_case2()
897 efuse_one_byte_read(hw, *efuse_addr, &tmp_header); in efuse_write_data_case2()
918 *efuse_addr + 1, in efuse_write_data_case2()
928 *efuse_addr = efuse_get_current_size(hw); in efuse_write_data_case2()
930 *efuse_addr = *efuse_addr + in efuse_write_data_case2()
934 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1; in efuse_write_data_case2()
956 u16 efuse_addr = 0; in efuse_pg_packet_write() local
979 while (continual && (efuse_addr < (EFUSE_MAX_SIZE - in efuse_pg_packet_write()
988 if (efuse_one_byte_read(hw, efuse_addr, &efuse_data) && in efuse_pg_packet_write()
990 efuse_write_data_case1(hw, &efuse_addr, in efuse_pg_packet_write()
998 efuse_write_data_case2(hw, &efuse_addr, in efuse_pg_packet_write()
1010 enable_efuse_data_write(hw, efuse_addr + 1, in efuse_pg_packet_write()
1017 efuse_addr = in efuse_pg_packet_write()
1018 efuse_addr + (2 * target_word_cnts) + 1; in efuse_pg_packet_write()
1037 if (efuse_addr >= (EFUSE_MAX_SIZE - in efuse_pg_packet_write()
1040 "efuse_addr(%#x) Out of size!!\n", efuse_addr); in efuse_pg_packet_write()
1071 u16 efuse_addr, u8 word_en, u8 *data) in enable_efuse_data_write() argument
1075 u16 start_addr = efuse_addr; in enable_efuse_data_write()
1081 "word_en = %x efuse_addr=%x\n", word_en, efuse_addr); in enable_efuse_data_write()
1221 u16 efuse_addr = 0; in efuse_get_current_size() local
1225 while (continual && efuse_one_byte_read(hw, efuse_addr, &efuse_data) && in efuse_get_current_size()
1226 (efuse_addr < EFUSE_MAX_SIZE)) { in efuse_get_current_size()
1231 efuse_addr = efuse_addr + (word_cnts * 2) + 1; in efuse_get_current_size()
1237 return efuse_addr; in efuse_get_current_size()