/linux-3.4.99/drivers/net/wireless/iwlwifi/ |
D | iwl-trans-pcie-tx.c | 259 int rd_ptr = txq->q.read_ptr; in iwlagn_txq_free_tfd() 345 int s = q->read_ptr - q->write_ptr; in iwl_queue_space() 347 if (q->read_ptr > q->write_ptr) in iwl_queue_space() 386 q->write_ptr = q->read_ptr = 0; in iwl_queue_init() 398 int read_ptr = txq->q.read_ptr; in iwlagn_txq_inval_byte_cnt_tbl() local 402 (struct iwl_tx_cmd *) txq->cmd[txq->q.read_ptr]->payload; in iwlagn_txq_inval_byte_cnt_tbl() 404 WARN_ON(read_ptr >= TFD_QUEUE_SIZE_MAX); in iwlagn_txq_inval_byte_cnt_tbl() 410 scd_bc_tbl[txq_id].tfd_offset[read_ptr] = bc_ent; in iwlagn_txq_inval_byte_cnt_tbl() 412 if (read_ptr < TFD_QUEUE_SIZE_BC_DUP) in iwlagn_txq_inval_byte_cnt_tbl() 414 tfd_offset[TFD_QUEUE_SIZE_MAX + read_ptr] = bc_ent; in iwlagn_txq_inval_byte_cnt_tbl() [all …]
|
D | iwl-trans-pcie-int.h | 180 int read_ptr; /* last used entry (index) host_r*/ member 489 return q->write_ptr >= q->read_ptr ? in iwl_queue_used() 490 (i >= q->read_ptr && i < q->write_ptr) : in iwl_queue_used() 491 !(i < q->read_ptr && i >= q->write_ptr); in iwl_queue_used()
|
D | iwl-trans-pcie.c | 432 while (q->write_ptr != q->read_ptr) { in iwl_tx_queue_unmap() 434 q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd); in iwl_tx_queue_unmap() 1600 if (txq->q.read_ptr != tfd_num) { in iwl_trans_pcie_reclaim() 1602 txq_id, iwl_get_queue_ac(txq), txq->q.read_ptr, in iwl_trans_pcie_reclaim() 1707 while (q->read_ptr != q->write_ptr && !time_after(jiffies, in iwl_trans_pcie_wait_tx_queue_empty() 1711 if (q->read_ptr != q->write_ptr) { in iwl_trans_pcie_wait_tx_queue_empty() 1731 if (q->read_ptr == q->write_ptr) { in iwl_trans_pcie_check_stuck_queue() 1743 q->read_ptr, q->write_ptr); in iwl_trans_pcie_check_stuck_queue() 1961 cnt, q->read_ptr, q->write_ptr, in iwl_dbgfs_tx_queue_read()
|
/linux-3.4.99/drivers/staging/mei/ |
D | interface.c | 69 char read_ptr, write_ptr; in _host_get_filled_slots() local 71 read_ptr = (char) ((dev->host_hw_state & H_CBRP) >> 8); in _host_get_filled_slots() 74 return (unsigned char) (write_ptr - read_ptr); in _host_get_filled_slots() 194 char read_ptr, write_ptr; in mei_count_full_read_slots() local 199 read_ptr = (char) ((dev->me_hw_state & ME_CBRP_HRA) >> 8); in mei_count_full_read_slots() 201 filled_slots = (unsigned char) (write_ptr - read_ptr); in mei_count_full_read_slots()
|
/linux-3.4.99/drivers/w1/masters/ |
D | ds2482.c | 140 static inline int ds2482_select_register(struct ds2482_data *pdev, u8 read_ptr) in ds2482_select_register() argument 142 if (pdev->read_prt != read_ptr) { in ds2482_select_register() 145 read_ptr) < 0) in ds2482_select_register() 148 pdev->read_prt = read_ptr; in ds2482_select_register()
|
/linux-3.4.99/drivers/staging/comedi/ |
D | drivers.c | 732 unsigned int read_ptr = async->buf_read_ptr + offset; in comedi_buf_memcpy_from() local 734 if (read_ptr >= async->prealloc_bufsz) in comedi_buf_memcpy_from() 735 read_ptr %= async->prealloc_bufsz; in comedi_buf_memcpy_from() 740 src = async->prealloc_buf + read_ptr; in comedi_buf_memcpy_from() 742 if (nbytes >= async->prealloc_bufsz - read_ptr) in comedi_buf_memcpy_from() 743 block_size = async->prealloc_bufsz - read_ptr; in comedi_buf_memcpy_from() 750 read_ptr = 0; in comedi_buf_memcpy_from()
|
/linux-3.4.99/drivers/net/ethernet/sfc/ |
D | tx.c | 327 unsigned int stop_index, read_ptr; in efx_dequeue_buffers() local 330 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers() 332 while (read_ptr != stop_index) { in efx_dequeue_buffers() 333 struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr]; in efx_dequeue_buffers() 337 tx_queue->queue, read_ptr); in efx_dequeue_buffers() 347 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
|
D | selftest.c | 168 unsigned int read_ptr[EFX_MAX_CHANNELS]; in efx_test_eventq_irq() local 175 read_ptr[channel->channel] = channel->eventq_read_ptr; in efx_test_eventq_irq() 193 read_ptr[channel->channel]) { in efx_test_eventq_irq()
|
D | nic.c | 1233 unsigned int read_ptr; in efx_nic_process_eventq() local 1239 read_ptr = channel->eventq_read_ptr; in efx_nic_process_eventq() 1242 p_event = efx_event(channel, read_ptr); in efx_nic_process_eventq() 1256 ++read_ptr; in efx_nic_process_eventq() 1299 channel->eventq_read_ptr = read_ptr; in efx_nic_process_eventq()
|
/linux-3.4.99/drivers/net/wireless/iwlegacy/ |
D | 3945.c | 296 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il3945_tx_queue_reclaim() 297 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il3945_tx_queue_reclaim() 299 skb = txq->skbs[txq->q.read_ptr]; in il3945_tx_queue_reclaim() 301 txq->skbs[txq->q.read_ptr] = NULL; in il3945_tx_queue_reclaim() 330 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr); in il3945_hdl_tx() 335 info = IEEE80211_SKB_CB(txq->skbs[txq->q.read_ptr]); in il3945_hdl_tx() 630 int idx = txq->q.read_ptr; in il3945_hw_txq_free_tfd() 659 struct sk_buff *skb = txq->skbs[txq->q.read_ptr]; in il3945_hw_txq_free_tfd() 664 txq->skbs[txq->q.read_ptr] = NULL; in il3945_hw_txq_free_tfd()
|
D | common.c | 2721 while (q->write_ptr != q->read_ptr) { in il_tx_queue_unmap() 2723 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_tx_queue_unmap() 2782 while (q->read_ptr != q->write_ptr) { in il_cmd_queue_unmap() 2783 i = il_get_cmd_idx(q, q->read_ptr, 0); in il_cmd_queue_unmap() 2793 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_cmd_queue_unmap() 2870 int s = q->read_ptr - q->write_ptr; in il_queue_space() 2872 if (q->read_ptr > q->write_ptr) in il_queue_space() 2915 q->write_ptr = q->read_ptr = 0; in il_queue_init() 3204 q->write_ptr, q->read_ptr); in il_hcmd_queue_reclaim() 3208 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il_hcmd_queue_reclaim() [all …]
|
D | 4965-mac.c | 2172 il->txq[txq_id].q.read_ptr = (ssn_idx & 0xff); in il4965_txq_agg_enable() 2284 il->txq[txq_id].q.read_ptr = (ssn_idx & 0xff); in il4965_txq_agg_disable() 2302 int write_ptr, read_ptr; in il4965_tx_agg_stop() local 2340 read_ptr = il->txq[txq_id].q.read_ptr; in il4965_tx_agg_stop() 2343 if (write_ptr != read_ptr) { in il4965_tx_agg_stop() 2388 q->read_ptr == q->write_ptr) { in il4965_txq_check_empty() 2451 q->write_ptr, q->read_ptr); in il4965_tx_queue_reclaim() 2455 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il4965_tx_queue_reclaim() 2456 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il4965_tx_queue_reclaim() 2458 skb = txq->skbs[txq->q.read_ptr]; in il4965_tx_queue_reclaim() [all …]
|
D | common.h | 135 int read_ptr; /* last used entry (idx) host_r */ member 871 return q->write_ptr >= q->read_ptr ? (i >= q->read_ptr && in il_queue_used() 873 q->read_ptr in il_queue_used()
|
D | debug.c | 876 q->read_ptr, q->write_ptr, in il_dbgfs_tx_queue_read()
|
/linux-3.4.99/drivers/media/video/pvrusb2/ |
D | pvrusb2-hdw.h | 260 void *read_ptr,unsigned int read_len);
|
/linux-3.4.99/arch/mips/include/asm/ip32/ |
D | mace.h | 141 volatile unsigned long read_ptr; /* channel read pointer */ member
|
/linux-3.4.99/sound/mips/ |
D | sgio2audio.c | 381 src_pos = readq(&mace->perif.audio.chan[ch].read_ptr); in snd_sgio2audio_dma_pull_frag() 404 writeq(src_pos, &mace->perif.audio.chan[ch].read_ptr); /* in bytes */ in snd_sgio2audio_dma_pull_frag()
|
/linux-3.4.99/drivers/usb/gadget/ |
D | s3c-hsotg.c | 1388 int read_ptr; in s3c_hsotg_rx_data() local 1408 read_ptr = hs_req->req.actual; in s3c_hsotg_rx_data() 1409 max_req = hs_req->req.length - read_ptr; in s3c_hsotg_rx_data() 1412 __func__, to_read, max_req, read_ptr, hs_req->req.length); in s3c_hsotg_rx_data() 1429 readsl(fifo, hs_req->req.buf + read_ptr, to_read); in s3c_hsotg_rx_data()
|