Home
last modified time | relevance | path

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

12

/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c110 IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq_id, txq->write_ptr); in iwl_pcie_txq_inc_wr_ptr()
113 txq->write_ptr | (txq_id << 8)); in iwl_pcie_txq_inc_wr_ptr()
157 tfd = (u8 *)txq->tfds + trans->txqs.tfd.size * txq->write_ptr; in iwl_pcie_txq_build_tfd()
213 while (txq->write_ptr != txq->read_ptr) { in iwl_pcie_txq_unmap()
228 if (txq->read_ptr == txq->write_ptr && in iwl_pcie_txq_unmap()
377 txq->write_ptr = 0; in iwl_trans_pcie_tx_reset()
684 txq->write_ptr, txq->read_ptr); in iwl_pcie_cmdq_reclaim()
694 idx, txq->write_ptr, r); in iwl_pcie_cmdq_reclaim()
699 if (txq->read_ptr == txq->write_ptr) in iwl_pcie_cmdq_reclaim()
795 !((ssn - txq->write_ptr) & 0x3f) && in iwl_trans_pcie_txq_enable()
[all …]
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()
Dtrans.c2311 txq->write_ptr | (i << 8)); in iwl_trans_pcie_block_txq_ptrs()
2361 wr_ptr = READ_ONCE(txq->write_ptr); in iwl_trans_pcie_wait_txq_empty()
2363 while ((txq->read_ptr != READ_ONCE(txq->write_ptr) || in iwl_trans_pcie_wait_txq_empty()
2367 u8 write_ptr = READ_ONCE(txq->write_ptr); in iwl_trans_pcie_wait_txq_empty() local
2374 if (WARN_ONCE(wr_ptr != write_ptr && !overflow_tx, in iwl_trans_pcie_wait_txq_empty()
2376 wr_ptr, write_ptr)) in iwl_trans_pcie_wait_txq_empty()
2378 wr_ptr = write_ptr; in iwl_trans_pcie_wait_txq_empty()
2388 if (txq->read_ptr != txq->write_ptr) { in iwl_trans_pcie_wait_txq_empty()
2594 txq->read_ptr, txq->write_ptr, in iwl_dbgfs_tx_queue_seq_show()
2880 u32 write_ptr_addr, wrap_cnt_addr, write_ptr, wrap_cnt; in iwl_dbgfs_monitor_data_read() local
[all …]
/drivers/hwtracing/coresight/
Dcoresight-etb10.c289 u32 read_ptr, write_ptr; in etb_dump_hw() local
296 write_ptr = readl_relaxed(drvdata->base + ETB_RAM_WRITE_POINTER); in etb_dump_hw()
298 frame_off = write_ptr % ETB_FRAME_SIZE_WORDS; in etb_dump_hw()
303 (unsigned long)write_ptr); in etb_dump_hw()
306 write_ptr += frame_endoff; in etb_dump_hw()
313 writel_relaxed(write_ptr, drvdata->base + ETB_RAM_READ_POINTER); in etb_dump_hw()
435 u32 read_ptr, write_ptr, capacity; in etb_update_buffer() local
457 write_ptr = readl_relaxed(drvdata->base + ETB_RAM_WRITE_POINTER); in etb_update_buffer()
464 if (write_ptr % ETB_FRAME_SIZE_WORDS) { in etb_update_buffer()
467 (unsigned long)write_ptr); in etb_update_buffer()
[all …]
Dcoresight-tmc-etf.c474 u64 read_ptr, write_ptr; in tmc_update_etf_buffer() local
498 write_ptr = tmc_read_rwp(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()
/drivers/net/wireless/intel/iwlwifi/queue/
Dtx.c25 int idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_pcie_gen2_update_byte_tbl()
72 IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq->id, txq->write_ptr); in iwl_txq_inc_wr_ptr()
78 iwl_write32(trans, HBUS_TARG_WRPTR, txq->write_ptr | (txq->id << 16)); in iwl_txq_inc_wr_ptr()
463 int idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_txq_gen2_build_tx_amsdu()
551 int idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_txq_gen2_build_tx()
644 int idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_txq_gen2_build_tfd()
697 used = (q->write_ptr - q->read_ptr) & in iwl_txq_space()
747 idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_txq_gen2_tx()
784 if (txq->read_ptr == txq->write_ptr && txq->wd_timeout) in iwl_txq_gen2_tx()
788 txq->write_ptr = iwl_txq_inc_wrap(trans, txq->write_ptr); in iwl_txq_gen2_tx()
[all …]
/drivers/net/ethernet/sfc/
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()
/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager_v11.c179 (uint32_t __user *)p->write_ptr, in load_mqd()
202 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd()
203 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd()
343 m->sdmax_rlcx_rb_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd_sdma()
344 m->sdmax_rlcx_rb_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd_sdma()
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()
Dkfd_mqd_manager_v10.c153 (uint32_t __user *)p->write_ptr, in load_mqd()
176 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd()
177 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd()
Dkfd_mqd_manager_v9.c205 (uint32_t __user *)p->write_ptr, in load_mqd()
226 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd()
227 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd()
Dkfd_mqd_manager_vi.c167 (uint32_t __user *)p->write_ptr, in load_mqd()
190 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in __update_mqd()
191 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in __update_mqd()
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()
Dkfd_packet_manager_v9.c246 lower_32_bits((uint64_t)q->properties.write_ptr); in pm_map_queues_v9()
249 upper_32_bits((uint64_t)q->properties.write_ptr); in pm_map_queues_v9()
/drivers/comedi/
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()
/drivers/net/wireless/intel/iwlwifi/cfg/
D22000.c203 .write_ptr = { \
219 .write_ptr = { \
238 .write_ptr = { \
280 .write_ptr = { \
296 .write_ptr = { \
310 .write_ptr = { \
D9000.c101 .write_ptr = { \
111 .write_ptr = { \
/drivers/net/ethernet/sfc/falcon/
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()
278 EF4_POPULATE_DWORD_1(reg, FRF_AZ_TX_DESC_WPTR_DWORD, write_ptr); 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()
[all …]
/drivers/net/ethernet/sfc/siena/
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()
289 EFX_POPULATE_DWORD_1(reg, FRF_AZ_TX_DESC_WPTR_DWORD, write_ptr); 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()
[all …]
/drivers/misc/mei/
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()
641 char read_ptr, write_ptr; in mei_me_count_full_read_slots() local
647 write_ptr = (char) ((me_csr & ME_CBWP_HRA) >> 16); 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.c141 write_pointer = ctx_status_ptr.write_ptr; in emulate_csb_update()
155 ctx_status_ptr.write_ptr = write_pointer; in emulate_csb_update()
518 ctx_status_ptr.write_ptr = 0x7; in init_vgpu_execlist()
Dexeclist.h88 u32 write_ptr :3; member
/drivers/net/wireless/intel/iwlegacy/
D4965.c1540 int write_ptr = txq->q.write_ptr; in il4965_txq_update_byte_cnt_tbl() local
1544 WARN_ON(len > 0xFFF || write_ptr >= TFD_QUEUE_SIZE_MAX); in il4965_txq_update_byte_cnt_tbl()
1548 scd_bc_tbl[txq_id].tfd_offset[write_ptr] = bc_ent; in il4965_txq_update_byte_cnt_tbl()
1551 if (write_ptr < TFD_QUEUE_SIZE_BC_DUP) in il4965_txq_update_byte_cnt_tbl()
1552 scd_bc_tbl[txq_id].tfd_offset[TFD_QUEUE_SIZE_MAX + write_ptr] = in il4965_txq_update_byte_cnt_tbl()
Dcommon.c2730 il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8)); in il_txq_update_write_ptr()
2738 _il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8)); in il_txq_update_write_ptr()
2755 while (q->write_ptr != q->read_ptr) { in il_tx_queue_unmap()
2818 while (q->read_ptr != q->write_ptr) { 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()
3153 idx = il_get_cmd_idx(q, q->write_ptr, cmd->flags & CMD_SIZE_HUGE); in il_enqueue_hcmd()
3177 cpu_to_le16(QUEUE_TO_SEQ(il->cmd_queue) | IDX_TO_SEQ(q->write_ptr)); in il_enqueue_hcmd()
3189 q->write_ptr, idx, il->cmd_queue); in il_enqueue_hcmd()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.h234 void *write_ptr,unsigned int write_len,

12