Searched refs:rd_index (Results 1 – 9 of 9) sorted by relevance
61 unsigned int rd_index; member145 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 …]
471 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()
314 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()442 radio->rd_index = 0; in si470x_i2c_probe()
451 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()730 radio->rd_index = 0; in si470x_usb_driver_probe()
149 unsigned int rd_index; member
701 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++;
66 unsigned int rd_index; member202 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 …]
1534 u32 wrptr, rd_index, tx_val; in mwifiex_pcie_process_recv_data() local1560 rd_index = card->rxbd_rdptr & reg->rx_mask; in mwifiex_pcie_process_recv_data()1561 skb_data = card->rx_buf_list[rd_index]; in mwifiex_pcie_process_recv_data()1570 card->rx_buf_list[rd_index] = NULL; in mwifiex_pcie_process_recv_data()1614 skb_tmp, rd_index); in mwifiex_pcie_process_recv_data()1615 card->rx_buf_list[rd_index] = skb_tmp; in mwifiex_pcie_process_recv_data()1618 desc2 = card->rxbd_ring[rd_index]; in mwifiex_pcie_process_recv_data()1625 desc = card->rxbd_ring[rd_index]; in mwifiex_pcie_process_recv_data()
5621 u32 rd_offset, rd_index, offset; in lpfc_bsg_get_ras_fwlog() local5663 rd_index = (rd_offset / LPFC_RAS_MAX_ENTRY_SIZE); in lpfc_bsg_get_ras_fwlog()5669 if (dmabuf->buffer_tag < rd_index) in lpfc_bsg_get_ras_fwlog()