Lines Matching refs:i
455 u8 i; in ixgbe_get_regs() local
506 for (i = 0; i < 8; i++) { in ixgbe_get_regs()
509 regs_buff[35 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTL(i)); in ixgbe_get_regs()
510 regs_buff[43 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTH(i)); in ixgbe_get_regs()
516 regs_buff[35 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTL_82599(i)); in ixgbe_get_regs()
517 regs_buff[43 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTH_82599(i)); in ixgbe_get_regs()
527 for (i = 0; i < 64; i++) in ixgbe_get_regs()
528 regs_buff[53 + i] = IXGBE_READ_REG(hw, IXGBE_RDBAL(i)); in ixgbe_get_regs()
529 for (i = 0; i < 64; i++) in ixgbe_get_regs()
530 regs_buff[117 + i] = IXGBE_READ_REG(hw, IXGBE_RDBAH(i)); in ixgbe_get_regs()
531 for (i = 0; i < 64; i++) in ixgbe_get_regs()
532 regs_buff[181 + i] = IXGBE_READ_REG(hw, IXGBE_RDLEN(i)); in ixgbe_get_regs()
533 for (i = 0; i < 64; i++) in ixgbe_get_regs()
534 regs_buff[245 + i] = IXGBE_READ_REG(hw, IXGBE_RDH(i)); in ixgbe_get_regs()
535 for (i = 0; i < 64; i++) in ixgbe_get_regs()
536 regs_buff[309 + i] = IXGBE_READ_REG(hw, IXGBE_RDT(i)); in ixgbe_get_regs()
537 for (i = 0; i < 64; i++) in ixgbe_get_regs()
538 regs_buff[373 + i] = IXGBE_READ_REG(hw, IXGBE_RXDCTL(i)); in ixgbe_get_regs()
539 for (i = 0; i < 16; i++) in ixgbe_get_regs()
540 regs_buff[437 + i] = IXGBE_READ_REG(hw, IXGBE_SRRCTL(i)); in ixgbe_get_regs()
541 for (i = 0; i < 16; i++) in ixgbe_get_regs()
542 regs_buff[453 + i] = IXGBE_READ_REG(hw, IXGBE_DCA_RXCTRL(i)); in ixgbe_get_regs()
544 for (i = 0; i < 8; i++) in ixgbe_get_regs()
545 regs_buff[470 + i] = IXGBE_READ_REG(hw, IXGBE_RXPBSIZE(i)); in ixgbe_get_regs()
552 for (i = 0; i < 16; i++) in ixgbe_get_regs()
553 regs_buff[482 + i] = IXGBE_READ_REG(hw, IXGBE_RAL(i)); in ixgbe_get_regs()
554 for (i = 0; i < 16; i++) in ixgbe_get_regs()
555 regs_buff[498 + i] = IXGBE_READ_REG(hw, IXGBE_RAH(i)); in ixgbe_get_regs()
562 for (i = 0; i < 8; i++) in ixgbe_get_regs()
563 regs_buff[520 + i] = IXGBE_READ_REG(hw, IXGBE_IMIR(i)); in ixgbe_get_regs()
564 for (i = 0; i < 8; i++) in ixgbe_get_regs()
565 regs_buff[528 + i] = IXGBE_READ_REG(hw, IXGBE_IMIREXT(i)); in ixgbe_get_regs()
569 for (i = 0; i < 32; i++) in ixgbe_get_regs()
570 regs_buff[537 + i] = IXGBE_READ_REG(hw, IXGBE_TDBAL(i)); in ixgbe_get_regs()
571 for (i = 0; i < 32; i++) in ixgbe_get_regs()
572 regs_buff[569 + i] = IXGBE_READ_REG(hw, IXGBE_TDBAH(i)); in ixgbe_get_regs()
573 for (i = 0; i < 32; i++) in ixgbe_get_regs()
574 regs_buff[601 + i] = IXGBE_READ_REG(hw, IXGBE_TDLEN(i)); in ixgbe_get_regs()
575 for (i = 0; i < 32; i++) in ixgbe_get_regs()
576 regs_buff[633 + i] = IXGBE_READ_REG(hw, IXGBE_TDH(i)); in ixgbe_get_regs()
577 for (i = 0; i < 32; i++) in ixgbe_get_regs()
578 regs_buff[665 + i] = IXGBE_READ_REG(hw, IXGBE_TDT(i)); in ixgbe_get_regs()
579 for (i = 0; i < 32; i++) in ixgbe_get_regs()
580 regs_buff[697 + i] = IXGBE_READ_REG(hw, IXGBE_TXDCTL(i)); in ixgbe_get_regs()
581 for (i = 0; i < 32; i++) in ixgbe_get_regs()
582 regs_buff[729 + i] = IXGBE_READ_REG(hw, IXGBE_TDWBAL(i)); in ixgbe_get_regs()
583 for (i = 0; i < 32; i++) in ixgbe_get_regs()
584 regs_buff[761 + i] = IXGBE_READ_REG(hw, IXGBE_TDWBAH(i)); in ixgbe_get_regs()
586 for (i = 0; i < 16; i++) in ixgbe_get_regs()
587 regs_buff[794 + i] = IXGBE_READ_REG(hw, IXGBE_DCA_TXCTRL(i)); in ixgbe_get_regs()
589 for (i = 0; i < 8; i++) in ixgbe_get_regs()
590 regs_buff[811 + i] = IXGBE_READ_REG(hw, IXGBE_TXPBSIZE(i)); in ixgbe_get_regs()
612 for (i = 0; i < 8; i++) in ixgbe_get_regs()
613 regs_buff[833 + i] = in ixgbe_get_regs()
614 IXGBE_READ_REG(hw, IXGBE_RT2CR(i)); in ixgbe_get_regs()
615 for (i = 0; i < 8; i++) in ixgbe_get_regs()
616 regs_buff[841 + i] = in ixgbe_get_regs()
617 IXGBE_READ_REG(hw, IXGBE_RT2SR(i)); in ixgbe_get_regs()
618 for (i = 0; i < 8; i++) in ixgbe_get_regs()
619 regs_buff[849 + i] = in ixgbe_get_regs()
620 IXGBE_READ_REG(hw, IXGBE_TDTQ2TCCR(i)); in ixgbe_get_regs()
621 for (i = 0; i < 8; i++) in ixgbe_get_regs()
622 regs_buff[857 + i] = in ixgbe_get_regs()
623 IXGBE_READ_REG(hw, IXGBE_TDTQ2TCSR(i)); in ixgbe_get_regs()
631 for (i = 0; i < 8; i++) in ixgbe_get_regs()
632 regs_buff[833 + i] = in ixgbe_get_regs()
633 IXGBE_READ_REG(hw, IXGBE_RTRPT4C(i)); in ixgbe_get_regs()
634 for (i = 0; i < 8; i++) in ixgbe_get_regs()
635 regs_buff[841 + i] = in ixgbe_get_regs()
636 IXGBE_READ_REG(hw, IXGBE_RTRPT4S(i)); in ixgbe_get_regs()
637 for (i = 0; i < 8; i++) in ixgbe_get_regs()
638 regs_buff[849 + i] = in ixgbe_get_regs()
639 IXGBE_READ_REG(hw, IXGBE_RTTDT2C(i)); in ixgbe_get_regs()
640 for (i = 0; i < 8; i++) in ixgbe_get_regs()
641 regs_buff[857 + i] = in ixgbe_get_regs()
642 IXGBE_READ_REG(hw, IXGBE_RTTDT2S(i)); in ixgbe_get_regs()
648 for (i = 0; i < 8; i++) in ixgbe_get_regs()
649 regs_buff[865 + i] = in ixgbe_get_regs()
650 IXGBE_READ_REG(hw, IXGBE_TDPT2TCCR(i)); /* same as RTTPT2C */ in ixgbe_get_regs()
651 for (i = 0; i < 8; i++) in ixgbe_get_regs()
652 regs_buff[873 + i] = in ixgbe_get_regs()
653 IXGBE_READ_REG(hw, IXGBE_TDPT2TCSR(i)); /* same as RTTPT2S */ in ixgbe_get_regs()
660 for (i = 0; i < 8; i++) in ixgbe_get_regs()
661 regs_buff[885 + i] = IXGBE_GET_STAT(adapter, mpc[i]); in ixgbe_get_regs()
669 for (i = 0; i < 8; i++) in ixgbe_get_regs()
670 regs_buff[900 + i] = IXGBE_GET_STAT(adapter, pxontxc[i]); in ixgbe_get_regs()
671 for (i = 0; i < 8; i++) in ixgbe_get_regs()
672 regs_buff[908 + i] = IXGBE_GET_STAT(adapter, pxonrxc[i]); in ixgbe_get_regs()
673 for (i = 0; i < 8; i++) in ixgbe_get_regs()
674 regs_buff[916 + i] = IXGBE_GET_STAT(adapter, pxofftxc[i]); in ixgbe_get_regs()
675 for (i = 0; i < 8; i++) in ixgbe_get_regs()
676 regs_buff[924 + i] = IXGBE_GET_STAT(adapter, pxoffrxc[i]); in ixgbe_get_regs()
689 for (i = 0; i < 8; i++) in ixgbe_get_regs()
690 regs_buff[946 + i] = IXGBE_GET_STAT(adapter, rnbc[i]); in ixgbe_get_regs()
710 for (i = 0; i < 16; i++) in ixgbe_get_regs()
711 regs_buff[974 + i] = IXGBE_GET_STAT(adapter, qprc[i]); in ixgbe_get_regs()
712 for (i = 0; i < 16; i++) in ixgbe_get_regs()
713 regs_buff[990 + i] = IXGBE_GET_STAT(adapter, qptc[i]); in ixgbe_get_regs()
714 for (i = 0; i < 16; i++) in ixgbe_get_regs()
715 regs_buff[1006 + i] = IXGBE_GET_STAT(adapter, qbrc[i]); in ixgbe_get_regs()
716 for (i = 0; i < 16; i++) in ixgbe_get_regs()
717 regs_buff[1022 + i] = IXGBE_GET_STAT(adapter, qbtc[i]); in ixgbe_get_regs()
756 for (i = 0; i < 8; i++) in ixgbe_get_regs()
757 regs_buff[1072 + i] = IXGBE_READ_REG(hw, IXGBE_RDSTAT(i)); in ixgbe_get_regs()
759 for (i = 0; i < 4; i++) in ixgbe_get_regs()
760 regs_buff[1081 + i] = IXGBE_READ_REG(hw, IXGBE_RIC_DW(i)); in ixgbe_get_regs()
763 for (i = 0; i < 8; i++) in ixgbe_get_regs()
764 regs_buff[1087 + i] = IXGBE_READ_REG(hw, IXGBE_TDSTAT(i)); in ixgbe_get_regs()
766 for (i = 0; i < 4; i++) in ixgbe_get_regs()
767 regs_buff[1096 + i] = IXGBE_READ_REG(hw, IXGBE_TIC_DW(i)); in ixgbe_get_regs()
779 for (i = 0; i < 8; i++) in ixgbe_get_regs()
780 regs_buff[1111 + i] = IXGBE_READ_REG(hw, IXGBE_PCIE_DIAG(i)); in ixgbe_get_regs()
797 for (i = 0; i < 4; i++) in ixgbe_get_regs()
798 regs_buff[1131 + i] = IXGBE_READ_REG(hw, IXGBE_TXLLQ(i)); in ixgbe_get_regs()
823 u16 i; in ixgbe_get_eeprom() local
842 for (i = 0; i < eeprom_len; i++) in ixgbe_get_eeprom()
843 le16_to_cpus(&eeprom_buff[i]); in ixgbe_get_eeprom()
859 u16 i; in ixgbe_set_eeprom() local
900 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
901 le16_to_cpus(&eeprom_buff[i]); in ixgbe_set_eeprom()
905 for (i = 0; i < last_word - first_word + 1; i++) in ixgbe_set_eeprom()
906 cpu_to_le16s(&eeprom_buff[i]); in ixgbe_set_eeprom()
961 int i, err = 0; in ixgbe_set_ringparam() local
985 for (i = 0; i < adapter->num_tx_queues; i++) in ixgbe_set_ringparam()
986 adapter->tx_ring[i]->count = new_tx_count; in ixgbe_set_ringparam()
987 for (i = 0; i < adapter->num_rx_queues; i++) in ixgbe_set_ringparam()
988 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam()
995 i = max_t(int, adapter->num_tx_queues, adapter->num_rx_queues); in ixgbe_set_ringparam()
996 temp_ring = vmalloc(i * sizeof(struct ixgbe_ring)); in ixgbe_set_ringparam()
1012 for (i = 0; i < adapter->num_tx_queues; i++) { in ixgbe_set_ringparam()
1013 memcpy(&temp_ring[i], adapter->tx_ring[i], in ixgbe_set_ringparam()
1016 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam()
1017 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1019 while (i) { in ixgbe_set_ringparam()
1020 i--; in ixgbe_set_ringparam()
1021 ixgbe_free_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1027 for (i = 0; i < adapter->num_tx_queues; i++) { in ixgbe_set_ringparam()
1028 ixgbe_free_tx_resources(adapter->tx_ring[i]); in ixgbe_set_ringparam()
1030 memcpy(adapter->tx_ring[i], &temp_ring[i], in ixgbe_set_ringparam()
1039 for (i = 0; i < adapter->num_rx_queues; i++) { in ixgbe_set_ringparam()
1040 memcpy(&temp_ring[i], adapter->rx_ring[i], in ixgbe_set_ringparam()
1043 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam()
1044 err = ixgbe_setup_rx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1046 while (i) { in ixgbe_set_ringparam()
1047 i--; in ixgbe_set_ringparam()
1048 ixgbe_free_rx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1055 for (i = 0; i < adapter->num_rx_queues; i++) { in ixgbe_set_ringparam()
1056 ixgbe_free_rx_resources(adapter->rx_ring[i]); in ixgbe_set_ringparam()
1058 memcpy(adapter->rx_ring[i], &temp_ring[i], in ixgbe_set_ringparam()
1093 int i, j; in ixgbe_get_ethtool_stats() local
1098 for (i = 0; i < IXGBE_GLOBAL_STATS_LEN; i++) { in ixgbe_get_ethtool_stats()
1099 switch (ixgbe_gstrings_stats[i].type) { in ixgbe_get_ethtool_stats()
1102 ixgbe_gstrings_stats[i].stat_offset; in ixgbe_get_ethtool_stats()
1106 ixgbe_gstrings_stats[i].stat_offset; in ixgbe_get_ethtool_stats()
1109 data[i] = 0; in ixgbe_get_ethtool_stats()
1113 data[i] = (ixgbe_gstrings_stats[i].sizeof_stat == in ixgbe_get_ethtool_stats()
1119 data[i] = 0; in ixgbe_get_ethtool_stats()
1120 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1121 i += 2; in ixgbe_get_ethtool_stats()
1123 data[i] = 0; in ixgbe_get_ethtool_stats()
1124 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1125 data[i+2] = 0; in ixgbe_get_ethtool_stats()
1126 i += 3; in ixgbe_get_ethtool_stats()
1133 data[i] = ring->stats.packets; in ixgbe_get_ethtool_stats()
1134 data[i+1] = ring->stats.bytes; in ixgbe_get_ethtool_stats()
1136 i += 2; in ixgbe_get_ethtool_stats()
1138 data[i] = ring->stats.yields; in ixgbe_get_ethtool_stats()
1139 data[i+1] = ring->stats.misses; in ixgbe_get_ethtool_stats()
1140 data[i+2] = ring->stats.cleaned; in ixgbe_get_ethtool_stats()
1141 i += 3; in ixgbe_get_ethtool_stats()
1147 data[i] = 0; in ixgbe_get_ethtool_stats()
1148 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1149 i += 2; in ixgbe_get_ethtool_stats()
1151 data[i] = 0; in ixgbe_get_ethtool_stats()
1152 data[i+1] = 0; in ixgbe_get_ethtool_stats()
1153 data[i+2] = 0; in ixgbe_get_ethtool_stats()
1154 i += 3; in ixgbe_get_ethtool_stats()
1161 data[i] = ring->stats.packets; in ixgbe_get_ethtool_stats()
1162 data[i+1] = ring->stats.bytes; in ixgbe_get_ethtool_stats()
1164 i += 2; in ixgbe_get_ethtool_stats()
1166 data[i] = ring->stats.yields; in ixgbe_get_ethtool_stats()
1167 data[i+1] = ring->stats.misses; in ixgbe_get_ethtool_stats()
1168 data[i+2] = ring->stats.cleaned; in ixgbe_get_ethtool_stats()
1169 i += 3; in ixgbe_get_ethtool_stats()
1174 data[i++] = adapter->stats.pxontxc[j]; in ixgbe_get_ethtool_stats()
1175 data[i++] = adapter->stats.pxofftxc[j]; in ixgbe_get_ethtool_stats()
1178 data[i++] = adapter->stats.pxonrxc[j]; in ixgbe_get_ethtool_stats()
1179 data[i++] = adapter->stats.pxoffrxc[j]; in ixgbe_get_ethtool_stats()
1187 int i; in ixgbe_get_strings() local
1191 for (i = 0; i < IXGBE_TEST_LEN; i++) { in ixgbe_get_strings()
1192 memcpy(data, ixgbe_gstrings_test[i], ETH_GSTRING_LEN); in ixgbe_get_strings()
1197 for (i = 0; i < IXGBE_GLOBAL_STATS_LEN; i++) { in ixgbe_get_strings()
1198 memcpy(p, ixgbe_gstrings_stats[i].stat_string, in ixgbe_get_strings()
1202 for (i = 0; i < netdev->num_tx_queues; i++) { in ixgbe_get_strings()
1203 sprintf(p, "tx_queue_%u_packets", i); in ixgbe_get_strings()
1205 sprintf(p, "tx_queue_%u_bytes", i); in ixgbe_get_strings()
1208 sprintf(p, "tx_queue_%u_bp_napi_yield", i); in ixgbe_get_strings()
1210 sprintf(p, "tx_queue_%u_bp_misses", i); in ixgbe_get_strings()
1212 sprintf(p, "tx_queue_%u_bp_cleaned", i); in ixgbe_get_strings()
1216 for (i = 0; i < IXGBE_NUM_RX_QUEUES; i++) { in ixgbe_get_strings()
1217 sprintf(p, "rx_queue_%u_packets", i); in ixgbe_get_strings()
1219 sprintf(p, "rx_queue_%u_bytes", i); in ixgbe_get_strings()
1222 sprintf(p, "rx_queue_%u_bp_poll_yield", i); in ixgbe_get_strings()
1224 sprintf(p, "rx_queue_%u_bp_misses", i); in ixgbe_get_strings()
1226 sprintf(p, "rx_queue_%u_bp_cleaned", i); in ixgbe_get_strings()
1230 for (i = 0; i < IXGBE_MAX_PACKET_BUFFERS; i++) { in ixgbe_get_strings()
1231 sprintf(p, "tx_pb_%u_pxon", i); in ixgbe_get_strings()
1233 sprintf(p, "tx_pb_%u_pxoff", i); in ixgbe_get_strings()
1236 for (i = 0; i < IXGBE_MAX_PACKET_BUFFERS; i++) { in ixgbe_get_strings()
1237 sprintf(p, "rx_pb_%u_pxon", i); in ixgbe_get_strings()
1239 sprintf(p, "rx_pb_%u_pxoff", i); in ixgbe_get_strings()
1399 u32 i, toggle; in ixgbe_reg_test() local
1447 for (i = 0; i < test->array_len; i++) { in ixgbe_reg_test()
1453 test->reg + (i * 0x40), in ixgbe_reg_test()
1459 test->reg + (i * 0x40), in ixgbe_reg_test()
1465 test->reg + (i * 0x40), in ixgbe_reg_test()
1470 test->reg + (i * 4), in ixgbe_reg_test()
1476 test->reg + (i * 8), in ixgbe_reg_test()
1482 (test->reg + 4) + (i * 8), in ixgbe_reg_test()
1520 u32 mask, i = 0, shared_int = true; in ixgbe_intr_test() local
1553 for (; i < 10; i++) { in ixgbe_intr_test()
1555 mask = 1 << i; in ixgbe_intr_test()
1894 int i, j, lc, good_cnt, ret_val = 0; in ixgbe_run_loopback_test() local
1928 for (i = 0; i < 64; i++) { in ixgbe_run_loopback_test()
1997 int i; in ixgbe_diag_test() local
1998 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_diag_test()
1999 if (adapter->vfinfo[i].clear_to_send) { in ixgbe_diag_test()
2248 int i; in ixgbe_set_coalesce() local
2304 for (i = 0; i < adapter->num_q_vectors; i++) { in ixgbe_set_coalesce()
2305 q_vector = adapter->q_vector[i]; in ixgbe_set_coalesce()
2872 int i, reta_size = ixgbe_rss_indir_tbl_entries(adapter); in ixgbe_get_reta() local
2874 for (i = 0; i < reta_size; i++) in ixgbe_get_reta()
2875 indir[i] = adapter->rss_indir_tbl[i]; in ixgbe_get_reta()
3100 int i = 0; in ixgbe_get_module_eeprom() local
3105 for (i = ee->offset; i < ee->offset + ee->len; i++) { in ixgbe_get_module_eeprom()
3110 if (i < ETH_MODULE_SFF_8079_LEN) in ixgbe_get_module_eeprom()
3111 status = hw->phy.ops.read_i2c_eeprom(hw, i, &databyte); in ixgbe_get_module_eeprom()
3113 status = hw->phy.ops.read_i2c_sff8472(hw, i, &databyte); in ixgbe_get_module_eeprom()
3118 data[i - ee->offset] = databyte; in ixgbe_get_module_eeprom()