Lines Matching full:foo
237 void foo_init(struct foo *foo)
239 xa_init_flags(&foo->array, XA_FLAGS_LOCK_BH);
242 int foo_store(struct foo *foo, unsigned long index, void *entry)
246 xa_lock_bh(&foo->array);
247 err = xa_err(__xa_store(&foo->array, index, entry, GFP_KERNEL));
249 foo->count++;
250 xa_unlock_bh(&foo->array);
255 void foo_erase(struct foo *foo, unsigned long index)
257 xa_lock(&foo->array);
258 __xa_erase(&foo->array, index);
259 foo->count--;
260 xa_unlock(&foo->array);