Lines Matching defs:tui_drv
597 struct tui_drv_node *tui_drv = NULL;
634 /* Alllovate memory for tui_drv */
635 tui_drv = kzalloc(sizeof(struct tui_drv_node), GFP_KERNEL);
636 if (tui_drv == NULL)
639 if (memset_s(tui_drv, sizeof(struct tui_drv_node), 0, sizeof(struct tui_drv_node)) != 0) {
640 tloge("tui_drv memset failed");
641 kfree(tui_drv);
644 /* Assign content for tui_drv */
645 tui_drv->init_func = fun;
646 tui_drv->pdata = pdata;
648 if (strncpy_s(tui_drv->name, TUI_DRV_NAME_MAX, name, TUI_DRV_NAME_MAX - 1) != 0) {
650 kfree(tui_drv);
654 INIT_LIST_HEAD(&tui_drv->list);
656 /* link the new tui_drv to the list */
658 list_add_tail(&tui_drv->list, &g_tui_drv_head);
820 /* Search all the tui_drv in their list */