Lines Matching full:nic

43  *   Created 'device' sysfs link to the NIC and style cleanup. (v0.4.1)
175 struct ibft_nic *nic; member
294 struct ibft_nic *nic = entry->nic; in ibft_attr_show_nic() local
299 if (!nic) in ibft_attr_show_nic()
304 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic()
307 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic()
310 str += sprintf_ipaddr(str, nic->ip_addr); in ibft_attr_show_nic()
313 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); in ibft_attr_show_nic()
317 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); in ibft_attr_show_nic()
320 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic()
323 str += sprintf_ipaddr(str, nic->gateway); in ibft_attr_show_nic()
326 str += sprintf_ipaddr(str, nic->primary_dns); in ibft_attr_show_nic()
329 str += sprintf_ipaddr(str, nic->secondary_dns); in ibft_attr_show_nic()
332 str += sprintf_ipaddr(str, nic->dhcp); in ibft_attr_show_nic()
335 str += sprintf(str, "%d\n", nic->vlan); in ibft_attr_show_nic()
338 str += sprintf(str, "%pM\n", nic->mac); in ibft_attr_show_nic()
341 str += sprintf_string(str, nic->hostname_len, in ibft_attr_show_nic()
342 (char *)ibft_loc + nic->hostname_off); in ibft_attr_show_nic()
473 struct ibft_nic *nic = entry->nic; in ibft_check_nic_for() local
482 if (address_not_null(nic->ip_addr)) in ibft_check_nic_for()
487 if (nic->subnet_mask_prefix) in ibft_check_nic_for()
494 if (address_not_null(nic->gateway)) in ibft_check_nic_for()
498 if (address_not_null(nic->primary_dns)) in ibft_check_nic_for()
502 if (address_not_null(nic->secondary_dns)) in ibft_check_nic_for()
506 if (address_not_null(nic->dhcp)) in ibft_check_nic_for()
514 if (nic->hostname_off) in ibft_check_nic_for()
630 struct ibft_nic *nic = (struct ibft_nic *)hdr; in ibft_create_kobject() local
660 sizeof(*ibft_kobj->nic)); in ibft_create_kobject()
718 (nic->pci_bdf & 0xff00) >> 8, in ibft_create_kobject()
719 (nic->pci_bdf & 0xff)); in ibft_create_kobject()
734 * Scan the IBFT table structure for the NIC and Target fields. When