Lines Matching refs:ptr_env
120 char *ptr_env; in get_button_state() local
123 ptr_env = env_get(envname); in get_button_state()
124 if (NULL == ptr_env) { in get_button_state()
127 gpio = (unsigned char)simple_strtoul(ptr_env, NULL, 0); in get_button_state()
189 char *ptr_env; in set_env_gpios() local
201 ptr_env = env_get(str_tmp); in set_env_gpios()
202 if (NULL == ptr_env) in set_env_gpios()
209 for (idx = 0; ptr_env[idx] != '\0'; idx++) { in set_env_gpios()
210 if (ptr_env[idx] == ',') { in set_env_gpios()
223 strncpy(str_tmp, ptr_env, pos1*sizeof(char)); in set_env_gpios()
235 strncpy(str_tmp, ptr_env+pos1+1, in set_env_gpios()
245 strcpy(str_tmp, ptr_env+pos2+1); in set_env_gpios()