Lines Matching refs:coal_conf
370 struct amd8111e_coalesce_conf *coal_conf = &lp->coal_conf; in amd8111e_set_coalesce() local
376 timeout = coal_conf->rx_timeout; in amd8111e_set_coalesce()
377 event_count = coal_conf->rx_event_count; in amd8111e_set_coalesce()
389 timeout = coal_conf->tx_timeout; in amd8111e_set_coalesce()
390 event_count = coal_conf->tx_event_count; in amd8111e_set_coalesce()
667 lp->coal_conf.tx_packets++; in amd8111e_tx()
668 lp->coal_conf.tx_bytes += in amd8111e_tx()
765 lp->coal_conf.rx_packets++; in amd8111e_rx_poll()
766 lp->coal_conf.rx_bytes += pkt_len; in amd8111e_rx_poll()
957 struct amd8111e_coalesce_conf *coal_conf = &lp->coal_conf; in amd8111e_calc_coalesce() local
965 tx_pkt_rate = coal_conf->tx_packets - coal_conf->tx_prev_packets; in amd8111e_calc_coalesce()
966 coal_conf->tx_prev_packets = coal_conf->tx_packets; in amd8111e_calc_coalesce()
968 tx_data_rate = coal_conf->tx_bytes - coal_conf->tx_prev_bytes; in amd8111e_calc_coalesce()
969 coal_conf->tx_prev_bytes = coal_conf->tx_bytes; in amd8111e_calc_coalesce()
971 rx_pkt_rate = coal_conf->rx_packets - coal_conf->rx_prev_packets; in amd8111e_calc_coalesce()
972 coal_conf->rx_prev_packets = coal_conf->rx_packets; in amd8111e_calc_coalesce()
974 rx_data_rate = coal_conf->rx_bytes - coal_conf->rx_prev_bytes; in amd8111e_calc_coalesce()
975 coal_conf->rx_prev_bytes = coal_conf->rx_bytes; in amd8111e_calc_coalesce()
978 if(coal_conf->rx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
980 coal_conf->rx_timeout = 0x0; in amd8111e_calc_coalesce()
981 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
983 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
990 if(coal_conf->rx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
992 coal_conf->rx_timeout = 0; in amd8111e_calc_coalesce()
993 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
995 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1001 if(coal_conf->rx_coal_type != LOW_COALESCE){ in amd8111e_calc_coalesce()
1002 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
1003 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1005 coal_conf->rx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1010 if(coal_conf->rx_coal_type != MEDIUM_COALESCE){ in amd8111e_calc_coalesce()
1011 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
1012 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1014 coal_conf->rx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1019 if(coal_conf->rx_coal_type != HIGH_COALESCE){ in amd8111e_calc_coalesce()
1020 coal_conf->rx_timeout = 2; in amd8111e_calc_coalesce()
1021 coal_conf->rx_event_count = 3; in amd8111e_calc_coalesce()
1023 coal_conf->rx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()
1029 if(coal_conf->tx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1031 coal_conf->tx_timeout = 0x0; in amd8111e_calc_coalesce()
1032 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1034 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1042 if(coal_conf->tx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1044 coal_conf->tx_timeout = 0; in amd8111e_calc_coalesce()
1045 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1047 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1053 if(coal_conf->tx_coal_type != LOW_COALESCE){ in amd8111e_calc_coalesce()
1054 coal_conf->tx_timeout = 1; in amd8111e_calc_coalesce()
1055 coal_conf->tx_event_count = 2; in amd8111e_calc_coalesce()
1057 coal_conf->tx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1063 if(coal_conf->tx_coal_type != MEDIUM_COALESCE){ in amd8111e_calc_coalesce()
1064 coal_conf->tx_timeout = 2; in amd8111e_calc_coalesce()
1065 coal_conf->tx_event_count = 5; in amd8111e_calc_coalesce()
1067 coal_conf->tx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1070 if (coal_conf->tx_coal_type != HIGH_COALESCE) { in amd8111e_calc_coalesce()
1071 coal_conf->tx_timeout = 4; in amd8111e_calc_coalesce()
1072 coal_conf->tx_event_count = 8; in amd8111e_calc_coalesce()
1074 coal_conf->tx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()