Lines Matching refs:hdr
100 struct ibft_hdr hdr; member
110 struct ibft_hdr hdr; member
120 struct ibft_hdr hdr; member
136 struct ibft_hdr hdr; member
246 struct ibft_hdr *hdr; member
260 struct ibft_hdr *hdr; member
306 static int ibft_verify_hdr(char *t, struct ibft_hdr *hdr, int id, int length) in ibft_verify_hdr() argument
308 if (hdr->id != id) { in ibft_verify_hdr()
311 "found %d instead!\n", id, hdr->id); in ibft_verify_hdr()
314 if (hdr->length != length) { in ibft_verify_hdr()
317 "found %d instead!\n", length, hdr->length); in ibft_verify_hdr()
347 str += sprintf(str, "%d\n", initiator->hdr.index); in ibft_attr_show_initiator()
350 str += sprintf(str, "%d\n", initiator->hdr.flags); in ibft_attr_show_initiator()
391 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic()
394 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic()
454 str += sprintf(str, "%d\n", tgt->hdr.index); in ibft_attr_show_target()
457 str += sprintf(str, "%d\n", tgt->hdr.flags); in ibft_attr_show_target()
568 struct ibft_hdr *hdr, in ibft_create_kobject() argument
572 struct ibft_nic *nic = (struct ibft_nic *)hdr; in ibft_create_kobject()
581 ibft_kobj->hdr = hdr; in ibft_create_kobject()
583 switch (hdr->id) { in ibft_create_kobject()
585 rc = ibft_verify_hdr("initiator", hdr, id_initiator, in ibft_create_kobject()
589 rc = ibft_verify_hdr("ethernet", hdr, id_nic, in ibft_create_kobject()
593 rc = ibft_verify_hdr("target", hdr, id_target, in ibft_create_kobject()
604 "Report this bug to %.6s!\n", hdr->id, in ibft_create_kobject()
619 NULL, ibft_id_names[hdr->id], hdr->index); in ibft_create_kobject()
628 if (hdr->id == id_nic) { in ibft_create_kobject()
668 end = (void *)control + control->hdr.length; in ibft_register_kobjects()
674 rc |= ((control->hdr.index) ? -ENODEV : 0); in ibft_register_kobjects()
708 if (data->hdr->id == id_nic) in ibft_unregister()
724 struct ibft_hdr *hdr = kobj_data->hdr; in ibft_create_attribute() local
733 attr->hdr = hdr; in ibft_create_attribute()
886 switch (data->hdr->id) { in ibft_register_attributes()