Home
last modified time | relevance | path

Searched refs:wr_ptr (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/drivers/media/platform/chips-media/wave5/ !
Dwave5-vpuapi.c272 info->wr_ptr = p_dec_info->stream_wr_ptr; in wave5_vpu_dec_complete_seq_init()
328 dma_addr_t wr_ptr; in wave5_vpu_dec_get_bitstream_buffer() local
341 wr_ptr = p_dec_info->stream_wr_ptr; in wave5_vpu_dec_get_bitstream_buffer()
343 if (wr_ptr < rd_ptr) in wave5_vpu_dec_get_bitstream_buffer()
344 room = rd_ptr - wr_ptr; in wave5_vpu_dec_get_bitstream_buffer()
346 room = (p_dec_info->stream_buf_end_addr - wr_ptr) + in wave5_vpu_dec_get_bitstream_buffer()
353 *pwr_ptr = wr_ptr; in wave5_vpu_dec_get_bitstream_buffer()
363 dma_addr_t wr_ptr; in wave5_vpu_dec_update_bitstream_buffer() local
372 wr_ptr = p_dec_info->stream_wr_ptr; in wave5_vpu_dec_update_bitstream_buffer()
376 if (wr_ptr < rd_ptr && rd_ptr <= wr_ptr + size) in wave5_vpu_dec_update_bitstream_buffer()
[all …]
Dwave5-vpuapi.h379 dma_addr_t wr_ptr; /* write pointer of bitstream buffer */ member
425 dma_addr_t wr_ptr; /* stream buffer write pointer for the current decoder instance */ member
628 dma_addr_t wr_ptr; member
Dwave5-vpu-dec.c429 &dec_info.wr_ptr); in wave5_vpu_dec_finish_decode()
1200 struct vpu_buf *ring_buffer, dma_addr_t wr_ptr) in write_to_ringbuffer() argument
1203 size_t offset = wr_ptr - ring_buffer->daddr; in write_to_ringbuffer()
1206 if (wr_ptr + buffer_size > ring_buffer->daddr + ring_buffer->size) { in write_to_ringbuffer()
1207 size = ring_buffer->daddr + ring_buffer->size - wr_ptr; in write_to_ringbuffer()
1248 dma_addr_t wr_ptr = 0; in fill_ringbuffer() local
1264 ret = wave5_vpu_dec_get_bitstream_buffer(inst, &rd_ptr, &wr_ptr, &remain_size); in fill_ringbuffer()
1272 dev_dbg(inst->dev->dev, "%s: rd_ptr %pad wr_ptr %pad", __func__, &rd_ptr, &wr_ptr); in fill_ringbuffer()
1281 ret = write_to_ringbuffer(inst, src_buf, src_size, ring_buffer, wr_ptr); in fill_ringbuffer()
Dwave5-hw.c2362 result->wr_ptr = p_enc_info->stream_wr_ptr; in wave5_vpu_enc_get_result()
/linux-6.12.1/drivers/bus/mhi/ep/ !
Dring.c79 static int mhi_ep_cache_ring(struct mhi_ep_ring *ring, u64 wr_ptr) in mhi_ep_cache_ring() argument
84 wr_offset = mhi_ep_ring_addr2offset(ring, wr_ptr); in mhi_ep_cache_ring()
98 u64 wr_ptr; in mhi_ep_update_wr_offset() local
100 wr_ptr = mhi_ep_mmio_get_db(ring); in mhi_ep_update_wr_offset()
102 return mhi_ep_cache_ring(ring, wr_ptr); in mhi_ep_update_wr_offset()
/linux-6.12.1/drivers/gpu/host1x/hw/ !
Ddebug_hw_1x06.c71 u32 rd_ptr, wr_ptr, start, end; in host1x_debug_show_channel_fifo() local
100 wr_ptr = HOST1X_HV_CMDFIFO_PEEK_PTRS_WR_PTR_V(val); in host1x_debug_show_channel_fifo()
131 } while (rd_ptr != wr_ptr); in host1x_debug_show_channel_fifo()
Ddebug_hw_1x01.c75 u32 val, rd_ptr, wr_ptr, start, end; in host1x_debug_show_channel_fifo() local
94 wr_ptr = HOST1X_SYNC_CFPEEK_PTRS_CF_WR_PTR_V(val); in host1x_debug_show_channel_fifo()
121 } while (rd_ptr != wr_ptr); in host1x_debug_show_channel_fifo()
/linux-6.12.1/drivers/atm/ !
Diphase.c1103 struct dle* wr_ptr; local
1191 wr_ptr = iadev->rx_dle_q.write;
1192 wr_ptr->sys_pkt_addr = dma_map_single(&iadev->pci->dev, skb->data,
1194 wr_ptr->local_pkt_addr = buf_addr;
1195 wr_ptr->bytes = len; /* We don't know this do we ?? */
1196 wr_ptr->mode = DMA_INT_ENABLE;
1199 if(++wr_ptr == iadev->rx_dle_q.end)
1200 wr_ptr = iadev->rx_dle_q.start;
1201 iadev->rx_dle_q.write = wr_ptr;
2889 struct dle *wr_ptr; local
[all …]
/linux-6.12.1/drivers/media/platform/qcom/venus/ !
Dhfi_venus.c169 u32 *wr_ptr; in venus_write_queue() local
207 wr_ptr = (u32 *)(queue->qmem.kva + (wr_idx << 2)); in venus_write_queue()
209 if (wr_ptr < (u32 *)queue->qmem.kva || in venus_write_queue()
210 wr_ptr > (u32 *)(queue->qmem.kva + queue->qmem.size - sizeof(*wr_ptr))) in venus_write_queue()
214 memcpy(wr_ptr, packet, dwords << 2); in venus_write_queue()
220 memcpy(wr_ptr, packet, len); in venus_write_queue()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mei/ !
Dmain.c64 __le32 wr_ptr; member
338 u32 wr = le32_to_cpu(READ_ONCE(notif_q->wr_ptr)); in iwl_mei_write_cyclic_buf()
364 WRITE_ONCE(notif_q->wr_ptr, cpu_to_le32((wr + tx_sz) % q_sz)); in iwl_mei_write_cyclic_buf()
376 if (READ_ONCE(notif_q->wr_ptr) != READ_ONCE(notif_q->rd_ptr)) in iwl_mei_host_to_me_data_pending()
380 return READ_ONCE(notif_q->wr_ptr) != READ_ONCE(notif_q->rd_ptr); in iwl_mei_host_to_me_data_pending()
513 wr = le32_to_cpu(READ_ONCE(notif_q->wr_ptr)); in iwl_mei_add_data_to_ring()
565 WRITE_ONCE(notif_q->wr_ptr, cpu_to_le32((wr + tx_sz) % q_sz)); in iwl_mei_add_data_to_ring()
1176 u32 wr = le32_to_cpu(READ_ONCE(notif_q->wr_ptr)); in iwl_mei_handle_sap_rx()
/linux-6.12.1/drivers/media/platform/chips-media/coda/ !
Dcoda-jpeg.c1211 u32 wr_ptr, start_ptr; in coda9_jpeg_finish_encode() local
1235 wr_ptr = coda_read(dev, CODA9_REG_JPEG_BBC_WR_PTR); in coda9_jpeg_finish_encode()
1236 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, wr_ptr - start_ptr); in coda9_jpeg_finish_encode()
1270 u32 end_addr, wr_ptr; in coda9_jpeg_encode_timeout() local
1274 wr_ptr = coda_read(dev, CODA9_REG_JPEG_BBC_WR_PTR); in coda9_jpeg_encode_timeout()
1275 if (wr_ptr >= end_addr - 256) { in coda9_jpeg_encode_timeout()
Dcoda-bit.c166 u32 rd_ptr, wr_ptr; in coda_kfifo_sync_to_device_full() local
170 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_full()
171 coda_write(dev, wr_ptr, CODA_REG_BIT_WR_PTR(ctx->reg_idx)); in coda_kfifo_sync_to_device_full()
178 u32 wr_ptr; in coda_kfifo_sync_to_device_write() local
180 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_write()
181 coda_write(dev, wr_ptr, CODA_REG_BIT_WR_PTR(ctx->reg_idx)); in coda_kfifo_sync_to_device_write()
1643 u32 wr_ptr, start_ptr; in coda_finish_encode() local
1661 wr_ptr = coda_read(dev, CODA_REG_BIT_WR_PTR(ctx->reg_idx)); in coda_finish_encode()
1666 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, wr_ptr - start_ptr + in coda_finish_encode()
1671 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, wr_ptr - start_ptr); in coda_finish_encode()
[all …]
/linux-6.12.1/drivers/usb/gadget/udc/ !
Daspeed_udc.c903 u32 proc_sts, wr_ptr, rd_ptr; in ast_udc_epn_handle_desc() local
929 wr_ptr = EP_DMA_GET_WPTR(ctrl); in ast_udc_epn_handle_desc()
931 if (rd_ptr != wr_ptr) { in ast_udc_epn_handle_desc()
933 "rptr", rd_ptr, "wptr", wr_ptr); in ast_udc_epn_handle_desc()
937 EP_DBG(ep, "rd_ptr:%d, wr_ptr:%d\n", rd_ptr, wr_ptr); in ast_udc_epn_handle_desc()
948 } while (i != wr_ptr); in ast_udc_epn_handle_desc()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/pcie/ !
Dtx-gen2.c976 u32 wr_ptr; in iwl_pcie_txq_alloc_response() local
986 wr_ptr = le16_to_cpu(rsp->write_pointer); in iwl_pcie_txq_alloc_response()
1008 wr_ptr &= (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_pcie_txq_alloc_response()
1011 txq->read_ptr = wr_ptr; in iwl_pcie_txq_alloc_response()
1012 txq->write_ptr = wr_ptr; in iwl_pcie_txq_alloc_response()
Dtrans.c2412 u8 wr_ptr; in iwl_trans_pcie_wait_txq_empty() local
2429 wr_ptr = READ_ONCE(txq->write_ptr); in iwl_trans_pcie_wait_txq_empty()
2442 if (WARN_ONCE(wr_ptr != write_ptr && !overflow_tx, in iwl_trans_pcie_wait_txq_empty()
2444 wr_ptr, write_ptr)) in iwl_trans_pcie_wait_txq_empty()
2446 wr_ptr = write_ptr; in iwl_trans_pcie_wait_txq_empty()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/ !
Derror-dump.h129 __le32 wr_ptr; member
Ddbg.c85 fifo_hdr->wr_ptr = in iwl_fwrt_dump_rxf()
140 fifo_hdr->wr_ptr = in iwl_fwrt_dump_txf()
270 fifo_hdr->wr_ptr = in iwl_fw_dump_txf()
/linux-6.12.1/drivers/rapidio/devices/ !
Dtsi721.c398 u32 wr_ptr, rd_ptr; in tsi721_db_dpc() local
411 wr_ptr = ioread32(priv->regs + TSI721_IDQ_WP(IDB_QUEUE)) % IDB_QSIZE; in tsi721_db_dpc()
414 while (wr_ptr != rd_ptr) { in tsi721_db_dpc()
441 wr_ptr = ioread32(priv->regs + in tsi721_db_dpc()
454 wr_ptr = ioread32(priv->regs + TSI721_IDQ_WP(IDB_QUEUE)) % IDB_QSIZE; in tsi721_db_dpc()
455 if (wr_ptr != rd_ptr) in tsi721_db_dpc()
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/ !
Dbnx2x_self_test.c2949 u32 rd_ptr, wr_ptr, rd_bank, wr_bank; in bnx2x_idle_chk6() local
2961 wr_ptr = ((((rec->pred_args.val1 & 0xC0000000) >> 30) & 0x3) | in bnx2x_idle_chk6()
2965 if (rd_ptr != wr_ptr) { in bnx2x_idle_chk6()
2968 i, rd_ptr, wr_ptr); in bnx2x_idle_chk6()