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()
773 lp->coal_conf.rx_packets++; in amd8111e_rx_poll()
774 lp->coal_conf.rx_bytes += pkt_len; in amd8111e_rx_poll()
965 struct amd8111e_coalesce_conf *coal_conf = &lp->coal_conf; in amd8111e_calc_coalesce() local
973 tx_pkt_rate = coal_conf->tx_packets - coal_conf->tx_prev_packets; in amd8111e_calc_coalesce()
974 coal_conf->tx_prev_packets = coal_conf->tx_packets; in amd8111e_calc_coalesce()
976 tx_data_rate = coal_conf->tx_bytes - coal_conf->tx_prev_bytes; in amd8111e_calc_coalesce()
977 coal_conf->tx_prev_bytes = coal_conf->tx_bytes; in amd8111e_calc_coalesce()
979 rx_pkt_rate = coal_conf->rx_packets - coal_conf->rx_prev_packets; in amd8111e_calc_coalesce()
980 coal_conf->rx_prev_packets = coal_conf->rx_packets; in amd8111e_calc_coalesce()
982 rx_data_rate = coal_conf->rx_bytes - coal_conf->rx_prev_bytes; in amd8111e_calc_coalesce()
983 coal_conf->rx_prev_bytes = coal_conf->rx_bytes; in amd8111e_calc_coalesce()
986 if(coal_conf->rx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
988 coal_conf->rx_timeout = 0x0; in amd8111e_calc_coalesce()
989 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
991 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
998 if(coal_conf->rx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1000 coal_conf->rx_timeout = 0; in amd8111e_calc_coalesce()
1001 coal_conf->rx_event_count = 0; in amd8111e_calc_coalesce()
1003 coal_conf->rx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1009 if(coal_conf->rx_coal_type != LOW_COALESCE){ in amd8111e_calc_coalesce()
1010 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
1011 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1013 coal_conf->rx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1018 if(coal_conf->rx_coal_type != MEDIUM_COALESCE){ in amd8111e_calc_coalesce()
1019 coal_conf->rx_timeout = 1; in amd8111e_calc_coalesce()
1020 coal_conf->rx_event_count = 4; in amd8111e_calc_coalesce()
1022 coal_conf->rx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1027 if(coal_conf->rx_coal_type != HIGH_COALESCE){ in amd8111e_calc_coalesce()
1028 coal_conf->rx_timeout = 2; in amd8111e_calc_coalesce()
1029 coal_conf->rx_event_count = 3; in amd8111e_calc_coalesce()
1031 coal_conf->rx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()
1037 if(coal_conf->tx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1039 coal_conf->tx_timeout = 0x0; in amd8111e_calc_coalesce()
1040 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1042 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1050 if(coal_conf->tx_coal_type != NO_COALESCE){ in amd8111e_calc_coalesce()
1052 coal_conf->tx_timeout = 0; in amd8111e_calc_coalesce()
1053 coal_conf->tx_event_count = 0; in amd8111e_calc_coalesce()
1055 coal_conf->tx_coal_type = NO_COALESCE; in amd8111e_calc_coalesce()
1061 if(coal_conf->tx_coal_type != LOW_COALESCE){ in amd8111e_calc_coalesce()
1062 coal_conf->tx_timeout = 1; in amd8111e_calc_coalesce()
1063 coal_conf->tx_event_count = 2; in amd8111e_calc_coalesce()
1065 coal_conf->tx_coal_type = LOW_COALESCE; in amd8111e_calc_coalesce()
1071 if(coal_conf->tx_coal_type != MEDIUM_COALESCE){ in amd8111e_calc_coalesce()
1072 coal_conf->tx_timeout = 2; in amd8111e_calc_coalesce()
1073 coal_conf->tx_event_count = 5; in amd8111e_calc_coalesce()
1075 coal_conf->tx_coal_type = MEDIUM_COALESCE; in amd8111e_calc_coalesce()
1078 if (coal_conf->tx_coal_type != HIGH_COALESCE) { in amd8111e_calc_coalesce()
1079 coal_conf->tx_timeout = 4; in amd8111e_calc_coalesce()
1080 coal_conf->tx_event_count = 8; in amd8111e_calc_coalesce()
1082 coal_conf->tx_coal_type = HIGH_COALESCE; in amd8111e_calc_coalesce()