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 if (nic->subnet_mask_prefix > 32) in ibft_attr_show_nic()
316 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); in ibft_attr_show_nic()
320 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); in ibft_attr_show_nic()
323 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic()
326 str += sprintf_ipaddr(str, nic->gateway); in ibft_attr_show_nic()
329 str += sprintf_ipaddr(str, nic->primary_dns); in ibft_attr_show_nic()
332 str += sprintf_ipaddr(str, nic->secondary_dns); in ibft_attr_show_nic()
335 str += sprintf_ipaddr(str, nic->dhcp); in ibft_attr_show_nic()
338 str += sprintf(str, "%d\n", nic->vlan); in ibft_attr_show_nic()
341 str += sprintf(str, "%pM\n", nic->mac); in ibft_attr_show_nic()
344 str += sprintf_string(str, nic->hostname_len, in ibft_attr_show_nic()
345 (char *)ibft_loc + nic->hostname_off); in ibft_attr_show_nic()
476 struct ibft_nic *nic = entry->nic; in ibft_check_nic_for() local
485 if (address_not_null(nic->ip_addr)) in ibft_check_nic_for()
490 if (nic->subnet_mask_prefix) in ibft_check_nic_for()
497 if (address_not_null(nic->gateway)) in ibft_check_nic_for()
501 if (address_not_null(nic->primary_dns)) in ibft_check_nic_for()
505 if (address_not_null(nic->secondary_dns)) in ibft_check_nic_for()
509 if (address_not_null(nic->dhcp)) in ibft_check_nic_for()
517 if (nic->hostname_off) in ibft_check_nic_for()
633 struct ibft_nic *nic = (struct ibft_nic *)hdr; in ibft_create_kobject() local
663 sizeof(*ibft_kobj->nic)); in ibft_create_kobject()
721 (nic->pci_bdf & 0xff00) >> 8, in ibft_create_kobject()
722 (nic->pci_bdf & 0xff)); in ibft_create_kobject()
737 * Scan the IBFT table structure for the NIC and Target fields. When