Lines Matching refs:nic
175 struct ibft_nic *nic;
294 struct ibft_nic *nic = entry->nic;
299 if (!nic)
304 str += sprintf(str, "%d\n", nic->hdr.index);
307 str += sprintf(str, "%d\n", nic->hdr.flags);
310 str += sprintf_ipaddr(str, nic->ip_addr);
313 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1));
317 str += sprintf(str, "%d\n", nic->subnet_mask_prefix);
320 str += sprintf(str, "%d\n", nic->origin);
323 str += sprintf_ipaddr(str, nic->gateway);
326 str += sprintf_ipaddr(str, nic->primary_dns);
329 str += sprintf_ipaddr(str, nic->secondary_dns);
332 str += sprintf_ipaddr(str, nic->dhcp);
335 str += sprintf(str, "%d\n", nic->vlan);
338 str += sprintf(str, "%pM\n", nic->mac);
341 str += sprintf_string(str, nic->hostname_len,
342 (char *)ibft_loc + nic->hostname_off);
473 struct ibft_nic *nic = entry->nic;
482 if (address_not_null(nic->ip_addr))
487 if (nic->subnet_mask_prefix)
494 if (address_not_null(nic->gateway))
498 if (address_not_null(nic->primary_dns))
502 if (address_not_null(nic->secondary_dns))
506 if (address_not_null(nic->dhcp))
514 if (nic->hostname_off)
630 struct ibft_nic *nic = (struct ibft_nic *)hdr;
660 sizeof(*ibft_kobj->nic));
718 (nic->pci_bdf & 0xff00) >> 8,
719 (nic->pci_bdf & 0xff));