Lines Matching refs:prop_buf
423 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()
479 snprintf(state_buf, sizeof(state_buf), "STATE=%s", prop_buf); in extcon_sync()
487 free_page((unsigned long)prop_buf); in extcon_sync()