Lines Matching refs:imappers

178 		dao->imappers[i] = entry;  in dao_set_left_input()
207 dao->imappers[daio->rscl.msr + i] = entry; in dao_set_right_input()
224 if (!dao->imappers[0]) in dao_clear_left_input()
227 entry = dao->imappers[0]; in dao_clear_left_input()
231 entry = dao->imappers[i]; in dao_clear_left_input()
233 dao->imappers[i] = NULL; in dao_clear_left_input()
236 kfree(dao->imappers[0]); in dao_clear_left_input()
237 dao->imappers[0] = NULL; in dao_clear_left_input()
248 if (!dao->imappers[daio->rscl.msr]) in dao_clear_right_input()
251 entry = dao->imappers[daio->rscl.msr]; in dao_clear_right_input()
255 entry = dao->imappers[daio->rscl.msr + i]; in dao_clear_right_input()
257 dao->imappers[daio->rscl.msr + i] = NULL; in dao_clear_right_input()
260 kfree(dao->imappers[daio->rscl.msr]); in dao_clear_right_input()
261 dao->imappers[daio->rscl.msr] = NULL; in dao_clear_right_input()
403 dao->imappers = kzalloc(sizeof(void *)*desc->msr*2, GFP_KERNEL); in dao_rsc_init()
404 if (!dao->imappers) { in dao_rsc_init()
429 kfree(dao->imappers); in dao_rsc_init()
430 dao->imappers = NULL; in dao_rsc_init()
438 if (dao->imappers) { in dao_rsc_uninit()
439 if (dao->imappers[0]) in dao_rsc_uninit()
442 if (dao->imappers[dao->daio.rscl.msr]) in dao_rsc_uninit()
445 kfree(dao->imappers); in dao_rsc_uninit()
446 dao->imappers = NULL; in dao_rsc_uninit()
660 input_mapper_delete(&mgr->imappers, mgr->init_imap, in daio_imap_add()
664 err = input_mapper_add(&mgr->imappers, entry, daio_map_op, mgr); in daio_imap_add()
676 err = input_mapper_delete(&mgr->imappers, entry, daio_map_op, mgr); in daio_imap_delete()
677 if (list_empty(&mgr->imappers)) { in daio_imap_delete()
678 input_mapper_add(&mgr->imappers, mgr->init_imap, in daio_imap_delete()
712 INIT_LIST_HEAD(&daio_mgr->imappers); in daio_mgr_create()
719 list_add(&entry->list, &daio_mgr->imappers); in daio_mgr_create()
754 free_input_mapper_list(&daio_mgr->imappers); in daio_mgr_destroy()