• Home
  • Raw
  • Download

Lines Matching refs:eeprom

174 static void rt61pci_eepromregister_read(struct eeprom_93cx6 *eeprom)  in rt61pci_eepromregister_read()  argument
176 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt61pci_eepromregister_read()
181 eeprom->reg_data_in = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_IN); in rt61pci_eepromregister_read()
182 eeprom->reg_data_out = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_OUT); in rt61pci_eepromregister_read()
183 eeprom->reg_data_clock = in rt61pci_eepromregister_read()
185 eeprom->reg_chip_select = in rt61pci_eepromregister_read()
189 static void rt61pci_eepromregister_write(struct eeprom_93cx6 *eeprom) in rt61pci_eepromregister_write() argument
191 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt61pci_eepromregister_write()
194 rt2x00_set_field32(&reg, E2PROM_CSR_DATA_IN, !!eeprom->reg_data_in); in rt61pci_eepromregister_write()
195 rt2x00_set_field32(&reg, E2PROM_CSR_DATA_OUT, !!eeprom->reg_data_out); in rt61pci_eepromregister_write()
197 !!eeprom->reg_data_clock); in rt61pci_eepromregister_write()
199 !!eeprom->reg_chip_select); in rt61pci_eepromregister_write()
215 .eeprom = {
844 u16 eeprom; in rt61pci_config_lna_gain() local
851 rt2x00_eeprom_read(rt2x00dev, EEPROM_RSSI_OFFSET_BG, &eeprom); in rt61pci_config_lna_gain()
852 lna_gain -= rt2x00_get_field16(eeprom, EEPROM_RSSI_OFFSET_BG_1); in rt61pci_config_lna_gain()
857 rt2x00_eeprom_read(rt2x00dev, EEPROM_RSSI_OFFSET_A, &eeprom); in rt61pci_config_lna_gain()
858 lna_gain -= rt2x00_get_field16(eeprom, EEPROM_RSSI_OFFSET_A_1); in rt61pci_config_lna_gain()
1663 u16 eeprom; in rt61pci_init_bbp() local
1696 rt2x00_eeprom_read(rt2x00dev, EEPROM_BBP_START + i, &eeprom); in rt61pci_init_bbp()
1698 if (eeprom != 0xffff && eeprom != 0x0000) { in rt61pci_init_bbp()
1699 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt61pci_init_bbp()
1700 value = rt2x00_get_field16(eeprom, EEPROM_BBP_VALUE); in rt61pci_init_bbp()
2389 struct eeprom_93cx6 eeprom; in rt61pci_validate_eeprom() local
2397 eeprom.data = rt2x00dev; in rt61pci_validate_eeprom()
2398 eeprom.register_read = rt61pci_eepromregister_read; in rt61pci_validate_eeprom()
2399 eeprom.register_write = rt61pci_eepromregister_write; in rt61pci_validate_eeprom()
2400 eeprom.width = rt2x00_get_field32(reg, E2PROM_CSR_TYPE_93C46) ? in rt61pci_validate_eeprom()
2402 eeprom.reg_data_in = 0; in rt61pci_validate_eeprom()
2403 eeprom.reg_data_out = 0; in rt61pci_validate_eeprom()
2404 eeprom.reg_data_clock = 0; in rt61pci_validate_eeprom()
2405 eeprom.reg_chip_select = 0; in rt61pci_validate_eeprom()
2407 eeprom_93cx6_multiread(&eeprom, EEPROM_BASE, rt2x00dev->eeprom, in rt61pci_validate_eeprom()
2502 u16 eeprom; in rt61pci_init_eeprom() local
2507 rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &eeprom); in rt61pci_init_eeprom()
2512 value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_RF_TYPE); in rt61pci_init_eeprom()
2528 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_NUM) == 2) in rt61pci_init_eeprom()
2535 rt2x00_get_field16(eeprom, EEPROM_ANTENNA_TX_DEFAULT); in rt61pci_init_eeprom()
2537 rt2x00_get_field16(eeprom, EEPROM_ANTENNA_RX_DEFAULT); in rt61pci_init_eeprom()
2542 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_FRAME_TYPE)) in rt61pci_init_eeprom()
2548 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) in rt61pci_init_eeprom()
2554 rt2x00_eeprom_read(rt2x00dev, EEPROM_FREQ, &eeprom); in rt61pci_init_eeprom()
2555 if (rt2x00_get_field16(eeprom, EEPROM_FREQ_SEQ)) in rt61pci_init_eeprom()
2558 rt2x00dev->freq_offset = rt2x00_get_field16(eeprom, EEPROM_FREQ_OFFSET); in rt61pci_init_eeprom()
2563 rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC, &eeprom); in rt61pci_init_eeprom()
2565 if (rt2x00_get_field16(eeprom, EEPROM_NIC_EXTERNAL_LNA_A)) in rt61pci_init_eeprom()
2567 if (rt2x00_get_field16(eeprom, EEPROM_NIC_EXTERNAL_LNA_BG)) in rt61pci_init_eeprom()
2578 ANTENNA_A + rt2x00_get_field16(eeprom, EEPROM_NIC_RX_FIXED); in rt61pci_init_eeprom()
2580 ANTENNA_B - rt2x00_get_field16(eeprom, EEPROM_NIC_TX_FIXED); in rt61pci_init_eeprom()
2582 if (rt2x00_get_field16(eeprom, EEPROM_NIC_TX_DIVERSITY)) in rt61pci_init_eeprom()
2584 if (rt2x00_get_field16(eeprom, EEPROM_NIC_ENABLE_DIVERSITY)) in rt61pci_init_eeprom()
2594 rt2x00_eeprom_read(rt2x00dev, EEPROM_LED, &eeprom); in rt61pci_init_eeprom()
2595 value = rt2x00_get_field16(eeprom, EEPROM_LED_LED_MODE); in rt61pci_init_eeprom()
2605 rt2x00_get_field16(eeprom, in rt61pci_init_eeprom()
2608 rt2x00_get_field16(eeprom, in rt61pci_init_eeprom()
2611 rt2x00_get_field16(eeprom, in rt61pci_init_eeprom()
2614 rt2x00_get_field16(eeprom, in rt61pci_init_eeprom()
2617 rt2x00_get_field16(eeprom, in rt61pci_init_eeprom()
2620 rt2x00_get_field16(eeprom, EEPROM_LED_POLARITY_ACT)); in rt61pci_init_eeprom()
2622 rt2x00_get_field16(eeprom, in rt61pci_init_eeprom()
2625 rt2x00_get_field16(eeprom, in rt61pci_init_eeprom()