Lines Matching refs:nic
177 struct ibft_nic *nic;
296 struct ibft_nic *nic = entry->nic;
301 if (!nic)
306 str += sprintf(str, "%d\n", nic->hdr.index);
309 str += sprintf(str, "%d\n", nic->hdr.flags);
312 str += sprintf_ipaddr(str, nic->ip_addr);
315 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1));
319 str += sprintf(str, "%d\n", nic->subnet_mask_prefix);
322 str += sprintf(str, "%d\n", nic->origin);
325 str += sprintf_ipaddr(str, nic->gateway);
328 str += sprintf_ipaddr(str, nic->primary_dns);
331 str += sprintf_ipaddr(str, nic->secondary_dns);
334 str += sprintf_ipaddr(str, nic->dhcp);
337 str += sprintf(str, "%d\n", nic->vlan);
340 str += sprintf(str, "%pM\n", nic->mac);
343 str += sprintf_string(str, nic->hostname_len,
344 (char *)ibft_loc + nic->hostname_off);
475 struct ibft_nic *nic = entry->nic;
484 if (address_not_null(nic->ip_addr))
489 if (nic->subnet_mask_prefix)
496 if (address_not_null(nic->gateway))
500 if (address_not_null(nic->primary_dns))
504 if (address_not_null(nic->secondary_dns))
508 if (address_not_null(nic->dhcp))
516 if (nic->hostname_off)
632 struct ibft_nic *nic = (struct ibft_nic *)hdr;
662 sizeof(*ibft_kobj->nic));
720 (nic->pci_bdf & 0xff00) >> 8,
721 (nic->pci_bdf & 0xff));