Home
last modified time | relevance | path

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

12

/drivers/net/wireless/intel/iwlwifi/queue/
Dtx.c122 int idx = iwl_txq_get_cmd_index(txq, txq->read_ptr); in iwl_txq_gen2_free_tfd()
697 used = (q->write_ptr - q->read_ptr) & in iwl_txq_space()
784 if (txq->read_ptr == txq->write_ptr && txq->wd_timeout) in iwl_txq_gen2_tx()
808 while (txq->write_ptr != txq->read_ptr) { in iwl_txq_gen2_unmap()
810 txq_id, txq->read_ptr); in iwl_txq_gen2_unmap()
813 int idx = iwl_txq_get_cmd_index(txq, txq->read_ptr); in iwl_txq_gen2_unmap()
820 txq->read_ptr = iwl_txq_inc_wrap(trans, txq->read_ptr); in iwl_txq_gen2_unmap()
917 q->read_ptr = 0; in iwl_queue_init()
983 txq->read_ptr, txq->write_ptr); in iwl_txq_log_scd_error()
996 txq->read_ptr, txq->write_ptr, in iwl_txq_log_scd_error()
[all …]
/drivers/hwtracing/coresight/
Dcoresight-etb10.c289 u32 read_ptr, write_ptr; in etb_dump_hw() local
295 read_ptr = readl_relaxed(drvdata->base + ETB_RAM_READ_POINTER); in etb_dump_hw()
339 writel_relaxed(read_ptr, drvdata->base + ETB_RAM_READ_POINTER); in etb_dump_hw()
435 u32 read_ptr, write_ptr, capacity; in etb_update_buffer() local
456 read_ptr = readl_relaxed(drvdata->base + ETB_RAM_READ_POINTER); in etb_update_buffer()
483 read_ptr = write_ptr; in etb_update_buffer()
485 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->buffer_depth); in etb_update_buffer()
508 read_ptr = (write_ptr + drvdata->buffer_depth) - in etb_update_buffer()
511 if (read_ptr > (drvdata->buffer_depth - 1)) in etb_update_buffer()
512 read_ptr -= drvdata->buffer_depth; in etb_update_buffer()
[all …]
Dcoresight-tmc-etf.c474 u64 read_ptr, write_ptr; in tmc_update_etf_buffer() local
497 read_ptr = tmc_read_rrp(drvdata); in tmc_update_etf_buffer()
509 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->size); in tmc_update_etf_buffer()
528 read_ptr = (write_ptr + drvdata->size) - to_read; in tmc_update_etf_buffer()
530 if (read_ptr > (drvdata->size - 1)) in tmc_update_etf_buffer()
531 read_ptr -= drvdata->size; in tmc_update_etf_buffer()
533 tmc_write_rrp(drvdata, read_ptr); in tmc_update_etf_buffer()
/drivers/net/ethernet/sfc/siena/
Dtx_common.c203 unsigned int stop_index, read_ptr; in efx_dequeue_buffers() local
206 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
208 while (read_ptr != stop_index) { in efx_dequeue_buffers()
209 struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in efx_dequeue_buffers()
214 tx_queue->queue, read_ptr); in efx_dequeue_buffers()
222 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
Dselftest.c177 unsigned int read_ptr[EFX_MAX_CHANNELS]; in efx_test_eventq_irq() local
184 read_ptr[channel->channel] = channel->eventq_read_ptr; in efx_test_eventq_irq()
202 read_ptr[channel->channel]) { in efx_test_eventq_irq()
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c213 while (txq->write_ptr != txq->read_ptr) { in iwl_pcie_txq_unmap()
215 txq_id, txq->read_ptr); in iwl_pcie_txq_unmap()
218 struct sk_buff *skb = txq->entries[txq->read_ptr].skb; in iwl_pcie_txq_unmap()
226 txq->read_ptr = iwl_txq_inc_wrap(trans, txq->read_ptr); in iwl_pcie_txq_unmap()
228 if (txq->read_ptr == txq->write_ptr && in iwl_pcie_txq_unmap()
376 txq->read_ptr = 0; in iwl_trans_pcie_tx_reset()
676 r = iwl_txq_get_cmd_index(txq, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
684 txq->write_ptr, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
690 txq->read_ptr = iwl_txq_inc_wrap(trans, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
699 if (txq->read_ptr == txq->write_ptr) in iwl_pcie_cmdq_reclaim()
[all …]
/drivers/net/ethernet/sfc/
Dtx_common.c215 unsigned int stop_index, read_ptr; in efx_dequeue_buffers() local
218 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
220 while (read_ptr != stop_index) { in efx_dequeue_buffers()
221 struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in efx_dequeue_buffers()
226 tx_queue->queue, read_ptr); in efx_dequeue_buffers()
235 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
Dtx.c563 unsigned int read_ptr; in efx_xmit_done_single() local
566 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
569 struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in efx_xmit_done_single()
588 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
Def100_nic.c252 unsigned int read_ptr; in ef100_ev_process() local
265 read_ptr = channel->eventq_read_ptr; in ef100_ev_process()
269 p_event = efx_event(channel, read_ptr); in ef100_ev_process()
305 ++read_ptr; in ef100_ev_process()
306 if ((read_ptr & channel->eventq_mask) == 0) in ef100_ev_process()
310 channel->eventq_read_ptr = read_ptr; in ef100_ev_process()
Dselftest.c177 unsigned int read_ptr[EFX_MAX_CHANNELS]; in efx_test_eventq_irq() local
184 read_ptr[channel->channel] = channel->eventq_read_ptr; in efx_test_eventq_irq()
202 read_ptr[channel->channel]) { in efx_test_eventq_irq()
/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager_cik.c195 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in __update_mqd()
196 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in __update_mqd()
246 m->sdma_rlc_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
247 m->sdma_rlc_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
362 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_hiq()
363 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_v11.c200 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd()
201 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd()
341 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
342 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
Dkfd_mqd_manager_v10.c174 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd()
175 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd()
340 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
341 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
Dkfd_mqd_manager_v9.c224 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd()
225 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd()
404 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
405 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
Dkfd_mqd_manager_vi.c188 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in __update_mqd()
189 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in __update_mqd()
380 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
381 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
/drivers/w1/masters/
Dds2482.c148 static inline int ds2482_select_register(struct ds2482_data *pdev, u8 read_ptr) in ds2482_select_register() argument
150 if (pdev->read_prt != read_ptr) { in ds2482_select_register()
153 read_ptr) < 0) in ds2482_select_register()
156 pdev->read_prt = read_ptr; in ds2482_select_register()
/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()
Dselftest.c176 unsigned int read_ptr[EF4_MAX_CHANNELS]; in ef4_test_eventq_irq() local
183 read_ptr[channel->channel] = channel->eventq_read_ptr; in ef4_test_eventq_irq()
201 read_ptr[channel->channel]) { in ef4_test_eventq_irq()
/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()
/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 …]
D4965-mac.c2184 il->txq[txq_id].q.read_ptr = (ssn_idx & 0xff); in il4965_txq_agg_enable()
2296 il->txq[txq_id].q.read_ptr = (ssn_idx & 0xff); in il4965_txq_agg_disable()
2314 int write_ptr, read_ptr; in il4965_tx_agg_stop() local
2352 read_ptr = il->txq[txq_id].q.read_ptr; in il4965_tx_agg_stop()
2355 if (write_ptr != read_ptr) { in il4965_tx_agg_stop()
2400 q->read_ptr == q->write_ptr) { in il4965_txq_check_empty()
2463 q->write_ptr, q->read_ptr); in il4965_tx_queue_reclaim()
2467 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il4965_tx_queue_reclaim()
2468 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il4965_tx_queue_reclaim()
2470 skb = txq->skbs[txq->q.read_ptr]; in il4965_tx_queue_reclaim()
[all …]
/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()
641 char read_ptr, write_ptr; in mei_me_count_full_read_slots() local
646 read_ptr = (char) ((me_csr & ME_CBRP_HRA) >> 8); in mei_me_count_full_read_slots()
648 filled_slots = (unsigned char) (write_ptr - read_ptr); in mei_me_count_full_read_slots()
/drivers/gpu/drm/i915/gvt/
Dexeclist.h90 u32 read_ptr :3; member

12