Searched refs:prop_buf (Results 1 – 6 of 6) sorted by relevance
/linux-3.4.99/arch/powerpc/boot/ |
D | fsl-soc.c | 18 static u32 prop_buf[MAX_PROP_LEN / 4]; variable 30 size = getprop(soc, "#address-cells", prop_buf, MAX_PROP_LEN); in fsl_get_immr() 32 naddr = prop_buf[0]; in fsl_get_immr() 39 size = getprop(soc, "ranges", prop_buf, MAX_PROP_LEN); in fsl_get_immr() 43 if (prop_buf[0] != 0) in fsl_get_immr() 45 if (naddr == 2 && prop_buf[1] != 0) in fsl_get_immr() 48 if (!dt_xlate_addr(soc, prop_buf + naddr, 8, &ret)) in fsl_get_immr()
|
D | devtree.c | 230 static u32 prop_buf[MAX_PROP_LEN / 4]; variable 257 copy_val(last_addr, prop_buf + offset, naddr); in dt_xlate() 259 ret_size = prop_buf[offset + naddr]; in dt_xlate() 262 ret_size |= prop_buf[offset + naddr + 1]; in dt_xlate() 276 buflen = getprop(node, "ranges", prop_buf, in dt_xlate() 277 sizeof(prop_buf)); in dt_xlate() 280 if (buflen < 0 || buflen > sizeof(prop_buf)) in dt_xlate() 283 offset = find_range(last_addr, prop_buf, prev_naddr, in dt_xlate() 289 copy_val(this_addr, prop_buf + offset, prev_naddr); in dt_xlate() 294 copy_val(this_addr, prop_buf + offset + prev_naddr, naddr); in dt_xlate() [all …]
|
D | planetcore.c | 105 static char prop_buf[MAX_PROP_LEN]; variable 122 path = get_path(node, prop_buf, MAX_PROP_LEN); in planetcore_set_stdout_path() 146 len = getprop(chosen, "linux,stdout-path", prop_buf, MAX_PROP_LEN); in planetcore_set_serial_speed() 150 stdout = finddevice(prop_buf); in planetcore_set_serial_speed()
|
/linux-3.4.99/drivers/staging/android/switch/ |
D | switch_class.c | 64 char *prop_buf; in switch_set_state() local 72 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in switch_set_state() 73 if (prop_buf) { in switch_set_state() 74 length = name_show(sdev->dev, NULL, prop_buf); in switch_set_state() 76 if (prop_buf[length - 1] == '\n') in switch_set_state() 77 prop_buf[length - 1] = 0; in switch_set_state() 79 "SWITCH_NAME=%s", prop_buf); in switch_set_state() 82 length = state_show(sdev->dev, NULL, prop_buf); in switch_set_state() 84 if (prop_buf[length - 1] == '\n') in switch_set_state() 85 prop_buf[length - 1] = 0; in switch_set_state() [all …]
|
/linux-3.4.99/drivers/power/ |
D | power_supply_sysfs.c | 254 char *prop_buf; in power_supply_uevent() local 270 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in power_supply_uevent() 271 if (!prop_buf) in power_supply_uevent() 280 ret = power_supply_show_property(dev, attr, prop_buf); in power_supply_uevent() 291 line = strchr(prop_buf, '\n'); in power_supply_uevent() 301 dev_dbg(dev, "prop %s=%s\n", attrname, prop_buf); in power_supply_uevent() 303 ret = add_uevent_var(env, "POWER_SUPPLY_%s=%s", attrname, prop_buf); in power_supply_uevent() 310 free_page((unsigned long)prop_buf); in power_supply_uevent()
|
/linux-3.4.99/drivers/net/ethernet/sun/ |
D | niu.c | 8118 u8 *prop_buf; in niu_pci_vpd_scan_props() local 8137 prop_buf = NULL; in niu_pci_vpd_scan_props() 8140 prop_buf = np->vpd.model; in niu_pci_vpd_scan_props() 8144 prop_buf = np->vpd.board_model; in niu_pci_vpd_scan_props() 8148 prop_buf = np->vpd.version; in niu_pci_vpd_scan_props() 8152 prop_buf = np->vpd.local_mac; in niu_pci_vpd_scan_props() 8156 prop_buf = &np->vpd.mac_num; in niu_pci_vpd_scan_props() 8160 prop_buf = np->vpd.phy_type; in niu_pci_vpd_scan_props() 8170 if (prop_buf) { in niu_pci_vpd_scan_props() 8178 *prop_buf++ = niu_pci_eeprom_read(np, off + i); in niu_pci_vpd_scan_props()
|