Lines Matching refs:word_en

38 				 u8 word_en, u8 *data);
39 static void efuse_word_enable_data_read(u8 word_en, u8 *sourdata,
42 u16 efuse_addr, u8 word_en, u8 *data);
44 static u8 efuse_calculate_word_cnts(u8 word_en);
416 u8 word_en = 0x0F; in efuse_shadow_update() local
435 word_en = 0x0F; in efuse_shadow_update()
440 word_en &= ~(BIT(i / 2)); in efuse_shadow_update()
448 word_en &= ~(BIT(i / 2)); in efuse_shadow_update()
456 if (word_en != 0x0F) { in efuse_shadow_update()
465 if (!efuse_pg_packet_write(hw, (u8) offset, word_en, in efuse_shadow_update()
738 int *repeat_times, int *result, u8 word_en) in efuse_write_data_case1() argument
751 tmp_pkt.word_en = tmp_header & 0x0F; in efuse_write_data_case1()
752 tmp_word_cnts = efuse_calculate_word_cnts(tmp_pkt.word_en); in efuse_write_data_case1()
771 if (!((target_pkt->word_en & BIT(0)) | in efuse_write_data_case1()
772 (tmp_pkt.word_en & BIT(0)))) in efuse_write_data_case1()
775 if (!((target_pkt->word_en & BIT(1)) | in efuse_write_data_case1()
776 (tmp_pkt.word_en & BIT(1)))) in efuse_write_data_case1()
779 if (!((target_pkt->word_en & BIT(2)) | in efuse_write_data_case1()
780 (tmp_pkt.word_en & BIT(2)))) in efuse_write_data_case1()
783 if (!((target_pkt->word_en & BIT(3)) | in efuse_write_data_case1()
784 (tmp_pkt.word_en & BIT(3)))) in efuse_write_data_case1()
791 tmp_pkt.word_en, in efuse_write_data_case1()
804 if ((target_pkt->word_en & BIT(0)) ^ in efuse_write_data_case1()
808 if ((target_pkt->word_en & BIT(1)) ^ in efuse_write_data_case1()
812 if ((target_pkt->word_en & BIT(2)) ^ in efuse_write_data_case1()
816 if ((target_pkt->word_en & BIT(3)) ^ in efuse_write_data_case1()
823 target_pkt->word_en = tmp_word_en; in efuse_write_data_case1()
836 target_pkt->word_en = word_en; in efuse_write_data_case1()
857 pg_header = ((target_pkt.offset << 4) & 0xf0) | target_pkt.word_en; in efuse_write_data_case2()
872 tmp_pkt.word_en = tmp_header & 0x0F; in efuse_write_data_case2()
874 tmp_word_cnts = efuse_calculate_word_cnts(tmp_pkt.word_en); in efuse_write_data_case2()
881 tmp_pkt.word_en, in efuse_write_data_case2()
913 u8 offset, u8 word_en, u8 *data) in efuse_pg_packet_write() argument
933 target_pkt.word_en = word_en; in efuse_pg_packet_write()
937 efuse_word_enable_data_read(word_en, data, target_pkt.data); in efuse_pg_packet_write()
938 target_word_cnts = efuse_calculate_word_cnts(target_pkt.word_en); in efuse_pg_packet_write()
957 word_en); in efuse_pg_packet_write()
971 target_pkt.word_en, in efuse_pg_packet_write()
981 target_pkt.word_en = badworden; in efuse_pg_packet_write()
984 word_en); in efuse_pg_packet_write()
1006 static void efuse_word_enable_data_read(u8 word_en, u8 *sourdata, in efuse_word_enable_data_read() argument
1009 if (!(word_en & BIT(0))) { in efuse_word_enable_data_read()
1014 if (!(word_en & BIT(1))) { in efuse_word_enable_data_read()
1019 if (!(word_en & BIT(2))) { in efuse_word_enable_data_read()
1024 if (!(word_en & BIT(3))) { in efuse_word_enable_data_read()
1031 u16 efuse_addr, u8 word_en, u8 *data) in enable_efuse_data_write() argument
1041 "word_en = %x efuse_addr=%x\n", word_en, efuse_addr); in enable_efuse_data_write()
1043 if (!(word_en & BIT(0))) { in enable_efuse_data_write()
1054 if (!(word_en & BIT(1))) { in enable_efuse_data_write()
1065 if (!(word_en & BIT(2))) { in enable_efuse_data_write()
1076 if (!(word_en & BIT(3))) { in enable_efuse_data_write()
1198 static u8 efuse_calculate_word_cnts(u8 word_en) in efuse_calculate_word_cnts() argument
1202 if (!(word_en & BIT(0))) in efuse_calculate_word_cnts()
1204 if (!(word_en & BIT(1))) in efuse_calculate_word_cnts()
1206 if (!(word_en & BIT(2))) in efuse_calculate_word_cnts()
1208 if (!(word_en & BIT(3))) in efuse_calculate_word_cnts()