• Home
  • Raw
  • Download

Lines Matching refs:bitem

85 	struct sharefs_config_bitem *bitem;  in alloc_bitem()  local
88 bitem = kzalloc(sizeof(*bitem), GFP_KERNEL); in alloc_bitem()
89 if (!bitem) { in alloc_bitem()
90 bitem = ERR_PTR(-ENOMEM); in alloc_bitem()
96 kfree(bitem); in alloc_bitem()
97 bitem = ERR_PTR(-ENOMEM); in alloc_bitem()
101 bitem->str = make_qstr(bitem_name); in alloc_bitem()
103 return bitem; in alloc_bitem()
106 static void free_bitem(struct sharefs_config_bitem *bitem) in free_bitem() argument
108 if (bitem == NULL) in free_bitem()
111 kfree(bitem->str.name); in free_bitem()
112 kfree(bitem); in free_bitem()
220 struct sharefs_config_bitem *bitem; \
224 bitem = container_of(item, struct sharefs_config_bitem, item); \
225 id = query_##_attr_##_hash_entry(&bitem->str); \
236 struct sharefs_config_bitem *bitem; \
240 bitem = container_of(item, struct sharefs_config_bitem, item); \
247 err = insert_##_attr_##_hash_entry(&bitem->str, id); \
275 struct sharefs_config_bitem *bitem; in sharefs_config_bitem_release() local
279 bitem = container_of(item, struct sharefs_config_bitem, item); in sharefs_config_bitem_release()
280 remove_appid_hash_entry(&bitem->str); in sharefs_config_bitem_release()
281 remove_appid_hash_entry(&bitem->str); in sharefs_config_bitem_release()
282 free_bitem(bitem); in sharefs_config_bitem_release()
299 struct sharefs_config_bitem *bitem; in sharefs_make_bitem() local
301 bitem = alloc_bitem(name); in sharefs_make_bitem()
302 if (IS_ERR(bitem)) { in sharefs_make_bitem()
307 config_item_init_type_name(&bitem->item, name, in sharefs_make_bitem()
309 item = &bitem->item; in sharefs_make_bitem()