Lines Matching refs:intrmod_cfg
2125 struct oct_intrmod_cfg intrmod_cfg; in lio_get_intr_coalesce() local
2127 if (octnet_get_intrmod_cfg(lio, &intrmod_cfg)) in lio_get_intr_coalesce()
2133 if (!intrmod_cfg.rx_enable) { in lio_get_intr_coalesce()
2138 if (!intrmod_cfg.tx_enable) in lio_get_intr_coalesce()
2148 if (!intrmod_cfg.rx_enable) { in lio_get_intr_coalesce()
2162 if (intrmod_cfg.rx_enable) { in lio_get_intr_coalesce()
2164 intrmod_cfg.rx_enable; in lio_get_intr_coalesce()
2166 intrmod_cfg.check_intrvl; in lio_get_intr_coalesce()
2168 intrmod_cfg.maxpkt_ratethr; in lio_get_intr_coalesce()
2170 intrmod_cfg.minpkt_ratethr; in lio_get_intr_coalesce()
2172 intrmod_cfg.rx_maxcnt_trigger; in lio_get_intr_coalesce()
2174 intrmod_cfg.rx_maxtmr_trigger; in lio_get_intr_coalesce()
2176 intrmod_cfg.rx_mintmr_trigger; in lio_get_intr_coalesce()
2178 intrmod_cfg.rx_mincnt_trigger; in lio_get_intr_coalesce()
2181 (intrmod_cfg.tx_enable)) { in lio_get_intr_coalesce()
2183 intrmod_cfg.tx_enable; in lio_get_intr_coalesce()
2185 intrmod_cfg.tx_maxcnt_trigger; in lio_get_intr_coalesce()
2187 intrmod_cfg.tx_mincnt_trigger; in lio_get_intr_coalesce()
2194 struct oct_intrmod_cfg *intrmod_cfg, in oct_cfg_adaptive_intr() argument
2199 if (intrmod_cfg->rx_enable || intrmod_cfg->tx_enable) { in oct_cfg_adaptive_intr()
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()
2204 if (intrmod_cfg->rx_enable) { in oct_cfg_adaptive_intr()
2205 intrmod_cfg->rx_maxcnt_trigger = in oct_cfg_adaptive_intr()
2207 intrmod_cfg->rx_maxtmr_trigger = in oct_cfg_adaptive_intr()
2209 intrmod_cfg->rx_mintmr_trigger = in oct_cfg_adaptive_intr()
2211 intrmod_cfg->rx_mincnt_trigger = in oct_cfg_adaptive_intr()
2214 if (intrmod_cfg->tx_enable) { in oct_cfg_adaptive_intr()
2215 intrmod_cfg->tx_maxcnt_trigger = in oct_cfg_adaptive_intr()
2217 intrmod_cfg->tx_mincnt_trigger = in oct_cfg_adaptive_intr()
2221 ret = octnet_set_intrmod_cfg(lio, intrmod_cfg); in oct_cfg_adaptive_intr()