Lines Matching defs:mgmtm
4087 csio_mgmt_req_lookup(struct csio_mgmtm *mgmtm, struct csio_ioreq *io_req)
4092 list_for_each(tmp, &mgmtm->active_q) {
4110 struct csio_mgmtm *mgmtm = from_timer(mgmtm, t, mgmt_timer);
4114 csio_dbg(mgmtm->hw, "Mgmt timer invoked!\n");
4116 spin_lock_irq(&mgmtm->hw->lock);
4118 list_for_each(tmp, &mgmtm->active_q) {
4129 io_req->io_cbfn(mgmtm->hw, io_req);
4137 if (!list_empty(&mgmtm->active_q))
4138 mod_timer(&mgmtm->mgmt_timer,
4140 spin_unlock_irq(&mgmtm->hw->lock);
4144 csio_mgmtm_cleanup(struct csio_mgmtm *mgmtm)
4146 struct csio_hw *hw = mgmtm->hw;
4153 while ((!list_empty(&mgmtm->active_q)) && count--) {
4160 list_for_each(tmp, &mgmtm->active_q) {
4164 mgmtm->stats.n_active--;
4168 io_req->io_cbfn(mgmtm->hw, io_req);
4188 csio_mgmtm_init(struct csio_mgmtm *mgmtm, struct csio_hw *hw)
4190 timer_setup(&mgmtm->mgmt_timer, csio_mgmt_tmo_handler, 0);
4192 INIT_LIST_HEAD(&mgmtm->active_q);
4193 INIT_LIST_HEAD(&mgmtm->cbfn_q);
4195 mgmtm->hw = hw;
4196 /*mgmtm->iq_idx = hw->fwevt_iq_idx;*/
4211 csio_mgmtm_exit(struct csio_mgmtm *mgmtm)
4213 del_timer_sync(&mgmtm->mgmt_timer);