Lines Matching refs:prop_len
8085 int len, err, prop_len; in niu_pci_vpd_scan_props() local
8101 prop_len = niu_pci_eeprom_read(np, start + 4); in niu_pci_vpd_scan_props()
8102 if (prop_len < 0) in niu_pci_vpd_scan_props()
8103 return prop_len; in niu_pci_vpd_scan_props()
8136 if (max_len && prop_len > max_len) { in niu_pci_vpd_scan_props()
8137 dev_err(np->device, "Property '%s' length (%d) is too long\n", namebuf, prop_len); in niu_pci_vpd_scan_props()
8147 namebuf, prop_len); in niu_pci_vpd_scan_props()
8148 for (i = 0; i < prop_len; i++) { in niu_pci_vpd_scan_props()
9200 int prop_len; in niu_get_of_props() local
9207 phy_type = of_get_property(dp, "phy-type", &prop_len); in niu_get_of_props()
9224 mac_addr = of_get_property(dp, "local-mac-address", &prop_len); in niu_get_of_props()
9230 if (prop_len != dev->addr_len) { in niu_get_of_props()
9232 dp, prop_len); in niu_get_of_props()
9241 model = of_get_property(dp, "model", &prop_len); in niu_get_of_props()
9246 if (of_find_property(dp, "hot-swappable-phy", &prop_len)) { in niu_get_of_props()