Lines Matching full:ent
25 struct ei_entry *ent; in within_error_injection_list() local
29 list_for_each_entry(ent, &error_injection_list, list) { in within_error_injection_list()
30 if (addr >= ent->start_addr && addr < ent->end_addr) { in within_error_injection_list()
41 struct ei_entry *ent; in get_injectable_error_type() local
43 list_for_each_entry(ent, &error_injection_list, list) { in get_injectable_error_type()
44 if (addr >= ent->start_addr && addr < ent->end_addr) in get_injectable_error_type()
45 return ent->etype; in get_injectable_error_type()
62 struct ei_entry *ent; in populate_error_injection_list() local
76 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list()
77 if (!ent) in populate_error_injection_list()
79 ent->start_addr = entry; in populate_error_injection_list()
80 ent->end_addr = entry + size; in populate_error_injection_list()
81 ent->etype = iter->etype; in populate_error_injection_list()
82 ent->priv = priv; in populate_error_injection_list()
83 INIT_LIST_HEAD(&ent->list); in populate_error_injection_list()
84 list_add_tail(&ent->list, &error_injection_list); in populate_error_injection_list()
112 struct ei_entry *ent, *n; in module_unload_ei_list() local
118 list_for_each_entry_safe(ent, n, &error_injection_list, list) { in module_unload_ei_list()
119 if (ent->priv == mod) { in module_unload_ei_list()
120 list_del_init(&ent->list); in module_unload_ei_list()
121 kfree(ent); in module_unload_ei_list()
190 struct ei_entry *ent = list_entry(v, struct ei_entry, list); in ei_seq_show() local
192 seq_printf(m, "%ps\t%s\n", (void *)ent->start_addr, in ei_seq_show()
193 error_type_string(ent->etype)); in ei_seq_show()