Lines Matching refs:t

287 	struct brcms_timer *t, *next;  in brcms_free()  local
317 for (t = wl->timers; t; t = next) { in brcms_free()
318 next = t->next; in brcms_free()
320 kfree(t->name); in brcms_free()
322 kfree(t); in brcms_free()
983 void brcms_dpc(struct tasklet_struct *t) in brcms_dpc() argument
987 wl = from_tasklet(wl, t, tasklet); in brcms_dpc()
1461 struct brcms_timer *t = container_of(work, struct brcms_timer, in _brcms_timer() local
1464 spin_lock_bh(&t->wl->lock); in _brcms_timer()
1466 if (t->set) { in _brcms_timer()
1467 if (t->periodic) { in _brcms_timer()
1468 atomic_inc(&t->wl->callbacks); in _brcms_timer()
1469 ieee80211_queue_delayed_work(t->wl->pub->ieee_hw, in _brcms_timer()
1470 &t->dly_wrk, in _brcms_timer()
1471 msecs_to_jiffies(t->ms)); in _brcms_timer()
1473 t->set = false; in _brcms_timer()
1476 t->fn(t->arg); in _brcms_timer()
1479 atomic_dec(&t->wl->callbacks); in _brcms_timer()
1481 spin_unlock_bh(&t->wl->lock); in _brcms_timer()
1494 struct brcms_timer *t; in brcms_init_timer() local
1496 t = kzalloc(sizeof(struct brcms_timer), GFP_ATOMIC); in brcms_init_timer()
1497 if (!t) in brcms_init_timer()
1500 INIT_DELAYED_WORK(&t->dly_wrk, _brcms_timer); in brcms_init_timer()
1501 t->wl = wl; in brcms_init_timer()
1502 t->fn = fn; in brcms_init_timer()
1503 t->arg = arg; in brcms_init_timer()
1504 t->next = wl->timers; in brcms_init_timer()
1505 wl->timers = t; in brcms_init_timer()
1508 t->name = kstrdup(name, GFP_ATOMIC); in brcms_init_timer()
1511 return t; in brcms_init_timer()
1520 void brcms_add_timer(struct brcms_timer *t, uint ms, int periodic) in brcms_add_timer() argument
1522 struct ieee80211_hw *hw = t->wl->pub->ieee_hw; in brcms_add_timer()
1525 if (t->set) in brcms_add_timer()
1526 brcms_dbg_info(t->wl->wlc->hw->d11core, in brcms_add_timer()
1528 __func__, t->name, periodic); in brcms_add_timer()
1530 t->ms = ms; in brcms_add_timer()
1531 t->periodic = (bool) periodic; in brcms_add_timer()
1532 if (!t->set) { in brcms_add_timer()
1533 t->set = true; in brcms_add_timer()
1534 atomic_inc(&t->wl->callbacks); in brcms_add_timer()
1537 ieee80211_queue_delayed_work(hw, &t->dly_wrk, msecs_to_jiffies(ms)); in brcms_add_timer()
1545 bool brcms_del_timer(struct brcms_timer *t) in brcms_del_timer() argument
1547 if (t->set) { in brcms_del_timer()
1548 t->set = false; in brcms_del_timer()
1549 if (!cancel_delayed_work(&t->dly_wrk)) in brcms_del_timer()
1552 atomic_dec(&t->wl->callbacks); in brcms_del_timer()
1561 void brcms_free_timer(struct brcms_timer *t) in brcms_free_timer() argument
1563 struct brcms_info *wl = t->wl; in brcms_free_timer()
1567 brcms_del_timer(t); in brcms_free_timer()
1569 if (wl->timers == t) { in brcms_free_timer()
1572 kfree(t->name); in brcms_free_timer()
1574 kfree(t); in brcms_free_timer()
1581 if (tmp->next == t) { in brcms_free_timer()
1582 tmp->next = t->next; in brcms_free_timer()
1584 kfree(t->name); in brcms_free_timer()
1586 kfree(t); in brcms_free_timer()