Home
last modified time | relevance | path

Searched refs:read_ptr (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.6.21/sound/soc/intel/avs/
Dapl.c68 if (layout.read_ptr > layout.write_ptr) { in apl_log_buffer_status()
69 avs_dump_fw_log(adev, buf + layout.read_ptr, in apl_log_buffer_status()
70 apl_log_payload_size(adev) - layout.read_ptr); in apl_log_buffer_status()
71 layout.read_ptr = 0; 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()
93 if (layout->read_ptr != layout->write_ptr) in apl_wait_log_entry()
129 if (!apl_is_entry_stackdump(buf + layout.read_ptr)) { in apl_coredump()
148 if (layout.read_ptr > layout.write_ptr) { in apl_coredump()
149 count = apl_log_payload_size(adev) - layout.read_ptr; in apl_coredump()
150 memcpy_fromio(pos + offset, buf + layout.read_ptr, count); in apl_coredump()
[all …]
/linux-6.6.21/sound/soc/sof/
Dipc4-mtrace.c191 u32 log_buffer_offset, log_buffer_size, read_ptr, write_ptr; in sof_ipc4_mtrace_dfs_read() local
223 read_ptr = core_data->host_read_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()
248 sof_mailbox_read(sdev, log_buffer_offset + read_ptr, log_buffer, avail); in sof_ipc4_mtrace_dfs_read()
251 sof_mailbox_read(sdev, log_buffer_offset + read_ptr, log_buffer, in sof_ipc4_mtrace_dfs_read()
271 read_ptr += avail; in sof_ipc4_mtrace_dfs_read()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/queue/
Dtx.c167 int idx = iwl_txq_get_cmd_index(txq, txq->read_ptr); in iwl_txq_gen2_free_tfd()
713 used = (q->write_ptr - q->read_ptr) & in iwl_txq_space()
800 if (txq->read_ptr == txq->write_ptr && txq->wd_timeout) in iwl_txq_gen2_tx()
824 while (txq->write_ptr != txq->read_ptr) { in iwl_txq_gen2_unmap()
826 txq_id, txq->read_ptr); in iwl_txq_gen2_unmap()
829 int idx = iwl_txq_get_cmd_index(txq, txq->read_ptr); in iwl_txq_gen2_unmap()
836 txq->read_ptr = iwl_txq_inc_wrap(trans, txq->read_ptr); in iwl_txq_gen2_unmap()
933 q->read_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()
[all …]
/linux-6.6.21/drivers/hwtracing/coresight/
Dcoresight-etb10.c290 u32 read_ptr, write_ptr; in etb_dump_hw() local
296 read_ptr = readl_relaxed(drvdata->base + ETB_RAM_READ_POINTER); in etb_dump_hw()
340 writel_relaxed(read_ptr, drvdata->base + ETB_RAM_READ_POINTER); in etb_dump_hw()
436 u32 read_ptr, write_ptr, capacity; in etb_update_buffer() local
457 read_ptr = readl_relaxed(drvdata->base + ETB_RAM_READ_POINTER); in etb_update_buffer()
484 read_ptr = write_ptr; in etb_update_buffer()
486 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->buffer_depth); in etb_update_buffer()
509 read_ptr = (write_ptr + drvdata->buffer_depth) - in etb_update_buffer()
512 if (read_ptr > (drvdata->buffer_depth - 1)) in etb_update_buffer()
513 read_ptr -= drvdata->buffer_depth; in etb_update_buffer()
[all …]
Dcoresight-tmc-etf.c476 u64 read_ptr, write_ptr; in tmc_update_etf_buffer() local
499 read_ptr = tmc_read_rrp(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()
532 if (read_ptr > (drvdata->size - 1)) in tmc_update_etf_buffer()
533 read_ptr -= drvdata->size; in tmc_update_etf_buffer()
535 tmc_write_rrp(drvdata, read_ptr); in tmc_update_etf_buffer()
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Dtx_common.c204 unsigned int stop_index, read_ptr; in efx_dequeue_buffers() local
207 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
209 while (read_ptr != stop_index) { in efx_dequeue_buffers()
210 struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in efx_dequeue_buffers()
215 tx_queue->queue, read_ptr); in efx_dequeue_buffers()
223 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager_cik.c194 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in __update_mqd()
195 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in __update_mqd()
238 m->sdma_rlc_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
239 m->sdma_rlc_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
354 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_hiq()
355 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_hiq()
Dkfd_queue.c40 pr_debug("Queue Read Pointer: 0x%px\n", q->read_ptr); in print_queue_properties()
57 pr_debug("Queue Read Pointer: 0x%px\n", q->properties.read_ptr); in print_queue()
Dkfd_mqd_manager_v10.c179 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd()
180 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd()
376 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
377 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
Dkfd_mqd_manager_vi.c187 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in __update_mqd()
188 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in __update_mqd()
372 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
373 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
Dkfd_mqd_manager_v11.c233 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd()
234 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd()
436 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
437 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
Dkfd_mqd_manager_v9.c253 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd()
254 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd()
471 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
472 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
/linux-6.6.21/drivers/net/ethernet/sfc/
Dtx_common.c216 unsigned int stop_index, read_ptr; in efx_dequeue_buffers() local
219 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
221 while (read_ptr != stop_index) { in efx_dequeue_buffers()
222 struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in efx_dequeue_buffers()
227 tx_queue->queue, read_ptr); in efx_dequeue_buffers()
236 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
Dtx.c558 unsigned int read_ptr; in efx_xmit_done_single() local
561 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
564 struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in efx_xmit_done_single()
583 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
Def100_nic.c263 unsigned int read_ptr; in ef100_ev_process() local
276 read_ptr = channel->eventq_read_ptr; in ef100_ev_process()
280 p_event = efx_event(channel, read_ptr); in ef100_ev_process()
316 ++read_ptr; in ef100_ev_process()
317 if ((read_ptr & channel->eventq_mask) == 0) in ef100_ev_process()
321 channel->eventq_read_ptr = read_ptr; in ef100_ev_process()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c197 while (txq->write_ptr != txq->read_ptr) { in iwl_pcie_txq_unmap()
199 txq_id, txq->read_ptr); in iwl_pcie_txq_unmap()
202 struct sk_buff *skb = txq->entries[txq->read_ptr].skb; in iwl_pcie_txq_unmap()
210 txq->read_ptr = iwl_txq_inc_wrap(trans, txq->read_ptr); in iwl_pcie_txq_unmap()
212 if (txq->read_ptr == txq->write_ptr && in iwl_pcie_txq_unmap()
360 txq->read_ptr = 0; in iwl_trans_pcie_tx_reset()
660 r = iwl_txq_get_cmd_index(txq, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
668 txq->write_ptr, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
674 txq->read_ptr = iwl_txq_inc_wrap(trans, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
683 if (txq->read_ptr == txq->write_ptr) in iwl_pcie_cmdq_reclaim()
[all …]
/linux-6.6.21/drivers/w1/masters/
Dds2482.c145 static inline int ds2482_select_register(struct ds2482_data *pdev, u8 read_ptr) in ds2482_select_register() argument
147 if (pdev->read_prt != read_ptr) { in ds2482_select_register()
150 read_ptr) < 0) in ds2482_select_register()
153 pdev->read_prt = read_ptr; in ds2482_select_register()
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Dtx.c361 unsigned int stop_index, read_ptr; in ef4_dequeue_buffers() local
364 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
366 while (read_ptr != stop_index) { in ef4_dequeue_buffers()
367 struct ef4_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in ef4_dequeue_buffers()
373 tx_queue->queue, read_ptr); in ef4_dequeue_buffers()
381 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
/linux-6.6.21/drivers/comedi/
Dcomedi_buf.c585 unsigned int read_ptr = async->buf_read_ptr; in comedi_buf_memcpy_from() local
590 src = async->prealloc_buf + read_ptr; in comedi_buf_memcpy_from()
592 if (nbytes >= async->prealloc_bufsz - read_ptr) in comedi_buf_memcpy_from()
593 block_size = async->prealloc_bufsz - read_ptr; in comedi_buf_memcpy_from()
600 read_ptr = 0; in comedi_buf_memcpy_from()
/linux-6.6.21/tools/testing/selftests/mm/
Dprotection_keys.c954 __attribute__((noinline)) int read_ptr(int *ptr) in read_ptr() function
1021 ptr_contents = read_ptr(ptr); in test_read_of_write_disabled_region()
1032 ptr_contents = read_ptr(ptr); in test_read_of_access_disabled_region()
1044 ptr_contents = read_ptr(ptr); in test_read_of_access_disabled_region_with_page_already_mapped()
1049 ptr_contents = read_ptr(ptr); in test_read_of_access_disabled_region_with_page_already_mapped()
1425 peek_result = read_ptr(ptr); in test_ptrace_of_child()
1435 peek_result = read_ptr(plain_ptr); in test_ptrace_of_child()
1479 ptr_contents = read_ptr(p1); in test_executing_on_unreadable_memory()
1508 ptr_contents = read_ptr(p1); in test_implicit_mprotect_exec_only_memory()
1541 ptr_contents = read_ptr(p1); in test_implicit_mprotect_exec_only_memory()
Dpkey-x86.h149 ptr_contents = read_ptr(p1); in expect_fault_on_read_execonly_key()
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/
D3945.c280 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il3945_tx_queue_reclaim()
281 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il3945_tx_queue_reclaim()
283 skb = txq->skbs[txq->q.read_ptr]; in il3945_tx_queue_reclaim()
285 txq->skbs[txq->q.read_ptr] = NULL; in il3945_tx_queue_reclaim()
314 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr); in il3945_hdl_tx()
332 info = IEEE80211_SKB_CB(txq->skbs[txq->q.read_ptr]); in il3945_hdl_tx()
639 int idx = txq->q.read_ptr; in il3945_hw_txq_free_tfd()
668 struct sk_buff *skb = txq->skbs[txq->q.read_ptr]; in il3945_hw_txq_free_tfd()
673 txq->skbs[txq->q.read_ptr] = NULL; in il3945_hw_txq_free_tfd()
Dcommon.c2755 while (q->write_ptr != q->read_ptr) { in il_tx_queue_unmap()
2757 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_tx_queue_unmap()
2818 while (q->read_ptr != q->write_ptr) { in il_cmd_queue_unmap()
2819 i = il_get_cmd_idx(q, q->read_ptr, 0); in il_cmd_queue_unmap()
2829 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_cmd_queue_unmap()
2907 int s = q->read_ptr - q->write_ptr; in il_queue_space()
2909 if (q->read_ptr > q->write_ptr) in il_queue_space()
2952 q->write_ptr = q->read_ptr = 0; in il_queue_init()
3244 q->write_ptr, q->read_ptr); in il_hcmd_queue_reclaim()
3248 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il_hcmd_queue_reclaim()
[all …]
/linux-6.6.21/drivers/misc/mei/
Dhw-me.c514 char read_ptr, write_ptr; in mei_hbuf_filled_slots() local
518 read_ptr = (char) ((hcsr & H_CBRP) >> 8); 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
651 read_ptr = (char) ((me_csr & ME_CBRP_HRA) >> 8); in mei_me_count_full_read_slots()
653 filled_slots = (unsigned char) (write_ptr - read_ptr); in mei_me_count_full_read_slots()
/linux-6.6.21/drivers/gpu/drm/i915/gvt/
Dexeclist.h90 u32 read_ptr :3; member

123