rd_idx 755 drivers/irqchip/irq-gic-v3-its.c u64 rd_idx, to_idx, linear_idx; rd_idx 768 drivers/irqchip/irq-gic-v3-its.c rd_idx = readl_relaxed(its->base + GITS_CREADR); rd_idx 774 drivers/irqchip/irq-gic-v3-its.c delta = rd_idx - prev_idx; rd_idx 775 drivers/irqchip/irq-gic-v3-its.c if (rd_idx < prev_idx) rd_idx 788 drivers/irqchip/irq-gic-v3-its.c prev_idx = rd_idx; rd_idx 805 drivers/irqchip/irq-gic-v3-its.c u64 rd_idx; \ rd_idx 827 drivers/irqchip/irq-gic-v3-its.c rd_idx = readl_relaxed(its->base + GITS_CREADR); \ rd_idx 831 drivers/irqchip/irq-gic-v3-its.c if (its_wait_for_range_completion(its, rd_idx, next_cmd)) \ rd_idx 169 drivers/media/platform/qcom/venus/hfi_venus.c u32 empty_space, rd_idx, wr_idx, qsize; rd_idx 185 drivers/media/platform/qcom/venus/hfi_venus.c rd_idx = qhdr->read_idx; rd_idx 191 drivers/media/platform/qcom/venus/hfi_venus.c if (wr_idx >= rd_idx) rd_idx 192 drivers/media/platform/qcom/venus/hfi_venus.c empty_space = qsize - (wr_idx - rd_idx); rd_idx 194 drivers/media/platform/qcom/venus/hfi_venus.c empty_space = rd_idx - wr_idx; rd_idx 237 drivers/media/platform/qcom/venus/hfi_venus.c u32 rd_idx, wr_idx, type, qsize; rd_idx 250 drivers/media/platform/qcom/venus/hfi_venus.c rd_idx = qhdr->read_idx; rd_idx 267 drivers/media/platform/qcom/venus/hfi_venus.c if (rd_idx == wr_idx) { rd_idx 275 drivers/media/platform/qcom/venus/hfi_venus.c rd_ptr = (u32 *)(queue->qmem.kva + (rd_idx << 2)); rd_idx 280 drivers/media/platform/qcom/venus/hfi_venus.c new_rd_idx = rd_idx + dwords; rd_idx 281 drivers/media/platform/qcom/venus/hfi_venus.c if (((dwords << 2) <= IFACEQ_VAR_HUGE_PKT_SIZE) && rd_idx <= qsize) { rd_idx 305 drivers/media/platform/qcom/venus/hfi_venus.c rd_idx = qhdr->read_idx; rd_idx 310 drivers/media/platform/qcom/venus/hfi_venus.c if (rd_idx != wr_idx) rd_idx 118 drivers/media/radio/wl128x/fmdrv.h u32 rd_idx; rd_idx 794 drivers/media/radio/wl128x/fmdrv_common.c if (rds->wr_idx == rds->rd_idx) { rd_idx 797 drivers/media/radio/wl128x/fmdrv_common.c rds->rd_idx = 0; rd_idx 806 drivers/media/radio/wl128x/fmdrv_common.c if (rds->wr_idx != rds->rd_idx) rd_idx 1049 drivers/media/radio/wl128x/fmdrv_common.c if (fmdev->rx.rds.rd_idx != fmdev->rx.rds.wr_idx) rd_idx 1064 drivers/media/radio/wl128x/fmdrv_common.c if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { rd_idx 1069 drivers/media/radio/wl128x/fmdrv_common.c (fmdev->rx.rds.wr_idx != fmdev->rx.rds.rd_idx)); rd_idx 1082 drivers/media/radio/wl128x/fmdrv_common.c if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { rd_idx 1086 drivers/media/radio/wl128x/fmdrv_common.c memcpy(tmpbuf, &fmdev->rx.rds.buff[fmdev->rx.rds.rd_idx], rd_idx 1088 drivers/media/radio/wl128x/fmdrv_common.c fmdev->rx.rds.rd_idx += FM_RDS_BLK_SIZE; rd_idx 1089 drivers/media/radio/wl128x/fmdrv_common.c if (fmdev->rx.rds.rd_idx >= fmdev->rx.rds.buf_size) rd_idx 1090 drivers/media/radio/wl128x/fmdrv_common.c fmdev->rx.rds.rd_idx = 0; rd_idx 20 drivers/media/radio/wl128x/fmdrv_rx.c fmdev->rx.rds.rd_idx = 0; rd_idx 723 drivers/media/radio/wl128x/fmdrv_rx.c fmdev->rx.rds.rd_idx = 0; rd_idx 171 drivers/misc/mei/dma-ring.c u32 rd_idx, rem, slots; rd_idx 182 drivers/misc/mei/dma-ring.c rd_idx = READ_ONCE(ctrl->dbuf_rd_idx) & (dbuf_depth - 1); rd_idx 189 drivers/misc/mei/dma-ring.c if (rd_idx + slots > dbuf_depth) { rd_idx 190 drivers/misc/mei/dma-ring.c buf += mei_dma_copy_from(dev, buf, rd_idx, dbuf_depth - rd_idx); rd_idx 191 drivers/misc/mei/dma-ring.c rem = slots - (dbuf_depth - rd_idx); rd_idx 192 drivers/misc/mei/dma-ring.c rd_idx = 0; rd_idx 197 drivers/misc/mei/dma-ring.c mei_dma_copy_from(dev, buf, rd_idx, rem); rd_idx 216 drivers/misc/mei/dma-ring.c u32 wr_idx, rd_idx, hbuf_depth, empty; rd_idx 226 drivers/misc/mei/dma-ring.c rd_idx = READ_ONCE(ctrl->hbuf_rd_idx); rd_idx 229 drivers/misc/mei/dma-ring.c if (rd_idx > wr_idx) rd_idx 230 drivers/misc/mei/dma-ring.c empty = rd_idx - wr_idx; rd_idx 232 drivers/misc/mei/dma-ring.c empty = hbuf_depth - (wr_idx - rd_idx); rd_idx 739 drivers/net/ethernet/cavium/liquidio/octeon_console.c u32 rd_idx) rd_idx 741 drivers/net/ethernet/cavium/liquidio/octeon_console.c if (rd_idx >= buffer_size || wr_idx >= buffer_size) rd_idx 744 drivers/net/ethernet/cavium/liquidio/octeon_console.c return ((buffer_size - 1) - (wr_idx - rd_idx)) % buffer_size; rd_idx 749 drivers/net/ethernet/cavium/liquidio/octeon_console.c u32 rd_idx) rd_idx 751 drivers/net/ethernet/cavium/liquidio/octeon_console.c if (rd_idx >= buffer_size || wr_idx >= buffer_size) rd_idx 755 drivers/net/ethernet/cavium/liquidio/octeon_console.c octeon_console_free_bytes(buffer_size, wr_idx, rd_idx); rd_idx 762 drivers/net/ethernet/cavium/liquidio/octeon_console.c u32 rd_idx, wr_idx; rd_idx 776 drivers/net/ethernet/cavium/liquidio/octeon_console.c rd_idx = octeon_read_device_mem32(oct, console->addr + rd_idx 782 drivers/net/ethernet/cavium/liquidio/octeon_console.c wr_idx, rd_idx); rd_idx 791 drivers/net/ethernet/cavium/liquidio/octeon_console.c if (rd_idx + bytes_to_read >= console->buffer_size) rd_idx 792 drivers/net/ethernet/cavium/liquidio/octeon_console.c bytes_to_read = console->buffer_size - rd_idx; rd_idx 794 drivers/net/ethernet/cavium/liquidio/octeon_console.c octeon_pci_read_core_mem(oct, console->output_base_addr + rd_idx, rd_idx 799 drivers/net/ethernet/cavium/liquidio/octeon_console.c (rd_idx + bytes_to_read) % rd_idx 421 drivers/rapidio/devices/tsi721_dma.c u32 idx, rd_idx; rd_idx 440 drivers/rapidio/devices/tsi721_dma.c rd_idx = ioread32(bdma_chan->regs + TSI721_DMAC_DRDCNT); rd_idx 441 drivers/rapidio/devices/tsi721_dma.c rd_idx %= (bdma_chan->bd_num + 1); rd_idx 451 drivers/rapidio/devices/tsi721_dma.c bdma_chan->id, rd_idx, idx); rd_idx 484 drivers/rapidio/devices/tsi721_dma.c if (i && idx == rd_idx) { rd_idx 85 drivers/scsi/fnic/fnic_trace.c if (fnic_trace_entries.wr_idx == fnic_trace_entries.rd_idx) { rd_idx 86 drivers/scsi/fnic/fnic_trace.c fnic_trace_entries.rd_idx++; rd_idx 87 drivers/scsi/fnic/fnic_trace.c if (fnic_trace_entries.rd_idx >= fnic_max_trace_entries) rd_idx 88 drivers/scsi/fnic/fnic_trace.c fnic_trace_entries.rd_idx = 0; rd_idx 109 drivers/scsi/fnic/fnic_trace.c int rd_idx; rd_idx 118 drivers/scsi/fnic/fnic_trace.c rd_idx = fnic_trace_entries.rd_idx; rd_idx 120 drivers/scsi/fnic/fnic_trace.c if (wr_idx < rd_idx) { rd_idx 124 drivers/scsi/fnic/fnic_trace.c fnic_trace_entries.page_offset[rd_idx]; rd_idx 148 drivers/scsi/fnic/fnic_trace.c rd_idx++; rd_idx 153 drivers/scsi/fnic/fnic_trace.c if (rd_idx > (fnic_max_trace_entries-1)) rd_idx 154 drivers/scsi/fnic/fnic_trace.c rd_idx = 0; rd_idx 159 drivers/scsi/fnic/fnic_trace.c if (rd_idx == wr_idx) rd_idx 162 drivers/scsi/fnic/fnic_trace.c } else if (wr_idx > rd_idx) { rd_idx 166 drivers/scsi/fnic/fnic_trace.c fnic_trace_entries.page_offset[rd_idx]; rd_idx 190 drivers/scsi/fnic/fnic_trace.c rd_idx++; rd_idx 195 drivers/scsi/fnic/fnic_trace.c if (rd_idx == wr_idx) rd_idx 505 drivers/scsi/fnic/fnic_trace.c fnic_trace_entries.wr_idx = fnic_trace_entries.rd_idx = 0; rd_idx 594 drivers/scsi/fnic/fnic_trace.c fc_trace_entries.rd_idx = fc_trace_entries.wr_idx = 0; rd_idx 662 drivers/scsi/fnic/fnic_trace.c fc_trace_entries.rd_idx = fc_trace_entries.wr_idx = 0; rd_idx 677 drivers/scsi/fnic/fnic_trace.c if (fc_trace_entries.wr_idx == fc_trace_entries.rd_idx) { rd_idx 678 drivers/scsi/fnic/fnic_trace.c fc_trace_entries.rd_idx++; rd_idx 679 drivers/scsi/fnic/fnic_trace.c if (fc_trace_entries.rd_idx >= fc_trace_max_entries) rd_idx 680 drivers/scsi/fnic/fnic_trace.c fc_trace_entries.rd_idx = 0; rd_idx 730 drivers/scsi/fnic/fnic_trace.c int rd_idx, wr_idx; rd_idx 737 drivers/scsi/fnic/fnic_trace.c if (fc_trace_entries.wr_idx == fc_trace_entries.rd_idx) { rd_idx 742 drivers/scsi/fnic/fnic_trace.c rd_idx = fc_trace_entries.rd_idx; rd_idx 751 drivers/scsi/fnic/fnic_trace.c while (rd_idx != wr_idx) { rd_idx 753 drivers/scsi/fnic/fnic_trace.c fc_trace_entries.page_offset[rd_idx]; rd_idx 773 drivers/scsi/fnic/fnic_trace.c rd_idx++; rd_idx 774 drivers/scsi/fnic/fnic_trace.c if (rd_idx > (fc_trace_max_entries - 1)) rd_idx 775 drivers/scsi/fnic/fnic_trace.c rd_idx = 0; rd_idx 50 drivers/scsi/fnic/fnic_trace.h int rd_idx; rd_idx 43 drivers/scsi/snic/snic_trc.c if (trc->wr_idx != trc->rd_idx) { rd_idx 49 drivers/scsi/snic/snic_trc.c trc->rd_idx++; rd_idx 50 drivers/scsi/snic/snic_trc.c if (trc->rd_idx == trc->max_idx) rd_idx 51 drivers/scsi/snic/snic_trc.c trc->rd_idx = 0; rd_idx 96 drivers/scsi/snic/snic_trc.c if (trc->rd_idx == trc->wr_idx) { rd_idx 101 drivers/scsi/snic/snic_trc.c td = &trc->buf[trc->rd_idx]; rd_idx 110 drivers/scsi/snic/snic_trc.c trc->rd_idx++; rd_idx 111 drivers/scsi/snic/snic_trc.c if (trc->rd_idx == trc->max_idx) rd_idx 112 drivers/scsi/snic/snic_trc.c trc->rd_idx = 0; rd_idx 144 drivers/scsi/snic/snic_trc.c trc->rd_idx = trc->wr_idx = 0; rd_idx 46 drivers/scsi/snic/snic_trc.h u32 rd_idx;