Searched refs:read_index (Results 1 – 12 of 12) sorted by relevance
/linux/drivers/s390/char/ |
H A D | monreader.c | 51 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/drivers/hv/ |
H A D | ring_buffer.c | 66 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() 222 ring_info->ring_buffer->read_index = in hv_ringbuffer_init() 582 start_read_index = rbi->ring_buffer->read_index; in hv_pkt_iter_close() 583 rbi->ring_buffer->read_index = rbi->priv_read_index; in hv_pkt_iter_close()
|
/linux/drivers/net/ethernet/sfc/ |
H A D | ef100_rep.c | 396 unsigned int read_index; in efx_ef100_rep_poll() local 405 read_index = efv->write_index; in efx_ef100_rep_poll() 418 efv->read_index = read_index; in efx_ef100_rep_poll() 424 need_resched = efv->write_index != read_index; in efx_ef100_rep_poll() 441 if (efv->write_index - READ_ONCE(efv->read_index) > efv->rx_pring_size) { in efx_ef100_rep_rx_packet() 474 primed = efv->read_index == efv->write_index; in efx_ef100_rep_rx_packet()
|
H A D | ef100_rep.h | 52 unsigned int write_index, read_index; member
|
/linux/drivers/i2c/busses/ |
H A D | i2c-eg20t.c | 551 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/drivers/net/wireless/ath/ath10k/ |
H A D | ce.c | 1011 unsigned int read_index; in _ath10k_ce_completed_send_next_nolock() local 1023 read_index = ath10k_ce_src_ring_read_index_get(ar, ctrl_addr); in _ath10k_ce_completed_send_next_nolock() 1024 if (read_index == 0xffffffff) in _ath10k_ce_completed_send_next_nolock() 1027 read_index &= nentries_mask; in _ath10k_ce_completed_send_next_nolock() 1028 src_ring->hw_index = read_index; in _ath10k_ce_completed_send_next_nolock() 1032 read_index = ath10k_ce_src_ring_read_index_get(ar, ctrl_addr); in _ath10k_ce_completed_send_next_nolock() 1034 read_index = src_ring->hw_index; in _ath10k_ce_completed_send_next_nolock() 1036 if (read_index == sw_index) in _ath10k_ce_completed_send_next_nolock() 1064 unsigned int read_index; in _ath10k_ce_completed_send_next_nolock_64() local 1076 read_index = ath10k_ce_src_ring_read_index_get(ar, ctrl_addr); in _ath10k_ce_completed_send_next_nolock_64() [all …]
|
/linux/sound/soc/codecs/ |
H A D | wm_adsp.c | 159 int read_index; member 1472 buf->read_index = -1; in wm_adsp_buffer_clear() 1759 int write_index, read_index, avail; in wm_adsp_buffer_update_avail() local 1763 if (buf->read_index < 0) { in wm_adsp_buffer_update_avail() 1770 read_index = sign_extend32(next_read_index, 23); in wm_adsp_buffer_update_avail() 1772 if (read_index < 0) { in wm_adsp_buffer_update_avail() 1777 buf->read_index = read_index; in wm_adsp_buffer_update_avail() 1787 avail = write_index - buf->read_index; in wm_adsp_buffer_update_avail() 1792 buf->read_index, write_index, avail * CS_DSP_DATA_WORD_SIZE); in wm_adsp_buffer_update_avail() 1932 if (buf->read_index < buf->regions[i].cumulative_size) in wm_adsp_buffer_capture_block() [all …]
|
/linux/drivers/misc/ibmasm/ |
H A D | remote.h | 97 #define get_queue_entry(sp, read_index) \ argument 98 ((void*)(queue_begin + read_index * sizeof(struct remote_input)))
|
/linux/drivers/gpu/drm/msm/adreno/ |
H A D | a6xx_hfi.h | 27 u32 read_index; member
|
/linux/include/linux/ |
H A D | hyperv.h | 118 u32 read_index; member 216 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read() 230 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write()
|
/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | rx.c | 258 unsigned read_index = rx_queue->page_remove & in ef4_recycle_rx_page() local 265 if (read_index == index) in ef4_recycle_rx_page()
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | rx_common.c | 91 unsigned int read_index = rx_queue->page_remove & in efx_recycle_rx_page() local 98 if (read_index == index) in efx_recycle_rx_page()
|