Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/powerpc/boot/
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()
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 …]
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()
/linux-6.3-rc2/drivers/power/supply/
A Dpower_supply_sysfs.c431 enum power_supply_property prop, char *prop_buf) in add_prop_uevent() argument
441 ret = power_supply_show_property((struct device *)dev, dev_attr, prop_buf); in add_prop_uevent()
453 line = strchr(prop_buf, '\n'); in add_prop_uevent()
458 pwr_attr->prop_name, prop_buf); in add_prop_uevent()
465 char *prop_buf; in power_supply_uevent() local
476 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in power_supply_uevent()
477 if (!prop_buf) in power_supply_uevent()
480 ret = add_prop_uevent(dev, env, POWER_SUPPLY_PROP_TYPE, prop_buf); in power_supply_uevent()
486 prop_buf); in power_supply_uevent()
492 free_page((unsigned long)prop_buf); in power_supply_uevent()
/linux-6.3-rc2/tools/testing/selftests/powerpc/syscalls/
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()
/linux-6.3-rc2/drivers/extcon/
A Dextcon.c423 char *prop_buf; in extcon_sync() local
456 prop_buf = (char *)get_zeroed_page(GFP_ATOMIC); in extcon_sync()
457 if (!prop_buf) { in extcon_sync()
467 length = name_show(&edev->dev, NULL, prop_buf); in extcon_sync()
469 if (prop_buf[length - 1] == '\n') in extcon_sync()
470 prop_buf[length - 1] = 0; in extcon_sync()
471 snprintf(name_buf, sizeof(name_buf), "NAME=%s", prop_buf); in extcon_sync()
475 length = state_show(&edev->dev, NULL, prop_buf); in extcon_sync()
477 if (prop_buf[length - 1] == '\n') in extcon_sync()
478 prop_buf[length - 1] = 0; in extcon_sync()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/sun/
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()

Completed in 44 milliseconds