Home
last modified time | relevance | path

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

/Linux-v5.15/arch/powerpc/boot/
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()
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()
266 ret_size |= be32_to_cpu(prop_buf[offset + naddr + 1]); 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()
287 offset = find_range(last_addr, prop_buf, prev_naddr, in dt_xlate()
292 copy_val(this_addr, prop_buf + offset, prev_naddr); in dt_xlate()
297 copy_val(this_addr, prop_buf + offset + prev_naddr, naddr); in dt_xlate()
[all …]
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-v5.15/drivers/power/supply/
Dpower_supply_sysfs.c422 enum power_supply_property prop, char *prop_buf) in add_prop_uevent() argument
432 ret = power_supply_show_property(dev, dev_attr, prop_buf); in add_prop_uevent()
444 line = strchr(prop_buf, '\n'); in add_prop_uevent()
449 pwr_attr->prop_name, prop_buf); in add_prop_uevent()
456 char *prop_buf; in power_supply_uevent() local
467 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in power_supply_uevent()
468 if (!prop_buf) in power_supply_uevent()
471 ret = add_prop_uevent(dev, env, POWER_SUPPLY_PROP_TYPE, prop_buf); in power_supply_uevent()
477 prop_buf); in power_supply_uevent()
483 free_page((unsigned long)prop_buf); in power_supply_uevent()
/Linux-v5.15/tools/testing/selftests/powerpc/syscalls/
Drtas_filter.c121 char *prop_buf = NULL; in rtas_token() local
125 rc = get_property(ofdt_rtas_path, call_name, &prop_buf, &len); in rtas_token()
131 rc = be32_to_cpu(*(int *)prop_buf); in rtas_token()
134 free(prop_buf); in rtas_token()
/Linux-v5.15/drivers/extcon/
Dextcon.c412 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.15/drivers/net/ethernet/sun/
Dniu.c8085 u8 *prop_buf; in niu_pci_vpd_scan_props() local
8106 prop_buf = NULL; in niu_pci_vpd_scan_props()
8109 prop_buf = np->vpd.model; in niu_pci_vpd_scan_props()
8113 prop_buf = np->vpd.board_model; in niu_pci_vpd_scan_props()
8117 prop_buf = np->vpd.version; in niu_pci_vpd_scan_props()
8121 prop_buf = np->vpd.local_mac; in niu_pci_vpd_scan_props()
8125 prop_buf = &np->vpd.mac_num; in niu_pci_vpd_scan_props()
8129 prop_buf = np->vpd.phy_type; in niu_pci_vpd_scan_props()
8139 if (prop_buf) { in niu_pci_vpd_scan_props()
8150 *prop_buf++ = err; in niu_pci_vpd_scan_props()