Lines Matching refs:daio_mgr
387 struct daio_mgr *mgr) in dao_rsc_init()
452 struct daio_mgr *mgr = dao->mgr; in dao_rsc_reinit()
464 struct daio_mgr *mgr) in dai_rsc_init()
523 static int get_daio_rsc(struct daio_mgr *mgr, in get_daio_rsc()
582 static int put_daio_rsc(struct daio_mgr *mgr, struct daio *daio) in put_daio_rsc()
604 static int daio_mgr_enb_daio(struct daio_mgr *mgr, struct daio *daio) in daio_mgr_enb_daio()
618 static int daio_mgr_dsb_daio(struct daio_mgr *mgr, struct daio *daio) in daio_mgr_dsb_daio()
634 struct rsc_mgr *mgr = &((struct daio_mgr *)data)->mgr; in daio_map_op()
645 static int daio_imap_add(struct daio_mgr *mgr, struct imapper *entry) in daio_imap_add()
662 static int daio_imap_delete(struct daio_mgr *mgr, struct imapper *entry) in daio_imap_delete()
679 static int daio_mgr_commit_write(struct daio_mgr *mgr) in daio_mgr_commit_write()
690 struct daio_mgr *daio_mgr; in daio_mgr_create() local
694 daio_mgr = kzalloc(sizeof(*daio_mgr), GFP_KERNEL); in daio_mgr_create()
695 if (!daio_mgr) in daio_mgr_create()
698 err = rsc_mgr_init(&daio_mgr->mgr, DAIO, NUM_DAIOTYP, hw); in daio_mgr_create()
702 spin_lock_init(&daio_mgr->mgr_lock); in daio_mgr_create()
703 spin_lock_init(&daio_mgr->imap_lock); in daio_mgr_create()
704 INIT_LIST_HEAD(&daio_mgr->imappers); in daio_mgr_create()
711 list_add(&entry->list, &daio_mgr->imappers); in daio_mgr_create()
712 daio_mgr->init_imap = entry; in daio_mgr_create()
713 daio_mgr->init_imap_added = 1; in daio_mgr_create()
715 daio_mgr->get_daio = get_daio_rsc; in daio_mgr_create()
716 daio_mgr->put_daio = put_daio_rsc; in daio_mgr_create()
717 daio_mgr->daio_enable = daio_mgr_enb_daio; in daio_mgr_create()
718 daio_mgr->daio_disable = daio_mgr_dsb_daio; in daio_mgr_create()
719 daio_mgr->imap_add = daio_imap_add; in daio_mgr_create()
720 daio_mgr->imap_delete = daio_imap_delete; in daio_mgr_create()
721 daio_mgr->commit_write = daio_mgr_commit_write; in daio_mgr_create()
722 daio_mgr->card = hw->card; in daio_mgr_create()
725 hw->daio_mgr_dsb_dao(daio_mgr->mgr.ctrl_blk, i); in daio_mgr_create()
726 hw->daio_mgr_dsb_dai(daio_mgr->mgr.ctrl_blk, i); in daio_mgr_create()
728 hw->daio_mgr_commit_write(hw, daio_mgr->mgr.ctrl_blk); in daio_mgr_create()
730 *rdaio_mgr = daio_mgr; in daio_mgr_create()
735 rsc_mgr_uninit(&daio_mgr->mgr); in daio_mgr_create()
737 kfree(daio_mgr); in daio_mgr_create()
743 struct daio_mgr *daio_mgr = ptr; in daio_mgr_destroy() local
747 spin_lock_irqsave(&daio_mgr->imap_lock, flags); in daio_mgr_destroy()
748 free_input_mapper_list(&daio_mgr->imappers); in daio_mgr_destroy()
749 spin_unlock_irqrestore(&daio_mgr->imap_lock, flags); in daio_mgr_destroy()
751 rsc_mgr_uninit(&daio_mgr->mgr); in daio_mgr_destroy()
752 kfree(daio_mgr); in daio_mgr_destroy()