/drivers/net/wireless/intel/iwlwifi/queue/ |
D | tx.c | 122 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/ |
D | coresight-etb10.c | 289 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 …]
|
D | coresight-tmc-etf.c | 474 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/ |
D | tx_common.c | 203 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()
|
D | selftest.c | 177 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/ |
D | tx.c | 213 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/ |
D | tx_common.c | 215 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()
|
D | tx.c | 563 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()
|
D | ef100_nic.c | 252 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()
|
D | selftest.c | 177 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/ |
D | kfd_mqd_manager_cik.c | 195 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()
|
D | kfd_queue.c | 40 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()
|
D | kfd_mqd_manager_v11.c | 200 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()
|
D | kfd_mqd_manager_v10.c | 174 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()
|
D | kfd_mqd_manager_v9.c | 224 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()
|
D | kfd_mqd_manager_vi.c | 188 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/ |
D | ds2482.c | 148 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/ |
D | tx.c | 361 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()
|
D | selftest.c | 176 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/ |
D | comedi_buf.c | 585 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/ |
D | 3945.c | 280 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()
|
D | common.c | 2755 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 …]
|
D | 4965-mac.c | 2184 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/ |
D | hw-me.c | 514 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/ |
D | execlist.h | 90 u32 read_ptr :3; member
|