Home | History | Annotate | Download | only in label

Lines Matching defs:li

45 	struct labeller_i *li;
48 len = sizeof(*li) + strlen(name) + 1;
50 if (!(li = dm_malloc(len))) {
55 li->l = l;
56 strcpy(li->name, name);
58 return li;
61 static void _free_li(struct labeller_i *li)
63 dm_free(li);
75 struct labeller_i *li;
79 li = dm_list_item(c, struct labeller_i);
80 li->l->ops->destroy(li->l);
81 _free_li(li);
89 struct labeller_i *li;
91 if (!(li = _alloc_li(name, handler)))
94 dm_list_add(&_labellers, &li->list);
100 struct labeller_i *li;
102 dm_list_iterate_items(li, &_labellers)
103 if (!strcmp(li->name, name))
104 return li->l;
113 struct labeller_i *li;
158 dm_list_iterate_items(li, &_labellers) {
159 if (li->l->ops->can_handle(li->l, (char *) lh,
162 dev_name(dev), li->name);
170 r = li->l;
200 struct labeller_i *li;
233 dm_list_iterate_items(li, &_labellers) {
234 if (li->l->ops->can_handle(li->l, (char *) lh,