Lines Matching refs:mgmtm
3625 csio_mgmt_req_lookup(struct csio_mgmtm *mgmtm, struct csio_ioreq *io_req) in csio_mgmt_req_lookup() argument
3630 list_for_each(tmp, &mgmtm->active_q) { in csio_mgmt_req_lookup()
3648 struct csio_mgmtm *mgmtm = (struct csio_mgmtm *) data; in csio_mgmt_tmo_handler() local
3652 csio_dbg(mgmtm->hw, "Mgmt timer invoked!\n"); in csio_mgmt_tmo_handler()
3654 spin_lock_irq(&mgmtm->hw->lock); in csio_mgmt_tmo_handler()
3656 list_for_each(tmp, &mgmtm->active_q) { in csio_mgmt_tmo_handler()
3667 io_req->io_cbfn(mgmtm->hw, io_req); in csio_mgmt_tmo_handler()
3675 if (!list_empty(&mgmtm->active_q)) in csio_mgmt_tmo_handler()
3676 mod_timer(&mgmtm->mgmt_timer, in csio_mgmt_tmo_handler()
3678 spin_unlock_irq(&mgmtm->hw->lock); in csio_mgmt_tmo_handler()
3682 csio_mgmtm_cleanup(struct csio_mgmtm *mgmtm) in csio_mgmtm_cleanup() argument
3684 struct csio_hw *hw = mgmtm->hw; in csio_mgmtm_cleanup()
3691 while ((!list_empty(&mgmtm->active_q)) && count--) { in csio_mgmtm_cleanup()
3698 list_for_each(tmp, &mgmtm->active_q) { in csio_mgmtm_cleanup()
3702 mgmtm->stats.n_active--; in csio_mgmtm_cleanup()
3706 io_req->io_cbfn(mgmtm->hw, io_req); in csio_mgmtm_cleanup()
3726 csio_mgmtm_init(struct csio_mgmtm *mgmtm, struct csio_hw *hw) in csio_mgmtm_init() argument
3728 struct timer_list *timer = &mgmtm->mgmt_timer; in csio_mgmtm_init()
3732 timer->data = (unsigned long)mgmtm; in csio_mgmtm_init()
3734 INIT_LIST_HEAD(&mgmtm->active_q); in csio_mgmtm_init()
3735 INIT_LIST_HEAD(&mgmtm->cbfn_q); in csio_mgmtm_init()
3737 mgmtm->hw = hw; in csio_mgmtm_init()
3753 csio_mgmtm_exit(struct csio_mgmtm *mgmtm) in csio_mgmtm_exit() argument
3755 del_timer_sync(&mgmtm->mgmt_timer); in csio_mgmtm_exit()