• Home
  • Raw
  • Download

Lines Matching refs:mbm

1265 	struct csio_mbm	*mbm = &hw->mbm;  in csio_mb_issue()  local
1286 if (mbm->mcurrent != NULL) { in csio_mb_issue()
1295 list_add_tail(&mbp->list, &mbm->req_q); in csio_mb_issue()
1296 CSIO_INC_STATS(mbm, n_activeq); in csio_mb_issue()
1323 if (mbm->mcurrent == NULL) { in csio_mb_issue()
1348 mbm->mcurrent = mbp; in csio_mb_issue()
1349 mod_timer(&mbm->timer, jiffies + msecs_to_jiffies(mbp->tmo)); in csio_mb_issue()
1360 CSIO_INC_STATS(mbm, n_req); in csio_mb_issue()
1398 CSIO_INC_STATS(mbm, n_err); in csio_mb_issue()
1400 CSIO_INC_STATS(mbm, n_rsp); in csio_mb_issue()
1405 CSIO_INC_STATS(mbm, n_tmo); in csio_mb_issue()
1413 CSIO_INC_STATS(mbm, n_err); in csio_mb_issue()
1427 struct csio_mbm *mbm = &hw->mbm; in csio_mb_completions() local
1436 CSIO_INC_STATS(mbm, n_err); in csio_mb_completions()
1438 CSIO_INC_STATS(mbm, n_rsp); in csio_mb_completions()
1531 struct csio_mbm *mbm = &hw->mbm; in csio_mb_isr_handler() local
1532 struct csio_mb *mbp = mbm->mcurrent; in csio_mb_isr_handler()
1601 mbm->mcurrent = NULL; in csio_mb_isr_handler()
1604 list_add_tail(&mbp->list, &mbm->cbfn_q); in csio_mb_isr_handler()
1605 CSIO_INC_STATS(mbm, n_cbfnq); in csio_mb_isr_handler()
1635 struct csio_mbm *mbm = &hw->mbm; in csio_mb_tmo_handler() local
1636 struct csio_mb *mbp = mbm->mcurrent; in csio_mb_tmo_handler()
1653 mbm->mcurrent = NULL; in csio_mb_tmo_handler()
1654 CSIO_INC_STATS(mbm, n_tmo); in csio_mb_tmo_handler()
1671 struct csio_mbm *mbm = &hw->mbm; in csio_mb_cancel_all() local
1675 if (mbm->mcurrent) { in csio_mb_cancel_all()
1676 mbp = mbm->mcurrent; in csio_mb_cancel_all()
1679 del_timer_sync(&mbm->timer); in csio_mb_cancel_all()
1683 mbm->mcurrent = NULL; in csio_mb_cancel_all()
1686 if (!list_empty(&mbm->req_q)) { in csio_mb_cancel_all()
1687 list_splice_tail_init(&mbm->req_q, cbfn_q); in csio_mb_cancel_all()
1688 mbm->stats.n_activeq = 0; in csio_mb_cancel_all()
1691 if (!list_empty(&mbm->cbfn_q)) { in csio_mb_cancel_all()
1692 list_splice_tail_init(&mbm->cbfn_q, cbfn_q); in csio_mb_cancel_all()
1693 mbm->stats.n_cbfnq = 0; in csio_mb_cancel_all()
1706 CSIO_INC_STATS(mbm, n_cancel); in csio_mb_cancel_all()
1720 csio_mbm_init(struct csio_mbm *mbm, struct csio_hw *hw, in csio_mbm_init() argument
1723 struct timer_list *timer = &mbm->timer; in csio_mbm_init()
1729 INIT_LIST_HEAD(&mbm->req_q); in csio_mbm_init()
1730 INIT_LIST_HEAD(&mbm->cbfn_q); in csio_mbm_init()
1731 csio_set_mb_intr_idx(mbm, -1); in csio_mbm_init()
1743 csio_mbm_exit(struct csio_mbm *mbm) in csio_mbm_exit() argument
1745 del_timer_sync(&mbm->timer); in csio_mbm_exit()
1747 CSIO_DB_ASSERT(mbm->mcurrent == NULL); in csio_mbm_exit()
1748 CSIO_DB_ASSERT(list_empty(&mbm->req_q)); in csio_mbm_exit()
1749 CSIO_DB_ASSERT(list_empty(&mbm->cbfn_q)); in csio_mbm_exit()