Lines Matching defs:entry
94 struct i2o_context_list_element *entry;
101 entry = kmalloc(sizeof(*entry), GFP_ATOMIC);
102 if (!entry) {
108 entry->ptr = ptr;
109 entry->timestamp = jiffies;
110 INIT_LIST_HEAD(&entry->list);
117 entry->context = atomic_read(&c->context_list_counter);
119 list_add(&entry->list, &c->context_list);
125 return entry->context;
140 struct i2o_context_list_element *entry;
145 list_for_each_entry(entry, &c->context_list, list)
146 if (entry->ptr == ptr) {
147 list_del(&entry->list);
148 context = entry->context;
149 kfree(entry);
174 struct i2o_context_list_element *entry;
179 list_for_each_entry(entry, &c->context_list, list)
180 if (entry->context == context) {
181 list_del(&entry->list);
182 ptr = entry->ptr;
183 kfree(entry);
207 struct i2o_context_list_element *entry;
212 list_for_each_entry(entry, &c->context_list, list)
213 if (entry->ptr == ptr) {
214 context = entry->context;