Home
last modified time | relevance | path

Searched refs:rd_index (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/media/i2c/
Dsaa6588.c61 unsigned int rd_index; member
145 if (s->rd_index == s->wr_index) { in block_from_buf()
153 for (i = s->rd_index; i < s->rd_index + 3; i++) in block_from_buf()
157 memcpy(buf, &s->buffer[s->rd_index], 3); in block_from_buf()
159 s->rd_index += 3; in block_from_buf()
160 if (s->rd_index >= s->buf_size) in block_from_buf()
161 s->rd_index = 0; in block_from_buf()
237 if (s->wr_index == s->rd_index) { in block_to_buf()
238 s->rd_index += 3; in block_to_buf()
239 if (s->rd_index >= s->buf_size) in block_to_buf()
[all …]
/linux-6.1.9/drivers/media/radio/si470x/
Dradio-si470x-common.c471 while (radio->wr_index == radio->rd_index) { in si470x_fops_read()
477 radio->wr_index != radio->rd_index) < 0) { in si470x_fops_read()
488 if (radio->rd_index == radio->wr_index) in si470x_fops_read()
492 if (copy_to_user(buf, &radio->buffer[radio->rd_index], 3)) in si470x_fops_read()
497 radio->rd_index += 3; in si470x_fops_read()
498 if (radio->rd_index >= radio->buf_size) in si470x_fops_read()
499 radio->rd_index = 0; in si470x_fops_read()
529 if (radio->rd_index != radio->wr_index) in si470x_fops_poll()
Dradio-si470x-i2c.c314 if (radio->wr_index == radio->rd_index) { in si470x_i2c_interrupt()
316 radio->rd_index += 3; in si470x_i2c_interrupt()
317 if (radio->rd_index >= radio->buf_size) in si470x_i2c_interrupt()
318 radio->rd_index = 0; in si470x_i2c_interrupt()
322 if (radio->wr_index != radio->rd_index) in si470x_i2c_interrupt()
431 radio->rd_index = 0; in si470x_i2c_probe()
Dradio-si470x-usb.c451 if (radio->wr_index == radio->rd_index) { in si470x_int_in_callback()
453 radio->rd_index += 3; in si470x_int_in_callback()
454 if (radio->rd_index >= radio->buf_size) in si470x_int_in_callback()
455 radio->rd_index = 0; in si470x_int_in_callback()
458 if (radio->wr_index != radio->rd_index) in si470x_int_in_callback()
724 radio->rd_index = 0; in si470x_usb_driver_probe()
Dradio-si470x.h149 unsigned int rd_index; member
/linux-6.1.9/Documentation/trace/postprocess/
Dtrace-vmscan-postprocess.pl701 my $rd_index = 0;
702 while (defined $perprocesspid{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$rd_index]) {
703 …CLAIM_LATENCY}[$wr_index] = $perprocesspid{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$rd_index];
704 $rd_index++;
711 my $rd_index = 0;
712 while (defined $perprocesspid{$process_pid}->{HIGH_KSWAPD_LATENCY}[$rd_index]) {
713 …>{HIGH_KSWAPD_LATENCY}[$wr_index] = $perprocesspid{$process_pid}->{HIGH_KSWAPD_LATENCY}[$rd_index];
714 $rd_index++;
/linux-6.1.9/arch/riscv/kernel/probes/
Dsimulate-insn.c71 u32 rd_index = (opcode >> 7) & 0x1f; in simulate_jalr() local
78 ret = rv_insn_reg_set_val(regs, rd_index, addr + 4); in simulate_jalr()
/linux-6.1.9/drivers/media/radio/
Dradio-wl1273.c66 unsigned int rd_index; member
202 if (radio->wr_index == radio->rd_index) { in wl1273_fm_rds()
205 radio->rd_index = 0; in wl1273_fm_rds()
212 if (radio->wr_index != radio->rd_index) in wl1273_fm_rds()
445 radio->rd_index = 0; in wl1273_fm_set_rx_freq()
590 radio->rd_index = 0; in wl1273_fm_start()
1098 if (radio->rd_index != radio->wr_index) in wl1273_fm_fops_poll()
1217 while (radio->wr_index == radio->rd_index) { in wl1273_fm_fops_read()
1226 radio->rd_index) < 0) { in wl1273_fm_fops_read()
1237 if (radio->rd_index == radio->wr_index) in wl1273_fm_fops_read()
[all …]
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dpcie.c1560 u32 wrptr, rd_index, tx_val; in mwifiex_pcie_process_recv_data() local
1586 rd_index = card->rxbd_rdptr & reg->rx_mask; in mwifiex_pcie_process_recv_data()
1587 skb_data = card->rx_buf_list[rd_index]; in mwifiex_pcie_process_recv_data()
1596 card->rx_buf_list[rd_index] = NULL; in mwifiex_pcie_process_recv_data()
1640 skb_tmp, rd_index); in mwifiex_pcie_process_recv_data()
1641 card->rx_buf_list[rd_index] = skb_tmp; in mwifiex_pcie_process_recv_data()
1644 desc2 = card->rxbd_ring[rd_index]; in mwifiex_pcie_process_recv_data()
1651 desc = card->rxbd_ring[rd_index]; in mwifiex_pcie_process_recv_data()
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_bsg.c5258 u32 rd_offset, rd_index, offset; in lpfc_bsg_get_ras_fwlog() local
5300 rd_index = (rd_offset / LPFC_RAS_MAX_ENTRY_SIZE); in lpfc_bsg_get_ras_fwlog()
5306 if (dmabuf->buffer_tag < rd_index) in lpfc_bsg_get_ras_fwlog()