Lines Matching refs:prop_buf
433 char *prop_buf; in extcon_sync() local
466 prop_buf = (char *)get_zeroed_page(GFP_ATOMIC); in extcon_sync()
467 if (!prop_buf) { in extcon_sync()
477 length = name_show(&edev->dev, NULL, prop_buf); in extcon_sync()
479 if (prop_buf[length - 1] == '\n') in extcon_sync()
480 prop_buf[length - 1] = 0; in extcon_sync()
481 snprintf(name_buf, sizeof(name_buf), "NAME=%s", prop_buf); in extcon_sync()
485 length = state_show(&edev->dev, NULL, prop_buf); in extcon_sync()
487 if (prop_buf[length - 1] == '\n') in extcon_sync()
488 prop_buf[length - 1] = 0; in extcon_sync()
489 snprintf(state_buf, sizeof(state_buf), "STATE=%s", prop_buf); in extcon_sync()
497 free_page((unsigned long)prop_buf); in extcon_sync()