Home
last modified time | relevance | path

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

/linux-6.12.1/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.12.1/drivers/net/ethernet/marvell/octeon_ep_vf/
Doctep_vf_rx.c363 u32 read_idx; in __octep_vf_oq_process_rx() local
365 read_idx = oq->host_read_idx; in __octep_vf_oq_process_rx()
369 buff_info = (struct octep_vf_rx_buffer *)&oq->buff_info[read_idx]; in __octep_vf_oq_process_rx()
370 dma_unmap_page(oq->dev, oq->desc_ring[read_idx].buffer_ptr, in __octep_vf_oq_process_rx()
403 read_idx++; in __octep_vf_oq_process_rx()
405 if (read_idx == oq->max_count) in __octep_vf_oq_process_rx()
406 read_idx = 0; in __octep_vf_oq_process_rx()
417 read_idx++; in __octep_vf_oq_process_rx()
419 if (read_idx == oq->max_count) in __octep_vf_oq_process_rx()
420 read_idx = 0; in __octep_vf_oq_process_rx()
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/octeon_ep/
Doctep_rx.c352 u32 *read_idx, u32 *desc_used) in octep_oq_next_pkt() argument
354 dma_unmap_page(oq->dev, oq->desc_ring[*read_idx].buffer_ptr, in octep_oq_next_pkt()
357 (*read_idx)++; in octep_oq_next_pkt()
359 if (*read_idx == oq->max_count) in octep_oq_next_pkt()
360 *read_idx = 0; in octep_oq_next_pkt()
374 u32 *read_idx, u32 *desc_used) in octep_oq_drop_rx() argument
379 octep_oq_next_pkt(oq, buff_info, read_idx, desc_used); in octep_oq_drop_rx()
408 u32 read_idx; in __octep_oq_process_rx() local
410 read_idx = oq->host_read_idx; in __octep_oq_process_rx()
414 buff_info = (struct octep_rx_buffer *)&oq->buff_info[read_idx]; in __octep_oq_process_rx()
[all …]
/linux-6.12.1/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c128 droq->read_idx = 0; in octeon_droq_reset_indices()
393 while (refill_index != droq->read_idx) { in octeon_droq_refill_pullup_descs()
539 rinfo = octeon_create_recv_info(oct, droq, cnt, droq->read_idx); in octeon_droq_dispatch_pkt()
570 droq->recv_buf_list[droq->read_idx].data; in octeon_droq_drop_packets()
583 droq->read_idx = incr_index(droq->read_idx, buf_cnt, in octeon_droq_drop_packets()
607 droq->recv_buf_list[droq->read_idx].data; in octeon_droq_fast_process_packets()
613 droq->q_no, droq->read_idx, pkt_count); in octeon_droq_fast_process_packets()
630 droq->read_idx = incr_index(droq->read_idx, in octeon_droq_fast_process_packets()
637 droq->read_idx].buffer; in octeon_droq_fast_process_packets()
639 droq->read_idx].pg_info; in octeon_droq_fast_process_packets()
[all …]
Docteon_droq.h260 u32 read_idx; member
/linux-6.12.1/drivers/net/ethernet/broadcom/
Dbcm4908_enet.c63 int read_idx; member
315 ring->read_idx = 0; in bcm4908_enet_dma_ring_init()
533 !(le32_to_cpu(ring->buf_desc[ring->read_idx].ctl) & DMA_CTL_STATUS_OWN)) in bcm4908_enet_start_xmit()
537 if (ring->read_idx <= ring->write_idx) in bcm4908_enet_start_xmit()
538 free_buf_descs = ring->read_idx - ring->write_idx + ring->length; in bcm4908_enet_start_xmit()
540 free_buf_descs = ring->read_idx - ring->write_idx; in bcm4908_enet_start_xmit()
596 buf_desc = &enet->rx_ring.buf_desc[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx()
601 slot = enet->rx_ring.slots[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx()
604 err = bcm4908_enet_dma_alloc_rx_buf(enet, enet->rx_ring.read_idx); in bcm4908_enet_poll_rx()
608 if (++enet->rx_ring.read_idx == enet->rx_ring.length) in bcm4908_enet_poll_rx()
[all …]
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/vdec/
Dvdec_h264_if.c60 unsigned int read_idx; member
207 list->read_idx >= H264_MAX_FB_NUM || in check_list_validity()
211 list->read_idx, list->write_idx); in check_list_validity()
441 (uintptr_t)list->fb_list[list->read_idx].vdec_fb_va; in vdec_h264_get_fb()
447 fb->status, list->fb_list[list->read_idx].poc, in vdec_h264_get_fb()
448 list->fb_list[list->read_idx].vdec_fb_va); in vdec_h264_get_fb()
450 list->read_idx = (list->read_idx == H264_MAX_FB_NUM - 1) ? in vdec_h264_get_fb()
451 0 : list->read_idx + 1; in vdec_h264_get_fb()
/linux-6.12.1/drivers/i2c/
Di2c-slave-testunit.c47 u8 read_idx; member
98 tu->read_idx = 0; in i2c_slave_testunit_slave_cb()
136 if (is_get_version && tu_version_info[tu->read_idx] != 0) in i2c_slave_testunit_slave_cb()
137 tu->read_idx++; in i2c_slave_testunit_slave_cb()
145 *val = tu_version_info[tu->read_idx]; in i2c_slave_testunit_slave_cb()
/linux-6.12.1/drivers/net/ethernet/atheros/alx/
Dalx.h66 u16 write_idx, read_idx; member
82 u16 write_idx, read_idx; member
Dmain.c84 while (!cur_buf->skb && next != rxq->read_idx) { in alx_refill_rx_ring()
159 if (txq->write_idx >= txq->read_idx) in alx_tpd_avail()
160 return txq->count + txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
161 return txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
175 sw_read_idx = txq->read_idx; in alx_clean_tx_irq()
194 txq->read_idx = sw_read_idx; in alx_clean_tx_irq()
234 RRD_SI) != rxq->read_idx || in alx_clean_rx_irq()
241 rxb = &rxq->bufs[rxq->read_idx]; in alx_clean_rx_irq()
281 if (++rxq->read_idx == rxq->count) in alx_clean_rx_irq()
282 rxq->read_idx = 0; in alx_clean_rx_irq()
[all …]
/linux-6.12.1/drivers/hid/
Dhid-ft260.c244 u16 read_idx; member
529 dev->read_idx = 0; in ft260_i2c_read()
1077 (xfer->length > dev->read_len - dev->read_idx)) { in ft260_raw_event()
1083 memcpy(&dev->read_buf[dev->read_idx], &xfer->data, in ft260_raw_event()
1085 dev->read_idx += xfer->length; in ft260_raw_event()
1087 if (dev->read_idx == dev->read_len) in ft260_raw_event()
/linux-6.12.1/drivers/media/platform/qcom/venus/
Dhfi_venus.c71 u32 read_idx; member
184 rd_idx = qhdr->read_idx; in venus_write_queue()
254 rd_idx = qhdr->read_idx; in venus_read_queue()
310 qhdr->read_idx = new_rd_idx; in venus_read_queue()
314 rd_idx = qhdr->read_idx; in venus_read_queue()
759 qhdr->read_idx = 0; in venus_set_qhdr_defaults()
928 return abs(qhdr->read_idx - qhdr->write_idx); in venus_get_queue_size()
/linux-6.12.1/include/uapi/drm/
Detnaviv_drm.h179 __u32 read_idx; /* in, index of read_bo buffer */ member
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c290 u32 read_idx; member
872 while (newidx != console->read_idx) { in brcmf_pcie_bus_console_read()
873 addr = console->buf_addr + console->read_idx; in brcmf_pcie_bus_console_read()
875 console->read_idx++; in brcmf_pcie_bus_console_read()
876 if (console->read_idx == console->bufsize) in brcmf_pcie_bus_console_read()
877 console->read_idx = 0; in brcmf_pcie_bus_console_read()
/linux-6.12.1/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c323 ret = submit_bo(submit, r->read_idx, &bo); in submit_perfmon_validate()
/linux-6.12.1/arch/x86/kvm/vmx/
Dvmx.c4071 const int read_idx = APIC_BASE_MSR / BITS_PER_LONG_LONG; in vmx_update_msr_bitmap_x2apic() local
4072 const int write_idx = read_idx + (0x800 / sizeof(u64)); in vmx_update_msr_bitmap_x2apic()
4103 msr_bitmap[read_idx] = ~kvm_lapic_readable_reg_mask(vcpu->arch.apic); in vmx_update_msr_bitmap_x2apic()
4105 msr_bitmap[read_idx] = ~0ull; in vmx_update_msr_bitmap_x2apic()