Lines Matching refs:i

463 	u8 i;  in ixgbe_get_regs()  local
514 for (i = 0; i < 8; i++) { in ixgbe_get_regs()
517 regs_buff[35 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTL(i)); in ixgbe_get_regs()
518 regs_buff[43 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTH(i)); in ixgbe_get_regs()
524 regs_buff[35 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTL_82599(i)); in ixgbe_get_regs()
525 regs_buff[43 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTH_82599(i)); in ixgbe_get_regs()
535 for (i = 0; i < 64; i++) in ixgbe_get_regs()
536 regs_buff[53 + i] = IXGBE_READ_REG(hw, IXGBE_RDBAL(i)); in ixgbe_get_regs()
537 for (i = 0; i < 64; i++) in ixgbe_get_regs()
538 regs_buff[117 + i] = IXGBE_READ_REG(hw, IXGBE_RDBAH(i)); in ixgbe_get_regs()
539 for (i = 0; i < 64; i++) in ixgbe_get_regs()
540 regs_buff[181 + i] = IXGBE_READ_REG(hw, IXGBE_RDLEN(i)); in ixgbe_get_regs()
541 for (i = 0; i < 64; i++) in ixgbe_get_regs()
542 regs_buff[245 + i] = IXGBE_READ_REG(hw, IXGBE_RDH(i)); in ixgbe_get_regs()
543 for (i = 0; i < 64; i++) in ixgbe_get_regs()
544 regs_buff[309 + i] = IXGBE_READ_REG(hw, IXGBE_RDT(i)); in ixgbe_get_regs()
545 for (i = 0; i < 64; i++) in ixgbe_get_regs()
546 regs_buff[373 + i] = IXGBE_READ_REG(hw, IXGBE_RXDCTL(i)); in ixgbe_get_regs()
547 for (i = 0; i < 16; i++) in ixgbe_get_regs()
548 regs_buff[437 + i] = IXGBE_READ_REG(hw, IXGBE_SRRCTL(i)); in ixgbe_get_regs()
549 for (i = 0; i < 16; i++) in ixgbe_get_regs()
550 regs_buff[453 + i] = IXGBE_READ_REG(hw, IXGBE_DCA_RXCTRL(i)); in ixgbe_get_regs()
552 for (i = 0; i < 8; i++) in ixgbe_get_regs()
553 regs_buff[470 + i] = IXGBE_READ_REG(hw, IXGBE_RXPBSIZE(i)); in ixgbe_get_regs()
560 for (i = 0; i < 16; i++) in ixgbe_get_regs()
561 regs_buff[482 + i] = IXGBE_READ_REG(hw, IXGBE_RAL(i)); in ixgbe_get_regs()
562 for (i = 0; i < 16; i++) in ixgbe_get_regs()
563 regs_buff[498 + i] = IXGBE_READ_REG(hw, IXGBE_RAH(i)); in ixgbe_get_regs()
570 for (i = 0; i < 8; i++) in ixgbe_get_regs()
571 regs_buff[520 + i] = IXGBE_READ_REG(hw, IXGBE_IMIR(i)); in ixgbe_get_regs()
572 for (i = 0; i < 8; i++) in ixgbe_get_regs()
573 regs_buff[528 + i] = IXGBE_READ_REG(hw, IXGBE_IMIREXT(i)); in ixgbe_get_regs()
577 for (i = 0; i < 32; i++) in ixgbe_get_regs()
578 regs_buff[537 + i] = IXGBE_READ_REG(hw, IXGBE_TDBAL(i)); in ixgbe_get_regs()
579 for (i = 0; i < 32; i++) in ixgbe_get_regs()
580 regs_buff[569 + i] = IXGBE_READ_REG(hw, IXGBE_TDBAH(i)); in ixgbe_get_regs()
581 for (i = 0; i < 32; i++) in ixgbe_get_regs()
582 regs_buff[601 + i] = IXGBE_READ_REG(hw, IXGBE_TDLEN(i)); in ixgbe_get_regs()
583 for (i = 0; i < 32; i++) in ixgbe_get_regs()
584 regs_buff[633 + i] = IXGBE_READ_REG(hw, IXGBE_TDH(i)); in ixgbe_get_regs()
585 for (i = 0; i < 32; i++) in ixgbe_get_regs()
586 regs_buff[665 + i] = IXGBE_READ_REG(hw, IXGBE_TDT(i)); in ixgbe_get_regs()
587 for (i = 0; i < 32; i++) in ixgbe_get_regs()
588 regs_buff[697 + i] = IXGBE_READ_REG(hw, IXGBE_TXDCTL(i)); in ixgbe_get_regs()
589 for (i = 0; i < 32; i++) in ixgbe_get_regs()
590 regs_buff[729 + i] = IXGBE_READ_REG(hw, IXGBE_TDWBAL(i)); in ixgbe_get_regs()
591 for (i = 0; i < 32; i++) in ixgbe_get_regs()
592 regs_buff[761 + i] = IXGBE_READ_REG(hw, IXGBE_TDWBAH(i)); in ixgbe_get_regs()
594 for (i = 0; i < 16; i++) in ixgbe_get_regs()
595 regs_buff[794 + i] = IXGBE_READ_REG(hw, IXGBE_DCA_TXCTRL(i)); in ixgbe_get_regs()
597 for (i = 0; i < 8; i++) in ixgbe_get_regs()
598 regs_buff[811 + i] = IXGBE_READ_REG(hw, IXGBE_TXPBSIZE(i)); in ixgbe_get_regs()
620 for (i = 0; i < 8; i++) in ixgbe_get_regs()
621 regs_buff[833 + i] = in ixgbe_get_regs()
622 IXGBE_READ_REG(hw, IXGBE_RT2CR(i)); in ixgbe_get_regs()
623 for (i = 0; i < 8; i++) in ixgbe_get_regs()
624 regs_buff[841 + i] = in ixgbe_get_regs()
625 IXGBE_READ_REG(hw, IXGBE_RT2SR(i)); in ixgbe_get_regs()
626 for (i = 0; i < 8; i++) in ixgbe_get_regs()
627 regs_buff[849 + i] = in ixgbe_get_regs()
628 IXGBE_READ_REG(hw, IXGBE_TDTQ2TCCR(i)); in ixgbe_get_regs()
629 for (i = 0; i < 8; i++) in ixgbe_get_regs()
630 regs_buff[857 + i] = in ixgbe_get_regs()
631 IXGBE_READ_REG(hw, IXGBE_TDTQ2TCSR(i)); in ixgbe_get_regs()
639 for (i = 0; i < 8; i++) in ixgbe_get_regs()
640 regs_buff[833 + i] = in ixgbe_get_regs()
641 IXGBE_READ_REG(hw, IXGBE_RTRPT4C(i)); in ixgbe_get_regs()
642 for (i = 0; i < 8; i++) in ixgbe_get_regs()
643 regs_buff[841 + i] = in ixgbe_get_regs()
644 IXGBE_READ_REG(hw, IXGBE_RTRPT4S(i)); in ixgbe_get_regs()
645 for (i = 0; i < 8; i++) in ixgbe_get_regs()
646 regs_buff[849 + i] = in ixgbe_get_regs()
647 IXGBE_READ_REG(hw, IXGBE_RTTDT2C(i)); in ixgbe_get_regs()
648 for (i = 0; i < 8; i++) in ixgbe_get_regs()
649 regs_buff[857 + i] = in ixgbe_get_regs()
650 IXGBE_READ_REG(hw, IXGBE_RTTDT2S(i)); in ixgbe_get_regs()
656 for (i = 0; i < 8; i++) in ixgbe_get_regs()
657 regs_buff[865 + i] = in ixgbe_get_regs()
658 IXGBE_READ_REG(hw, IXGBE_TDPT2TCCR(i)); /* same as RTTPT2C */ in ixgbe_get_regs()
659 for (i = 0; i < 8; i++) in ixgbe_get_regs()
660 regs_buff[873 + i] = in ixgbe_get_regs()
661 IXGBE_READ_REG(hw, IXGBE_TDPT2TCSR(i)); /* same as RTTPT2S */ in ixgbe_get_regs()
668 for (i = 0; i < 8; i++) in ixgbe_get_regs()
669 regs_buff[885 + i] = IXGBE_GET_STAT(adapter, mpc[i]); in ixgbe_get_regs()
677 for (i = 0; i < 8; i++) in ixgbe_get_regs()
678 regs_buff[900 + i] = IXGBE_GET_STAT(adapter, pxontxc[i]); in ixgbe_get_regs()
679 for (i = 0; i < 8; i++) in ixgbe_get_regs()
680 regs_buff[908 + i] = IXGBE_GET_STAT(adapter, pxonrxc[i]); in ixgbe_get_regs()
681 for (i = 0; i < 8; i++) in ixgbe_get_regs()
682 regs_buff[916 + i] = IXGBE_GET_STAT(adapter, pxofftxc[i]); in ixgbe_get_regs()
683 for (i = 0; i < 8; i++) in ixgbe_get_regs()
684 regs_buff[924 + i] = IXGBE_GET_STAT(adapter, pxoffrxc[i]); in ixgbe_get_regs()
697 for (i = 0; i < 8; i++) in ixgbe_get_regs()
698 regs_buff[946 + i] = IXGBE_GET_STAT(adapter, rnbc[i]); in ixgbe_get_regs()
718 for (i = 0; i < 16; i++) in ixgbe_get_regs()
719 regs_buff[974 + i] = IXGBE_GET_STAT(adapter, qprc[i]); in ixgbe_get_regs()
720 for (i = 0; i < 16; i++) in ixgbe_get_regs()
721 regs_buff[990 + i] = IXGBE_GET_STAT(adapter, qptc[i]); in ixgbe_get_regs()
722 for (i = 0; i < 16; i++) in ixgbe_get_regs()
723 regs_buff[1006 + i] = IXGBE_GET_STAT(adapter, qbrc[i]); in ixgbe_get_regs()
724 for (i = 0; i < 16; i++) in ixgbe_get_regs()
725 regs_buff[1022 + i] = IXGBE_GET_STAT(adapter, qbtc[i]); in ixgbe_get_regs()
764 for (i = 0; i < 8; i++) in ixgbe_get_regs()
765 regs_buff[1072 + i] = IXGBE_READ_REG(hw, IXGBE_RDSTAT(i)); in ixgbe_get_regs()
767 for (i = 0; i < 4; i++) in ixgbe_get_regs()
768 regs_buff[1081 + i] = IXGBE_READ_REG(hw, IXGBE_RIC_DW(i)); in ixgbe_get_regs()
771 for (i = 0; i < 8; i++) in ixgbe_get_regs()
772 regs_buff[1087 + i] = IXGBE_READ_REG(hw, IXGBE_TDSTAT(i)); in ixgbe_get_regs()
774 for (i = 0; i < 4; i++) in ixgbe_get_regs()
775 regs_buff[1096 + i] = IXGBE_READ_REG(hw, IXGBE_TIC_DW(i)); in ixgbe_get_regs()
787 for (i = 0; i < 8; i++) in ixgbe_get_regs()
788 regs_buff[1111 + i] = IXGBE_READ_REG(hw, IXGBE_PCIE_DIAG(i)); in ixgbe_get_regs()
805 for (i = 0; i < 4; i++) in ixgbe_get_regs()
806 regs_buff[1131 + i] = IXGBE_READ_REG(hw, IXGBE_TXLLQ(i)); in ixgbe_get_regs()
831 u16 i; in ixgbe_get_eeprom() local
850 for (i = 0; i < eeprom_len; i++) in ixgbe_get_eeprom()
851 le16_to_cpus(&eeprom_buff[i]); in ixgbe_get_eeprom()
867 u16 i; in ixgbe_set_eeprom() local
908 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
909 le16_to_cpus(&eeprom_buff[i]); in ixgbe_set_eeprom()
913 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
914 cpu_to_le16s(&eeprom_buff[i]); in ixgbe_set_eeprom()
966 int i, err = 0; in ixgbe_set_ringparam() local
990 for (i = 0; i < adapter->num_tx_queues; i++) in ixgbe_set_ringparam()
991 adapter->tx_ring[i]->count = new_tx_count; in ixgbe_set_ringparam()
992 for (i = 0; i < adapter->num_rx_queues; i++) in ixgbe_set_ringparam()
993 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam()
1000 i = max_t(int, adapter->num_tx_queues, adapter->num_rx_queues); in ixgbe_set_ringparam()
1001 temp_ring = vmalloc(i * sizeof(struct ixgbe_ring)); in ixgbe_set_ringparam()
1017 for (i = 0; i < adapter->num_tx_queues; i++) { in ixgbe_set_ringparam()
1018 memcpy(&temp_ring[i], adapter->tx_ring[i], in ixgbe_set_ringparam()
1021 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam()
1022 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1024 while (i) { in ixgbe_set_ringparam()
1025 i--; in ixgbe_set_ringparam()
1026 ixgbe_free_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1032 for (i = 0; i < adapter->num_tx_queues; i++) { in ixgbe_set_ringparam()
1033 ixgbe_free_tx_resources(adapter->tx_ring[i]); in ixgbe_set_ringparam()
1035 memcpy(adapter->tx_ring[i], &temp_ring[i], in ixgbe_set_ringparam()
1044 for (i = 0; i < adapter->num_rx_queues; i++) { in ixgbe_set_ringparam()
1045 memcpy(&temp_ring[i], adapter->rx_ring[i], in ixgbe_set_ringparam()
1048 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam()
1049 err = ixgbe_setup_rx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1051 while (i) { in ixgbe_set_ringparam()
1052 i--; in ixgbe_set_ringparam()
1053 ixgbe_free_rx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1060 for (i = 0; i < adapter->num_rx_queues; i++) { in ixgbe_set_ringparam()
1061 ixgbe_free_rx_resources(adapter->rx_ring[i]); in ixgbe_set_ringparam()
1063 memcpy(adapter->rx_ring[i], &temp_ring[i], in ixgbe_set_ringparam()
1098 int i, j; in ixgbe_get_ethtool_stats() local
1103 for (i = 0; i < IXGBE_GLOBAL_STATS_LEN; i++) { in ixgbe_get_ethtool_stats()
1104 switch (ixgbe_gstrings_stats[i].type) { in ixgbe_get_ethtool_stats()
1107 ixgbe_gstrings_stats[i].stat_offset; in ixgbe_get_ethtool_stats()
1111 ixgbe_gstrings_stats[i].stat_offset; in ixgbe_get_ethtool_stats()
1114 data[i] = 0; in ixgbe_get_ethtool_stats()
1118 data[i] = (ixgbe_gstrings_stats[i].sizeof_stat == in ixgbe_get_ethtool_stats()
1124 data[i] = 0; in ixgbe_get_ethtool_stats()
1125 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1126 i += 2; in ixgbe_get_ethtool_stats()
1128 data[i] = 0; in ixgbe_get_ethtool_stats()
1129 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1130 data[i+2] = 0; in ixgbe_get_ethtool_stats()
1131 i += 3; in ixgbe_get_ethtool_stats()
1138 data[i] = ring->stats.packets; in ixgbe_get_ethtool_stats()
1139 data[i+1] = ring->stats.bytes; in ixgbe_get_ethtool_stats()
1141 i += 2; in ixgbe_get_ethtool_stats()
1143 data[i] = ring->stats.yields; in ixgbe_get_ethtool_stats()
1144 data[i+1] = ring->stats.misses; in ixgbe_get_ethtool_stats()
1145 data[i+2] = ring->stats.cleaned; in ixgbe_get_ethtool_stats()
1146 i += 3; in ixgbe_get_ethtool_stats()
1152 data[i] = 0; in ixgbe_get_ethtool_stats()
1153 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1154 i += 2; in ixgbe_get_ethtool_stats()
1156 data[i] = 0; in ixgbe_get_ethtool_stats()
1157 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1158 data[i+2] = 0; in ixgbe_get_ethtool_stats()
1159 i += 3; in ixgbe_get_ethtool_stats()
1166 data[i] = ring->stats.packets; in ixgbe_get_ethtool_stats()
1167 data[i+1] = ring->stats.bytes; in ixgbe_get_ethtool_stats()
1169 i += 2; in ixgbe_get_ethtool_stats()
1171 data[i] = ring->stats.yields; in ixgbe_get_ethtool_stats()
1172 data[i+1] = ring->stats.misses; in ixgbe_get_ethtool_stats()
1173 data[i+2] = ring->stats.cleaned; in ixgbe_get_ethtool_stats()
1174 i += 3; in ixgbe_get_ethtool_stats()
1179 data[i++] = adapter->stats.pxontxc[j]; in ixgbe_get_ethtool_stats()
1180 data[i++] = adapter->stats.pxofftxc[j]; in ixgbe_get_ethtool_stats()
1183 data[i++] = adapter->stats.pxonrxc[j]; in ixgbe_get_ethtool_stats()
1184 data[i++] = adapter->stats.pxoffrxc[j]; in ixgbe_get_ethtool_stats()
1192 int i; in ixgbe_get_strings() local
1196 for (i = 0; i < IXGBE_TEST_LEN; i++) { in ixgbe_get_strings()
1197 memcpy(data, ixgbe_gstrings_test[i], ETH_GSTRING_LEN); in ixgbe_get_strings()
1202 for (i = 0; i < IXGBE_GLOBAL_STATS_LEN; i++) { in ixgbe_get_strings()
1203 memcpy(p, ixgbe_gstrings_stats[i].stat_string, in ixgbe_get_strings()
1207 for (i = 0; i < netdev->num_tx_queues; i++) { in ixgbe_get_strings()
1208 sprintf(p, "tx_queue_%u_packets", i); in ixgbe_get_strings()
1210 sprintf(p, "tx_queue_%u_bytes", i); in ixgbe_get_strings()
1213 sprintf(p, "tx_queue_%u_bp_napi_yield", i); in ixgbe_get_strings()
1215 sprintf(p, "tx_queue_%u_bp_misses", i); in ixgbe_get_strings()
1217 sprintf(p, "tx_queue_%u_bp_cleaned", i); in ixgbe_get_strings()
1221 for (i = 0; i < IXGBE_NUM_RX_QUEUES; i++) { in ixgbe_get_strings()
1222 sprintf(p, "rx_queue_%u_packets", i); in ixgbe_get_strings()
1224 sprintf(p, "rx_queue_%u_bytes", i); in ixgbe_get_strings()
1227 sprintf(p, "rx_queue_%u_bp_poll_yield", i); in ixgbe_get_strings()
1229 sprintf(p, "rx_queue_%u_bp_misses", i); in ixgbe_get_strings()
1231 sprintf(p, "rx_queue_%u_bp_cleaned", i); in ixgbe_get_strings()
1235 for (i = 0; i < IXGBE_MAX_PACKET_BUFFERS; i++) { in ixgbe_get_strings()
1236 sprintf(p, "tx_pb_%u_pxon", i); in ixgbe_get_strings()
1238 sprintf(p, "tx_pb_%u_pxoff", i); in ixgbe_get_strings()
1241 for (i = 0; i < IXGBE_MAX_PACKET_BUFFERS; i++) { in ixgbe_get_strings()
1242 sprintf(p, "rx_pb_%u_pxon", i); in ixgbe_get_strings()
1244 sprintf(p, "rx_pb_%u_pxoff", i); in ixgbe_get_strings()
1404 u32 i, toggle; in ixgbe_reg_test() local
1452 for (i = 0; i < test->array_len; i++) { in ixgbe_reg_test()
1458 test->reg + (i * 0x40), in ixgbe_reg_test()
1464 test->reg + (i * 0x40), in ixgbe_reg_test()
1470 test->reg + (i * 0x40), in ixgbe_reg_test()
1475 test->reg + (i * 4), in ixgbe_reg_test()
1481 test->reg + (i * 8), in ixgbe_reg_test()
1487 (test->reg + 4) + (i * 8), in ixgbe_reg_test()
1525 u32 mask, i = 0, shared_int = true; in ixgbe_intr_test() local
1558 for (; i < 10; i++) { in ixgbe_intr_test()
1560 mask = 1 << i; in ixgbe_intr_test()
1899 int i, j, lc, good_cnt, ret_val = 0; in ixgbe_run_loopback_test() local
1933 for (i = 0; i < 64; i++) { in ixgbe_run_loopback_test()
2002 int i; in ixgbe_diag_test() local
2003 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_diag_test()
2004 if (adapter->vfinfo[i].clear_to_send) { in ixgbe_diag_test()
2253 int i; in ixgbe_set_coalesce() local
2309 for (i = 0; i < adapter->num_q_vectors; i++) { in ixgbe_set_coalesce()
2310 q_vector = adapter->q_vector[i]; in ixgbe_set_coalesce()
2899 int i, reta_size = ixgbe_rss_indir_tbl_entries(adapter); in ixgbe_get_reta() local
2901 for (i = 0; i < reta_size; i++) in ixgbe_get_reta()
2902 indir[i] = adapter->rss_indir_tbl[i]; in ixgbe_get_reta()
2926 int i; in ixgbe_set_rxfh() local
2943 for (i = 0; i < reta_entries; i++) in ixgbe_set_rxfh()
2944 if (indir[i] >= max_queues) in ixgbe_set_rxfh()
2947 for (i = 0; i < reta_entries; i++) in ixgbe_set_rxfh()
2948 adapter->rss_indir_tbl[i] = indir[i]; in ixgbe_set_rxfh()
3157 int i = 0; in ixgbe_get_module_eeprom() local
3162 for (i = ee->offset; i < ee->offset + ee->len; i++) { in ixgbe_get_module_eeprom()
3167 if (i < ETH_MODULE_SFF_8079_LEN) in ixgbe_get_module_eeprom()
3168 status = hw->phy.ops.read_i2c_eeprom(hw, i, &databyte); in ixgbe_get_module_eeprom()
3170 status = hw->phy.ops.read_i2c_sff8472(hw, i, &databyte); in ixgbe_get_module_eeprom()
3175 data[i - ee->offset] = databyte; in ixgbe_get_module_eeprom()