Lines Matching refs:coal_conf

379 	struct amd8111e_coalesce_conf *coal_conf = &lp->coal_conf;  in amd8111e_set_coalesce()  local
385 timeout = coal_conf->rx_timeout; in amd8111e_set_coalesce()
386 event_count = coal_conf->rx_event_count; in amd8111e_set_coalesce()
398 timeout = coal_conf->tx_timeout; in amd8111e_set_coalesce()
399 event_count = coal_conf->tx_event_count; in amd8111e_set_coalesce()
675 lp->coal_conf.tx_packets++; in amd8111e_tx()
676 lp->coal_conf.tx_bytes += in amd8111e_tx()
785 lp->coal_conf.rx_packets++; in amd8111e_rx_poll()
786 lp->coal_conf.rx_bytes += pkt_len; in amd8111e_rx_poll()
985 struct amd8111e_coalesce_conf *coal_conf = &lp->coal_conf; in amd8111e_calc_coalesce() local
993 tx_pkt_rate = coal_conf->tx_packets - coal_conf->tx_prev_packets; in amd8111e_calc_coalesce()
994 coal_conf->tx_prev_packets = coal_conf->tx_packets; in amd8111e_calc_coalesce()
996 tx_data_rate = coal_conf->tx_bytes - coal_conf->tx_prev_bytes; in amd8111e_calc_coalesce()
997 coal_conf->tx_prev_bytes = coal_conf->tx_bytes; in amd8111e_calc_coalesce()
999 rx_pkt_rate = coal_conf->rx_packets - coal_conf->rx_prev_packets; in amd8111e_calc_coalesce()
1000 coal_conf->rx_prev_packets = coal_conf->rx_packets; in amd8111e_calc_coalesce()
1002 rx_data_rate = coal_conf->rx_bytes - coal_conf->rx_prev_bytes; in amd8111e_calc_coalesce()
1003 coal_conf->rx_prev_bytes = coal_conf->rx_bytes; in amd8111e_calc_coalesce()
1006 if(coal_conf->rx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1008 coal_conf->rx_timeout = 0x0; in amd8111e_calc_coalesce()
1009 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
1011 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1018 if(coal_conf->rx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1020 coal_conf->rx_timeout = 0; in amd8111e_calc_coalesce()
1021 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
1023 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1029 if(coal_conf->rx_coal_type != LOW_COALESCE){ in amd8111e_calc_coalesce()
1030 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
1031 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1033 coal_conf->rx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1038 if(coal_conf->rx_coal_type != MEDIUM_COALESCE){ in amd8111e_calc_coalesce()
1039 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
1040 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1042 coal_conf->rx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1047 if(coal_conf->rx_coal_type != HIGH_COALESCE){ in amd8111e_calc_coalesce()
1048 coal_conf->rx_timeout = 2; in amd8111e_calc_coalesce()
1049 coal_conf->rx_event_count = 3; in amd8111e_calc_coalesce()
1051 coal_conf->rx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()
1057 if(coal_conf->tx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1059 coal_conf->tx_timeout = 0x0; in amd8111e_calc_coalesce()
1060 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1062 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1070 if(coal_conf->tx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1072 coal_conf->tx_timeout = 0; in amd8111e_calc_coalesce()
1073 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1075 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1081 if(coal_conf->tx_coal_type != LOW_COALESCE){ in amd8111e_calc_coalesce()
1082 coal_conf->tx_timeout = 1; in amd8111e_calc_coalesce()
1083 coal_conf->tx_event_count = 2; in amd8111e_calc_coalesce()
1085 coal_conf->tx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1091 if(coal_conf->tx_coal_type != MEDIUM_COALESCE){ in amd8111e_calc_coalesce()
1092 coal_conf->tx_timeout = 2; in amd8111e_calc_coalesce()
1093 coal_conf->tx_event_count = 5; in amd8111e_calc_coalesce()
1095 coal_conf->tx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1101 if(coal_conf->tx_coal_type != HIGH_COALESCE){ in amd8111e_calc_coalesce()
1102 coal_conf->tx_timeout = 4; in amd8111e_calc_coalesce()
1103 coal_conf->tx_event_count = 8; in amd8111e_calc_coalesce()
1105 coal_conf->tx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()