Searched refs:prop_buf (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.4/arch/powerpc/boot/ |
D | fsl-soc.c | 15 static u32 prop_buf[MAX_PROP_LEN / 4]; variable 27 size = getprop(soc, "#address-cells", prop_buf, MAX_PROP_LEN); in fsl_get_immr() 29 naddr = prop_buf[0]; in fsl_get_immr() 36 size = getprop(soc, "ranges", prop_buf, MAX_PROP_LEN); in fsl_get_immr() 40 if (prop_buf[0] != 0) in fsl_get_immr() 42 if (naddr == 2 && prop_buf[1] != 0) in fsl_get_immr() 45 if (!dt_xlate_addr(soc, prop_buf + naddr, 8, &ret)) in fsl_get_immr()
|
D | devtree.c | 226 static u32 prop_buf[MAX_PROP_LEN / 4]; variable 253 copy_val(last_addr, prop_buf + offset, naddr); in dt_xlate() 255 ret_size = prop_buf[offset + naddr]; in dt_xlate() 258 ret_size |= prop_buf[offset + naddr + 1]; in dt_xlate() 272 buflen = getprop(node, "ranges", prop_buf, in dt_xlate() 273 sizeof(prop_buf)); in dt_xlate() 276 if (buflen < 0 || buflen > sizeof(prop_buf)) in dt_xlate() 279 offset = find_range(last_addr, prop_buf, prev_naddr, in dt_xlate() 285 copy_val(this_addr, prop_buf + offset, prev_naddr); in dt_xlate() 290 copy_val(this_addr, prop_buf + offset + prev_naddr, naddr); in dt_xlate() [all …]
|
D | planetcore.c | 102 static char prop_buf[MAX_PROP_LEN]; variable 119 path = get_path(node, prop_buf, MAX_PROP_LEN); in planetcore_set_stdout_path()
|
/Linux-v5.4/drivers/power/supply/ |
D | power_supply_sysfs.c | 386 char *prop_buf; in power_supply_uevent() local 398 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in power_supply_uevent() 399 if (!prop_buf) in power_supply_uevent() 408 ret = power_supply_show_property(dev, attr, prop_buf); in power_supply_uevent() 419 line = strchr(prop_buf, '\n'); in power_supply_uevent() 429 ret = add_uevent_var(env, "POWER_SUPPLY_%s=%s", attrname, prop_buf); in power_supply_uevent() 436 free_page((unsigned long)prop_buf); in power_supply_uevent()
|
/Linux-v5.4/drivers/extcon/ |
D | extcon.c | 412 char *prop_buf; in extcon_sync() local 445 prop_buf = (char *)get_zeroed_page(GFP_ATOMIC); in extcon_sync() 446 if (!prop_buf) { in extcon_sync() 456 length = name_show(&edev->dev, NULL, prop_buf); in extcon_sync() 458 if (prop_buf[length - 1] == '\n') in extcon_sync() 459 prop_buf[length - 1] = 0; in extcon_sync() 460 snprintf(name_buf, sizeof(name_buf), "NAME=%s", prop_buf); in extcon_sync() 464 length = state_show(&edev->dev, NULL, prop_buf); in extcon_sync() 466 if (prop_buf[length - 1] == '\n') in extcon_sync() 467 prop_buf[length - 1] = 0; in extcon_sync() [all …]
|
/Linux-v5.4/drivers/net/ethernet/sun/ |
D | niu.c | 8087 u8 *prop_buf; in niu_pci_vpd_scan_props() local 8108 prop_buf = NULL; in niu_pci_vpd_scan_props() 8111 prop_buf = np->vpd.model; in niu_pci_vpd_scan_props() 8115 prop_buf = np->vpd.board_model; in niu_pci_vpd_scan_props() 8119 prop_buf = np->vpd.version; in niu_pci_vpd_scan_props() 8123 prop_buf = np->vpd.local_mac; in niu_pci_vpd_scan_props() 8127 prop_buf = &np->vpd.mac_num; in niu_pci_vpd_scan_props() 8131 prop_buf = np->vpd.phy_type; in niu_pci_vpd_scan_props() 8141 if (prop_buf) { in niu_pci_vpd_scan_props() 8151 *prop_buf = err; in niu_pci_vpd_scan_props() [all …]
|