Lines Matching refs:slot

579     MppBufSlotEntry *slot = impl->slots;  in _dump_slots()  local
588 for (i = 0; i < impl->buf_count; i++, slot++) { in _dump_slots()
589 SlotStatus status = slot->status; in _dump_slots()
604 static void slot_ops_with_log(MppBufSlotsImpl *impl, MppBufSlotEntry *slot, MppBufSlotOps op, void … in slot_ops_with_log() argument
607 RK_S32 index = slot->index; in slot_ops_with_log()
608 SlotStatus status = slot->status; in slot_ops_with_log()
645 mpp_err("can not clr hal_input on slot %d\n", slot->index); in slot_ops_with_log()
657 mpp_err("can not clr hal_output on slot %d\n", slot->index); in slot_ops_with_log()
678 mpp_err("can not clr queue_use on slot %d\n", slot->index); in slot_ops_with_log()
687 slot->eos = 0; in slot_ops_with_log()
706 slot->status = status; in slot_ops_with_log()
717 MppBufSlotEntry *slot = impl->slots; in init_slot_entry() local
720 for (i = 0; i < count; i++, slot++) { in init_slot_entry()
721 slot->slots = impl; in init_slot_entry()
722 INIT_LIST_HEAD(&slot->list); in init_slot_entry()
723 slot->index = pos + i; in init_slot_entry()
724 slot->frame = NULL; in init_slot_entry()
725 slot_ops_with_log(impl, slot, SLOT_INIT, NULL); in init_slot_entry()
765 MppBufSlotEntry *slot = (MppBufSlotEntry *)impl->slots; in clear_slots_impl() local
778 for (i = 0; i < impl->buf_count; i++, slot++) { in clear_slots_impl()
779 mpp_assert(!slot->status.on_used); in clear_slots_impl()
780 if (slot->status.on_used) { in clear_slots_impl()
1023 MppBufSlotEntry *slot; in mpp_buf_slot_get_unused() local
1031 slot = impl->slots; in mpp_buf_slot_get_unused()
1035 for (i = 0; i < impl->buf_count; i++, slot++) { in mpp_buf_slot_get_unused()
1036 if (!slot->status.on_used) { in mpp_buf_slot_get_unused()
1038 slot_ops_with_log(impl, slot, SLOT_SET_ON_USE, NULL); in mpp_buf_slot_get_unused()
1039 slot_ops_with_log(impl, slot, SLOT_SET_NOT_READY, NULL); in mpp_buf_slot_get_unused()
1078 MppBufSlotEntry *slot; in mpp_buf_slot_clr_flag() local
1089 slot = &impl->slots[index]; in mpp_buf_slot_clr_flag()
1090 slot_ops_with_log(impl, slot, clr_flag_op[type], NULL); in mpp_buf_slot_clr_flag()
1095 unused = check_entry_unused(impl, slot); in mpp_buf_slot_clr_flag()
1107 MppBufSlotEntry *slot; in mpp_buf_slot_enqueue() local
1117 slot = &impl->slots[index]; in mpp_buf_slot_enqueue()
1118 slot_ops_with_log(impl, slot, (MppBufSlotOps)(SLOT_ENQUEUE + type), NULL); in mpp_buf_slot_enqueue()
1121 list_del_init(&slot->list); in mpp_buf_slot_enqueue()
1122 list_add_tail(&slot->list, &impl->queue[type]); in mpp_buf_slot_enqueue()
1132 MppBufSlotEntry *slot; in mpp_buf_slot_dequeue() local
1146 slot = list_entry(impl->queue[type].next, MppBufSlotEntry, list); in mpp_buf_slot_dequeue()
1147 if (slot->status.not_ready) { in mpp_buf_slot_dequeue()
1153 list_del_init(&slot->list); in mpp_buf_slot_dequeue()
1154 slot_assert(impl, slot->index < impl->buf_count); in mpp_buf_slot_dequeue()
1155 slot_ops_with_log(impl, slot, (MppBufSlotOps)(SLOT_DEQUEUE + type), NULL); in mpp_buf_slot_dequeue()
1157 *index = slot->index; in mpp_buf_slot_dequeue()
1167 MppBufSlotEntry *slot; in mpp_buf_slot_set_prop() local
1177 slot = &impl->slots[index]; in mpp_buf_slot_set_prop()
1178 slot_ops_with_log(impl, slot, set_val_op[type], val); in mpp_buf_slot_set_prop()
1184 slot->eos = eos; in mpp_buf_slot_set_prop()
1185 if (slot->frame) in mpp_buf_slot_set_prop()
1186 mpp_frame_set_eos(slot->frame, eos); in mpp_buf_slot_set_prop()
1193 slot_assert(impl, slot->status.not_ready); in mpp_buf_slot_set_prop()
1205 if (!slot->frame) in mpp_buf_slot_set_prop()
1206 mpp_frame_init(&slot->frame); in mpp_buf_slot_set_prop()
1209 dst = (MppFrameImpl *)slot->frame; in mpp_buf_slot_set_prop()
1219 dst->eos = slot->eos; in mpp_buf_slot_set_prop()
1245 if (slot->buffer) { in mpp_buf_slot_set_prop()
1247 slot_assert(impl, !slot->frame); in mpp_buf_slot_set_prop()
1248 mpp_buffer_put(slot->buffer); in mpp_buf_slot_set_prop()
1251 slot->buffer = buffer; in mpp_buf_slot_set_prop()
1253 if (slot->frame) in mpp_buf_slot_set_prop()
1254 mpp_frame_set_buffer(slot->frame, buffer); in mpp_buf_slot_set_prop()
1268 MppBufSlotEntry *slot; in mpp_buf_slot_get_prop() local
1278 slot = &impl->slots[index]; in mpp_buf_slot_get_prop()
1282 *(RK_U32*)val = slot->eos; in mpp_buf_slot_get_prop()
1288 mpp_assert(slot->status.has_frame); in mpp_buf_slot_get_prop()
1289 if (slot->status.has_frame) { in mpp_buf_slot_get_prop()
1293 mpp_frame_copy(*frame, slot->frame); in mpp_buf_slot_get_prop()
1300 mpp_assert(slot->status.has_frame); in mpp_buf_slot_get_prop()
1301 *frame = (slot->status.has_frame) ? (slot->frame) : (NULL); in mpp_buf_slot_get_prop()
1306 *buffer = (slot->status.has_buffer) ? (slot->buffer) : (NULL); in mpp_buf_slot_get_prop()
1320 MppBufSlotEntry *slot; in mpp_buf_slot_reset() local
1332 slot = &impl->slots[index]; in mpp_buf_slot_reset()
1335 list_del_init(&slot->list); in mpp_buf_slot_reset()
1336 slot_ops_with_log(impl, slot, SLOT_CLR_QUEUE_USE, NULL); in mpp_buf_slot_reset()
1337 slot_ops_with_log(impl, slot, SLOT_DEQUEUE, NULL); in mpp_buf_slot_reset()
1338 slot_ops_with_log(impl, slot, SLOT_CLR_ON_USE, NULL); in mpp_buf_slot_reset()
1355 MppBufSlotEntry *slot = &impl->slots[index]; in mpp_buf_slot_default_info() local
1357 slot_assert(impl, slot->status.not_ready); in mpp_buf_slot_default_info()
1358 slot_assert(impl, !slot->frame); in mpp_buf_slot_default_info()
1361 if (!slot->frame) { in mpp_buf_slot_default_info()
1362 mpp_frame_init(&slot->frame); in mpp_buf_slot_default_info()
1363 mpp_frame_copy(slot->frame, impl->info_set); in mpp_buf_slot_default_info()
1367 *frame = slot->frame; in mpp_buf_slot_default_info()
1369 slot_ops_with_log(impl, slot, SLOT_CLR_NOT_READY, NULL); in mpp_buf_slot_default_info()
1370 slot_ops_with_log(impl, slot, SLOT_SET_FRAME, slot->frame); in mpp_buf_slot_default_info()
1469 MppBufSlotEntry *slot = &impl->slots[impl->info_change_slot_idx]; in mpp_slots_set_prop() local
1471 if (slot->frame) { in mpp_slots_set_prop()
1472 MppFrameImpl *dst = (MppFrameImpl *)slot->frame; in mpp_slots_set_prop()