Lines Matching refs:intr_coal

2118 				 struct ethtool_coalesce *intr_coal,  in lio_get_intr_coalesce()  argument
2134 intr_coal->rx_coalesce_usecs = oct->rx_coalesce_usecs; in lio_get_intr_coalesce()
2135 intr_coal->rx_max_coalesced_frames = in lio_get_intr_coalesce()
2139 intr_coal->tx_max_coalesced_frames = in lio_get_intr_coalesce()
2149 intr_coal->rx_coalesce_usecs = in lio_get_intr_coalesce()
2151 intr_coal->rx_max_coalesced_frames = in lio_get_intr_coalesce()
2155 intr_coal->tx_max_coalesced_frames = iq->fill_threshold; in lio_get_intr_coalesce()
2163 intr_coal->use_adaptive_rx_coalesce = in lio_get_intr_coalesce()
2165 intr_coal->rate_sample_interval = in lio_get_intr_coalesce()
2167 intr_coal->pkt_rate_high = in lio_get_intr_coalesce()
2169 intr_coal->pkt_rate_low = in lio_get_intr_coalesce()
2171 intr_coal->rx_max_coalesced_frames_high = in lio_get_intr_coalesce()
2173 intr_coal->rx_coalesce_usecs_high = in lio_get_intr_coalesce()
2175 intr_coal->rx_coalesce_usecs_low = in lio_get_intr_coalesce()
2177 intr_coal->rx_max_coalesced_frames_low = in lio_get_intr_coalesce()
2182 intr_coal->use_adaptive_tx_coalesce = in lio_get_intr_coalesce()
2184 intr_coal->tx_max_coalesced_frames_high = in lio_get_intr_coalesce()
2186 intr_coal->tx_max_coalesced_frames_low = in lio_get_intr_coalesce()
2195 struct ethtool_coalesce *intr_coal) in oct_cfg_adaptive_intr() argument
2200 intrmod_cfg->check_intrvl = intr_coal->rate_sample_interval; in oct_cfg_adaptive_intr()
2201 intrmod_cfg->maxpkt_ratethr = intr_coal->pkt_rate_high; in oct_cfg_adaptive_intr()
2202 intrmod_cfg->minpkt_ratethr = intr_coal->pkt_rate_low; in oct_cfg_adaptive_intr()
2206 intr_coal->rx_max_coalesced_frames_high; in oct_cfg_adaptive_intr()
2208 intr_coal->rx_coalesce_usecs_high; in oct_cfg_adaptive_intr()
2210 intr_coal->rx_coalesce_usecs_low; in oct_cfg_adaptive_intr()
2212 intr_coal->rx_max_coalesced_frames_low; in oct_cfg_adaptive_intr()
2216 intr_coal->tx_max_coalesced_frames_high; in oct_cfg_adaptive_intr()
2218 intr_coal->tx_max_coalesced_frames_low; in oct_cfg_adaptive_intr()
2229 struct ethtool_coalesce *intr_coal) in oct_cfg_rx_intrcnt() argument
2241 if (!intr_coal->rx_max_coalesced_frames) in oct_cfg_rx_intrcnt()
2245 intr_coal->rx_max_coalesced_frames; in oct_cfg_rx_intrcnt()
2254 if (!intr_coal->rx_max_coalesced_frames) in oct_cfg_rx_intrcnt()
2258 intr_coal->rx_max_coalesced_frames; in oct_cfg_rx_intrcnt()
2276 if (!intr_coal->rx_max_coalesced_frames) in oct_cfg_rx_intrcnt()
2280 intr_coal->rx_max_coalesced_frames; in oct_cfg_rx_intrcnt()
2302 struct ethtool_coalesce *intr_coal) in oct_cfg_rx_intrtime() argument
2313 if (!intr_coal->rx_coalesce_usecs) in oct_cfg_rx_intrtime()
2316 rx_coalesce_usecs = intr_coal->rx_coalesce_usecs; in oct_cfg_rx_intrtime()
2331 if (!intr_coal->rx_coalesce_usecs) in oct_cfg_rx_intrtime()
2334 rx_coalesce_usecs = intr_coal->rx_coalesce_usecs; in oct_cfg_rx_intrtime()
2353 if (!intr_coal->rx_coalesce_usecs) in oct_cfg_rx_intrtime()
2356 rx_coalesce_usecs = intr_coal->rx_coalesce_usecs; in oct_cfg_rx_intrtime()
2381 struct ethtool_coalesce *intr_coal) in oct_cfg_tx_intrcnt() argument
2397 if (!intr_coal->tx_max_coalesced_frames) in oct_cfg_tx_intrcnt()
2401 iq_intr_pkt = intr_coal->tx_max_coalesced_frames & in oct_cfg_tx_intrcnt()
2424 struct ethtool_coalesce *intr_coal, in lio_set_intr_coalesce() argument
2440 if ((intr_coal->tx_max_coalesced_frames >= db_min) && in lio_set_intr_coalesce()
2441 (intr_coal->tx_max_coalesced_frames <= db_max)) { in lio_set_intr_coalesce()
2445 intr_coal->tx_max_coalesced_frames; in lio_set_intr_coalesce()
2450 intr_coal->tx_max_coalesced_frames, in lio_set_intr_coalesce()
2462 intrmod.rx_enable = intr_coal->use_adaptive_rx_coalesce ? 1 : 0; in lio_set_intr_coalesce()
2463 intrmod.tx_enable = intr_coal->use_adaptive_tx_coalesce ? 1 : 0; in lio_set_intr_coalesce()
2468 ret = oct_cfg_adaptive_intr(lio, &intrmod, intr_coal); in lio_set_intr_coalesce()
2470 if (!intr_coal->use_adaptive_rx_coalesce) { in lio_set_intr_coalesce()
2471 ret = oct_cfg_rx_intrtime(lio, &intrmod, intr_coal); in lio_set_intr_coalesce()
2475 ret = oct_cfg_rx_intrcnt(lio, &intrmod, intr_coal); in lio_set_intr_coalesce()
2485 if (!intr_coal->use_adaptive_tx_coalesce) { in lio_set_intr_coalesce()
2486 ret = oct_cfg_tx_intrcnt(lio, &intrmod, intr_coal); in lio_set_intr_coalesce()