Lines Matching refs:ptr_env
121 char *ptr_env; in get_button_state() local
124 ptr_env = env_get(envname); in get_button_state()
125 if (NULL == ptr_env) { in get_button_state()
128 gpio = (unsigned char)simple_strtoul(ptr_env, NULL, 0); in get_button_state()
190 char *ptr_env; in set_env_gpios() local
202 ptr_env = env_get(str_tmp); in set_env_gpios()
203 if (NULL == ptr_env) in set_env_gpios()
210 for (idx = 0; ptr_env[idx] != '\0'; idx++) { in set_env_gpios()
211 if (ptr_env[idx] == ',') { in set_env_gpios()
224 strncpy(str_tmp, ptr_env, pos1*sizeof(char)); in set_env_gpios()
236 strncpy(str_tmp, ptr_env+pos1+1, in set_env_gpios()
246 strcpy(str_tmp, ptr_env+pos2+1); in set_env_gpios()