Lines Matching refs:pos

198     MppCfgIoImpl *pos, *n;  in loop_all_children()  local
202 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in loop_all_children()
203 loop_all_children(pos, func, data); in loop_all_children()
343 MppCfgIoImpl *pos, *n; in mpp_cfg_put() local
345 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in mpp_cfg_put()
346 list_del_init(&pos->list); in mpp_cfg_put()
359 MppCfgIoImpl *pos, *n; in mpp_cfg_put_all_child() local
364 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in mpp_cfg_put_all_child()
365 list_del_init(&pos->list); in mpp_cfg_put_all_child()
368 impl->depth, impl, pos, pos->type, pos->name); in mpp_cfg_put_all_child()
370 mpp_cfg_put_all_child(pos); in mpp_cfg_put_all_child()
501 MppCfgIoImpl *pos, *n; in mpp_cfg_find() local
508 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in mpp_cfg_find()
509 if (pos->name && !strcmp(pos->name, name + str_start)) { in mpp_cfg_find()
510 impl = pos; in mpp_cfg_find()
516 … if (impl->type == MPP_CFG_TYPE_ARRAY && pos->type == MPP_CFG_TYPE_OBJECT && !pos->name) in mpp_cfg_find()
517 last_array = pos; in mpp_cfg_find()
658 #define show_byte_f(str, pos) show_byte(str, pos, __FUNCTION__) argument
687 static char *show_byte(MppCfgStrBuf *str, rk_s32 pos, const char *caller) in show_byte() argument
691 if (str->offset + pos >= str->buf_size) { in show_byte()
693 str, str->buf, str->buf_size, str->offset, pos, caller); in show_byte()
697 ret = str->buf + str->offset + pos; in show_byte()
700 str, str->buf, str->buf_size, str->offset, pos, ret, caller); in show_byte()
832 MppCfgIoImpl *pos, *n; in mpp_cfg_to_log() local
904 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in mpp_cfg_to_log()
905 cfg_io_dbg_to("depth %d child write name %s type %d\n", str->depth, pos->name, pos->type); in mpp_cfg_to_log()
906 ret = mpp_cfg_to_log(pos, str); in mpp_cfg_to_log()
923 MppCfgIoImpl *pos, *n; in mpp_cfg_to_json() local
995 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in mpp_cfg_to_json()
996 cfg_io_dbg_to("depth %d child write name %s type %d\n", str->depth, pos->name, pos->type); in mpp_cfg_to_json()
997 ret = mpp_cfg_to_json(pos, str); in mpp_cfg_to_json()
1062 MppCfgIoImpl *pos, *n; in mpp_cfg_to_toml() local
1135 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in mpp_cfg_to_toml()
1136 cfg_io_dbg_to("depth %d child write name %s type %d\n", str->depth, pos->name, pos->type); in mpp_cfg_to_toml()
1137 ret = mpp_cfg_to_toml(pos, str, 0); in mpp_cfg_to_toml()
3099 MppCfgIoImpl *pos, *n; in write_struct() local
3101 list_for_each_entry_safe(pos, n, &obj->child, MppCfgIoImpl, list) { in write_struct()
3102 write_struct(pos, trie, str, st); in write_struct()
3201 MppCfgIoImpl *pos, *n; in read_struct() local
3203 list_for_each_entry_safe(pos, n, &impl->child, MppCfgIoImpl, list) { in read_struct()
3204 read_struct(pos, ret, st); in read_struct()
3229 rk_s32 pos = 0; in mpp_cfg_print_string() local
3233 for (pos = 0; pos < len; pos++) { in mpp_cfg_print_string()
3234 if (buf[pos] == '\n') { in mpp_cfg_print_string()
3235 buf[pos] = '\0'; in mpp_cfg_print_string()
3237 buf[pos] = '\n'; in mpp_cfg_print_string()
3238 start = pos + 1; in mpp_cfg_print_string()