Lines Matching refs:namebuf
8048 static int niu_pci_vpd_get_propname(struct niu *np, u32 off, char *namebuf, in niu_pci_vpd_get_propname() argument
8057 *namebuf++ = err; in niu_pci_vpd_get_propname()
8109 char namebuf[64]; in niu_pci_vpd_scan_props() local
8125 err = niu_pci_vpd_get_propname(np, start + 5, namebuf, 64); in niu_pci_vpd_scan_props()
8131 if (!strcmp(namebuf, "model")) { in niu_pci_vpd_scan_props()
8135 } else if (!strcmp(namebuf, "board-model")) { in niu_pci_vpd_scan_props()
8139 } else if (!strcmp(namebuf, "version")) { in niu_pci_vpd_scan_props()
8143 } else if (!strcmp(namebuf, "local-mac-address")) { in niu_pci_vpd_scan_props()
8147 } else if (!strcmp(namebuf, "num-mac-addresses")) { in niu_pci_vpd_scan_props()
8151 } else if (!strcmp(namebuf, "phy-type")) { in niu_pci_vpd_scan_props()
8158 dev_err(np->device, "Property '%s' length (%d) is too long\n", namebuf, prop_len); in niu_pci_vpd_scan_props()
8168 namebuf, prop_len); in niu_pci_vpd_scan_props()