Lines Matching refs:slots

182     MppBufSlotsImpl     *slots;  member
244 MppBufSlotEntry *slots; member
579 MppBufSlotEntry *slot = impl->slots; in _dump_slots()
717 MppBufSlotEntry *slot = impl->slots; in init_slot_entry()
721 slot->slots = impl; in init_slot_entry()
765 MppBufSlotEntry *slot = (MppBufSlotEntry *)impl->slots; in clear_slots_impl()
801 mpp_free(impl->slots); in clear_slots_impl()
805 MPP_RET mpp_buf_slot_init(MppBufSlots *slots) in mpp_buf_slot_init() argument
810 if (!slots) { in mpp_buf_slot_init()
817 *slots = NULL; in mpp_buf_slot_init()
860 *slots = impl; in mpp_buf_slot_init()
866 *slots = NULL; in mpp_buf_slot_init()
870 MPP_RET mpp_buf_slot_deinit(MppBufSlots slots) in mpp_buf_slot_deinit() argument
872 if (!slots) { in mpp_buf_slot_deinit()
877 clear_slots_impl((MppBufSlotsImpl *)slots); in mpp_buf_slot_deinit()
881 MPP_RET mpp_buf_slot_setup(MppBufSlots slots, RK_S32 count) in mpp_buf_slot_setup() argument
883 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_setup()
894 if (!impl->slots) { in mpp_buf_slot_setup()
897 impl->slots = mpp_calloc(MppBufSlotEntry, count); in mpp_buf_slot_setup()
903 impl->slots = mpp_realloc(impl->slots, MppBufSlotEntry, count); in mpp_buf_slot_setup()
904 mpp_assert(impl->slots); in mpp_buf_slot_setup()
915 RK_U32 mpp_buf_slot_is_changed(MppBufSlots slots) in mpp_buf_slot_is_changed() argument
917 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_is_changed()
932 MPP_RET mpp_buf_slot_ready(MppBufSlots slots) in mpp_buf_slot_ready() argument
934 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_ready()
945 slot_assert(impl, impl->slots); in mpp_buf_slot_ready()
951 impl->slots = mpp_realloc(impl->slots, MppBufSlotEntry, impl->new_count); in mpp_buf_slot_ready()
952 mpp_assert(impl->slots); in mpp_buf_slot_ready()
970 size_t mpp_buf_slot_get_size(MppBufSlots slots) in mpp_buf_slot_get_size() argument
972 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_get_size()
987 RK_S32 mpp_buf_slot_get_count(MppBufSlots slots) in mpp_buf_slot_get_count() argument
989 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_get_count()
1004 MPP_RET mpp_buf_slot_set_callback(MppBufSlots slots, MppCbCtx *cb_ctx) in mpp_buf_slot_set_callback() argument
1006 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_set_callback()
1020 MPP_RET mpp_buf_slot_get_unused(MppBufSlots slots, RK_S32 *index) in mpp_buf_slot_get_unused() argument
1022 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_get_unused()
1031 slot = impl->slots; in mpp_buf_slot_get_unused()
1056 MPP_RET mpp_buf_slot_set_flag(MppBufSlots slots, RK_S32 index, SlotUsageType type) in mpp_buf_slot_set_flag() argument
1058 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_set_flag()
1068 slot_ops_with_log(impl, &impl->slots[index], set_flag_op[type], NULL); in mpp_buf_slot_set_flag()
1075 MPP_RET mpp_buf_slot_clr_flag(MppBufSlots slots, RK_S32 index, SlotUsageType type) in mpp_buf_slot_clr_flag() argument
1077 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_clr_flag()
1089 slot = &impl->slots[index]; in mpp_buf_slot_clr_flag()
1104 MPP_RET mpp_buf_slot_enqueue(MppBufSlots slots, RK_S32 index, SlotQueueType type) in mpp_buf_slot_enqueue() argument
1106 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_enqueue()
1117 slot = &impl->slots[index]; in mpp_buf_slot_enqueue()
1129 MPP_RET mpp_buf_slot_dequeue(MppBufSlots slots, RK_S32 *index, SlotQueueType type) in mpp_buf_slot_dequeue() argument
1131 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_dequeue()
1164 MPP_RET mpp_buf_slot_set_prop(MppBufSlots slots, RK_S32 index, SlotPropType type, void *val) in mpp_buf_slot_set_prop() argument
1166 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_set_prop()
1170 mpp_err_f("found invalid input slots %p type %d val %p\n", slots, type, val); in mpp_buf_slot_set_prop()
1177 slot = &impl->slots[index]; in mpp_buf_slot_set_prop()
1265 MPP_RET mpp_buf_slot_get_prop(MppBufSlots slots, RK_S32 index, SlotPropType type, void *val) in mpp_buf_slot_get_prop() argument
1267 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_get_prop()
1271 mpp_err_f("found invalid input slots %p type %d val %p\n", slots, type, val); in mpp_buf_slot_get_prop()
1278 slot = &impl->slots[index]; in mpp_buf_slot_get_prop()
1317 MPP_RET mpp_buf_slot_reset(MppBufSlots slots, RK_S32 index) in mpp_buf_slot_reset() argument
1319 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_reset()
1327 buf_slot_dbg(BUF_SLOT_DBG_SETUP, "slot %p reset index %d\n", slots, index); in mpp_buf_slot_reset()
1332 slot = &impl->slots[index]; in mpp_buf_slot_reset()
1345 MPP_RET mpp_buf_slot_default_info(MppBufSlots slots, RK_S32 index, void *val) in mpp_buf_slot_default_info() argument
1347 if (!slots || index < 0) { in mpp_buf_slot_default_info()
1352 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_buf_slot_default_info()
1355 MppBufSlotEntry *slot = &impl->slots[index]; in mpp_buf_slot_default_info()
1376 RK_U32 mpp_slots_is_empty(MppBufSlots slots, SlotQueueType type) in mpp_slots_is_empty() argument
1379 if (!slots) { in mpp_slots_is_empty()
1384 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_slots_is_empty()
1392 RK_S32 mpp_slots_get_used_count(MppBufSlots slots) in mpp_slots_get_used_count() argument
1395 if (!slots) { in mpp_slots_get_used_count()
1399 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_slots_get_used_count()
1407 RK_S32 mpp_slots_get_unused_count(MppBufSlots slots) in mpp_slots_get_unused_count() argument
1410 if (!slots) { in mpp_slots_get_unused_count()
1415 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_slots_get_unused_count()
1424 MPP_RET mpp_slots_set_prop(MppBufSlots slots, SlotsPropType type, void *val) in mpp_slots_set_prop() argument
1426 if (!slots || !val || type >= SLOTS_PROP_BUTT) { in mpp_slots_set_prop()
1427 mpp_err_f("found invalid input slots %p type %d val %p\n", slots, type, val); in mpp_slots_set_prop()
1431 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_slots_set_prop()
1469 MppBufSlotEntry *slot = &impl->slots[impl->info_change_slot_idx]; in mpp_slots_set_prop()
1505 MPP_RET mpp_slots_get_prop(MppBufSlots slots, SlotsPropType type, void *val) in mpp_slots_get_prop() argument
1507 if (!slots || !val || type >= SLOTS_PROP_BUTT) { in mpp_slots_get_prop()
1508 mpp_err_f("found invalid input slots %p type %d val %p\n", slots, type, val); in mpp_slots_get_prop()
1512 MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots; in mpp_slots_get_prop()