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