Lines Matching refs:next_str

2124     char *read_buf = NULL, *next_str = NULL, *current_str = NULL, *buf = NULL;  in second_stage_parsing_thread()  local
2151 next_str = strchr(current_str, '\n'); in second_stage_parsing_thread()
2152 if (!next_str) in second_stage_parsing_thread()
2154 *next_str++ = '\0'; in second_stage_parsing_thread()
2158 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2167 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2188 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2238 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2283 char *read_buf, *next_str, *current_str, *buf, *p, *verb_name; in snd_ucm_parse() local
2333 next_str = strchr(current_str, '\n'); in snd_ucm_parse()
2334 if (!next_str) in snd_ucm_parse()
2336 *next_str++ = '\0'; in snd_ucm_parse()
2340 if((current_str = next_str) == NULL) in snd_ucm_parse()
2378 if((current_str = next_str) == NULL) in snd_ucm_parse()
2413 if((current_str = next_str) == NULL) in snd_ucm_parse()
2455 char *next_str, *buf, *p, *verb_ptr, *temp_ptr; in parse_single_config_format() local
2459 next_str = strchr(current_str, '\n'); in parse_single_config_format()
2460 if (!next_str) in parse_single_config_format()
2462 *next_str++ = '\0'; in parse_single_config_format()
2516 verb_count = get_num_verbs_config_format(next_str); in parse_single_config_format()
2526 &next_str, index, CTRL_LIST_VERB); in parse_single_config_format()
2531 device_count = get_num_device_config_format(next_str); in parse_single_config_format()
2545 &next_str, 0, CTRL_LIST_DEVICE); in parse_single_config_format()
2564 mod_count = get_num_mod_config_format(next_str); in parse_single_config_format()
2578 &next_str, 0, CTRL_LIST_MODIFIER); in parse_single_config_format()
2596 if((current_str = next_str) == NULL) in parse_single_config_format()
2706 char *current_str, *next_str, *str_addr, *buf; in get_num_verbs_config_format() local
2709 next_str = (char *)malloc((strlen(nxt_str)+1)*sizeof(char)); in get_num_verbs_config_format()
2710 if (next_str == NULL) { in get_num_verbs_config_format()
2714 strlcpy(next_str, nxt_str, ((strlen(nxt_str)+1)*sizeof(char))); in get_num_verbs_config_format()
2715 str_addr = next_str; in get_num_verbs_config_format()
2716 current_str = next_str; in get_num_verbs_config_format()
2718 next_str = strchr(current_str, '\n'); in get_num_verbs_config_format()
2719 if (!next_str) in get_num_verbs_config_format()
2721 *next_str++ = '\0'; in get_num_verbs_config_format()
2728 if (*next_str == (char)EOF) in get_num_verbs_config_format()
2730 if((current_str = next_str) == NULL) in get_num_verbs_config_format()
2740 char *current_str, *next_str, *str_addr, *buf; in get_num_device_config_format() local
2743 next_str = (char *)malloc((strlen(nxt_str)+1)*sizeof(char)); in get_num_device_config_format()
2744 if (next_str == NULL) { in get_num_device_config_format()
2748 strlcpy(next_str, nxt_str, ((strlen(nxt_str)+1)*sizeof(char))); in get_num_device_config_format()
2749 str_addr = next_str; in get_num_device_config_format()
2750 current_str = next_str; in get_num_device_config_format()
2752 next_str = strchr(current_str, '\n'); in get_num_device_config_format()
2753 if (!next_str) in get_num_device_config_format()
2755 *next_str++ = '\0'; in get_num_device_config_format()
2759 if (*next_str == (char)EOF) in get_num_device_config_format()
2761 if((current_str = next_str) == NULL) in get_num_device_config_format()
2771 char *current_str, *next_str, *str_addr, *buf; in get_num_mod_config_format() local
2774 next_str = (char *)malloc((strlen(nxt_str)+1)*sizeof(char)); in get_num_mod_config_format()
2775 if (next_str == NULL) { in get_num_mod_config_format()
2779 strlcpy(next_str, nxt_str, ((strlen(nxt_str)+1)*sizeof(char))); in get_num_mod_config_format()
2780 str_addr = next_str; in get_num_mod_config_format()
2781 current_str = next_str; in get_num_mod_config_format()
2783 next_str = strchr(current_str, '\n'); in get_num_mod_config_format()
2784 if (!next_str) in get_num_mod_config_format()
2786 *next_str++ = '\0'; in get_num_mod_config_format()
2790 if (*next_str == (char)EOF) in get_num_mod_config_format()
2792 if((current_str = next_str) == NULL) in get_num_mod_config_format()
2802 char *current_str, *next_str, *str_addr, *buf, *p; in get_verb_count() local
2805 next_str = (char *)malloc((strlen(nxt_str)+1)*sizeof(char)); in get_verb_count()
2806 if (next_str == NULL) { in get_verb_count()
2810 strlcpy(next_str, nxt_str, ((strlen(nxt_str)+1)*sizeof(char))); in get_verb_count()
2811 str_addr = next_str; in get_verb_count()
2812 current_str = next_str; in get_verb_count()
2814 next_str = strchr(current_str, '\n'); in get_verb_count()
2815 if (!next_str) in get_verb_count()
2817 *next_str++ = '\0'; in get_verb_count()
2821 if (*next_str == (char)EOF) in get_verb_count()
2823 if((current_str = next_str) == NULL) in get_verb_count()
2833 char *current_str, *next_str, *str_addr, *buf; in is_single_config_format() local
2836 next_str = (char *)malloc((strlen(nxt_str)+1)*sizeof(char)); in is_single_config_format()
2837 if (next_str == NULL) { in is_single_config_format()
2841 strlcpy(next_str, nxt_str, ((strlen(nxt_str)+1)*sizeof(char))); in is_single_config_format()
2842 str_addr = next_str; in is_single_config_format()
2843 current_str = next_str; in is_single_config_format()
2845 next_str = strchr(current_str, '\n'); in is_single_config_format()
2846 if (!next_str) in is_single_config_format()
2848 *next_str++ = '\0'; in is_single_config_format()
2855 if ((*next_str == (char)EOF) || (count == 2)) in is_single_config_format()
2857 if((current_str = next_str) == NULL) in is_single_config_format()
2877 char *read_buf, *next_str, *current_str, *verb_ptr; in snd_ucm_parse_verb() local
2916 next_str = strchr(current_str, '\n'); in snd_ucm_parse_verb()
2917 if (!next_str) in snd_ucm_parse_verb()
2919 *next_str++ = '\0'; in snd_ucm_parse_verb()
2925 &next_str, index, CTRL_LIST_VERB); in snd_ucm_parse_verb()
2935 &next_str, index, CTRL_LIST_DEVICE); in snd_ucm_parse_verb()
2959 &next_str, index, CTRL_LIST_MODIFIER); in snd_ucm_parse_verb()
2979 if((current_str = next_str) == NULL) in snd_ucm_parse_verb()
3180 char *current_str, *next_str, *str_addr; in get_controls_count() local
3183 next_str = (char *)malloc((strlen(nxt_str)+1)*sizeof(char)); in get_controls_count()
3184 if (next_str == NULL) { in get_controls_count()
3188 strlcpy(next_str, nxt_str, ((strlen(nxt_str)+1)*sizeof(char))); in get_controls_count()
3189 str_addr = next_str; in get_controls_count()
3191 current_str = next_str; in get_controls_count()
3192 next_str = strchr(current_str, '\n'); in get_controls_count()
3193 if ((!next_str) || (!strncasecmp(current_str, "EndSection", 10))) in get_controls_count()
3195 *next_str++ = '\0'; in get_controls_count()
3201 if (*next_str == (char)EOF) in get_controls_count()
3220 char *p, *current_str, *next_str, *name; in snd_ucm_parse_section() local
3246 current_str = *cur_str; next_str = *nxt_str; in snd_ucm_parse_section()
3248 current_str = next_str; in snd_ucm_parse_section()
3249 next_str = strchr(current_str, '\n'); in snd_ucm_parse_section()
3250 if ((!next_str) || (!strncasecmp(current_str, "EndSection", 10))) in snd_ucm_parse_section()
3252 *next_str++ = '\0'; in snd_ucm_parse_section()
3306 controls_count = get_controls_count(next_str); in snd_ucm_parse_section()
3319 controls_count = get_controls_count(next_str); in snd_ucm_parse_section()
3332 if (*next_str == (char)EOF) in snd_ucm_parse_section()
3336 *cur_str = current_str; *nxt_str = next_str; in snd_ucm_parse_section()