/linux-6.1.9/drivers/staging/rtl8712/ |
D | rtl8712_efuse.c | 183 static u8 calculate_word_cnts(const u8 word_en) in calculate_word_cnts() argument 189 if (!(word_en & BIT(word_idx))) in calculate_word_cnts() 194 static void pgpacket_copy_data(const u8 word_en, const u8 *sourdata, in pgpacket_copy_data() argument 201 if (!(word_en & BIT(word_idx))) { in pgpacket_copy_data() 277 u8 offset, word_en, value; in fix_header() local 283 pkt.word_en = GET_EFUSE_WORD_EN(header); in fix_header() 284 addr = header_addr + 1 + calculate_word_cnts(pkt.word_en) * 2; in fix_header() 295 word_en = GET_EFUSE_WORD_EN(value); in fix_header() 297 addr += calculate_word_cnts(word_en) * 2; in fix_header() 301 if (!(BIT(i) & word_en)) in fix_header() [all …]
|
D | rtl8712_efuse.h | 18 #define MAKE_EFUSE_HEADER(offset, word_en) ((((offset) & 0x0F) << 4) | \ argument 19 ((word_en) & 0x0F)) 23 u8 word_en; member 35 const u8 offset, const u8 word_en,
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/ |
D | efuse.c | 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() [all …]
|
D | efuse.h | 33 u8 word_en; member
|
/linux-6.1.9/drivers/staging/rtl8723bs/core/ |
D | rtw_efuse.c | 112 Efuse_CalculateWordCnts(u8 word_en) in Efuse_CalculateWordCnts() argument 115 if (!(word_en & BIT(0))) in Efuse_CalculateWordCnts() 117 if (!(word_en & BIT(1))) in Efuse_CalculateWordCnts() 119 if (!(word_en & BIT(2))) in Efuse_CalculateWordCnts() 121 if (!(word_en & BIT(3))) in Efuse_CalculateWordCnts() 338 u8 word_en, in Efuse_PgPacketWrite() argument 342 return padapter->HalFunc.Efuse_PgPacketWrite(padapter, offset, word_en, in Efuse_PgPacketWrite() 364 efuse_WordEnableDataRead(u8 word_en, in efuse_WordEnableDataRead() argument 368 if (!(word_en&BIT(0))) { in efuse_WordEnableDataRead() 372 if (!(word_en&BIT(1))) { in efuse_WordEnableDataRead() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/ |
D | efuse.c | 22 #define invalid_efuse_content(word_en, i) \ argument 23 (((word_en) & BIT(i)) != 0x0) 49 u8 word_en; in rtw_dump_logical_efuse_map() local 61 word_en = hdr2 & 0xf; in rtw_dump_logical_efuse_map() 66 word_en = hdr1 & 0xf; in rtw_dump_logical_efuse_map() 71 if (invalid_efuse_content(word_en, i)) in rtw_dump_logical_efuse_map()
|
/linux-6.1.9/drivers/staging/rtl8723bs/include/ |
D | rtw_efuse.h | 62 u8 word_en; member 107 u8 Efuse_CalculateWordCnts(u8 word_en); 114 int Efuse_PgPacketWrite(struct adapter *padapter, u8 offset, u8 word_en, u8 *data, bool bPseudoTest… 115 void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata); 116 u8 Efuse_WordEnableDataWrite(struct adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, bool b…
|
D | hal_intf.h | 247 …int (*Efuse_PgPacketWrite)(struct adapter *padapter, u8 offset, u8 word_en, u8 *data, bool bPseudo… 248 …u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, bo… 249 …bool (*Efuse_PgPacketWrite_BT)(struct adapter *padapter, u8 offset, u8 word_en, u8 *data, bool bPs…
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/ |
D | efuse.c | 181 #define invalid_efuse_content(word_en, i) \ argument 182 (((word_en) & BIT(i)) != 0x0) 197 u8 word_en; in rtw89_dump_logical_efuse_map() local 210 word_en = hdr2 & 0xf; in rtw89_dump_logical_efuse_map() 214 if (invalid_efuse_content(word_en, i)) in rtw89_dump_logical_efuse_map()
|
/linux-6.1.9/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_hal_init.c | 1172 u8 word_en, in Hal_EfuseWordEnableDataWrite() argument 1184 if (!(word_en & BIT(0))) { in Hal_EfuseWordEnableDataWrite() 1195 if (!(word_en & BIT(1))) { in Hal_EfuseWordEnableDataWrite() 1207 if (!(word_en & BIT(2))) { in Hal_EfuseWordEnableDataWrite() 1219 if (!(word_en & BIT(3))) { in Hal_EfuseWordEnableDataWrite() 1325 u8 word_en, in hal_EfuseConstructPGPkt() argument 1332 pTargetPkt->word_en = word_en; in hal_EfuseConstructPGPkt() 1333 efuse_WordEnableDataRead(word_en, pData, pTargetPkt->data); in hal_EfuseConstructPGPkt() 1334 pTargetPkt->word_cnts = Efuse_CalculateWordCnts(pTargetPkt->word_en); in hal_EfuseConstructPGPkt() 1395 curPkt.word_en = efuse_data & 0x0F; in hal_EfusePartialWriteCheck() [all …]
|