Lines Matching refs:imappers
174 dao->imappers[i] = entry; in dao_set_left_input()
203 dao->imappers[daio->rscl.msr + i] = entry; in dao_set_right_input()
220 if (!dao->imappers[0]) in dao_clear_left_input()
223 entry = dao->imappers[0]; in dao_clear_left_input()
227 entry = dao->imappers[i]; in dao_clear_left_input()
229 dao->imappers[i] = NULL; in dao_clear_left_input()
232 kfree(dao->imappers[0]); in dao_clear_left_input()
233 dao->imappers[0] = NULL; in dao_clear_left_input()
244 if (!dao->imappers[daio->rscl.msr]) in dao_clear_right_input()
247 entry = dao->imappers[daio->rscl.msr]; in dao_clear_right_input()
251 entry = dao->imappers[daio->rscl.msr + i]; in dao_clear_right_input()
253 dao->imappers[daio->rscl.msr + i] = NULL; in dao_clear_right_input()
256 kfree(dao->imappers[daio->rscl.msr]); in dao_clear_right_input()
257 dao->imappers[daio->rscl.msr] = NULL; in dao_clear_right_input()
397 dao->imappers = kzalloc(array3_size(sizeof(void *), desc->msr, 2), in dao_rsc_init()
399 if (!dao->imappers) { in dao_rsc_init()
424 kfree(dao->imappers); in dao_rsc_init()
425 dao->imappers = NULL; in dao_rsc_init()
433 if (dao->imappers) { in dao_rsc_uninit()
434 if (dao->imappers[0]) in dao_rsc_uninit()
437 if (dao->imappers[dao->daio.rscl.msr]) in dao_rsc_uninit()
440 kfree(dao->imappers); in dao_rsc_uninit()
441 dao->imappers = NULL; in dao_rsc_uninit()
652 input_mapper_delete(&mgr->imappers, mgr->init_imap, in daio_imap_add()
656 err = input_mapper_add(&mgr->imappers, entry, daio_map_op, mgr); in daio_imap_add()
668 err = input_mapper_delete(&mgr->imappers, entry, daio_map_op, mgr); in daio_imap_delete()
669 if (list_empty(&mgr->imappers)) { in daio_imap_delete()
670 input_mapper_add(&mgr->imappers, mgr->init_imap, in daio_imap_delete()
704 INIT_LIST_HEAD(&daio_mgr->imappers); in daio_mgr_create()
711 list_add(&entry->list, &daio_mgr->imappers); in daio_mgr_create()
747 free_input_mapper_list(&daio_mgr->imappers); in daio_mgr_destroy()