Searched refs:rd_idx (Results 1 – 10 of 10) sorted by relevance
/drivers/scsi/fnic/ |
D | fnic_trace.c | 85 if (fnic_trace_entries.wr_idx == fnic_trace_entries.rd_idx) { in fnic_trace_get_buf() 86 fnic_trace_entries.rd_idx++; in fnic_trace_get_buf() 87 if (fnic_trace_entries.rd_idx >= fnic_max_trace_entries) in fnic_trace_get_buf() 88 fnic_trace_entries.rd_idx = 0; in fnic_trace_get_buf() 109 int rd_idx; in fnic_get_trace_data() local 118 rd_idx = fnic_trace_entries.rd_idx; in fnic_get_trace_data() 120 if (wr_idx < rd_idx) { in fnic_get_trace_data() 124 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data() 148 rd_idx++; in fnic_get_trace_data() 153 if (rd_idx > (fnic_max_trace_entries-1)) in fnic_get_trace_data() [all …]
|
D | fnic_trace.h | 50 int rd_idx; member
|
/drivers/scsi/snic/ |
D | snic_trc.c | 43 if (trc->wr_idx != trc->rd_idx) { in snic_get_trc_buf() 49 trc->rd_idx++; in snic_get_trc_buf() 50 if (trc->rd_idx == trc->max_idx) in snic_get_trc_buf() 51 trc->rd_idx = 0; in snic_get_trc_buf() 96 if (trc->rd_idx == trc->wr_idx) { in snic_get_trc_data() 101 td = &trc->buf[trc->rd_idx]; in snic_get_trc_data() 110 trc->rd_idx++; in snic_get_trc_data() 111 if (trc->rd_idx == trc->max_idx) in snic_get_trc_data() 112 trc->rd_idx = 0; in snic_get_trc_data() 150 trc->rd_idx = trc->wr_idx = 0; in snic_trc_init()
|
D | snic_trc.h | 46 u32 rd_idx; member
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_console.c | 659 u32 rd_idx) in octeon_console_free_bytes() argument 661 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_free_bytes() 664 return ((buffer_size - 1) - (wr_idx - rd_idx)) % buffer_size; in octeon_console_free_bytes() 669 u32 rd_idx) in octeon_console_avail_bytes() argument 671 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_avail_bytes() 675 octeon_console_free_bytes(buffer_size, wr_idx, rd_idx); in octeon_console_avail_bytes() 682 u32 rd_idx, wr_idx; in octeon_console_read() local 696 rd_idx = octeon_read_device_mem32(oct, console->addr + in octeon_console_read() 702 wr_idx, rd_idx); in octeon_console_read() 711 if (rd_idx + bytes_to_read >= console->buffer_size) in octeon_console_read() [all …]
|
/drivers/media/radio/wl128x/ |
D | fmdrv_common.c | 810 if (rds->wr_idx == rds->rd_idx) { in fm_irq_handle_rdsdata_getcmd_resp() 813 rds->rd_idx = 0; in fm_irq_handle_rdsdata_getcmd_resp() 822 if (rds->wr_idx != rds->rd_idx) in fm_irq_handle_rdsdata_getcmd_resp() 1065 if (fmdev->rx.rds.rd_idx != fmdev->rx.rds.wr_idx) in fmc_is_rds_data_available() 1080 if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { in fmc_transfer_rds_from_internal_buff() 1085 (fmdev->rx.rds.wr_idx != fmdev->rx.rds.rd_idx)); in fmc_transfer_rds_from_internal_buff() 1098 if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { in fmc_transfer_rds_from_internal_buff() 1102 memcpy(tmpbuf, &fmdev->rx.rds.buff[fmdev->rx.rds.rd_idx], in fmc_transfer_rds_from_internal_buff() 1104 fmdev->rx.rds.rd_idx += FM_RDS_BLK_SIZE; in fmc_transfer_rds_from_internal_buff() 1105 if (fmdev->rx.rds.rd_idx >= fmdev->rx.rds.buf_size) in fmc_transfer_rds_from_internal_buff() [all …]
|
D | fmdrv.h | 131 u32 rd_idx; member
|
D | fmdrv_rx.c | 33 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache() 736 fmdev->rx.rds.rd_idx = 0; in fm_rx_set_rds_mode()
|
/drivers/rapidio/devices/ |
D | tsi721_dma.c | 426 u32 idx, rd_idx; in tsi721_submit_sg() local 444 rd_idx = ioread32(bdma_chan->regs + TSI721_DMAC_DRDCNT); in tsi721_submit_sg() 445 rd_idx %= (bdma_chan->bd_num + 1); in tsi721_submit_sg() 455 __func__, rd_idx, idx); in tsi721_submit_sg() 489 if (i && idx == rd_idx) { in tsi721_submit_sg()
|
/drivers/irqchip/ |
D | irq-gic-v3-its.c | 432 u64 rd_idx, from_idx, to_idx; in its_wait_for_range_completion() local 439 rd_idx = readl_relaxed(its->base + GITS_CREADR); in its_wait_for_range_completion() 440 if (rd_idx >= to_idx || rd_idx < from_idx) in its_wait_for_range_completion()
|