Lines Matching refs:boot_kobj
35 struct iscsi_boot_kobj *boot_kobj = in iscsi_boot_show_attribute() local
45 if (boot_kobj->show) in iscsi_boot_show_attribute()
46 ret = boot_kobj->show(boot_kobj->data, boot_attr->type, str); in iscsi_boot_show_attribute()
56 struct iscsi_boot_kobj *boot_kobj = in iscsi_boot_kobj_release() local
59 if (boot_kobj->release) in iscsi_boot_kobj_release()
60 boot_kobj->release(boot_kobj->data); in iscsi_boot_kobj_release()
61 kfree(boot_kobj); in iscsi_boot_kobj_release()
110 struct iscsi_boot_kobj *boot_kobj = in iscsi_boot_tgt_attr_is_visible() local
114 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
117 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
120 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
123 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
126 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
129 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
132 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
135 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
138 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
141 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
144 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
147 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_tgt_attr_is_visible()
193 struct iscsi_boot_kobj *boot_kobj = in iscsi_boot_eth_attr_is_visible() local
197 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
200 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
203 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
206 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
209 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
212 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
215 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
218 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
221 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
224 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
227 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
230 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
233 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_eth_attr_is_visible()
268 struct iscsi_boot_kobj *boot_kobj = in iscsi_boot_ini_attr_is_visible() local
272 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_ini_attr_is_visible()
275 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_ini_attr_is_visible()
278 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_ini_attr_is_visible()
281 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_ini_attr_is_visible()
284 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_ini_attr_is_visible()
287 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_ini_attr_is_visible()
290 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_ini_attr_is_visible()
317 struct iscsi_boot_kobj *boot_kobj = in iscsi_boot_acpitbl_attr_is_visible() local
321 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_acpitbl_attr_is_visible()
324 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_acpitbl_attr_is_visible()
327 return boot_kobj->is_visible(boot_kobj->data, in iscsi_boot_acpitbl_attr_is_visible()
345 struct iscsi_boot_kobj *boot_kobj; in iscsi_boot_create_kobj() local
347 boot_kobj = kzalloc(sizeof(*boot_kobj), GFP_KERNEL); in iscsi_boot_create_kobj()
348 if (!boot_kobj) in iscsi_boot_create_kobj()
350 INIT_LIST_HEAD(&boot_kobj->list); in iscsi_boot_create_kobj()
352 boot_kobj->kobj.kset = boot_kset->kset; in iscsi_boot_create_kobj()
353 if (kobject_init_and_add(&boot_kobj->kobj, &iscsi_boot_ktype, in iscsi_boot_create_kobj()
355 kobject_put(&boot_kobj->kobj); in iscsi_boot_create_kobj()
358 boot_kobj->data = data; in iscsi_boot_create_kobj()
359 boot_kobj->show = show; in iscsi_boot_create_kobj()
360 boot_kobj->is_visible = is_visible; in iscsi_boot_create_kobj()
361 boot_kobj->release = release; in iscsi_boot_create_kobj()
363 if (sysfs_create_group(&boot_kobj->kobj, attr_group)) { in iscsi_boot_create_kobj()
370 boot_kobj->release = NULL; in iscsi_boot_create_kobj()
371 kobject_put(&boot_kobj->kobj); in iscsi_boot_create_kobj()
374 boot_kobj->attr_group = attr_group; in iscsi_boot_create_kobj()
376 kobject_uevent(&boot_kobj->kobj, KOBJ_ADD); in iscsi_boot_create_kobj()
378 list_add_tail(&boot_kobj->list, &boot_kset->kobj_list); in iscsi_boot_create_kobj()
379 return boot_kobj; in iscsi_boot_create_kobj()
382 static void iscsi_boot_remove_kobj(struct iscsi_boot_kobj *boot_kobj) in iscsi_boot_remove_kobj() argument
384 list_del(&boot_kobj->list); in iscsi_boot_remove_kobj()
385 sysfs_remove_group(&boot_kobj->kobj, boot_kobj->attr_group); in iscsi_boot_remove_kobj()
386 kobject_put(&boot_kobj->kobj); in iscsi_boot_remove_kobj()
542 struct iscsi_boot_kobj *boot_kobj, *tmp_kobj; in iscsi_boot_destroy_kset() local
547 list_for_each_entry_safe(boot_kobj, tmp_kobj, in iscsi_boot_destroy_kset()
549 iscsi_boot_remove_kobj(boot_kobj); in iscsi_boot_destroy_kset()