Lines Matching refs:b43legacy_phy_read
104 u16 b43legacy_phy_read(struct b43legacy_wldev *dev, u16 offset) in b43legacy_phy_read() function
182 phy->savedpctlreg = b43legacy_phy_read(dev, B43legacy_PHY_G_PCTL); in b43legacy_phy_init_pctl()
214 b43legacy_phy_write(dev, 0x04A5, (b43legacy_phy_read(dev, 0x04A5) in b43legacy_phy_agcsetup()
216 b43legacy_phy_write(dev, 0x041A, (b43legacy_phy_read(dev, 0x041A) in b43legacy_phy_agcsetup()
218 b43legacy_phy_write(dev, 0x041A, (b43legacy_phy_read(dev, 0x041A) in b43legacy_phy_agcsetup()
220 b43legacy_phy_write(dev, 0x048C, (b43legacy_phy_read(dev, 0x048C) in b43legacy_phy_agcsetup()
227 b43legacy_phy_write(dev, 0x04A0, (b43legacy_phy_read(dev, 0x04A0) in b43legacy_phy_agcsetup()
229 b43legacy_phy_write(dev, 0x04A1, (b43legacy_phy_read(dev, 0x04A1) in b43legacy_phy_agcsetup()
231 b43legacy_phy_write(dev, 0x04A2, (b43legacy_phy_read(dev, 0x04A2) in b43legacy_phy_agcsetup()
233 b43legacy_phy_write(dev, 0x04A0, (b43legacy_phy_read(dev, 0x04A0) in b43legacy_phy_agcsetup()
238 (b43legacy_phy_read(dev, 0x04A2) in b43legacy_phy_agcsetup()
241 b43legacy_phy_write(dev, 0x0488, (b43legacy_phy_read(dev, 0x0488) in b43legacy_phy_agcsetup()
243 b43legacy_phy_write(dev, 0x0488, (b43legacy_phy_read(dev, 0x0488) in b43legacy_phy_agcsetup()
245 b43legacy_phy_write(dev, 0x0496, (b43legacy_phy_read(dev, 0x0496) in b43legacy_phy_agcsetup()
247 b43legacy_phy_write(dev, 0x0489, (b43legacy_phy_read(dev, 0x0489) in b43legacy_phy_agcsetup()
249 b43legacy_phy_write(dev, 0x0489, (b43legacy_phy_read(dev, 0x0489) in b43legacy_phy_agcsetup()
251 b43legacy_phy_write(dev, 0x0482, (b43legacy_phy_read(dev, 0x0482) in b43legacy_phy_agcsetup()
253 b43legacy_phy_write(dev, 0x0496, (b43legacy_phy_read(dev, 0x0496) in b43legacy_phy_agcsetup()
255 b43legacy_phy_write(dev, 0x0481, (b43legacy_phy_read(dev, 0x0481) in b43legacy_phy_agcsetup()
257 b43legacy_phy_write(dev, 0x0481, (b43legacy_phy_read(dev, 0x0481) in b43legacy_phy_agcsetup()
263 (b43legacy_phy_read(dev, 0x041B) in b43legacy_phy_agcsetup()
267 b43legacy_phy_read(dev, 0x041B) & 0xFFE1); in b43legacy_phy_agcsetup()
270 (b43legacy_phy_read(dev, 0x0420) in b43legacy_phy_agcsetup()
277 (b43legacy_phy_read(dev, 0x0420) in b43legacy_phy_agcsetup()
281 b43legacy_phy_write(dev, 0x04A8, (b43legacy_phy_read(dev, 0x04A8) in b43legacy_phy_agcsetup()
287 (b43legacy_phy_read(dev, 0x04AB) in b43legacy_phy_agcsetup()
291 (b43legacy_phy_read(dev, 0x048C) & 0xFF00) in b43legacy_phy_agcsetup()
303 (b43legacy_phy_read(dev, 0x0426) & 0xFFFC)); in b43legacy_phy_agcsetup()
305 (b43legacy_phy_read(dev, 0x0426) & 0xEFFF)); in b43legacy_phy_agcsetup()
318 (b43legacy_phy_read(dev, in b43legacy_phy_setupg()
344 b43legacy_phy_write(dev, 0x042B, b43legacy_phy_read(dev, in b43legacy_phy_setupg()
358 else if ((phy->rev >= 7) && (b43legacy_phy_read(dev, 0x0449) & 0x0200)) in b43legacy_phy_setupg()
395 b43legacy_phy_read(dev, 0x0400); /* dummy read */ in b43legacy_phy_setupg()
546 (b43legacy_phy_read(dev, 0x0035) & 0xF0FF) in b43legacy_phy_initb5()
562 b43legacy_phy_write(dev, 0x0802, b43legacy_phy_read(dev, 0x0802) in b43legacy_phy_initb5()
564 b43legacy_phy_write(dev, 0x042B, b43legacy_phy_read(dev, 0x042B) in b43legacy_phy_initb5()
569 b43legacy_phy_write(dev, 0x0013, (b43legacy_phy_read(dev, in b43legacy_phy_initb5()
571 b43legacy_phy_write(dev, 0x0035, (b43legacy_phy_read(dev, in b43legacy_phy_initb5()
573 b43legacy_phy_write(dev, 0x005D, (b43legacy_phy_read(dev, in b43legacy_phy_initb5()
581 b43legacy_phy_read(dev, in b43legacy_phy_initb5()
712 b43legacy_phy_read(dev, 0x0802) | 0x0100); in b43legacy_phy_initb6()
714 b43legacy_phy_read(dev, 0x042B) | 0x2000); in b43legacy_phy_initb6()
754 b43legacy_phy_write(dev, 0x005D, (b43legacy_phy_read(dev, in b43legacy_phy_initb6()
761 b43legacy_phy_write(dev, 0x61, b43legacy_phy_read(dev, 0x61) in b43legacy_phy_initb6()
764 b43legacy_phy_write(dev, 0x0002, (b43legacy_phy_read(dev, in b43legacy_phy_initb6()
796 backup_phy[0] = b43legacy_phy_read(dev, 0x0429); in b43legacy_calc_loopback_gain()
797 backup_phy[1] = b43legacy_phy_read(dev, 0x0001); in b43legacy_calc_loopback_gain()
798 backup_phy[2] = b43legacy_phy_read(dev, 0x0811); in b43legacy_calc_loopback_gain()
799 backup_phy[3] = b43legacy_phy_read(dev, 0x0812); in b43legacy_calc_loopback_gain()
801 backup_phy[4] = b43legacy_phy_read(dev, 0x0814); in b43legacy_calc_loopback_gain()
802 backup_phy[5] = b43legacy_phy_read(dev, 0x0815); in b43legacy_calc_loopback_gain()
804 backup_phy[6] = b43legacy_phy_read(dev, 0x005A); in b43legacy_calc_loopback_gain()
805 backup_phy[7] = b43legacy_phy_read(dev, 0x0059); in b43legacy_calc_loopback_gain()
806 backup_phy[8] = b43legacy_phy_read(dev, 0x0058); in b43legacy_calc_loopback_gain()
807 backup_phy[9] = b43legacy_phy_read(dev, 0x000A); in b43legacy_calc_loopback_gain()
808 backup_phy[10] = b43legacy_phy_read(dev, 0x0003); in b43legacy_calc_loopback_gain()
809 backup_phy[11] = b43legacy_phy_read(dev, 0x080F); in b43legacy_calc_loopback_gain()
810 backup_phy[12] = b43legacy_phy_read(dev, 0x0810); in b43legacy_calc_loopback_gain()
811 backup_phy[13] = b43legacy_phy_read(dev, 0x002B); in b43legacy_calc_loopback_gain()
812 backup_phy[14] = b43legacy_phy_read(dev, 0x0015); in b43legacy_calc_loopback_gain()
813 b43legacy_phy_read(dev, 0x002D); /* dummy read */ in b43legacy_calc_loopback_gain()
820 b43legacy_phy_read(dev, 0x0429) & 0x3FFF); in b43legacy_calc_loopback_gain()
822 b43legacy_phy_read(dev, 0x0001) & 0x8000); in b43legacy_calc_loopback_gain()
824 b43legacy_phy_read(dev, 0x0811) | 0x0002); in b43legacy_calc_loopback_gain()
826 b43legacy_phy_read(dev, 0x0812) & 0xFFFD); in b43legacy_calc_loopback_gain()
828 b43legacy_phy_read(dev, 0x0811) | 0x0001); in b43legacy_calc_loopback_gain()
830 b43legacy_phy_read(dev, 0x0812) & 0xFFFE); in b43legacy_calc_loopback_gain()
833 b43legacy_phy_read(dev, 0x0814) | 0x0001); in b43legacy_calc_loopback_gain()
835 b43legacy_phy_read(dev, 0x0815) & 0xFFFE); in b43legacy_calc_loopback_gain()
837 b43legacy_phy_read(dev, 0x0814) | 0x0002); in b43legacy_calc_loopback_gain()
839 b43legacy_phy_read(dev, 0x0815) & 0xFFFD); in b43legacy_calc_loopback_gain()
841 b43legacy_phy_write(dev, 0x0811, b43legacy_phy_read(dev, 0x0811) | in b43legacy_calc_loopback_gain()
843 b43legacy_phy_write(dev, 0x0812, b43legacy_phy_read(dev, 0x0812) | in b43legacy_calc_loopback_gain()
846 b43legacy_phy_write(dev, 0x0811, (b43legacy_phy_read(dev, 0x0811) in b43legacy_calc_loopback_gain()
848 b43legacy_phy_write(dev, 0x0812, (b43legacy_phy_read(dev, 0x0812) in b43legacy_calc_loopback_gain()
858 b43legacy_phy_read(dev, 0x000A) in b43legacy_calc_loopback_gain()
862 b43legacy_phy_read(dev, 0x0814) | 0x0004); in b43legacy_calc_loopback_gain()
864 b43legacy_phy_read(dev, 0x0815) & 0xFFFB); in b43legacy_calc_loopback_gain()
867 (b43legacy_phy_read(dev, 0x0003) in b43legacy_calc_loopback_gain()
890 (b43legacy_phy_read(dev, 0x002B) in b43legacy_calc_loopback_gain()
893 (b43legacy_phy_read(dev, 0x002B) in b43legacy_calc_loopback_gain()
896 b43legacy_phy_read(dev, 0x0811) | 0x0100); in b43legacy_calc_loopback_gain()
898 b43legacy_phy_read(dev, 0x0812) & 0xCFFF); in b43legacy_calc_loopback_gain()
902 b43legacy_phy_read(dev, 0x0811) in b43legacy_calc_loopback_gain()
905 b43legacy_phy_read(dev, 0x0812) in b43legacy_calc_loopback_gain()
916 (b43legacy_phy_read(dev, 0x0812) in b43legacy_calc_loopback_gain()
919 (b43legacy_phy_read(dev, 0x0015) in b43legacy_calc_loopback_gain()
922 (b43legacy_phy_read(dev, 0x0015) in b43legacy_calc_loopback_gain()
925 if (b43legacy_phy_read(dev, 0x002D) >= 0x0DFC) in b43legacy_calc_loopback_gain()
934 b43legacy_phy_read(dev, 0x0812) in b43legacy_calc_loopback_gain()
938 (b43legacy_phy_read(dev, 0x0812) in b43legacy_calc_loopback_gain()
941 (b43legacy_phy_read(dev, 0x0015) in b43legacy_calc_loopback_gain()
944 (b43legacy_phy_read(dev, 0x0015) in b43legacy_calc_loopback_gain()
947 if (b43legacy_phy_read(dev, 0x002D) >= 0x0DFC) in b43legacy_calc_loopback_gain()
1008 tmp = b43legacy_phy_read(dev, 0x0400) & 0xFF; in b43legacy_phy_initg()
1017 (b43legacy_phy_read(dev, in b43legacy_phy_initg()
1025 b43legacy_phy_write(dev, 0x0801, b43legacy_phy_read(dev, 0x0801) in b43legacy_phy_initg()
1027 b43legacy_phy_write(dev, 0x043E, b43legacy_phy_read(dev, 0x043E) in b43legacy_phy_initg()
1052 (b43legacy_phy_read(dev, 0x0036) in b43legacy_phy_initg()
1093 b43legacy_phy_read(dev, 0x0429) & 0xBFFF); in b43legacy_phy_initg()
1095 b43legacy_phy_read(dev, 0x04C3) & 0x7FFF); in b43legacy_phy_initg()
1113 ret += b43legacy_phy_read(dev, 0x002C); in b43legacy_phy_lo_b_r15_loop()
1130 regstack[0] = b43legacy_phy_read(dev, 0x0015); in b43legacy_phy_lo_b_measure()
1134 regstack[2] = b43legacy_phy_read(dev, 0x000A); in b43legacy_phy_lo_b_measure()
1135 regstack[3] = b43legacy_phy_read(dev, 0x002A); in b43legacy_phy_lo_b_measure()
1136 regstack[4] = b43legacy_phy_read(dev, 0x0035); in b43legacy_phy_lo_b_measure()
1137 regstack[5] = b43legacy_phy_read(dev, 0x0003); in b43legacy_phy_lo_b_measure()
1138 regstack[6] = b43legacy_phy_read(dev, 0x0001); in b43legacy_phy_lo_b_measure()
1139 regstack[7] = b43legacy_phy_read(dev, 0x0030); in b43legacy_phy_lo_b_measure()
1243 ret = b43legacy_phy_read(dev, 0x002D); in b43legacy_phy_lo_g_deviation_subval()
1455 value = b43legacy_phy_read(dev, 0x0060) & 0xFFC3; in b43legacy_phy_set_baseband_attenuation()
1458 value = b43legacy_phy_read(dev, 0x0060) & 0xFF87; in b43legacy_phy_set_baseband_attenuation()
1488 regstack[0] = b43legacy_phy_read(dev, B43legacy_PHY_G_CRS); in b43legacy_phy_lo_g_measure()
1489 regstack[1] = b43legacy_phy_read(dev, 0x0802); in b43legacy_phy_lo_g_measure()
1497 regstack[5] = b43legacy_phy_read(dev, 0x15); in b43legacy_phy_lo_g_measure()
1498 regstack[6] = b43legacy_phy_read(dev, 0x2A); in b43legacy_phy_lo_g_measure()
1499 regstack[7] = b43legacy_phy_read(dev, 0x35); in b43legacy_phy_lo_g_measure()
1500 regstack[8] = b43legacy_phy_read(dev, 0x60); in b43legacy_phy_lo_g_measure()
1505 regstack[12] = b43legacy_phy_read(dev, 0x0811); in b43legacy_phy_lo_g_measure()
1506 regstack[13] = b43legacy_phy_read(dev, 0x0812); in b43legacy_phy_lo_g_measure()
1507 regstack[14] = b43legacy_phy_read(dev, 0x0814); in b43legacy_phy_lo_g_measure()
1508 regstack[15] = b43legacy_phy_read(dev, 0x0815); in b43legacy_phy_lo_g_measure()
2099 (b43legacy_phy_read(dev, offset + 1) in b43legacy_phy_set_antenna_diversity()
2108 (b43legacy_phy_read(dev, in b43legacy_phy_set_antenna_diversity()
2116 b43legacy_phy_read(dev, in b43legacy_phy_set_antenna_diversity()
2120 b43legacy_phy_read(dev, in b43legacy_phy_set_antenna_diversity()
2124 b43legacy_phy_read(dev, in b43legacy_phy_set_antenna_diversity()
2127 (b43legacy_phy_read(dev, in b43legacy_phy_set_antenna_diversity()
2135 (b43legacy_phy_read(dev, 0x0427) in b43legacy_phy_set_antenna_diversity()
2142 (b43legacy_phy_read(dev, in b43legacy_phy_set_antenna_diversity()
2147 b43legacy_phy_read(dev, in b43legacy_phy_set_antenna_diversity()
2158 (b43legacy_phy_read(dev, 0x0027) in b43legacy_phy_set_antenna_diversity()
2170 (b43legacy_phy_read(dev, 0x03E2) in b43legacy_phy_set_antenna_diversity()