Lines Matching +full:0 +full:x7e100000

36 module_param(tx_ring_size, uint, 0);
37 module_param(rx_ring_size, uint, 0);
41 { PCI_DEVICE(0x10B7, 0x6000) }, /* 3Com 3CRSHPW796 */
42 { PCI_DEVICE(0x1200, 0x8201) }, /* ? */
43 { PCI_DEVICE(0x1317, 0x8201) }, /* ADM8211A */
44 { PCI_DEVICE(0x1317, 0x8211) }, /* ADM8211B/C */
45 { 0 }
88 u32 reg = 0x4000 | ADM8211_SPR_SRS; in adm8211_eeprom_register_write()
130 eeprom_93cx6_multiread(&eeprom, 0, (__le16 *)priv->eeprom, words); in adm8211_read_eeprom()
133 priv->rf_type = (cr49 >> 3) & 0x7; in adm8211_read_eeprom()
149 pci_name(priv->pdev), (cr49 >> 3) & 0x7); in adm8211_read_eeprom()
152 priv->bbp_type = cr49 & 0x7; in adm8211_read_eeprom()
237 return 0; in adm8211_read_eeprom()
247 0 : ADM8211_WEPCTL_SEL_WEPTABLE )); in adm8211_write_sram()
265 for (i = 0; i < len; i += 2) { in adm8211_write_sram_bytes()
270 for (i = 0; i < len; i += 4) { in adm8211_write_sram_bytes()
271 u32 val = (buf[i + 0] << 0 ) | (buf[i + 1] << 8 ) | in adm8211_write_sram_bytes()
286 for (addr = 0; addr < ADM8211_SRAM_SIZE; addr++) in adm8211_clear_sram()
287 adm8211_write_sram(dev, addr, 0); in adm8211_clear_sram()
299 return 0; in adm8211_get_stats()
343 ieee80211_wake_queue(dev, 0); in adm8211_interrupt_tci()
431 RDES1_CONTROL_RER : 0)); in adm8211_interrupt_rci()
434 struct ieee80211_rx_status rx_status = {0}; in adm8211_interrupt_rci()
463 } while (0) in adm8211_interrupt()
469 if (stsr == 0xffffffff) in adm8211_interrupt()
524 for (i = 0; i <= bits; i++) { \
548 ADM8211_CSR_WRITE(SYNRF, 0); \
552 WRITE_SYN(max2820, 0x00FFF, 0, 0x0F, 12, 15, 1, 1)
553 WRITE_SYN(al2210l, 0xFFFFF, 4, 0x0F, 0, 23, 1, 1)
554 WRITE_SYN(rfmd2958, 0x3FFFF, 0, 0x1F, 18, 23, 0, 1)
555 WRITE_SYN(rfmd2948, 0x0FFFF, 4, 0x0F, 0, 21, 0, 2)
566 while (timeout > 0) { in adm8211_write_bbp()
574 if (timeout == 0) { in adm8211_write_bbp()
576 "adm8211_write_bbp(%d,%d) failed prewrite (reg=0x%08x)\n", in adm8211_write_bbp()
586 reg = (0x20 << 24) | ADM8211_BBPCTL_TXCE | ADM8211_BBPCTL_CCAP | in adm8211_write_bbp()
587 (0x01 << 18); in adm8211_write_bbp()
590 reg = (0x20 << 24) | ADM8211_BBPCTL_TXCE | ADM8211_BBPCTL_CCAP | in adm8211_write_bbp()
591 (0x05 << 18); in adm8211_write_bbp()
599 while (timeout > 0) { in adm8211_write_bbp()
607 if (timeout == 0) { in adm8211_write_bbp()
611 "adm8211_write_bbp(%d,%d) failed postwrite (reg=0x%08x)\n", in adm8211_write_bbp()
616 return 0; in adm8211_write_bbp()
622 {0x22BD, 0x22D2, 0x22E8, 0x22FE, 0x2314, 0x232A, 0x2340, in adm8211_rf_set_channel()
623 0x2355, 0x236B, 0x2381, 0x2397, 0x23AD, 0x23C2, 0x23F7}; in adm8211_rf_set_channel()
625 {0x05D17, 0x3A2E8, 0x2E8BA, 0x22E8B, 0x1745D, 0x0BA2E, 0x00000, in adm8211_rf_set_channel()
626 0x345D1, 0x28BA2, 0x1D174, 0x11745, 0x05D17, 0x3A2E8, 0x11745}; in adm8211_rf_set_channel()
629 u8 ant_power = priv->ant_power > 0x3F ? in adm8211_rf_set_channel()
631 u8 tx_power = priv->tx_power > 0x3F ? in adm8211_rf_set_channel()
633 u8 lpf_cutoff = priv->lpf_cutoff == 0xFF ? in adm8211_rf_set_channel()
635 u8 lnags_thresh = priv->lnags_threshold == 0xFF ? in adm8211_rf_set_channel()
645 adm8211_rf_write_syn_rfmd2958(dev, 0x00, 0x04007); in adm8211_rf_set_channel()
646 adm8211_rf_write_syn_rfmd2958(dev, 0x02, 0x00033); in adm8211_rf_set_channel()
648 adm8211_rf_write_syn_rfmd2958(dev, 0x05, in adm8211_rf_set_channel()
650 adm8211_rf_write_syn_rfmd2958(dev, 0x06, in adm8211_rf_set_channel()
660 adm8211_rf_write_syn_rfmd2948(dev, SI4126_PHASE_DET_GAIN, 0); in adm8211_rf_set_channel()
670 adm8211_rf_write_syn_max2820(dev, 0x3, in adm8211_rf_set_channel()
671 (chan == 14 ? 0x054 : (0x7 + (chan * 5)))); in adm8211_rf_set_channel()
675 adm8211_rf_write_syn_al2210l(dev, 0x0, in adm8211_rf_set_channel()
676 (chan == 14 ? 0x229B4 : (0x22967 + (chan * 5)))); in adm8211_rf_set_channel()
692 reg &= 0xfffc0000; in adm8211_rf_set_channel()
701 adm8211_rf_write_syn_rfmd2958(dev, 0x0B, 0x07100); in adm8211_rf_set_channel()
707 adm8211_rf_write_syn_rfmd2958(dev, 0x0A, reg); in adm8211_rf_set_channel()
709 adm8211_rf_write_syn_rfmd2958(dev, 0x09, 0x00050 | in adm8211_rf_set_channel()
710 (priv->pdev->revision < ADM8211_REV_CA ? tx_power : 0)); in adm8211_rf_set_channel()
713 reg &= 0xff00ffff; in adm8211_rf_set_channel()
729 adm8211_write_bbp(dev, 0x1c, priv->pdev->revision == ADM8211_REV_BA ? in adm8211_rf_set_channel()
730 priv->eeprom->cr28 : 0); in adm8211_rf_set_channel()
731 adm8211_write_bbp(dev, 0x1d, priv->eeprom->cr29); in adm8211_rf_set_channel()
733 ADM8211_CSR_WRITE(SYNRF, 0); in adm8211_rf_set_channel()
744 reg &= ~0xF; in adm8211_rf_set_channel()
748 return 0; in adm8211_rf_set_channel()
757 priv->soft_rx_crc = 0; in adm8211_update_mode()
767 /* don't trust the error bits on rev 0x20 and up in adhoc */ in adm8211_update_mode()
790 adm8211_rf_write_syn_rfmd2958(dev, 0x1F, 0x00000); in adm8211_hw_init_syn()
792 adm8211_rf_write_syn_rfmd2958(dev, 0x0C, 0x3001F); in adm8211_hw_init_syn()
794 adm8211_rf_write_syn_rfmd2958(dev, 0x01, 0x29C03); in adm8211_hw_init_syn()
796 adm8211_rf_write_syn_rfmd2958(dev, 0x03, 0x1FF6F); in adm8211_hw_init_syn()
798 adm8211_rf_write_syn_rfmd2958(dev, 0x04, 0x29403); in adm8211_hw_init_syn()
800 adm8211_rf_write_syn_rfmd2958(dev, 0x07, 0x1456F); in adm8211_hw_init_syn()
802 adm8211_rf_write_syn_rfmd2958(dev, 0x09, in adm8211_hw_init_syn()
804 0x10050 : 0x00050)); in adm8211_hw_init_syn()
806 adm8211_rf_write_syn_rfmd2958(dev, 0x08, 0x3FFF8); in adm8211_hw_init_syn()
810 adm8211_rf_write_syn_max2820(dev, 0x1, 0x01E); in adm8211_hw_init_syn()
811 adm8211_rf_write_syn_max2820(dev, 0x2, 0x001); in adm8211_hw_init_syn()
812 adm8211_rf_write_syn_max2820(dev, 0x3, 0x054); in adm8211_hw_init_syn()
813 adm8211_rf_write_syn_max2820(dev, 0x4, 0x310); in adm8211_hw_init_syn()
814 adm8211_rf_write_syn_max2820(dev, 0x5, 0x000); in adm8211_hw_init_syn()
818 adm8211_rf_write_syn_al2210l(dev, 0x0, 0x0196C); in adm8211_hw_init_syn()
819 adm8211_rf_write_syn_al2210l(dev, 0x1, 0x007CB); in adm8211_hw_init_syn()
820 adm8211_rf_write_syn_al2210l(dev, 0x2, 0x3582F); in adm8211_hw_init_syn()
821 adm8211_rf_write_syn_al2210l(dev, 0x3, 0x010A9); in adm8211_hw_init_syn()
822 adm8211_rf_write_syn_al2210l(dev, 0x4, 0x77280); in adm8211_hw_init_syn()
823 adm8211_rf_write_syn_al2210l(dev, 0x5, 0x45641); in adm8211_hw_init_syn()
824 adm8211_rf_write_syn_al2210l(dev, 0x6, 0xEA130); in adm8211_hw_init_syn()
825 adm8211_rf_write_syn_al2210l(dev, 0x7, 0x80000); in adm8211_hw_init_syn()
826 adm8211_rf_write_syn_al2210l(dev, 0x8, 0x7850F); in adm8211_hw_init_syn()
827 adm8211_rf_write_syn_al2210l(dev, 0x9, 0xF900C); in adm8211_hw_init_syn()
828 adm8211_rf_write_syn_al2210l(dev, 0xA, 0x00000); in adm8211_hw_init_syn()
829 adm8211_rf_write_syn_al2210l(dev, 0xB, 0x00000); in adm8211_hw_init_syn()
845 ADM8211_CSR_WRITE(MMIWA, 0x100E0C0A); in adm8211_hw_init_bbp()
846 ADM8211_CSR_WRITE(MMIRD0, 0x00007C7E); in adm8211_hw_init_bbp()
847 ADM8211_CSR_WRITE(MMIRD1, 0x00100000); in adm8211_hw_init_bbp()
854 ADM8211_CSR_WRITE(MMIWA, 0x00009101); in adm8211_hw_init_bbp()
855 ADM8211_CSR_WRITE(MMIRD0, 0x00000301); in adm8211_hw_init_bbp()
859 ADM8211_CSR_WRITE(MMIWA, 0x00008903); in adm8211_hw_init_bbp()
860 ADM8211_CSR_WRITE(MMIRD0, 0x00001716); in adm8211_hw_init_bbp()
864 reg |= 0x5 << 18; in adm8211_hw_init_bbp()
874 ADM8211_CSR_WRITE(SYNCTL, 0x1 << 22); in adm8211_hw_init_bbp()
877 ADM8211_CSR_WRITE(SYNCTL, 0x3 << 22); in adm8211_hw_init_bbp()
882 reg &= 0x0000FFFF; in adm8211_hw_init_bbp()
883 reg |= 0x7e100000; in adm8211_hw_init_bbp()
890 ADM8211_CSR_WRITE(MMIRD1, 0x7e100000); in adm8211_hw_init_bbp()
895 ADM8211_CSR_WRITE(MACTEST, 0x800); in adm8211_hw_init_bbp()
916 adm8211_write_bbp(dev, RF3000_CCA_CTRL, 0x80); in adm8211_hw_init_bbp()
918 adm8211_write_bbp(dev, RF3000_DIVERSITY__RSSI, 0x80); in adm8211_hw_init_bbp()
919 adm8211_write_bbp(dev, RF3000_TX_VAR_GAIN__TX_LEN_EXT, 0x74); in adm8211_hw_init_bbp()
920 adm8211_write_bbp(dev, RF3000_LOW_GAIN_CALIB, 0x38); in adm8211_hw_init_bbp()
921 adm8211_write_bbp(dev, RF3000_HIGH_GAIN_CALIB, 0x40); in adm8211_hw_init_bbp()
924 adm8211_write_bbp(dev, 0x1c, 0x00); in adm8211_hw_init_bbp()
925 adm8211_write_bbp(dev, 0x1d, 0x80); in adm8211_hw_init_bbp()
928 adm8211_write_bbp(dev, 0x1c, priv->eeprom->cr28); in adm8211_hw_init_bbp()
930 adm8211_write_bbp(dev, 0x1c, 0x00); in adm8211_hw_init_bbp()
932 adm8211_write_bbp(dev, 0x1d, priv->eeprom->cr29); in adm8211_hw_init_bbp()
936 adm8211_write_bbp(dev, 0x00, 0xFF); in adm8211_hw_init_bbp()
938 adm8211_write_bbp(dev, 0x07, 0x0A); in adm8211_hw_init_bbp()
944 adm8211_write_bbp(dev, 0x00, 0x00); in adm8211_hw_init_bbp()
945 adm8211_write_bbp(dev, 0x01, 0x00); in adm8211_hw_init_bbp()
946 adm8211_write_bbp(dev, 0x02, 0x00); in adm8211_hw_init_bbp()
947 adm8211_write_bbp(dev, 0x03, 0x00); in adm8211_hw_init_bbp()
948 adm8211_write_bbp(dev, 0x06, 0x0f); in adm8211_hw_init_bbp()
949 adm8211_write_bbp(dev, 0x09, 0x00); in adm8211_hw_init_bbp()
950 adm8211_write_bbp(dev, 0x0a, 0x00); in adm8211_hw_init_bbp()
951 adm8211_write_bbp(dev, 0x0b, 0x00); in adm8211_hw_init_bbp()
952 adm8211_write_bbp(dev, 0x0c, 0x00); in adm8211_hw_init_bbp()
953 adm8211_write_bbp(dev, 0x0f, 0xAA); in adm8211_hw_init_bbp()
954 adm8211_write_bbp(dev, 0x10, 0x8c); in adm8211_hw_init_bbp()
955 adm8211_write_bbp(dev, 0x11, 0x43); in adm8211_hw_init_bbp()
956 adm8211_write_bbp(dev, 0x18, 0x40); in adm8211_hw_init_bbp()
957 adm8211_write_bbp(dev, 0x20, 0x23); in adm8211_hw_init_bbp()
958 adm8211_write_bbp(dev, 0x21, 0x02); in adm8211_hw_init_bbp()
959 adm8211_write_bbp(dev, 0x22, 0x28); in adm8211_hw_init_bbp()
960 adm8211_write_bbp(dev, 0x23, 0x30); in adm8211_hw_init_bbp()
961 adm8211_write_bbp(dev, 0x24, 0x2d); in adm8211_hw_init_bbp()
962 adm8211_write_bbp(dev, 0x28, 0x35); in adm8211_hw_init_bbp()
963 adm8211_write_bbp(dev, 0x2a, 0x8c); in adm8211_hw_init_bbp()
964 adm8211_write_bbp(dev, 0x2b, 0x81); in adm8211_hw_init_bbp()
965 adm8211_write_bbp(dev, 0x2c, 0x44); in adm8211_hw_init_bbp()
966 adm8211_write_bbp(dev, 0x2d, 0x0A); in adm8211_hw_init_bbp()
967 adm8211_write_bbp(dev, 0x29, 0x40); in adm8211_hw_init_bbp()
968 adm8211_write_bbp(dev, 0x60, 0x08); in adm8211_hw_init_bbp()
969 adm8211_write_bbp(dev, 0x64, 0x01); in adm8211_hw_init_bbp()
973 adm8211_write_bbp(dev, 0x00, 0x00); in adm8211_hw_init_bbp()
974 adm8211_write_bbp(dev, 0x01, 0x00); in adm8211_hw_init_bbp()
975 adm8211_write_bbp(dev, 0x02, 0x00); in adm8211_hw_init_bbp()
976 adm8211_write_bbp(dev, 0x03, 0x00); in adm8211_hw_init_bbp()
977 adm8211_write_bbp(dev, 0x06, 0x0f); in adm8211_hw_init_bbp()
978 adm8211_write_bbp(dev, 0x09, 0x05); in adm8211_hw_init_bbp()
979 adm8211_write_bbp(dev, 0x0a, 0x02); in adm8211_hw_init_bbp()
980 adm8211_write_bbp(dev, 0x0b, 0x00); in adm8211_hw_init_bbp()
981 adm8211_write_bbp(dev, 0x0c, 0x0f); in adm8211_hw_init_bbp()
982 adm8211_write_bbp(dev, 0x0f, 0x55); in adm8211_hw_init_bbp()
983 adm8211_write_bbp(dev, 0x10, 0x8d); in adm8211_hw_init_bbp()
984 adm8211_write_bbp(dev, 0x11, 0x43); in adm8211_hw_init_bbp()
985 adm8211_write_bbp(dev, 0x18, 0x4a); in adm8211_hw_init_bbp()
986 adm8211_write_bbp(dev, 0x20, 0x20); in adm8211_hw_init_bbp()
987 adm8211_write_bbp(dev, 0x21, 0x02); in adm8211_hw_init_bbp()
988 adm8211_write_bbp(dev, 0x22, 0x23); in adm8211_hw_init_bbp()
989 adm8211_write_bbp(dev, 0x23, 0x30); in adm8211_hw_init_bbp()
990 adm8211_write_bbp(dev, 0x24, 0x2d); in adm8211_hw_init_bbp()
991 adm8211_write_bbp(dev, 0x2a, 0x8c); in adm8211_hw_init_bbp()
992 adm8211_write_bbp(dev, 0x2b, 0x81); in adm8211_hw_init_bbp()
993 adm8211_write_bbp(dev, 0x2c, 0x44); in adm8211_hw_init_bbp()
994 adm8211_write_bbp(dev, 0x29, 0x4a); in adm8211_hw_init_bbp()
995 adm8211_write_bbp(dev, 0x60, 0x2b); in adm8211_hw_init_bbp()
996 adm8211_write_bbp(dev, 0x64, 0x01); in adm8211_hw_init_bbp()
1000 adm8211_write_bbp(dev, 0x00, 0x00); in adm8211_hw_init_bbp()
1001 adm8211_write_bbp(dev, 0x01, 0x00); in adm8211_hw_init_bbp()
1002 adm8211_write_bbp(dev, 0x02, 0x00); in adm8211_hw_init_bbp()
1003 adm8211_write_bbp(dev, 0x03, 0x00); in adm8211_hw_init_bbp()
1004 adm8211_write_bbp(dev, 0x06, 0x0f); in adm8211_hw_init_bbp()
1005 adm8211_write_bbp(dev, 0x07, 0x05); in adm8211_hw_init_bbp()
1006 adm8211_write_bbp(dev, 0x08, 0x03); in adm8211_hw_init_bbp()
1007 adm8211_write_bbp(dev, 0x09, 0x00); in adm8211_hw_init_bbp()
1008 adm8211_write_bbp(dev, 0x0a, 0x00); in adm8211_hw_init_bbp()
1009 adm8211_write_bbp(dev, 0x0b, 0x00); in adm8211_hw_init_bbp()
1010 adm8211_write_bbp(dev, 0x0c, 0x10); in adm8211_hw_init_bbp()
1011 adm8211_write_bbp(dev, 0x0f, 0x55); in adm8211_hw_init_bbp()
1012 adm8211_write_bbp(dev, 0x10, 0x8d); in adm8211_hw_init_bbp()
1013 adm8211_write_bbp(dev, 0x11, 0x43); in adm8211_hw_init_bbp()
1014 adm8211_write_bbp(dev, 0x18, 0x4a); in adm8211_hw_init_bbp()
1015 adm8211_write_bbp(dev, 0x20, 0x20); in adm8211_hw_init_bbp()
1016 adm8211_write_bbp(dev, 0x21, 0x02); in adm8211_hw_init_bbp()
1017 adm8211_write_bbp(dev, 0x22, 0x23); in adm8211_hw_init_bbp()
1018 adm8211_write_bbp(dev, 0x23, 0x30); in adm8211_hw_init_bbp()
1019 adm8211_write_bbp(dev, 0x24, 0x2d); in adm8211_hw_init_bbp()
1020 adm8211_write_bbp(dev, 0x2a, 0xaa); in adm8211_hw_init_bbp()
1021 adm8211_write_bbp(dev, 0x2b, 0x81); in adm8211_hw_init_bbp()
1022 adm8211_write_bbp(dev, 0x2c, 0x44); in adm8211_hw_init_bbp()
1023 adm8211_write_bbp(dev, 0x29, 0xfa); in adm8211_hw_init_bbp()
1024 adm8211_write_bbp(dev, 0x60, 0x2d); in adm8211_hw_init_bbp()
1025 adm8211_write_bbp(dev, 0x64, 0x01); in adm8211_hw_init_bbp()
1039 ADM8211_CSR_WRITE(SYNRF, 0); in adm8211_hw_init_bbp()
1046 return 0; in adm8211_hw_init_bbp()
1054 int i = 0; in adm8211_set_rate()
1055 u8 rate_buf[12] = {0}; in adm8211_set_rate()
1059 rate_buf[0] = ARRAY_SIZE(adm8211_rates); in adm8211_set_rate()
1060 for (i = 0; i < ARRAY_SIZE(adm8211_rates); i++) in adm8211_set_rate()
1061 rate_buf[i + 1] = (adm8211_rates[i].bitrate / 5) | 0x80; in adm8211_set_rate()
1064 rate_buf[0] = 0x04; in adm8211_set_rate()
1065 rate_buf[1] = 0x82; in adm8211_set_rate()
1066 rate_buf[2] = 0x04; in adm8211_set_rate()
1067 rate_buf[3] = 0x0b; in adm8211_set_rate()
1068 rate_buf[4] = 0x16; in adm8211_set_rate()
1074 reg = ADM8211_CSR_READ(PLCPHD) & 0x00FFFFFF; /* keep bits 0-23 */ in adm8211_set_rate()
1082 ADM8211_CSR_WRITE(TXLMT, (512 << 16) | (110 << 8) | (224 << 0)); in adm8211_set_rate()
1084 return 0; in adm8211_set_rate()
1098 reg |= 0x1 << 24; in adm8211_hw_init()
1102 case 0x8: in adm8211_hw_init()
1103 reg |= (0x1 << 14); in adm8211_hw_init()
1105 case 0x10: in adm8211_hw_init()
1106 reg |= (0x2 << 14); in adm8211_hw_init()
1108 case 0x20: in adm8211_hw_init()
1109 reg |= (0x3 << 14); in adm8211_hw_init()
1112 reg |= (0x0 << 14); in adm8211_hw_init()
1120 reg &= ~(0xF << 28); in adm8211_hw_init()
1125 reg = (0x04 << 21) | ADM8211_WCSR_TSFTWE | ADM8211_WCSR_LSOE; in adm8211_hw_init()
1147 ADM8211_CSR_WRITE(TOFS2, 0x8815cd18); in adm8211_hw_init()
1149 ADM8211_CSR_WRITE(TOFS2, 0x8535cd16); in adm8211_hw_init()
1159 ADM8211_CSR_WRITE(SYNRF, 0); in adm8211_hw_init()
1163 /* Set CFP Max Duration to 0x10 TU */ in adm8211_hw_init()
1165 reg &= ~(0xffff << 8); in adm8211_hw_init()
1166 reg |= 0x0010 << 8; in adm8211_hw_init()
1169 /* USCNT = 0x16 (number of system clocks, 22 MHz, in 1us in adm8211_hw_init()
1170 * TUCNT = 0x3ff - Tu counter 1024 us */ in adm8211_hw_init()
1171 ADM8211_CSR_WRITE(TOFS0, (0x16 << 24) | 0x3ff); in adm8211_hw_init()
1186 /* MART=65535 us, MIRT=256 us, TSFTOFST=0 us */ in adm8211_hw_init()
1187 ADM8211_CSR_WRITE(RSPT, 0xffffff00); in adm8211_hw_init()
1193 ADM8211_CSR_WRITE(IER, 0); in adm8211_hw_init()
1220 ADM8211_CSR_WRITE(FRCTL, 0); in adm8211_hw_reset()
1229 if (timeout <= 0) in adm8211_hw_reset()
1246 ADM8211_CSR_WRITE(FRCTL, 0); in adm8211_hw_reset()
1254 return 0; in adm8211_hw_reset()
1291 reg &= 0x0000ffff; in adm8211_set_bssid()
1308 return 0; in adm8211_config()
1334 mc_filter[1] = mc_filter[0] = 0; in adm8211_prepare_multicast()
1339 bit_nr &= 0x3F; in adm8211_prepare_multicast()
1343 return mc_filter[0] | ((u64)(mc_filter[1]) << 32); in adm8211_prepare_multicast()
1351 static const u8 bcast[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; in adm8211_configure_filter()
1356 mc_filter[0] = multicast; in adm8211_configure_filter()
1359 new_flags = 0; in adm8211_configure_filter()
1361 if (*total_flags & FIF_ALLMULTI || multicast == ~(0ULL)) { in adm8211_configure_filter()
1365 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter()
1372 ADM8211_CSR_WRITE(MAR0, mc_filter[0]); in adm8211_configure_filter()
1415 return 0; in adm8211_add_interface()
1433 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings()
1435 desc->status = 0; in adm8211_init_rings()
1443 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings()
1465 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_init_rings()
1470 tx_info->mapping = 0; in adm8211_init_rings()
1471 desc->status = 0; in adm8211_init_rings()
1475 priv->cur_rx = priv->cur_tx = priv->dirty_tx = 0; in adm8211_init_rings()
1479 return 0; in adm8211_init_rings()
1487 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_free_rings()
1498 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_free_rings()
1544 ADM8211_CSR_WRITE(RDR, 0); in adm8211_start()
1547 return 0; in adm8211_start()
1558 priv->nar = 0; in adm8211_stop()
1559 ADM8211_CSR_WRITE(NAR, 0); in adm8211_stop()
1560 ADM8211_CSR_WRITE(IER, 0); in adm8211_stop()
1614 remainder <= 30 && remainder > 0) in adm8211_calc_durations()
1615 *plcp = (*plcp | 0x8000) + 1; in adm8211_calc_durations()
1644 ieee80211_stop_queue(dev, 0); in adm8211_tx_raw()
1666 ADM8211_CSR_WRITE(TDR, 0); in adm8211_tx_raw()
1668 return 0; in adm8211_tx_raw()
1684 rc_flags = info->control.rates[0].flags; in adm8211_tx()
1696 memset(txhdr, 0, sizeof(*txhdr)); in adm8211_tx()
1704 txhdr->frag = cpu_to_le16(0x0FFF); in adm8211_tx()
1720 txhdr->retry_limit = info->control.rates[0].count; in adm8211_tx()
1758 return 0; in adm8211_alloc_rings()
1798 io_len = pci_resource_len(pdev, 0); in adm8211_probe()
1809 pci_read_config_dword(pdev, 0x80 /* CR32 */, &reg); in adm8211_probe()
1811 printk(KERN_ERR "%s (adm8211): Invalid signature (0x%x)\n", in adm8211_probe()
1851 priv->map = pci_iomap(pdev, 0, io_len); in adm8211_probe()
1872 cpu_to_le16(ADM8211_CSR_READ(PAR1) & 0xFFFF); in adm8211_probe()
1891 priv->ant_power = 0x40; in adm8211_probe()
1892 priv->tx_power = 0x40; in adm8211_probe()
1893 priv->lpf_cutoff = 0xFF; in adm8211_probe()
1894 priv->lnags_threshold = 0xFF; in adm8211_probe()
1899 ADM8211_CSR_WRITE(FRCTL, 0); in adm8211_probe()
1926 wiphy_info(dev->wiphy, "hwaddr %pM, Rev 0x%02x\n", in adm8211_probe()
1929 return 0; in adm8211_probe()