Home
last modified time | relevance | path

Searched refs:read_index (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/drivers/s390/char/
Dmonreader.c51 unsigned int read_index; member
158 monpriv->read_index = (monpriv->read_index + 1) % in mon_send_reply()
212 monmsg = monpriv->msg_array[monpriv->read_index]; in mon_next_message()
218 monpriv->read_index = (monpriv->read_index + 1) % in mon_next_message()
352 monpriv->read_index = 0; in mon_close()
383 monmsg = monpriv->msg_array[monpriv->read_index]; in mon_read()
/linux-6.1.9/drivers/net/ethernet/sfc/
Def100_rep.c347 unsigned int read_index; in efx_ef100_rep_poll() local
356 read_index = efv->write_index; in efx_ef100_rep_poll()
369 efv->read_index = read_index; in efx_ef100_rep_poll()
375 need_resched = efv->write_index != read_index; in efx_ef100_rep_poll()
392 if (efv->write_index - READ_ONCE(efv->read_index) > efv->rx_pring_size) { in efx_ef100_rep_rx_packet()
425 primed = efv->read_index == efv->write_index; in efx_ef100_rep_rx_packet()
Def100_rep.h49 unsigned int write_index, read_index; member
Drx_common.c87 unsigned int read_index = rx_queue->page_remove & in efx_recycle_rx_page() local
94 if (read_index == index) in efx_recycle_rx_page()
/linux-6.1.9/drivers/hv/
Dring_buffer.c66 if (old_write == READ_ONCE(rbi->ring_buffer->read_index)) { in hv_signal_on_write()
139 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_ringbuffer_availbytes()
167 debug_info->current_read_index = ring_info->ring_buffer->read_index; in hv_ringbuffer_get_debuginfo()
244 ring_info->ring_buffer->read_index = in hv_ringbuffer_init()
604 start_read_index = rbi->ring_buffer->read_index; in hv_pkt_iter_close()
605 rbi->ring_buffer->read_index = rbi->priv_read_index; in hv_pkt_iter_close()
/linux-6.1.9/drivers/gpu/drm/msm/adreno/
Da6xx_hfi.c30 u32 i, hdr, index = header->read_index; in a6xx_hfi_queue_read()
32 if (header->read_index == header->write_index) { in a6xx_hfi_queue_read()
60 header->read_index = index; in a6xx_hfi_queue_read()
72 space = CIRC_SPACE(header->write_index, header->read_index, in a6xx_hfi_queue_write()
663 if (queue->header->read_index != queue->header->write_index) in a6xx_hfi_stop()
666 queue->header->read_index = 0; in a6xx_hfi_stop()
697 header->read_index = 0; in a6xx_hfi_queue_init()
Da6xx_hfi.h27 u32 read_index; member
/linux-6.1.9/drivers/i2c/busses/
Di2c-eg20t.c551 int read_index; in pch_i2c_readbytes() local
556 for (loop = 1, read_index = 0; loop < length; loop++) { in pch_i2c_readbytes()
557 buf[read_index] = ioread32(p + PCH_I2CDR); in pch_i2c_readbytes()
560 read_index++; in pch_i2c_readbytes()
569 buf[read_index] = ioread32(p + PCH_I2CDR); /* Read final - 1 */ in pch_i2c_readbytes()
572 read_index++; in pch_i2c_readbytes()
583 buf[read_index++] = ioread32(p + PCH_I2CDR); /* Read Final */ in pch_i2c_readbytes()
584 count = read_index; in pch_i2c_readbytes()
/linux-6.1.9/sound/soc/codecs/
Dwm_adsp.c158 int read_index; member
1425 buf->read_index = -1; in wm_adsp_buffer_clear()
1712 int write_index, read_index, avail; in wm_adsp_buffer_update_avail() local
1716 if (buf->read_index < 0) { in wm_adsp_buffer_update_avail()
1723 read_index = sign_extend32(next_read_index, 23); in wm_adsp_buffer_update_avail()
1725 if (read_index < 0) { in wm_adsp_buffer_update_avail()
1730 buf->read_index = read_index; in wm_adsp_buffer_update_avail()
1740 avail = write_index - buf->read_index; in wm_adsp_buffer_update_avail()
1745 buf->read_index, write_index, avail * CS_DSP_DATA_WORD_SIZE); in wm_adsp_buffer_update_avail()
1885 if (buf->read_index < buf->regions[i].cumulative_size) in wm_adsp_buffer_capture_block()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dce.c1077 unsigned int read_index; in _ath10k_ce_completed_send_next_nolock() local
1089 read_index = ath10k_ce_src_ring_read_index_get(ar, ctrl_addr); in _ath10k_ce_completed_send_next_nolock()
1090 if (read_index == 0xffffffff) in _ath10k_ce_completed_send_next_nolock()
1093 read_index &= nentries_mask; in _ath10k_ce_completed_send_next_nolock()
1094 src_ring->hw_index = read_index; in _ath10k_ce_completed_send_next_nolock()
1098 read_index = ath10k_ce_src_ring_read_index_get(ar, ctrl_addr); in _ath10k_ce_completed_send_next_nolock()
1100 read_index = src_ring->hw_index; in _ath10k_ce_completed_send_next_nolock()
1102 if (read_index == sw_index) in _ath10k_ce_completed_send_next_nolock()
1130 unsigned int read_index; in _ath10k_ce_completed_send_next_nolock_64() local
1142 read_index = ath10k_ce_src_ring_read_index_get(ar, ctrl_addr); in _ath10k_ce_completed_send_next_nolock_64()
[all …]
/linux-6.1.9/drivers/misc/ibmasm/
Dremote.h97 #define get_queue_entry(sp, read_index) \ argument
98 ((void*)(queue_begin + read_index * sizeof(struct remote_input)))
/linux-6.1.9/drivers/usb/misc/
Diowarrior.c261 static int read_index(struct iowarrior *dev) in read_index() function
298 if ((read_idx = read_index(dev)) == -1) { in iowarrior_read()
307 read_index in iowarrior_read()
692 if (read_index(dev) != -1) in iowarrior_poll()
/linux-6.1.9/include/linux/
Dhyperv.h118 u32 read_index; member
196 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read()
210 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write()
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/
Drx.c258 unsigned read_index = rx_queue->page_remove & in ef4_recycle_rx_page() local
265 if (read_index == index) in ef4_recycle_rx_page()
/linux-6.1.9/drivers/net/ethernet/sfc/siena/
Drx_common.c90 unsigned int read_index = rx_queue->page_remove & in efx_recycle_rx_page() local
97 if (read_index == index) in efx_recycle_rx_page()
/linux-6.1.9/drivers/comedi/drivers/
Dcb_pcidas64.c2678 int read_segment, read_index, write_segment, write_index; in pio_drain_ai_fifo_16() local
2683 read_index = readw(devpriv->main_iobase + ADC_READ_PNTR_REG) & in pio_drain_ai_fifo_16()
2705 devpriv->ai_fifo_segment_length - read_index; in pio_drain_ai_fifo_16()
2707 num_samples = write_index - read_index; in pio_drain_ai_fifo_16()
/linux-6.1.9/fs/jfs/
Djfs_dtree.c536 static int read_index(struct inode *ip, u32 index, in read_index() function
2758 rc = read_index(ip, dir_index, &dirtab_slot); in jfs_readdir()