Home
last modified time | relevance | path

Searched refs:prop_buf (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/arch/powerpc/boot/
H A Dfsl-soc.c15 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()
H A Ddevtree.c235 static u32 prop_buf[MAX_PROP_LEN / 4]; variable
261 copy_val(last_addr, prop_buf + offset, naddr); in dt_xlate()
263 ret_size = be32_to_cpu(prop_buf[offset + naddr]); in dt_xlate()
280 buflen = getprop(node, "ranges", prop_buf, in dt_xlate()
281 sizeof(prop_buf)); in dt_xlate()
284 if (buflen < 0 || buflen > sizeof(prop_buf)) in dt_xlate()
292 copy_val(this_addr, prop_buf + offset, prev_naddr); in dt_xlate()
323 reglen = getprop(node, "reg", prop_buf, sizeof(prop_buf)) / 4; in dt_xlate_reg()
330 if (buflen > sizeof(prop_buf)) in dt_xlate_addr()
333 memcpy(prop_buf, buf, buflen); in dt_xlate_addr()
[all …]
H A Dplanetcore.c102 static char prop_buf[MAX_PROP_LEN]; variable
119 path = get_path(node, prop_buf, MAX_PROP_LEN); in planetcore_set_stdout_path()
/openbmc/linux/drivers/power/supply/
H A Dpower_supply_sysfs.c436 enum power_supply_property prop, char *prop_buf) in add_prop_uevent() argument
446 ret = power_supply_show_property((struct device *)dev, dev_attr, prop_buf); in add_prop_uevent()
458 line = strchr(prop_buf, '\n'); in add_prop_uevent()
463 pwr_attr->prop_name, prop_buf); in add_prop_uevent()
474 char *prop_buf; in power_supply_uevent() local
492 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in power_supply_uevent()
493 if (!prop_buf) in power_supply_uevent()
496 ret = add_prop_uevent(dev, env, POWER_SUPPLY_PROP_TYPE, prop_buf); in power_supply_uevent()
503 prop_buf); in power_supply_uevent()
515 prop_buf); in power_supply_uevent()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/syscalls/
H A Drtas_filter.c68 char *prop_buf = NULL; in rtas_token() local
72 rc = get_property(ofdt_rtas_path, call_name, &prop_buf, &len); in rtas_token()
78 rc = be32_to_cpu(*(int *)prop_buf); in rtas_token()
81 free(prop_buf); in rtas_token()
/openbmc/linux/drivers/extcon/
H A Dextcon.c433 char *prop_buf; in extcon_sync() local
466 prop_buf = (char *)get_zeroed_page(GFP_ATOMIC); in extcon_sync()
467 if (!prop_buf) { in extcon_sync()
477 length = name_show(&edev->dev, NULL, prop_buf); in extcon_sync()
479 if (prop_buf[length - 1] == '\n') in extcon_sync()
480 prop_buf[length - 1] = 0; in extcon_sync()
481 snprintf(name_buf, sizeof(name_buf), "NAME=%s", prop_buf); in extcon_sync()
485 length = state_show(&edev->dev, NULL, prop_buf); in extcon_sync()
487 if (prop_buf[length - 1] == '\n') in extcon_sync()
488 prop_buf[length - 1] = 0; in extcon_sync()
[all …]
/openbmc/linux/drivers/net/ethernet/sun/
H A Dniu.c8103 u8 *prop_buf; in niu_pci_vpd_scan_props() local
8124 prop_buf = NULL; in niu_pci_vpd_scan_props()
8127 prop_buf = np->vpd.model; in niu_pci_vpd_scan_props()
8131 prop_buf = np->vpd.board_model; in niu_pci_vpd_scan_props()
8135 prop_buf = np->vpd.version; in niu_pci_vpd_scan_props()
8139 prop_buf = np->vpd.local_mac; in niu_pci_vpd_scan_props()
8143 prop_buf = &np->vpd.mac_num; in niu_pci_vpd_scan_props()
8147 prop_buf = np->vpd.phy_type; in niu_pci_vpd_scan_props()
8157 if (prop_buf) { in niu_pci_vpd_scan_props()
8168 *prop_buf++ = err; in niu_pci_vpd_scan_props()