Lines Matching refs:hdr

105 	struct ibft_hdr hdr;  member
115 struct ibft_hdr hdr; member
125 struct ibft_hdr hdr; member
141 struct ibft_hdr hdr; member
183 struct ibft_hdr *hdr; member
235 static int ibft_verify_hdr(char *t, struct ibft_hdr *hdr, int id, int length) in ibft_verify_hdr() argument
237 if (hdr->id != id) { in ibft_verify_hdr()
240 "found %d instead!\n", t, id, hdr->id); in ibft_verify_hdr()
243 if (hdr->length != length) { in ibft_verify_hdr()
246 "found %d instead!\n", t, length, hdr->length); in ibft_verify_hdr()
268 str += sprintf(str, "%d\n", initiator->hdr.index); in ibft_attr_show_initiator()
271 str += sprintf(str, "%d\n", initiator->hdr.flags); in ibft_attr_show_initiator()
310 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic()
313 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic()
367 str += sprintf(str, "%d\n", tgt->hdr.index); in ibft_attr_show_target()
370 str += sprintf(str, "%d\n", tgt->hdr.flags); in ibft_attr_show_target()
584 struct ibft_hdr *hdr) in ibft_create_kobject() argument
588 struct ibft_nic *nic = (struct ibft_nic *)hdr; in ibft_create_kobject()
597 ibft_kobj->hdr = hdr; in ibft_create_kobject()
599 switch (hdr->id) { in ibft_create_kobject()
601 rc = ibft_verify_hdr("initiator", hdr, id_initiator, in ibft_create_kobject()
606 boot_kobj = iscsi_boot_create_initiator(boot_kset, hdr->index, in ibft_create_kobject()
617 rc = ibft_verify_hdr("ethernet", hdr, id_nic, in ibft_create_kobject()
622 boot_kobj = iscsi_boot_create_ethernet(boot_kset, hdr->index, in ibft_create_kobject()
633 rc = ibft_verify_hdr("target", hdr, id_target, in ibft_create_kobject()
638 boot_kobj = iscsi_boot_create_target(boot_kset, hdr->index, in ibft_create_kobject()
656 "Report this bug to %.6s!\n", hdr->id, in ibft_create_kobject()
668 if (hdr->id == id_nic) { in ibft_create_kobject()
704 end = (void *)control + control->hdr.length; in ibft_register_kobjects()
710 rc |= ((control->hdr.index) ? -ENODEV : 0); in ibft_register_kobjects()
737 if (ibft_kobj->hdr->id == id_nic) in ibft_unregister()