Lines Matching refs:coal_conf
369 struct amd8111e_coalesce_conf *coal_conf = &lp->coal_conf; in amd8111e_set_coalesce() local
375 timeout = coal_conf->rx_timeout; in amd8111e_set_coalesce()
376 event_count = coal_conf->rx_event_count; in amd8111e_set_coalesce()
388 timeout = coal_conf->tx_timeout; in amd8111e_set_coalesce()
389 event_count = coal_conf->tx_event_count; in amd8111e_set_coalesce()
666 lp->coal_conf.tx_packets++; in amd8111e_tx()
667 lp->coal_conf.tx_bytes += in amd8111e_tx()
764 lp->coal_conf.rx_packets++; in amd8111e_rx_poll()
765 lp->coal_conf.rx_bytes += pkt_len; in amd8111e_rx_poll()
955 struct amd8111e_coalesce_conf *coal_conf = &lp->coal_conf; in amd8111e_calc_coalesce() local
963 tx_pkt_rate = coal_conf->tx_packets - coal_conf->tx_prev_packets; in amd8111e_calc_coalesce()
964 coal_conf->tx_prev_packets = coal_conf->tx_packets; in amd8111e_calc_coalesce()
966 tx_data_rate = coal_conf->tx_bytes - coal_conf->tx_prev_bytes; in amd8111e_calc_coalesce()
967 coal_conf->tx_prev_bytes = coal_conf->tx_bytes; in amd8111e_calc_coalesce()
969 rx_pkt_rate = coal_conf->rx_packets - coal_conf->rx_prev_packets; in amd8111e_calc_coalesce()
970 coal_conf->rx_prev_packets = coal_conf->rx_packets; in amd8111e_calc_coalesce()
972 rx_data_rate = coal_conf->rx_bytes - coal_conf->rx_prev_bytes; in amd8111e_calc_coalesce()
973 coal_conf->rx_prev_bytes = coal_conf->rx_bytes; in amd8111e_calc_coalesce()
976 if (coal_conf->rx_coal_type != NO_COALESCE) { in amd8111e_calc_coalesce()
978 coal_conf->rx_timeout = 0x0; in amd8111e_calc_coalesce()
979 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
981 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
987 if (coal_conf->rx_coal_type != NO_COALESCE) { in amd8111e_calc_coalesce()
989 coal_conf->rx_timeout = 0; in amd8111e_calc_coalesce()
990 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
992 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
997 if (coal_conf->rx_coal_type != LOW_COALESCE) { in amd8111e_calc_coalesce()
998 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
999 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1001 coal_conf->rx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1005 if (coal_conf->rx_coal_type != MEDIUM_COALESCE) { in amd8111e_calc_coalesce()
1006 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
1007 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1009 coal_conf->rx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1014 if (coal_conf->rx_coal_type != HIGH_COALESCE) { in amd8111e_calc_coalesce()
1015 coal_conf->rx_timeout = 2; in amd8111e_calc_coalesce()
1016 coal_conf->rx_event_count = 3; in amd8111e_calc_coalesce()
1018 coal_conf->rx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()
1024 if (coal_conf->tx_coal_type != NO_COALESCE) { in amd8111e_calc_coalesce()
1026 coal_conf->tx_timeout = 0x0; in amd8111e_calc_coalesce()
1027 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1029 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1036 if (coal_conf->tx_coal_type != NO_COALESCE) { in amd8111e_calc_coalesce()
1038 coal_conf->tx_timeout = 0; in amd8111e_calc_coalesce()
1039 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1041 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1046 if (coal_conf->tx_coal_type != LOW_COALESCE) { in amd8111e_calc_coalesce()
1047 coal_conf->tx_timeout = 1; in amd8111e_calc_coalesce()
1048 coal_conf->tx_event_count = 2; in amd8111e_calc_coalesce()
1050 coal_conf->tx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1055 if (coal_conf->tx_coal_type != MEDIUM_COALESCE) { in amd8111e_calc_coalesce()
1056 coal_conf->tx_timeout = 2; in amd8111e_calc_coalesce()
1057 coal_conf->tx_event_count = 5; in amd8111e_calc_coalesce()
1059 coal_conf->tx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1062 if (coal_conf->tx_coal_type != HIGH_COALESCE) { in amd8111e_calc_coalesce()
1063 coal_conf->tx_timeout = 4; in amd8111e_calc_coalesce()
1064 coal_conf->tx_event_count = 8; in amd8111e_calc_coalesce()
1066 coal_conf->tx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()