Lines Matching refs:mgmtm

3622 csio_mgmt_req_lookup(struct csio_mgmtm *mgmtm, struct csio_ioreq *io_req)  in csio_mgmt_req_lookup()  argument
3627 list_for_each(tmp, &mgmtm->active_q) { in csio_mgmt_req_lookup()
3645 struct csio_mgmtm *mgmtm = (struct csio_mgmtm *) data; in csio_mgmt_tmo_handler() local
3649 csio_dbg(mgmtm->hw, "Mgmt timer invoked!\n"); in csio_mgmt_tmo_handler()
3651 spin_lock_irq(&mgmtm->hw->lock); in csio_mgmt_tmo_handler()
3653 list_for_each(tmp, &mgmtm->active_q) { in csio_mgmt_tmo_handler()
3664 io_req->io_cbfn(mgmtm->hw, io_req); in csio_mgmt_tmo_handler()
3672 if (!list_empty(&mgmtm->active_q)) in csio_mgmt_tmo_handler()
3673 mod_timer(&mgmtm->mgmt_timer, in csio_mgmt_tmo_handler()
3675 spin_unlock_irq(&mgmtm->hw->lock); in csio_mgmt_tmo_handler()
3679 csio_mgmtm_cleanup(struct csio_mgmtm *mgmtm) in csio_mgmtm_cleanup() argument
3681 struct csio_hw *hw = mgmtm->hw; in csio_mgmtm_cleanup()
3688 while ((!list_empty(&mgmtm->active_q)) && count--) { in csio_mgmtm_cleanup()
3695 list_for_each(tmp, &mgmtm->active_q) { in csio_mgmtm_cleanup()
3699 mgmtm->stats.n_active--; in csio_mgmtm_cleanup()
3703 io_req->io_cbfn(mgmtm->hw, io_req); in csio_mgmtm_cleanup()
3723 csio_mgmtm_init(struct csio_mgmtm *mgmtm, struct csio_hw *hw) in csio_mgmtm_init() argument
3725 struct timer_list *timer = &mgmtm->mgmt_timer; in csio_mgmtm_init()
3729 timer->data = (unsigned long)mgmtm; in csio_mgmtm_init()
3731 INIT_LIST_HEAD(&mgmtm->active_q); in csio_mgmtm_init()
3732 INIT_LIST_HEAD(&mgmtm->cbfn_q); in csio_mgmtm_init()
3734 mgmtm->hw = hw; in csio_mgmtm_init()
3750 csio_mgmtm_exit(struct csio_mgmtm *mgmtm) in csio_mgmtm_exit() argument
3752 del_timer_sync(&mgmtm->mgmt_timer); in csio_mgmtm_exit()