Searched refs:prop_buf (Results 1 – 4 of 4) sorted by relevance
/drivers/power/supply/ |
D | power_supply_sysfs.c | 335 char *prop_buf; in power_supply_uevent() local 347 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in power_supply_uevent() 348 if (!prop_buf) in power_supply_uevent() 357 ret = power_supply_show_property(dev, attr, prop_buf); in power_supply_uevent() 368 line = strchr(prop_buf, '\n'); in power_supply_uevent() 378 ret = add_uevent_var(env, "POWER_SUPPLY_%s=%s", attrname, prop_buf); in power_supply_uevent() 385 free_page((unsigned long)prop_buf); in power_supply_uevent()
|
/drivers/usb/phy/ |
D | class-dual-role.c | 451 char *prop_buf; in dual_role_uevent() local 467 prop_buf = (char *)get_zeroed_page(GFP_KERNEL); in dual_role_uevent() 468 if (!prop_buf) in dual_role_uevent() 477 ret = dual_role_show_property(dev, attr, prop_buf); in dual_role_uevent() 485 line = strnchr(prop_buf, PAGE_SIZE, '\n'); in dual_role_uevent() 493 dev_dbg(dev, "prop %s=%s\n", attrname, prop_buf); in dual_role_uevent() 496 prop_buf); in dual_role_uevent() 503 free_page((unsigned long)prop_buf); in dual_role_uevent()
|
/drivers/extcon/ |
D | extcon.c | 420 char *prop_buf; in extcon_sync() local 453 prop_buf = (char *)get_zeroed_page(GFP_ATOMIC); in extcon_sync() 454 if (!prop_buf) { in extcon_sync() 464 length = name_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() 468 snprintf(name_buf, sizeof(name_buf), "NAME=%s", prop_buf); in extcon_sync() 472 length = state_show(&edev->dev, NULL, prop_buf); in extcon_sync() 474 if (prop_buf[length - 1] == '\n') in extcon_sync() 475 prop_buf[length - 1] = 0; in extcon_sync() [all …]
|
/drivers/net/ethernet/sun/ |
D | niu.c | 8107 u8 *prop_buf; in niu_pci_vpd_scan_props() local 8128 prop_buf = NULL; in niu_pci_vpd_scan_props() 8131 prop_buf = np->vpd.model; in niu_pci_vpd_scan_props() 8135 prop_buf = np->vpd.board_model; in niu_pci_vpd_scan_props() 8139 prop_buf = np->vpd.version; in niu_pci_vpd_scan_props() 8143 prop_buf = np->vpd.local_mac; in niu_pci_vpd_scan_props() 8147 prop_buf = &np->vpd.mac_num; in niu_pci_vpd_scan_props() 8151 prop_buf = np->vpd.phy_type; in niu_pci_vpd_scan_props() 8161 if (prop_buf) { in niu_pci_vpd_scan_props() 8171 *prop_buf = err; in niu_pci_vpd_scan_props() [all …]
|