• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/ath/ath9k/

Lines Matching refs:btcoex

228 	struct ath_btcoex *btcoex = &sc->btcoex;
232 btcoex->bt_priority_cnt++;
234 if (time_after(jiffies, btcoex->bt_priority_time +
238 if (btcoex->bt_priority_cnt >= ATH_BT_CNT_SCAN_THRESHOLD) {
243 } else if (btcoex->bt_priority_cnt >= ATH_BT_CNT_THRESHOLD) {
249 btcoex->bt_priority_cnt = 0;
250 btcoex->bt_priority_time = jiffies;
321 struct ath_btcoex *btcoex = &sc->btcoex;
329 spin_lock_bh(&btcoex->btcoex_lock);
332 btcoex->bt_stomp_type);
334 spin_unlock_bh(&btcoex->btcoex_lock);
336 if (btcoex->btcoex_period != btcoex->btcoex_no_stomp) {
337 if (btcoex->hw_timer_enabled)
338 ath9k_gen_timer_stop(ah, btcoex->no_stomp_timer);
340 timer_period = is_btscan ? btcoex->btscan_no_stomp :
341 btcoex->btcoex_no_stomp;
343 btcoex->no_stomp_timer,
346 btcoex->hw_timer_enabled = true;
349 mod_timer(&btcoex->period_timer, jiffies +
361 struct ath_btcoex *btcoex = &sc->btcoex;
367 spin_lock_bh(&btcoex->btcoex_lock);
369 if (btcoex->bt_stomp_type == ATH_BTCOEX_STOMP_LOW || is_btscan)
371 else if (btcoex->bt_stomp_type == ATH_BTCOEX_STOMP_ALL)
374 spin_unlock_bh(&btcoex->btcoex_lock);
379 struct ath_btcoex *btcoex = &sc->btcoex;
381 btcoex->btcoex_period = ATH_BTCOEX_DEF_BT_PERIOD * 1000;
382 btcoex->btcoex_no_stomp = (100 - ATH_BTCOEX_DEF_DUTY_CYCLE) *
383 btcoex->btcoex_period / 100;
384 btcoex->btscan_no_stomp = (100 - ATH_BTCOEX_BTSCAN_DUTY_CYCLE) *
385 btcoex->btcoex_period / 100;
387 setup_timer(&btcoex->period_timer, ath_btcoex_period_timer,
390 spin_lock_init(&btcoex->btcoex_lock);
392 btcoex->no_stomp_timer = ath_gen_timer_alloc(sc->sc_ah,
397 if (!btcoex->no_stomp_timer)
404 * (Re)start btcoex timers
408 struct ath_btcoex *btcoex = &sc->btcoex;
412 "Starting btcoex timers");
415 if (btcoex->hw_timer_enabled)
416 ath9k_gen_timer_stop(sc->sc_ah, btcoex->no_stomp_timer);
418 btcoex->bt_priority_cnt = 0;
419 btcoex->bt_priority_time = jiffies;
422 mod_timer(&btcoex->period_timer, jiffies);
427 * Pause btcoex timer and bt duty cycle timer
431 struct ath_btcoex *btcoex = &sc->btcoex;
434 del_timer_sync(&btcoex->period_timer);
436 if (btcoex->hw_timer_enabled)
437 ath9k_gen_timer_stop(ah, btcoex->no_stomp_timer);
439 btcoex->hw_timer_enabled = false;