Lines Matching refs:st
3057 static void write_struct(MppCfgIoImpl *obj, MppTrie trie, MppCfgStrBuf *str, void *st) in write_struct() argument
3082 mpp_cfg_set_s32(tbl, st, obj->val.s32); in write_struct()
3085 mpp_cfg_set_u32(tbl, st, obj->val.u32); in write_struct()
3088 mpp_cfg_set_s64(tbl, st, obj->val.s64); in write_struct()
3091 mpp_cfg_set_u64(tbl, st, obj->val.u64); in write_struct()
3102 write_struct(pos, trie, str, st); in write_struct()
3107 rk_s32 mpp_cfg_to_struct(MppCfgObj obj, MppCfgObj type, void *st) in mpp_cfg_to_struct() argument
3115 if (!obj || !st) { in mpp_cfg_to_struct()
3116 mpp_loge_f("invalid param obj %p st %p\n", obj, st); in mpp_cfg_to_struct()
3129 write_struct(impl, trie, &str, st + orig->info.data_offset); in mpp_cfg_to_struct()
3134 static MppCfgObj read_struct(MppCfgIoImpl *impl, MppCfgObj parent, void *st) in read_struct() argument
3168 mpp_cfg_get_s32(info, st, &ret->val.s32); in read_struct()
3172 mpp_cfg_get_u32(info, st, &ret->val.u32); in read_struct()
3176 mpp_cfg_get_s64(info, st, &ret->val.s64); in read_struct()
3180 mpp_cfg_get_u64(info, st, &ret->val.u64); in read_struct()
3204 read_struct(pos, ret, st); in read_struct()
3211 rk_s32 mpp_cfg_from_struct(MppCfgObj *obj, MppCfgObj type, void *st) in mpp_cfg_from_struct() argument
3215 if (!obj || !type || !st) { in mpp_cfg_from_struct()
3216 mpp_loge_f("invalid param obj %p type %p st %p\n", obj, type, st); in mpp_cfg_from_struct()
3221 *obj = read_struct(orig, NULL, st + orig->info.data_offset); in mpp_cfg_from_struct()