Lines Matching refs:tb
40 struct target_backend *tb, *old;
42 tb = kzalloc(sizeof(*tb), GFP_KERNEL);
43 if (!tb)
45 tb->ops = ops;
52 kfree(tb);
56 target_setup_backend_cits(tb);
57 list_add_tail(&tb->list, &backend_list);
68 struct target_backend *tb;
71 list_for_each_entry(tb, &backend_list, list) {
72 if (tb->ops == ops) {
73 list_del(&tb->list);
82 kfree(tb);
92 struct target_backend *tb;
95 list_for_each_entry(tb, &backend_list, list) {
96 if (!strcmp(tb->ops->name, name))
102 if (tb->ops->owner && !try_module_get(tb->ops->owner))
103 tb = NULL;
105 return tb;