Home
last modified time | relevance | path

Searched refs:write_ptr (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtx.c113 txq->write_ptr | (txq_id << 8)); in iwl_pcie_txq_inc_wr_ptr()
361 txq->write_ptr = 0; in iwl_trans_pcie_tx_reset()
668 txq->write_ptr, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
678 idx, txq->write_ptr, r); in iwl_pcie_cmdq_reclaim()
780 (ssn != txq->write_ptr); in iwl_trans_pcie_txq_enable()
788 txq->write_ptr = (ssn & 0xff); in iwl_trans_pcie_txq_enable()
1090 txq->write_ptr); in iwl_pcie_enqueue_hcmd()
1114 txq->write_ptr); in iwl_pcie_enqueue_hcmd()
1141 txq->write_ptr = iwl_txq_inc_wrap(trans, txq->write_ptr); in iwl_pcie_enqueue_hcmd()
1177 txq->write_ptr)) { in iwl_pcie_hcmd_complete()
[all …]
H A Dtx-gen2.c114 idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
115 tfd = iwl_txq_get_tfd(trans, txq, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
144 INDEX_TO_SEQ(txq->write_ptr)); in iwl_pcie_gen2_enqueue_hcmd()
191 cmd_size, txq->write_ptr, idx, trans->txqs.cmd.q_id); in iwl_pcie_gen2_enqueue_hcmd()
244 if (txq->read_ptr == txq->write_ptr && txq->wd_timeout) in iwl_pcie_gen2_enqueue_hcmd()
249 txq->write_ptr = iwl_txq_inc_wrap(trans, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
H A Dtrans.c2365 txq->write_ptr | (i << 8)); in iwl_trans_pcie_block_txq_ptrs()
2415 wr_ptr = READ_ONCE(txq->write_ptr); in iwl_trans_pcie_wait_txq_empty()
2421 u8 write_ptr = READ_ONCE(txq->write_ptr); in iwl_trans_pcie_wait_txq_empty() local
2430 wr_ptr, write_ptr)) in iwl_trans_pcie_wait_txq_empty()
2432 wr_ptr = write_ptr; in iwl_trans_pcie_wait_txq_empty()
2648 txq->read_ptr, txq->write_ptr, in iwl_dbgfs_tx_queue_seq_show()
2977 size = write_ptr; in iwl_dbgfs_monitor_data_read()
2986 write_ptr > data->prev_wr_ptr) in iwl_dbgfs_monitor_data_read()
2994 size = write_ptr; in iwl_dbgfs_monitor_data_read()
3211 write_ptr = MON_BUFF_WRPTR; in iwl_trans_pcie_dump_pointers()
[all …]
/openbmc/linux/sound/soc/intel/avs/
H A Dapl.c68 if (layout.read_ptr > layout.write_ptr) { in apl_log_buffer_status()
73 avs_dump_fw_log_wakeup(adev, buf + layout.read_ptr, layout.write_ptr - layout.read_ptr); in apl_log_buffer_status()
76 writel(layout.write_ptr, addr); in apl_log_buffer_status()
93 if (layout->read_ptr != layout->write_ptr) in apl_wait_log_entry()
148 if (layout.read_ptr > layout.write_ptr) { in apl_coredump()
154 count = layout.write_ptr - layout.read_ptr; in apl_coredump()
159 writel(layout.write_ptr, addr); in apl_coredump()
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-etb10.c290 u32 read_ptr, write_ptr; in etb_dump_hw() local
297 write_ptr = readl_relaxed(drvdata->base + ETB_RAM_WRITE_POINTER); in etb_dump_hw()
299 frame_off = write_ptr % ETB_FRAME_SIZE_WORDS; in etb_dump_hw()
304 (unsigned long)write_ptr); in etb_dump_hw()
307 write_ptr += frame_endoff; in etb_dump_hw()
436 u32 read_ptr, write_ptr, capacity; in etb_update_buffer() local
465 if (write_ptr % ETB_FRAME_SIZE_WORDS) { in etb_update_buffer()
468 (unsigned long)write_ptr); in etb_update_buffer()
470 write_ptr &= ~(ETB_FRAME_SIZE_WORDS - 1); in etb_update_buffer()
484 read_ptr = write_ptr; in etb_update_buffer()
[all …]
H A Dultrasoc-smb.c70 u32 write_ptr; in smb_reset_buffer() local
82 write_ptr = readl(drvdata->base + SMB_LB_WR_ADDR_REG); in smb_reset_buffer()
85 if (!write_ptr || write_ptr == sdb->buf_rdptr + sdb->buf_hw_base) in smb_reset_buffer()
92 writel(write_ptr, drvdata->base + SMB_LB_RD_ADDR_REG); in smb_reset_buffer()
93 sdb->buf_rdptr = write_ptr - sdb->buf_hw_base; in smb_reset_buffer()
H A Dcoresight-tmc-etf.c476 u64 read_ptr, write_ptr; in tmc_update_etf_buffer() local
500 write_ptr = tmc_read_rwp(drvdata); in tmc_update_etf_buffer()
511 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->size); in tmc_update_etf_buffer()
530 read_ptr = (write_ptr + drvdata->size) - to_read; in tmc_update_etf_buffer()
/openbmc/linux/sound/soc/sof/
H A Dipc4-mtrace.c191 u32 log_buffer_offset, log_buffer_size, read_ptr, write_ptr; in sof_ipc4_mtrace_dfs_read() local
224 write_ptr = core_data->dsp_write_ptr; in sof_ipc4_mtrace_dfs_read()
226 if (read_ptr < write_ptr) in sof_ipc4_mtrace_dfs_read()
227 avail = write_ptr - read_ptr; in sof_ipc4_mtrace_dfs_read()
229 avail = log_buffer_size - read_ptr + write_ptr; in sof_ipc4_mtrace_dfs_read()
244 core_data->id, read_ptr, write_ptr, avail); in sof_ipc4_mtrace_dfs_read()
246 if (read_ptr < write_ptr) { in sof_ipc4_mtrace_dfs_read()
252 avail - write_ptr); in sof_ipc4_mtrace_dfs_read()
254 if (write_ptr) in sof_ipc4_mtrace_dfs_read()
256 (u8 *)(log_buffer) + avail - write_ptr, in sof_ipc4_mtrace_dfs_read()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Def100_tx.c112 unsigned int write_ptr; in ef100_notify_tx_desc() local
120 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef100_notify_tx_desc()
122 EFX_POPULATE_DWORD_1(reg, ERF_GZ_TX_RING_PIDX, write_ptr); in ef100_notify_tx_desc()
264 unsigned int write_ptr; in ef100_tx_make_descriptors() local
278 write_ptr = new_write_count & tx_queue->ptr_mask; in ef100_tx_make_descriptors()
279 txd = ef100_tx_desc(tx_queue, write_ptr); in ef100_tx_make_descriptors()
295 write_ptr = new_write_count & tx_queue->ptr_mask; in ef100_tx_make_descriptors()
296 buffer = &tx_queue->buffer[write_ptr]; in ef100_tx_make_descriptors()
297 txd = ef100_tx_desc(tx_queue, write_ptr); in ef100_tx_make_descriptors()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/queue/
H A Dtx.c713 used = (q->write_ptr - q->read_ptr) & in iwl_txq_space()
804 txq->write_ptr = iwl_txq_inc_wrap(trans, txq->write_ptr); in iwl_txq_gen2_tx()
932 q->write_ptr = 0; in iwl_queue_init()
999 txq->read_ptr, txq->write_ptr); in iwl_txq_log_scd_error()
1012 txq->read_ptr, txq->write_ptr, in iwl_txq_log_scd_error()
1213 txq->write_ptr = wr_ptr; in iwl_txq_alloc_response()
1442 int write_ptr = txq->write_ptr; in iwl_txq_gen1_update_byte_cnt_tbl() local
1616 txq->write_ptr, txq->read_ptr); in iwl_txq_reclaim()
1709 txq->write_ptr = ptr; in iwl_txq_set_q_ptrs()
1710 txq->read_ptr = txq->write_ptr; in iwl_txq_set_q_ptrs()
[all …]
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/cfg/
H A Dsc.c89 .write_ptr = { \
105 .write_ptr = { \
119 .write_ptr = { \
H A Dbz.c92 .write_ptr = { \
108 .write_ptr = { \
122 .write_ptr = { \
H A D9000.c101 .write_ptr = { \
111 .write_ptr = { \
H A D22000.c95 .write_ptr = { \
112 .write_ptr = { \
H A Dax210.c107 .write_ptr = { \
127 .write_ptr = { \
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_queue.c41 pr_debug("Queue Write Pointer: 0x%px\n", q->write_ptr); in print_queue_properties()
58 pr_debug("Queue Write Pointer: 0x%px\n", q->properties.write_ptr); in print_queue()
H A Dkfd_mqd_manager_v11.c211 (uint32_t __user *)p->write_ptr, in load_mqd()
235 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd()
236 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd()
438 m->sdmax_rlcx_rb_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd_sdma()
439 m->sdmax_rlcx_rb_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd_sdma()
H A Dkfd_mqd_manager_vi.c166 (uint32_t __user *)p->write_ptr, in load_mqd()
189 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in __update_mqd()
190 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in __update_mqd()
H A Dkfd_mqd_manager_v10.c157 (uint32_t __user *)p->write_ptr, in load_mqd()
181 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd()
182 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd()
H A Dkfd_packet_manager_vi.c192 lower_32_bits((uint64_t)q->properties.write_ptr); in pm_map_queues_vi()
195 upper_32_bits((uint64_t)q->properties.write_ptr); in pm_map_queues_vi()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Ddtl.c52 struct dtl_entry *write_ptr; member
68 struct dtl_entry *wp = dtlr->write_ptr; in consume_dtle()
84 dtlr->write_ptr = wp; in consume_dtle()
101 dtlr->write_ptr = dtl->buf; in dtl_start()
115 dtlr->write_ptr = NULL; in dtl_stop()
/openbmc/linux/drivers/comedi/
H A Dcomedi_buf.c561 unsigned int write_ptr = async->buf_write_ptr; in comedi_buf_memcpy_to() local
566 if (write_ptr + num_bytes > async->prealloc_bufsz) in comedi_buf_memcpy_to()
567 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to()
571 memcpy(async->prealloc_buf + write_ptr, data, block_size); in comedi_buf_memcpy_to()
576 write_ptr = 0; in comedi_buf_memcpy_to()
/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A Dfarch.c274 unsigned write_ptr; in ef4_farch_notify_tx_desc() local
277 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_notify_tx_desc()
287 unsigned write_ptr; in ef4_farch_push_tx_desc() local
293 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_push_tx_desc()
295 FRF_AZ_TX_DESC_WPTR, write_ptr); in ef4_farch_push_tx_desc()
310 unsigned write_ptr; in ef4_farch_tx_write() local
318 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_tx_write()
319 buffer = &tx_queue->buffer[write_ptr]; in ef4_farch_tx_write()
320 txd = ef4_tx_desc(tx_queue, write_ptr); in ef4_farch_tx_write()
493 unsigned write_ptr; in ef4_farch_rx_write() local
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dfarch.c285 unsigned write_ptr; in efx_farch_notify_tx_desc() local
288 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
298 unsigned write_ptr; in efx_farch_push_tx_desc() local
304 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_push_tx_desc()
306 FRF_AZ_TX_DESC_WPTR, write_ptr); in efx_farch_push_tx_desc()
321 unsigned write_ptr; in efx_farch_tx_write() local
329 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_tx_write()
330 buffer = &tx_queue->buffer[write_ptr]; in efx_farch_tx_write()
331 txd = efx_tx_desc(tx_queue, write_ptr); in efx_farch_tx_write()
487 unsigned write_ptr; in efx_farch_rx_write() local
[all …]
/openbmc/linux/drivers/misc/mei/
H A Dhw-me.c514 char read_ptr, write_ptr; in mei_hbuf_filled_slots() local
519 write_ptr = (char) ((hcsr & H_CBWP) >> 16); in mei_hbuf_filled_slots()
521 return (unsigned char) (write_ptr - read_ptr); in mei_hbuf_filled_slots()
646 char read_ptr, write_ptr; in mei_me_count_full_read_slots() local
652 write_ptr = (char) ((me_csr & ME_CBWP_HRA) >> 16); in mei_me_count_full_read_slots()
653 filled_slots = (unsigned char) (write_ptr - read_ptr); in mei_me_count_full_read_slots()

123