Lines Matching refs:r_pointer

183 	dev->r_pointer = dev->w_pointer;  in ene_rx_setup_hw_buffer()
223 if (dev->r_pointer > dev->buffer_len) in ene_rx_setup_hw_buffer()
266 dev->w_pointer, dev->r_pointer); in ene_rx_read_hw_pointer()
272 int r_pointer; in ene_rx_get_sample_reg() local
274 if (dev->r_pointer == dev->w_pointer) { in ene_rx_get_sample_reg()
279 if (dev->r_pointer == dev->w_pointer) { in ene_rx_get_sample_reg()
280 dbg_verbose("RB: end of data at %d", dev->r_pointer); in ene_rx_get_sample_reg()
284 dbg_verbose("RB: reading at offset %d", dev->r_pointer); in ene_rx_get_sample_reg()
285 r_pointer = dev->r_pointer; in ene_rx_get_sample_reg()
287 dev->r_pointer++; in ene_rx_get_sample_reg()
288 if (dev->r_pointer == dev->buffer_len) in ene_rx_get_sample_reg()
289 dev->r_pointer = 0; in ene_rx_get_sample_reg()
291 dbg_verbose("RB: next read will be from offset %d", dev->r_pointer); in ene_rx_get_sample_reg()
293 if (r_pointer < 8) { in ene_rx_get_sample_reg()
294 dbg_verbose("RB: read at main buffer at %d", r_pointer); in ene_rx_get_sample_reg()
295 return ENE_FW_SAMPLE_BUFFER + r_pointer; in ene_rx_get_sample_reg()
298 r_pointer -= 8; in ene_rx_get_sample_reg()
300 if (r_pointer < dev->extra_buf1_len) { in ene_rx_get_sample_reg()
301 dbg_verbose("RB: read at 1st extra buffer at %d", r_pointer); in ene_rx_get_sample_reg()
302 return dev->extra_buf1_address + r_pointer; in ene_rx_get_sample_reg()
305 r_pointer -= dev->extra_buf1_len; in ene_rx_get_sample_reg()
307 if (r_pointer < dev->extra_buf2_len) { in ene_rx_get_sample_reg()
308 dbg_verbose("RB: read at 2nd extra buffer at %d", r_pointer); in ene_rx_get_sample_reg()
309 return dev->extra_buf2_address + r_pointer; in ene_rx_get_sample_reg()
759 dev->r_pointer = dev->w_pointer == 0 ? ENE_FW_PACKET_SIZE : 0; in ene_isr()
795 dev->r_pointer = dev->w_pointer; in ene_isr()