Lines Matching refs:ibft_kobj
634 struct ibft_kobject *ibft_kobj = NULL; in ibft_create_kobject() local
639 ibft_kobj = kzalloc(sizeof(*ibft_kobj), GFP_KERNEL); in ibft_create_kobject()
640 if (!ibft_kobj) in ibft_create_kobject()
643 ibft_kobj->header = header; in ibft_create_kobject()
644 ibft_kobj->hdr = hdr; in ibft_create_kobject()
649 sizeof(*ibft_kobj->initiator)); in ibft_create_kobject()
654 ibft_kobj, in ibft_create_kobject()
665 sizeof(*ibft_kobj->nic)); in ibft_create_kobject()
670 ibft_kobj, in ibft_create_kobject()
681 sizeof(*ibft_kobj->tgt)); in ibft_create_kobject()
686 ibft_kobj, in ibft_create_kobject()
734 kfree(ibft_kobj); in ibft_create_kobject()
747 struct ibft_kobject *ibft_kobj; in ibft_register_kobjects() local
778 ibft_kobj = kzalloc(sizeof(*ibft_kobj), GFP_KERNEL); in ibft_register_kobjects()
779 if (!ibft_kobj) in ibft_register_kobjects()
782 ibft_kobj->header = header; in ibft_register_kobjects()
783 ibft_kobj->hdr = NULL; /*for ibft_unregister*/ in ibft_register_kobjects()
786 ibft_kobj, in ibft_register_kobjects()
791 kfree(ibft_kobj); in ibft_register_kobjects()
801 struct ibft_kobject *ibft_kobj; in ibft_unregister() local
805 ibft_kobj = boot_kobj->data; in ibft_unregister()
806 if (ibft_kobj->hdr && ibft_kobj->hdr->id == id_nic) in ibft_unregister()