Lines Matching +full:0 +full:x4140

20 				sizeof(((struct e1000_adapter *)0)->m), \
23 sizeof(((struct net_device *)0)->m), \
75 #define E1000_QUEUE_STATS_LEN 0
143 /* MDI-X => 1; MDI => 0 */ in e1000_get_link_ksettings()
161 return 0; in e1000_get_link_ksettings()
228 return 0; in e1000_set_link_ksettings()
271 int retval = 0; in e1000_set_pauseparam()
332 memset(p, 0, E1000_REGS_LEN * sizeof(u32)); in e1000_get_regs()
336 regs_buff[0] = er32(CTRL); in e1000_get_regs()
351 regs_buff[12] = hw->phy_type; /* PHY type (IGP=1, M88=0) */ in e1000_get_regs()
373 regs_buff[17] = 0; /* extended 10bt distance (not needed) */ in e1000_get_regs()
374 e1000_write_phy_reg(hw, IGP01E1000_PHY_PAGE_SELECT, 0x0); in e1000_get_regs()
383 regs_buff[20] = 0; /* polarity correction enabled (always) */ in e1000_get_regs()
384 regs_buff[22] = 0; /* phy receive errors (unavailable) */ in e1000_get_regs()
386 e1000_write_phy_reg(hw, IGP01E1000_PHY_PAGE_SELECT, 0x0); in e1000_get_regs()
390 regs_buff[14] = 0; /* Dummy (to align w/ IGP phy reg dump) */ in e1000_get_regs()
391 regs_buff[15] = 0; /* Dummy (to align w/ IGP phy reg dump) */ in e1000_get_regs()
392 regs_buff[16] = 0; /* Dummy (to align w/ IGP phy reg dump) */ in e1000_get_regs()
396 regs_buff[19] = 0; /* Dummy (to align w/ IGP phy reg dump) */ in e1000_get_regs()
427 int ret_val = 0; in e1000_get_eeprom()
430 if (eeprom->len == 0) in e1000_get_eeprom()
448 for (i = 0; i < last_word - first_word + 1; i++) { in e1000_get_eeprom()
457 for (i = 0; i < last_word - first_word + 1; i++) in e1000_get_eeprom()
474 int max_len, first_word, last_word, ret_val = 0; in e1000_set_eeprom()
477 if (eeprom->len == 0) in e1000_set_eeprom()
498 &eeprom_buff[0]); in e1000_set_eeprom()
501 if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0)) { in e1000_set_eeprom()
510 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
515 for (i = 0; i < last_word - first_word + 1; i++) in e1000_set_eeprom()
522 if ((ret_val == 0) && (first_word <= EEPROM_CHECKSUM_REG)) in e1000_set_eeprom()
607 for (i = 0; i < adapter->num_tx_queues; i++) in e1000_set_ringparam()
609 for (i = 0; i < adapter->num_rx_queues; i++) in e1000_set_ringparam()
612 err = 0; in e1000_set_ringparam()
660 0x5A5A5A5A, 0xA5A5A5A5, 0x00000000, 0xFFFFFFFF in reg_pattern_test()
666 for (i = 0; i < ARRAY_SIZE(test); i++) { in reg_pattern_test()
671 "got 0x%08X expected 0x%08X\n", in reg_pattern_test()
691 "got 0x%08X expected 0x%08X\n", in reg_set_and_check()
706 } while (0)
715 } while (0)
728 toggle = 0xFFFFF833; in e1000_reg_test()
736 "0x%08X expected: 0x%08X\n", after, value); in e1000_reg_test()
743 REG_PATTERN_TEST(FCAL, 0xFFFFFFFF, 0xFFFFFFFF); in e1000_reg_test()
744 REG_PATTERN_TEST(FCAH, 0x0000FFFF, 0xFFFFFFFF); in e1000_reg_test()
745 REG_PATTERN_TEST(FCT, 0x0000FFFF, 0xFFFFFFFF); in e1000_reg_test()
746 REG_PATTERN_TEST(VET, 0x0000FFFF, 0xFFFFFFFF); in e1000_reg_test()
748 REG_PATTERN_TEST(RDTR, 0x0000FFFF, 0xFFFFFFFF); in e1000_reg_test()
749 REG_PATTERN_TEST(RDBAH, 0xFFFFFFFF, 0xFFFFFFFF); in e1000_reg_test()
750 REG_PATTERN_TEST(RDLEN, 0x000FFF80, 0x000FFFFF); in e1000_reg_test()
751 REG_PATTERN_TEST(RDH, 0x0000FFFF, 0x0000FFFF); in e1000_reg_test()
752 REG_PATTERN_TEST(RDT, 0x0000FFFF, 0x0000FFFF); in e1000_reg_test()
753 REG_PATTERN_TEST(FCRTH, 0x0000FFF8, 0x0000FFF8); in e1000_reg_test()
754 REG_PATTERN_TEST(FCTTV, 0x0000FFFF, 0x0000FFFF); in e1000_reg_test()
755 REG_PATTERN_TEST(TIPG, 0x3FFFFFFF, 0x3FFFFFFF); in e1000_reg_test()
756 REG_PATTERN_TEST(TDBAH, 0xFFFFFFFF, 0xFFFFFFFF); in e1000_reg_test()
757 REG_PATTERN_TEST(TDLEN, 0x000FFF80, 0x000FFFFF); in e1000_reg_test()
759 REG_SET_AND_CHECK(RCTL, 0xFFFFFFFF, 0x00000000); in e1000_reg_test()
761 before = 0x06DFB3FE; in e1000_reg_test()
762 REG_SET_AND_CHECK(RCTL, before, 0x003FFFFB); in e1000_reg_test()
763 REG_SET_AND_CHECK(TCTL, 0xFFFFFFFF, 0x00000000); in e1000_reg_test()
766 REG_SET_AND_CHECK(RCTL, before, 0xFFFFFFFF); in e1000_reg_test()
767 REG_PATTERN_TEST(RDBAL, 0xFFFFFFF0, 0xFFFFFFFF); in e1000_reg_test()
768 REG_PATTERN_TEST(TXCW, 0xC000FFFF, 0x0000FFFF); in e1000_reg_test()
769 REG_PATTERN_TEST(TDBAL, 0xFFFFFFF0, 0xFFFFFFFF); in e1000_reg_test()
770 REG_PATTERN_TEST(TIDV, 0x0000FFFF, 0x0000FFFF); in e1000_reg_test()
772 for (i = 0; i < value; i++) { in e1000_reg_test()
774 0x8003FFFF, 0xFFFFFFFF); in e1000_reg_test()
777 REG_SET_AND_CHECK(RCTL, 0xFFFFFFFF, 0x01FFFFFF); in e1000_reg_test()
778 REG_PATTERN_TEST(RDBAL, 0xFFFFF000, 0xFFFFFFFF); in e1000_reg_test()
779 REG_PATTERN_TEST(TXCW, 0x0000FFFF, 0x0000FFFF); in e1000_reg_test()
780 REG_PATTERN_TEST(TDBAL, 0xFFFFF000, 0xFFFFFFFF); in e1000_reg_test()
784 for (i = 0; i < value; i++) in e1000_reg_test()
785 REG_PATTERN_TEST(MTA + (i << 2), 0xFFFFFFFF, 0xFFFFFFFF); in e1000_reg_test()
787 *data = 0; in e1000_reg_test()
788 return 0; in e1000_reg_test()
795 u16 checksum = 0; in e1000_eeprom_test()
798 *data = 0; in e1000_eeprom_test()
800 for (i = 0; i < (EEPROM_CHECKSUM_REG + 1); i++) { in e1000_eeprom_test()
801 if ((e1000_read_eeprom(hw, i, 1, &temp)) < 0) { in e1000_eeprom_test()
829 u32 mask, i = 0; in e1000_intr_test()
834 *data = 0; in e1000_intr_test()
851 ew32(IMC, 0xFFFFFFFF); in e1000_intr_test()
867 adapter->test_icr = 0; in e1000_intr_test()
885 adapter->test_icr = 0; in e1000_intr_test()
903 adapter->test_icr = 0; in e1000_intr_test()
904 ew32(IMC, ~mask & 0x00007FFF); in e1000_intr_test()
905 ew32(ICS, ~mask & 0x00007FFF); in e1000_intr_test()
917 ew32(IMC, 0xFFFFFFFF); in e1000_intr_test()
935 for (i = 0; i < txdr->count; i++) { in e1000_free_desc_rings()
946 for (i = 0; i < rxdr->count; i++) { in e1000_free_desc_rings()
1002 txdr->next_to_use = txdr->next_to_clean = 0; in e1000_setup_desc_rings()
1004 ew32(TDBAL, ((u64)txdr->dma & 0x00000000FFFFFFFF)); in e1000_setup_desc_rings()
1007 ew32(TDH, 0); in e1000_setup_desc_rings()
1008 ew32(TDT, 0); in e1000_setup_desc_rings()
1013 for (i = 0; i < txdr->count; i++) { in e1000_setup_desc_rings()
1038 tx_desc->upper.data = 0; in e1000_setup_desc_rings()
1060 rxdr->next_to_use = rxdr->next_to_clean = 0; in e1000_setup_desc_rings()
1064 ew32(RDBAL, ((u64)rxdr->dma & 0xFFFFFFFF)); in e1000_setup_desc_rings()
1067 ew32(RDH, 0); in e1000_setup_desc_rings()
1068 ew32(RDT, 0); in e1000_setup_desc_rings()
1074 for (i = 0; i < rxdr->count; i++) { in e1000_setup_desc_rings()
1097 return 0; in e1000_setup_desc_rings()
1109 e1000_write_phy_reg(hw, 29, 0x001F); in e1000_phy_disable_receiver()
1110 e1000_write_phy_reg(hw, 30, 0x8FFC); in e1000_phy_disable_receiver()
1111 e1000_write_phy_reg(hw, 29, 0x001A); in e1000_phy_disable_receiver()
1112 e1000_write_phy_reg(hw, 30, 0x8FF0); in e1000_phy_disable_receiver()
1154 /* Read the PHY Specific Control Register (0x10) */ in e1000_nonintegrated_phy_loopback()
1169 e1000_write_phy_reg(hw, PHY_CTRL, 0x8100); in e1000_nonintegrated_phy_loopback()
1190 if (phy_reg != 0x4100) in e1000_nonintegrated_phy_loopback()
1194 if (phy_reg != 0x0070) in e1000_nonintegrated_phy_loopback()
1198 if (phy_reg != 0x001A) in e1000_nonintegrated_phy_loopback()
1201 return 0; in e1000_nonintegrated_phy_loopback()
1207 u32 ctrl_reg = 0; in e1000_integrated_phy_loopback()
1208 u32 stat_reg = 0; in e1000_integrated_phy_loopback()
1215 M88E1000_PHY_SPEC_CTRL, 0x0808); in e1000_integrated_phy_loopback()
1217 e1000_write_phy_reg(hw, PHY_CTRL, 0x9140); in e1000_integrated_phy_loopback()
1219 e1000_write_phy_reg(hw, PHY_CTRL, 0x8140); in e1000_integrated_phy_loopback()
1225 e1000_write_phy_reg(hw, PHY_CTRL, 0x4140); in e1000_integrated_phy_loopback()
1243 if ((stat_reg & E1000_STATUS_FD) == 0) in e1000_integrated_phy_loopback()
1257 return 0; in e1000_integrated_phy_loopback()
1263 u16 phy_reg = 0; in e1000_set_phy_loopback()
1264 u16 count = 0; in e1000_set_phy_loopback()
1276 return 0; in e1000_set_phy_loopback()
1298 return 0; in e1000_set_phy_loopback()
1321 return 0; in e1000_setup_loopback_test()
1360 memset(skb->data, 0xFF, frame_size); in e1000_create_lbtest_frame()
1362 memset(&skb->data[frame_size / 2], 0xAA, frame_size / 2 - 1); in e1000_create_lbtest_frame()
1363 skb->data[frame_size / 2 + 10] = 0xBE; in e1000_create_lbtest_frame()
1364 skb->data[frame_size / 2 + 12] = 0xAF; in e1000_create_lbtest_frame()
1371 if (*(data + 3) == 0xFF) { in e1000_check_lbtest_frame()
1372 if ((*(data + frame_size / 2 + 10) == 0xBE) && in e1000_check_lbtest_frame()
1373 (*(data + frame_size / 2 + 12) == 0xAF)) { in e1000_check_lbtest_frame()
1374 return 0; in e1000_check_lbtest_frame()
1386 int i, j, k, l, lc, good_cnt, ret_val = 0; in e1000_run_loopback_test()
1401 k = l = 0; in e1000_run_loopback_test()
1402 for (j = 0; j <= lc; j++) { /* loop count loop */ in e1000_run_loopback_test()
1403 for (i = 0; i < 64; i++) { /* send the packets */ in e1000_run_loopback_test()
1411 k = 0; in e1000_run_loopback_test()
1417 good_cnt = 0; in e1000_run_loopback_test()
1431 l = 0; in e1000_run_loopback_test()
1470 *data = 0; in e1000_link_test()
1472 int i = 0; in e1000_link_test()
1540 if (e1000_reg_test(adapter, &data[0])) in e1000_diag_test()
1573 data[0] = 0; in e1000_diag_test()
1574 data[1] = 0; in e1000_diag_test()
1575 data[2] = 0; in e1000_diag_test()
1576 data[3] = 0; in e1000_diag_test()
1600 wol->supported = 0; in e1000_wol_exclusion()
1606 wol->supported = 0; in e1000_wol_exclusion()
1610 retval = 0; in e1000_wol_exclusion()
1615 wol->supported = 0; in e1000_wol_exclusion()
1619 retval = 0; in e1000_wol_exclusion()
1628 wol->supported = 0; in e1000_wol_exclusion()
1632 retval = 0; in e1000_wol_exclusion()
1645 wol->wolopts = 0; in e1000_get_wol()
1647 /* this function will set ->supported = 0 and return 1 if wol is not in e1000_get_wol()
1688 return wol->wolopts ? -EOPNOTSUPP : 0; in e1000_set_wol()
1703 adapter->wol = 0; in e1000_set_wol()
1716 return 0; in e1000_set_wol()
1742 return 0; in e1000_set_phys_id()
1760 return 0; in e1000_get_coalesce()
1790 if (adapter->itr_setting != 0) in e1000_set_coalesce()
1793 ew32(ITR, 0); in e1000_set_coalesce()
1795 return 0; in e1000_set_coalesce()
1804 return 0; in e1000_nway_reset()
1815 for (i = 0; i < E1000_GLOBAL_STATS_LEN; i++, stat++) { in e1000_get_ethtool_stats()
1850 for (i = 0; i < E1000_GLOBAL_STATS_LEN; i++) { in e1000_get_strings()