Lines Matching refs:indx
48 static uint32_t viddec_fw_get_total_input_Q_data(uint32_t indx)
55 rcv_q = &fwipc->rcv_q[indx];
57 ret = (_dmem.stream_info[indx].buffered_data) ? CONFIG_IPC_MESSAGE_MAX_SIZE:0;
66 * [in] indx: stream id number of the last stream that was scheduled.
77 uint32_t mfd_round_robin(uint32_t pri, int32_t *qnum, int32_t indx)
85 indx++;
86 if(indx >= CONFIG_IPC_FW_MAX_RX_QUEUES) indx = 0;
90 if( (_dmem.stream_info[indx].state == 1)
91 && (_dmem.stream_info[indx].priority == pri))
95 rcv_q = &fwipc->rcv_q[indx];
96 inpt_avail = (_dmem.stream_info[indx].buffered_data > 0) || (ipc_mq_read_avail(&rcv_q->mq, (int32_t *)&pos) > 0);
98 output_avail = FwIPC_SpaceAvailForMessage(fwipc, &fwipc->snd_q[indx], CONFIG_IPC_MESSAGE_MAX_SIZE, &pos) >= 2;
101 wklds_avail = (ipc_mq_read_avail(&fwipc->wkld_q[indx].mq, (int32_t *)&pos) >= (CONFIG_IPC_MESSAGE_MAX_SIZE << 1));
104 *qnum = indx;
268 void viddec_fw_debug_scheduled_stream_state(int32_t indx, int32_t start)
276 rcv_q = &fwipc->rcv_q[indx];
278 inpt_avail += ((_dmem.stream_info[indx].buffered_data > 0) ? CONFIG_IPC_MESSAGE_MAX_SIZE: 0);
281 output_avail = ipc_mq_read_avail(&fwipc->snd_q[indx].mq, (int32_t *)&pos);
284 wklds_avail = ipc_mq_read_avail(&fwipc->wkld_q[indx].mq, (int32_t *)&pos);
286 WRITE_SVEN(message, (int)indx, (int)inpt_avail, (int)output_avail,