Lines Matching refs:namebuf
8050 static int niu_pci_vpd_get_propname(struct niu *np, u32 off, char *namebuf, in niu_pci_vpd_get_propname() argument
8059 *namebuf++ = err; in niu_pci_vpd_get_propname()
8111 char namebuf[64]; in niu_pci_vpd_scan_props() local
8127 err = niu_pci_vpd_get_propname(np, start + 5, namebuf, 64); in niu_pci_vpd_scan_props()
8133 if (!strcmp(namebuf, "model")) { in niu_pci_vpd_scan_props()
8137 } else if (!strcmp(namebuf, "board-model")) { in niu_pci_vpd_scan_props()
8141 } else if (!strcmp(namebuf, "version")) { in niu_pci_vpd_scan_props()
8145 } else if (!strcmp(namebuf, "local-mac-address")) { in niu_pci_vpd_scan_props()
8149 } else if (!strcmp(namebuf, "num-mac-addresses")) { in niu_pci_vpd_scan_props()
8153 } else if (!strcmp(namebuf, "phy-type")) { in niu_pci_vpd_scan_props()
8160 dev_err(np->device, "Property '%s' length (%d) is too long\n", namebuf, prop_len); in niu_pci_vpd_scan_props()
8170 namebuf, prop_len); in niu_pci_vpd_scan_props()