Lines Matching full:nic
43 * Created 'device' sysfs link to the NIC and style cleanup. (v0.4.1)
177 struct ibft_nic *nic; member
296 struct ibft_nic *nic = entry->nic; in ibft_attr_show_nic() local
301 if (!nic) in ibft_attr_show_nic()
306 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic()
309 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic()
312 str += sprintf_ipaddr(str, nic->ip_addr); in ibft_attr_show_nic()
315 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); in ibft_attr_show_nic()
319 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); in ibft_attr_show_nic()
322 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic()
325 str += sprintf_ipaddr(str, nic->gateway); in ibft_attr_show_nic()
328 str += sprintf_ipaddr(str, nic->primary_dns); in ibft_attr_show_nic()
331 str += sprintf_ipaddr(str, nic->secondary_dns); in ibft_attr_show_nic()
334 str += sprintf_ipaddr(str, nic->dhcp); in ibft_attr_show_nic()
337 str += sprintf(str, "%d\n", nic->vlan); in ibft_attr_show_nic()
340 str += sprintf(str, "%pM\n", nic->mac); in ibft_attr_show_nic()
343 str += sprintf_string(str, nic->hostname_len, in ibft_attr_show_nic()
344 (char *)ibft_loc + nic->hostname_off); in ibft_attr_show_nic()
475 struct ibft_nic *nic = entry->nic; in ibft_check_nic_for() local
484 if (address_not_null(nic->ip_addr)) in ibft_check_nic_for()
489 if (nic->subnet_mask_prefix) in ibft_check_nic_for()
496 if (address_not_null(nic->gateway)) in ibft_check_nic_for()
500 if (address_not_null(nic->primary_dns)) in ibft_check_nic_for()
504 if (address_not_null(nic->secondary_dns)) in ibft_check_nic_for()
508 if (address_not_null(nic->dhcp)) in ibft_check_nic_for()
516 if (nic->hostname_off) in ibft_check_nic_for()
632 struct ibft_nic *nic = (struct ibft_nic *)hdr; in ibft_create_kobject() local
662 sizeof(*ibft_kobj->nic)); in ibft_create_kobject()
720 (nic->pci_bdf & 0xff00) >> 8, in ibft_create_kobject()
721 (nic->pci_bdf & 0xff)); in ibft_create_kobject()
736 * Scan the IBFT table structure for the NIC and Target fields. When