Searched refs:read_idx (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/usb/misc/
H A Diowarrior.c83 atomic_t read_idx; member in struct:iowarrior
152 int read_idx; iowarrior_callback() local
174 read_idx = atomic_read(&dev->read_idx); iowarrior_callback()
177 if ((intr_idx != read_idx) iowarrior_callback()
192 if (read_idx == aux_idx) { iowarrior_callback()
194 read_idx = (++read_idx == MAX_INTERRUPT_BUFFER) ? 0 : read_idx; iowarrior_callback()
195 atomic_set(&dev->read_idx, read_idx); iowarrior_callback()
260 int intr_idx, read_idx; read_index() local
262 read_idx = atomic_read(&dev->read_idx); read_index()
265 return (read_idx == intr_idx ? -1 : read_idx); read_index()
275 int read_idx; iowarrior_read() local
295 if ((read_idx = read_index(dev)) == -1) { iowarrior_read()
303 || (read_idx = iowarrior_read()
315 if (read_idx == -1) { iowarrior_read()
322 offset = read_idx * (dev->report_size + 1); iowarrior_read()
328 read_idx = ++read_idx == MAX_INTERRUPT_BUFFER ? 0 : read_idx; iowarrior_read()
329 atomic_set(&dev->read_idx, read_idx); iowarrior_read()
777 atomic_set(&dev->read_idx, 0); iowarrior_probe()
/linux-4.1.27/drivers/net/ethernet/atheros/alx/
H A Dalx.h61 u16 write_idx, read_idx; member in struct:alx_rx_queue
70 u16 write_idx, read_idx; member in struct:alx_tx_queue
H A Dmain.c86 while (!cur_buf->skb && next != rxq->read_idx) { alx_refill_rx_ring()
134 if (txq->write_idx >= txq->read_idx) alx_tpd_avail()
135 return alx->tx_ringsz + txq->read_idx - txq->write_idx - 1; alx_tpd_avail()
136 return txq->read_idx - txq->write_idx - 1; alx_tpd_avail()
146 sw_read_idx = txq->read_idx; alx_clean_tx_irq()
165 txq->read_idx = sw_read_idx; alx_clean_tx_irq()
203 RRD_SI) != rxq->read_idx || alx_clean_rx_irq()
210 rxb = &rxq->bufs[rxq->read_idx]; alx_clean_rx_irq()
250 if (++rxq->read_idx == alx->rx_ringsz) alx_clean_rx_irq()
251 rxq->read_idx = 0; alx_clean_rx_irq()
366 alx->rxq.read_idx = 0; alx_init_ring_ptrs()
376 alx->txq.read_idx = 0; alx_init_ring_ptrs()
400 txq->read_idx = 0; alx_free_txring_buf()
429 rxq->read_idx = 0; alx_free_rxring_buf()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dpcie.c198 u32 read_idx; member in struct:brcmf_pcie_console
636 while (newidx != console->read_idx) { brcmf_pcie_bus_console_read()
637 addr = console->buf_addr + console->read_idx; brcmf_pcie_bus_console_read()
639 console->read_idx++; brcmf_pcie_bus_console_read()
640 if (console->read_idx == console->bufsize) brcmf_pcie_bus_console_read()
641 console->read_idx = 0; brcmf_pcie_bus_console_read()

Completed in 191 milliseconds