/openbmc/linux/drivers/usb/misc/ |
H A D | iowarrior.c | 87 atomic_t read_idx; member 157 int read_idx; in iowarrior_callback() local 178 read_idx = atomic_read(&dev->read_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() 278 int read_idx; in iowarrior_read() local 331 read_idx = ++read_idx == MAX_INTERRUPT_BUFFER ? 0 : read_idx; in iowarrior_read() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_rx.c | 352 u32 *read_idx, u32 *desc_used) in octep_oq_next_pkt() argument 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() 406 u32 read_idx; in __octep_oq_process_rx() local 408 read_idx = oq->host_read_idx; in __octep_oq_process_rx() 441 &read_idx, &desc_used); in __octep_oq_process_rx() 463 &oq->buff_info[read_idx]; in __octep_oq_process_rx() [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | microbit_i2c.c | 44 data = twi_read_sequence[s->read_idx]; in microbit_i2c_read() 45 if (s->read_idx < G_N_ELEMENTS(twi_read_sequence)) { in microbit_i2c_read() 46 s->read_idx++; in microbit_i2c_read() 85 VMSTATE_UINT32(read_idx, MicrobitI2CState), 95 s->read_idx = 0; in microbit_i2c_reset()
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_droq.c | 133 droq->read_idx = 0; in octeon_droq_reset_indices() 398 while (refill_index != droq->read_idx) { in octeon_droq_refill_pullup_descs() 588 droq->read_idx = incr_index(droq->read_idx, buf_cnt, in octeon_droq_drop_packets() 618 droq->q_no, droq->read_idx, pkt_count); in octeon_droq_fast_process_packets() 635 droq->read_idx = incr_index(droq->read_idx, in octeon_droq_fast_process_packets() 642 droq->read_idx].buffer; in octeon_droq_fast_process_packets() 644 droq->read_idx].pg_info; in octeon_droq_fast_process_packets() 650 droq->read_idx = incr_index(droq->read_idx, 1, in octeon_droq_fast_process_packets() 661 int cpy_len, idx = droq->read_idx; in octeon_droq_fast_process_packets() 683 droq->read_idx = in octeon_droq_fast_process_packets() [all …]
|
H A D | octeon_droq.h | 260 u32 read_idx; member
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bcm4908_enet.c | 63 int read_idx; member 315 ring->read_idx = 0; in bcm4908_enet_dma_ring_init() 537 if (ring->read_idx <= ring->write_idx) in bcm4908_enet_start_xmit() 540 free_buf_descs = ring->read_idx - ring->write_idx; in bcm4908_enet_start_xmit() 601 slot = enet->rx_ring.slots[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() 609 enet->rx_ring.read_idx = 0; in bcm4908_enet_poll_rx() 662 buf_desc = &tx_ring->buf_desc[tx_ring->read_idx]; in bcm4908_enet_poll_tx() 665 slot = &tx_ring->slots[tx_ring->read_idx]; in bcm4908_enet_poll_tx() 673 if (++tx_ring->read_idx == tx_ring->length) in bcm4908_enet_poll_tx() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_h264_if.c | 60 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()
|
/openbmc/linux/drivers/net/ethernet/atheros/alx/ |
H A D | alx.h | 66 u16 write_idx, read_idx; member 82 u16 write_idx, read_idx; member
|
H A D | main.c | 159 if (txq->write_idx >= txq->read_idx) 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() 460 np->txq->read_idx = 0; in alx_init_ring_ptrs() 468 np->rxq->read_idx = 0; in alx_init_ring_ptrs() 501 txq->read_idx = 0; in alx_free_txring_buf() [all …]
|
/openbmc/qemu/include/hw/i2c/ |
H A D | microbit_i2c.h | 39 uint32_t read_idx; member
|
/openbmc/u-boot/drivers/crypto/fsl/ |
H A D | jr.h | 76 int read_idx; member
|
H A D | jr.c | 141 jr->read_idx = 0; in jr_sw_cleanup() 328 jr->read_idx = (jr->read_idx + 1) & (jr->size - 1); in jr_dequeue()
|
/openbmc/linux/drivers/hid/ |
H A D | hid-ft260.c | 244 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()
|
/openbmc/linux/drivers/media/platform/qcom/venus/ |
H A D | hfi_venus.c | 71 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()
|
/openbmc/linux/include/uapi/drm/ |
H A D | etnaviv_drm.h | 179 __u32 read_idx; /* in, index of read_bo buffer */ member
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | pcie.c | 290 u32 read_idx; member 877 while (newidx != console->read_idx) { in brcmf_pcie_bus_console_read() 878 addr = console->buf_addr + console->read_idx; in brcmf_pcie_bus_console_read() 880 console->read_idx++; in brcmf_pcie_bus_console_read() 881 if (console->read_idx == console->bufsize) in brcmf_pcie_bus_console_read() 882 console->read_idx = 0; in brcmf_pcie_bus_console_read()
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem_submit.c | 323 ret = submit_bo(submit, r->read_idx, &bo); in submit_perfmon_validate()
|
/openbmc/linux/arch/x86/kvm/vmx/ |
H A D | vmx.c | 4051 const int read_idx = APIC_BASE_MSR / BITS_PER_LONG_LONG; in vmx_update_msr_bitmap_x2apic() local 4052 const int write_idx = read_idx + (0x800 / sizeof(u64)); in vmx_update_msr_bitmap_x2apic() 4083 msr_bitmap[read_idx] = ~kvm_lapic_readable_reg_mask(vcpu->arch.apic); in vmx_update_msr_bitmap_x2apic() 4085 msr_bitmap[read_idx] = ~0ull; in vmx_update_msr_bitmap_x2apic()
|