Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/
Dtx.c88 used = (q->write_ptr - q->read_ptr) & (TFD_QUEUE_SIZE_MAX - 1); in iwl_queue_space()
117 q->write_ptr = 0; in iwl_queue_init()
159 if (txq->q.read_ptr == txq->q.write_ptr) { in iwl_pcie_txq_stuck_timer()
168 txq->q.read_ptr, txq->q.write_ptr); in iwl_pcie_txq_stuck_timer()
211 int write_ptr = txq->q.write_ptr; in iwl_pcie_txq_update_byte_cnt_tbl() local
218 (void *) txq->entries[txq->q.write_ptr].cmd->payload; in iwl_pcie_txq_update_byte_cnt_tbl()
222 WARN_ON(len > 0xFFF || write_ptr >= TFD_QUEUE_SIZE_MAX); in iwl_pcie_txq_update_byte_cnt_tbl()
244 scd_bc_tbl[txq_id].tfd_offset[write_ptr] = bc_ent; in iwl_pcie_txq_update_byte_cnt_tbl()
246 if (write_ptr < TFD_QUEUE_SIZE_BC_DUP) in iwl_pcie_txq_update_byte_cnt_tbl()
248 tfd_offset[TFD_QUEUE_SIZE_MAX + write_ptr] = bc_ent; in iwl_pcie_txq_update_byte_cnt_tbl()
[all …]
Dinternal.h164 int write_ptr; /* 1-st empty entry (index) host_w*/ member
470 return q->write_ptr >= q->read_ptr ? in iwl_queue_used()
471 (i >= q->read_ptr && i < q->write_ptr) : in iwl_queue_used()
472 !(i < q->read_ptr && i >= q->write_ptr); in iwl_queue_used()
Dtrans.c1536 if (txq->q.read_ptr == txq->q.write_ptr) in iwl_trans_pcie_freeze_txq_timer()
1594 wr_ptr = ACCESS_ONCE(q->write_ptr); in iwl_trans_pcie_wait_txq_empty()
1596 while (q->read_ptr != ACCESS_ONCE(q->write_ptr) && in iwl_trans_pcie_wait_txq_empty()
1599 u8 write_ptr = ACCESS_ONCE(q->write_ptr); in iwl_trans_pcie_wait_txq_empty() local
1601 if (WARN_ONCE(wr_ptr != write_ptr, in iwl_trans_pcie_wait_txq_empty()
1603 wr_ptr, write_ptr)) in iwl_trans_pcie_wait_txq_empty()
1608 if (q->read_ptr != q->write_ptr) { in iwl_trans_pcie_wait_txq_empty()
1621 txq->q.read_ptr, txq->q.write_ptr); in iwl_trans_pcie_wait_txq_empty()
1832 cnt, q->read_ptr, q->write_ptr, in iwl_dbgfs_tx_queue_read()
2292 ptr = cmdq->q.write_ptr; in iwl_trans_pcie_dump_data()
[all …]
/linux-4.1.27/arch/powerpc/platforms/pseries/
Ddtl.c62 struct dtl_entry *write_ptr; member
79 struct dtl_entry *wp = dtlr->write_ptr; in consume_dtle()
95 dtlr->write_ptr = wp; in consume_dtle()
112 dtlr->write_ptr = dtl->buf; in dtl_start()
127 dtlr->write_ptr = NULL; in dtl_stop()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_queue.c40 pr_debug("Queue Write Pointer: 0x%p\n", q->write_ptr); in print_queue_properties()
57 pr_debug("Queue Write Pointer: 0x%p\n", q->properties.write_ptr); in print_queue()
Dkfd_kernel_queue.c120 prop.write_ptr = (uint32_t *) kq->wptr_gpu_addr; in initialize()
272 kq->pending_wptr = *kq->queue->properties.write_ptr; in rollback_packet()
Dkfd_chardev.c203 q_properties->write_ptr = (uint32_t *) args->write_pointer_address; in set_queue_properties_from_user()
236 (uint64_t) q_properties->write_ptr); in set_queue_properties_from_user()
Dkfd_packet_manager.c228 lower_32_bits((uint64_t)q->properties.write_ptr); in pm_create_map_queue()
231 upper_32_bits((uint64_t)q->properties.write_ptr); in pm_create_map_queue()
Dkfd_priv.h288 uint32_t *write_ptr; member
Dkfd_device_queue_manager.c264 q->queue, (uint32_t __user *) q->properties.write_ptr); in create_compute_queue_nocpsch()
/linux-4.1.27/drivers/hwtracing/coresight/
Dcoresight-etb10.c193 u32 read_ptr, write_ptr; in etb_dump_hw() local
199 write_ptr = readl_relaxed(drvdata->base + ETB_RAM_WRITE_POINTER); in etb_dump_hw()
201 frame_off = write_ptr % ETB_FRAME_SIZE_WORDS; in etb_dump_hw()
206 (unsigned long)write_ptr); in etb_dump_hw()
209 write_ptr += frame_endoff; in etb_dump_hw()
216 writel_relaxed(write_ptr, drvdata->base + ETB_RAM_READ_POINTER); in etb_dump_hw()
/linux-4.1.27/drivers/staging/comedi/
Dcomedi_buf.c428 unsigned int write_ptr = async->buf_write_ptr; in comedi_buf_memcpy_to() local
433 if (write_ptr + num_bytes > async->prealloc_bufsz) in comedi_buf_memcpy_to()
434 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to()
438 memcpy(async->prealloc_buf + write_ptr, data, block_size); in comedi_buf_memcpy_to()
443 write_ptr = 0; in comedi_buf_memcpy_to()
/linux-4.1.27/drivers/misc/mei/
Dhw-me.c400 char read_ptr, write_ptr; in mei_hbuf_filled_slots() local
405 write_ptr = (char) ((hcsr & H_CBWP) >> 16); in mei_hbuf_filled_slots()
407 return (unsigned char) (write_ptr - read_ptr); in mei_hbuf_filled_slots()
517 char read_ptr, write_ptr; in mei_me_count_full_read_slots() local
523 write_ptr = (char) ((me_csr & ME_CBWP_HRA) >> 16); in mei_me_count_full_read_slots()
524 filled_slots = (unsigned char) (write_ptr - read_ptr); in mei_me_count_full_read_slots()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dfarch.c283 unsigned write_ptr; in efx_farch_notify_tx_desc() local
286 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
287 EFX_POPULATE_DWORD_1(reg, FRF_AZ_TX_DESC_WPTR_DWORD, write_ptr); in efx_farch_notify_tx_desc()
296 unsigned write_ptr; in efx_farch_push_tx_desc() local
302 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_push_tx_desc()
304 FRF_AZ_TX_DESC_WPTR, write_ptr); in efx_farch_push_tx_desc()
319 unsigned write_ptr; in efx_farch_tx_write() local
327 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_tx_write()
328 buffer = &tx_queue->buffer[write_ptr]; in efx_farch_tx_write()
329 txd = efx_tx_desc(tx_queue, write_ptr); in efx_farch_tx_write()
[all …]
Def10.c1221 unsigned int write_ptr; in efx_ef10_push_tx_desc() local
1224 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
1225 EFX_POPULATE_OWORD_1(reg, ERF_DZ_TX_DESC_WPTR, write_ptr); in efx_ef10_push_tx_desc()
1331 unsigned int write_ptr; in efx_ef10_notify_tx_desc() local
1334 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
1335 EFX_POPULATE_DWORD_1(reg, ERF_DZ_TX_DESC_WPTR_DWORD, write_ptr); in efx_ef10_notify_tx_desc()
1344 unsigned int write_ptr; in efx_ef10_tx_write() local
1352 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_tx_write()
1353 buffer = &tx_queue->buffer[write_ptr]; in efx_ef10_tx_write()
1354 txd = efx_tx_desc(tx_queue, write_ptr); in efx_ef10_tx_write()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D4965.c1554 int write_ptr = txq->q.write_ptr; in il4965_txq_update_byte_cnt_tbl() local
1558 WARN_ON(len > 0xFFF || write_ptr >= TFD_QUEUE_SIZE_MAX); in il4965_txq_update_byte_cnt_tbl()
1562 scd_bc_tbl[txq_id].tfd_offset[write_ptr] = bc_ent; in il4965_txq_update_byte_cnt_tbl()
1565 if (write_ptr < TFD_QUEUE_SIZE_BC_DUP) in il4965_txq_update_byte_cnt_tbl()
1566 scd_bc_tbl[txq_id].tfd_offset[TFD_QUEUE_SIZE_MAX + write_ptr] = in il4965_txq_update_byte_cnt_tbl()
Dcommon.c2747 il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8)); in il_txq_update_write_ptr()
2755 _il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8)); in il_txq_update_write_ptr()
2772 while (q->write_ptr != q->read_ptr) { in il_tx_queue_unmap()
2833 while (q->read_ptr != q->write_ptr) { in il_cmd_queue_unmap()
2921 int s = q->read_ptr - q->write_ptr; in il_queue_space()
2923 if (q->read_ptr > q->write_ptr) in il_queue_space()
2966 q->write_ptr = q->read_ptr = 0; in il_queue_init()
3166 idx = il_get_cmd_idx(q, q->write_ptr, cmd->flags & CMD_SIZE_HUGE); in il_enqueue_hcmd()
3190 cpu_to_le16(QUEUE_TO_SEQ(il->cmd_queue) | IDX_TO_SEQ(q->write_ptr)); in il_enqueue_hcmd()
3205 q->write_ptr, idx, il->cmd_queue); in il_enqueue_hcmd()
[all …]
D4965-mac.c1782 txq->skbs[q->write_ptr] = skb; in il4965_tx_skb()
1785 out_cmd = txq->cmd[q->write_ptr]; in il4965_tx_skb()
1786 out_meta = &txq->meta[q->write_ptr]; in il4965_tx_skb()
1800 (QUEUE_TO_SEQ(txq_id) | IDX_TO_SEQ(q->write_ptr))); in il4965_tx_skb()
1892 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd); in il4965_tx_skb()
2205 il->txq[txq_id].q.write_ptr = (ssn_idx & 0xff); in il4965_txq_agg_enable()
2317 il->txq[txq_id].q.write_ptr = (ssn_idx & 0xff); in il4965_txq_agg_disable()
2334 int write_ptr, read_ptr; in il4965_tx_agg_stop() local
2371 write_ptr = il->txq[txq_id].q.write_ptr; in il4965_tx_agg_stop()
2375 if (write_ptr != read_ptr) { in il4965_tx_agg_stop()
[all …]
Dcommon.h134 int write_ptr; /* 1-st empty entry (idx) host_w */ member
867 return q->write_ptr >= q->read_ptr ? (i >= q->read_ptr && in il_queue_used()
868 i < q->write_ptr) : !(i < in il_queue_used()
872 write_ptr); in il_queue_used()
D3945-mac.c542 idx = il_get_cmd_idx(q, q->write_ptr, 0); in il3945_tx_skb()
544 txq->skbs[q->write_ptr] = skb; in il3945_tx_skb()
562 (QUEUE_TO_SEQ(txq_id) | IDX_TO_SEQ(q->write_ptr))); in il3945_tx_skb()
639 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd); in il3945_tx_skb()
D3945.c329 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr); in il3945_hdl_tx()
621 tfd = &tfd_tmp[q->write_ptr]; in il3945_hw_txq_attach_buf_to_tfd()
Ddebug.c876 q->read_ptr, q->write_ptr, in il_dbgfs_tx_queue_read()
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.h247 void *write_ptr,unsigned int write_len,
/linux-4.1.27/arch/mips/include/asm/ip32/
Dmace.h142 volatile unsigned long write_ptr; /* channel write pointer */ member
/linux-4.1.27/sound/usb/misc/
Dua101.c362 unsigned int frames, write_ptr; in capture_urb_complete() local
395 write_ptr = ua->rate_feedback_start; in capture_urb_complete()
396 add_with_wraparound(ua, &write_ptr, ua->rate_feedback_count); in capture_urb_complete()
397 ua->rate_feedback[write_ptr] = frames; in capture_urb_complete()
/linux-4.1.27/sound/mips/
Dsgio2audio.c422 dst_pos = readq(&mace->perif.audio.chan[ch].write_ptr); in snd_sgio2audio_dma_push_frag()
447 writeq(dst_pos, &mace->perif.audio.chan[ch].write_ptr); /* in bytes */ in snd_sgio2audio_dma_push_frag()
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.h545 unsigned int write_ptr; /* Tx ring write pointer SW copy */ member
Dbcmgenet.c948 tx_cb_ptr += ring->write_ptr - ring->cb_ptr; in bcmgenet_get_txcb()
951 if (ring->write_ptr == ring->end_ptr) in bcmgenet_get_txcb()
952 ring->write_ptr = ring->cb_ptr; in bcmgenet_get_txcb()
954 ring->write_ptr++; in bcmgenet_get_txcb()
1798 ring->write_ptr = start_ptr; in bcmgenet_init_tx_ring()