Home
last modified time | relevance | path

Searched refs:rd_ptr (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/gpu/host1x/hw/
H A Ddebug_hw_1x06.c71 u32 rd_ptr, wr_ptr, start, end; in host1x_debug_show_channel_fifo() local
99 rd_ptr = HOST1X_HV_CMDFIFO_PEEK_PTRS_RD_PTR_V(val); in host1x_debug_show_channel_fifo()
110 val |= HOST1X_HV_CMDFIFO_PEEK_CTRL_ADDR(rd_ptr); in host1x_debug_show_channel_fifo()
119 rd_ptr - start, val); in host1x_debug_show_channel_fifo()
127 if (rd_ptr == end) in host1x_debug_show_channel_fifo()
128 rd_ptr = start; in host1x_debug_show_channel_fifo()
130 rd_ptr++; in host1x_debug_show_channel_fifo()
131 } while (rd_ptr != wr_ptr); in host1x_debug_show_channel_fifo()
H A Ddebug_hw_1x01.c75 u32 val, rd_ptr, wr_ptr, start, end; in host1x_debug_show_channel_fifo() local
93 rd_ptr = HOST1X_SYNC_CFPEEK_PTRS_CF_RD_PTR_V(val); in host1x_debug_show_channel_fifo()
104 HOST1X_SYNC_CFPEEK_CTRL_ADDR_F(rd_ptr), in host1x_debug_show_channel_fifo()
117 if (rd_ptr == end) in host1x_debug_show_channel_fifo()
118 rd_ptr = start; in host1x_debug_show_channel_fifo()
120 rd_ptr++; in host1x_debug_show_channel_fifo()
121 } while (rd_ptr != wr_ptr); in host1x_debug_show_channel_fifo()
/openbmc/u-boot/drivers/serial/
H A Dserial-uclass.c227 return upriv->rd_ptr != upriv->wr_ptr ? 1 : 0; in _serial_tstc()
235 if (upriv->rd_ptr == upriv->wr_ptr) in _serial_getc()
238 val = upriv->buf[upriv->rd_ptr++]; in _serial_getc()
239 upriv->rd_ptr %= CONFIG_SERIAL_RX_BUFFER_SIZE; in _serial_getc()
/openbmc/linux/drivers/media/platform/qcom/venus/
H A Dhfi_venus.c242 u32 *rd_ptr; in venus_read_queue() local
279 rd_ptr = (u32 *)(queue->qmem.kva + (rd_idx << 2)); in venus_read_queue()
281 if (rd_ptr < (u32 *)queue->qmem.kva || in venus_read_queue()
282 rd_ptr > (u32 *)(queue->qmem.kva + queue->qmem.size - sizeof(*rd_ptr))) in venus_read_queue()
285 dwords = *rd_ptr >> 2; in venus_read_queue()
292 memcpy(pkt, rd_ptr, dwords << 2); in venus_read_queue()
298 memcpy(pkt, rd_ptr, len); in venus_read_queue()
/openbmc/u-boot/drivers/usb/gadget/
H A Daspeed_udc.c798 u32 wr_ptr, rd_ptr; in aspeed_udc_ep_handle_desc_mode() local
819 rd_ptr = (readl(ep->ep_base + AST_EP_DMA_STS) >> 8) & 0xFF; in aspeed_udc_ep_handle_desc_mode()
823 (u32)req, req->req.length, req->req.actual, rd_ptr, wr_ptr); in aspeed_udc_ep_handle_desc_mode()
825 if (rd_ptr != wr_ptr) { in aspeed_udc_ep_handle_desc_mode()
827 __func__, "rd_ptr", rd_ptr, "wr_ptr", wr_ptr); in aspeed_udc_ep_handle_desc_mode()
/openbmc/u-boot/include/
H A Dserial.h276 int rd_ptr; member
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dmain.c66 __le32 rd_ptr; member
309 u32 rd = le32_to_cpu(READ_ONCE(notif_q->rd_ptr)); in iwl_mei_write_cyclic_buf()
348 if (READ_ONCE(notif_q->wr_ptr) != READ_ONCE(notif_q->rd_ptr)) in iwl_mei_host_to_me_data_pending()
352 return READ_ONCE(notif_q->wr_ptr) != READ_ONCE(notif_q->rd_ptr); in iwl_mei_host_to_me_data_pending()
484 rd = le32_to_cpu(READ_ONCE(notif_q->rd_ptr)); in iwl_mei_add_data_to_ring()
1147 u32 rd = le32_to_cpu(READ_ONCE(notif_q->rd_ptr)); in iwl_mei_handle_sap_rx()
1170 WRITE_ONCE(notif_q->rd_ptr, cpu_to_le32(wr)); in iwl_mei_handle_sap_rx()
/openbmc/linux/drivers/usb/gadget/udc/
H A Daspeed_udc.c903 u32 proc_sts, wr_ptr, rd_ptr; in ast_udc_epn_handle_desc() local
928 rd_ptr = EP_DMA_GET_RPTR(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()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Derror-dump.h129 __le32 rd_ptr; member
H A Ddbg.c89 fifo_hdr->rd_ptr = in iwl_fwrt_dump_rxf()
144 fifo_hdr->rd_ptr = in iwl_fwrt_dump_txf()
274 fifo_hdr->rd_ptr = in iwl_fw_dump_txf()
/openbmc/linux/drivers/rapidio/devices/
H A Dtsi721.c388 u32 wr_ptr, rd_ptr; in tsi721_db_dpc() local
402 rd_ptr = ioread32(priv->regs + TSI721_IDQ_RP(IDB_QUEUE)) % IDB_QSIZE; in tsi721_db_dpc()
404 while (wr_ptr != rd_ptr) { in tsi721_db_dpc()
406 (TSI721_IDB_ENTRY_SIZE * rd_ptr)); in tsi721_db_dpc()
407 rd_ptr++; in tsi721_db_dpc()
408 rd_ptr %= IDB_QSIZE; in tsi721_db_dpc()
435 iowrite32(rd_ptr & (IDB_QSIZE - 1), in tsi721_db_dpc()
445 if (wr_ptr != rd_ptr) in tsi721_db_dpc()
/openbmc/linux/drivers/hwmon/
H A Dcoretemp.c425 static ssize_t (*const rd_ptr[TOTAL_ATTRS]) (struct device *dev, in create_core_attrs() local
446 tdata->sd_attrs[i].dev_attr.show = rd_ptr[i]; in create_core_attrs()
/openbmc/linux/drivers/media/platform/chips-media/
H A Dcoda-bit.c153 u32 rd_ptr; in coda_kfifo_sync_from_device() local
155 rd_ptr = coda_read(dev, CODA_REG_BIT_RD_PTR(ctx->reg_idx)); in coda_kfifo_sync_from_device()
157 (rd_ptr - ctx->bitstream.paddr); in coda_kfifo_sync_from_device()
166 u32 rd_ptr, wr_ptr; in coda_kfifo_sync_to_device_full() local
168 rd_ptr = ctx->bitstream.paddr + (kfifo->out & kfifo->mask); in coda_kfifo_sync_to_device_full()
169 coda_write(dev, rd_ptr, CODA_REG_BIT_RD_PTR(ctx->reg_idx)); in coda_kfifo_sync_to_device_full()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/queue/
H A Dtx.c1520 int rd_ptr = txq->read_ptr; in iwl_txq_free_tfd() local
1521 int idx = iwl_txq_get_cmd_index(txq, rd_ptr); in iwl_txq_free_tfd()
1534 iwl_txq_get_tfd(trans, txq, rd_ptr)); in iwl_txq_free_tfd()
1537 txq, rd_ptr); in iwl_txq_free_tfd()
/openbmc/linux/drivers/gpu/drm/amd/display/dmub/inc/
H A Ddmub_cmd.h4467 uint8_t *rd_ptr = (rb->rptr == 0) ? in dmub_rb_get_return_data() local
4471 dmub_memcpy(cmd, rd_ptr, DMUB_RB_CMD_SIZE); in dmub_rb_get_return_data()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_self_test.c2949 u32 rd_ptr, wr_ptr, rd_bank, wr_bank; in bnx2x_idle_chk6() local
2960 rd_ptr = ((rec->pred_args.val1 & 0x3FFFFFC0) >> 6); in bnx2x_idle_chk6()
2965 if (rd_ptr != wr_ptr) { in bnx2x_idle_chk6()
2968 i, rd_ptr, wr_ptr); in bnx2x_idle_chk6()