Home
last modified time | relevance | path

Searched refs:read_idx (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/usb/misc/
Diowarrior.c87 atomic_t read_idx; member
157 int read_idx; in iowarrior_callback() local
178 read_idx = atomic_read(&dev->read_idx); in iowarrior_callback()
181 if ((intr_idx != read_idx) in iowarrior_callback()
195 if (read_idx == aux_idx) { in iowarrior_callback()
197 read_idx = (++read_idx == MAX_INTERRUPT_BUFFER) ? 0 : read_idx; in iowarrior_callback()
198 atomic_set(&dev->read_idx, read_idx); in iowarrior_callback()
263 int intr_idx, read_idx; in read_index() local
265 read_idx = atomic_read(&dev->read_idx); in read_index()
268 return (read_idx == intr_idx ? -1 : read_idx); in read_index()
[all …]
/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/
Doctep_rx.c361 u32 read_idx; in __octep_oq_process_rx() local
363 read_idx = oq->host_read_idx; in __octep_oq_process_rx()
367 buff_info = (struct octep_rx_buffer *)&oq->buff_info[read_idx]; in __octep_oq_process_rx()
368 dma_unmap_page(oq->dev, oq->desc_ring[read_idx].buffer_ptr, in __octep_oq_process_rx()
399 read_idx++; in __octep_oq_process_rx()
401 if (read_idx == oq->max_count) in __octep_oq_process_rx()
402 read_idx = 0; in __octep_oq_process_rx()
413 read_idx++; in __octep_oq_process_rx()
415 if (read_idx == oq->max_count) in __octep_oq_process_rx()
416 read_idx = 0; in __octep_oq_process_rx()
[all …]
/linux-6.1.9/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c132 droq->read_idx = 0; in octeon_droq_reset_indices()
396 while (refill_index != droq->read_idx) { in octeon_droq_refill_pullup_descs()
542 rinfo = octeon_create_recv_info(oct, droq, cnt, droq->read_idx); in octeon_droq_dispatch_pkt()
573 droq->recv_buf_list[droq->read_idx].data; in octeon_droq_drop_packets()
586 droq->read_idx = incr_index(droq->read_idx, buf_cnt, in octeon_droq_drop_packets()
610 droq->recv_buf_list[droq->read_idx].data; in octeon_droq_fast_process_packets()
616 droq->q_no, droq->read_idx, pkt_count); in octeon_droq_fast_process_packets()
633 droq->read_idx = incr_index(droq->read_idx, in octeon_droq_fast_process_packets()
640 droq->read_idx].buffer; in octeon_droq_fast_process_packets()
642 droq->read_idx].pg_info; in octeon_droq_fast_process_packets()
[all …]
Docteon_droq.h260 u32 read_idx; member
/linux-6.1.9/drivers/net/ethernet/broadcom/
Dbcm4908_enet.c52 int read_idx; member
305 ring->read_idx = 0; in bcm4908_enet_dma_ring_init()
522 !(le32_to_cpu(ring->buf_desc[ring->read_idx].ctl) & DMA_CTL_STATUS_OWN)) in bcm4908_enet_start_xmit()
526 if (ring->read_idx <= ring->write_idx) in bcm4908_enet_start_xmit()
527 free_buf_descs = ring->read_idx - ring->write_idx + ring->length; in bcm4908_enet_start_xmit()
529 free_buf_descs = ring->read_idx - ring->write_idx; in bcm4908_enet_start_xmit()
582 buf_desc = &enet->rx_ring.buf_desc[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx()
587 slot = enet->rx_ring.slots[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx()
590 err = bcm4908_enet_dma_alloc_rx_buf(enet, enet->rx_ring.read_idx); in bcm4908_enet_poll_rx()
594 if (++enet->rx_ring.read_idx == enet->rx_ring.length) in bcm4908_enet_poll_rx()
[all …]
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/vdec/
Dvdec_h264_if.c61 unsigned int read_idx; member
210 list->read_idx >= H264_MAX_FB_NUM || in check_list_validity()
214 list->read_idx, list->write_idx); in check_list_validity()
450 (uintptr_t)list->fb_list[list->read_idx].vdec_fb_va; in vdec_h264_get_fb()
456 fb->status, list->fb_list[list->read_idx].poc, in vdec_h264_get_fb()
457 list->fb_list[list->read_idx].vdec_fb_va); in vdec_h264_get_fb()
459 list->read_idx = (list->read_idx == H264_MAX_FB_NUM - 1) ? in vdec_h264_get_fb()
460 0 : list->read_idx + 1; in vdec_h264_get_fb()
/linux-6.1.9/drivers/net/ethernet/atheros/alx/
Dalx.h66 u16 write_idx, read_idx; member
82 u16 write_idx, read_idx; member
Dmain.c85 while (!cur_buf->skb && next != rxq->read_idx) { in alx_refill_rx_ring()
160 if (txq->write_idx >= txq->read_idx) in alx_tpd_avail()
161 return txq->count + txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
162 return txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
176 sw_read_idx = txq->read_idx; in alx_clean_tx_irq()
195 txq->read_idx = sw_read_idx; in alx_clean_tx_irq()
235 RRD_SI) != rxq->read_idx || in alx_clean_rx_irq()
242 rxb = &rxq->bufs[rxq->read_idx]; in alx_clean_rx_irq()
282 if (++rxq->read_idx == rxq->count) in alx_clean_rx_irq()
283 rxq->read_idx = 0; in alx_clean_rx_irq()
[all …]
/linux-6.1.9/drivers/hid/
Dhid-ft260.c234 u16 read_idx; member
470 dev->read_idx = 0; in ft260_i2c_read()
1025 memcpy(&dev->read_buf[dev->read_idx], &xfer->data, in ft260_raw_event()
1027 dev->read_idx += xfer->length; in ft260_raw_event()
1029 if (dev->read_idx == dev->read_len) in ft260_raw_event()
/linux-6.1.9/drivers/media/platform/qcom/venus/
Dhfi_venus.c71 u32 read_idx; member
185 rd_idx = qhdr->read_idx; in venus_write_queue()
250 rd_idx = qhdr->read_idx; in venus_read_queue()
301 qhdr->read_idx = new_rd_idx; in venus_read_queue()
305 rd_idx = qhdr->read_idx; in venus_read_queue()
748 qhdr->read_idx = 0; in venus_set_qhdr_defaults()
937 return abs(qhdr->read_idx - qhdr->write_idx); in venus_get_queue_size()
/linux-6.1.9/include/uapi/drm/
Detnaviv_drm.h179 __u32 read_idx; /* in, index of read_bo buffer */ member
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c274 u32 read_idx; member
851 while (newidx != console->read_idx) { in brcmf_pcie_bus_console_read()
852 addr = console->buf_addr + console->read_idx; in brcmf_pcie_bus_console_read()
854 console->read_idx++; in brcmf_pcie_bus_console_read()
855 if (console->read_idx == console->bufsize) in brcmf_pcie_bus_console_read()
856 console->read_idx = 0; in brcmf_pcie_bus_console_read()
/linux-6.1.9/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c323 ret = submit_bo(submit, r->read_idx, &bo); in submit_perfmon_validate()
/linux-6.1.9/arch/x86/kvm/vmx/
Dvmx.c3931 unsigned int read_idx = msr / BITS_PER_LONG; in vmx_reset_x2apic_msrs() local
3932 unsigned int write_idx = read_idx + (0x800 / sizeof(long)); in vmx_reset_x2apic_msrs()
3934 msr_bitmap[read_idx] = read_intercept; in vmx_reset_x2apic_msrs()