Lines Matching refs:fragment_size

48 	tmout = (dmap->fragment_size * HZ) / dmap->data_rate;  in dmabuf_timeout()
204 dmap->fragment_size = 0; in open_dmap()
406 if (adev->d->prepare_for_output(dev, dmap->fragment_size, dmap->nbufs)) in DMAbuf_launch_output()
413 dmap->counts[dmap->qhead] = dmap->fragment_size; in DMAbuf_launch_output()
415 adev->d->output_block(dev, dmap->raw_buf_phys + dmap->qhead * dmap->fragment_size, in DMAbuf_launch_output()
525 dmap->fragment_size, dmap->nbufs)) < 0) in DMAbuf_activate_recording()
533 adev->d->start_input(dev, dmap->raw_buf_phys + dmap->qtail * dmap->fragment_size, in DMAbuf_activate_recording()
534 dmap->fragment_size, 0); in DMAbuf_activate_recording()
592 *buf = &dmap->raw_buf[dmap->qhead * dmap->fragment_size + dmap->counts[dmap->qhead]]; in DMAbuf_getrdbuffer()
593 *len = dmap->fragment_size - dmap->counts[dmap->qhead]; in DMAbuf_getrdbuffer()
611 else if (p >= dmap->fragment_size) { /* This buffer is completely empty */ in DMAbuf_rmchars()
652 if (pos > dmap->fragment_size) in DMAbuf_get_buffer_pointer()
656 if (pos > dmap->fragment_size) in DMAbuf_get_buffer_pointer()
731 if (dmap->byte_counter % dmap->fragment_size) /* There is a partial fragment */ in DMAbuf_space_in_queue()
782 int occupied_bytes = (dmap->user_counter % dmap->fragment_size); in find_output_space()
791 active_offs = dmap->byte_counter + dmap->qhead * dmap->fragment_size; in find_output_space()
817 if (len > ((maxfrags * dmap->fragment_size) - occupied_bytes)) in find_output_space()
818 len = (maxfrags * dmap->fragment_size) - occupied_bytes; in find_output_space()
861 unsigned long ptr = (dmap->user_counter / dmap->fragment_size) * dmap->fragment_size; in DMAbuf_move_wrpointer()
877 end_ptr = (dmap->user_counter / dmap->fragment_size) * dmap->fragment_size; in DMAbuf_move_wrpointer()
884 dmap->counts[dmap->qtail] = dmap->fragment_size; in DMAbuf_move_wrpointer()
887 ptr += dmap->fragment_size; in DMAbuf_move_wrpointer()
975 dmap->counts[dmap->qhead] = dmap->fragment_size; in do_outputintr()
1012 dmap->user_counter += dmap->fragment_size; in do_outputintr()
1043 pos = pos / dmap->fragment_size; /* Actual qhead */ in DMAbuf_outputintr()
1081 adev->d->start_input(dev, dmap->raw_buf_phys + dmap->qtail * dmap->fragment_size, in do_inputintr()
1082 dmap->fragment_size, 1); in do_inputintr()
1109 …->start_input(dev, dmap->raw_buf_phys + dmap->qtail * dmap->fragment_size, dmap->fragment_size, 1); in do_inputintr()
1143 pos = pos / dmap->fragment_size; /* Actual qhead */ in DMAbuf_inputintr()
1167 adev->dmap_out->fragment_size = adev->dmap_out->buffsize; in DMAbuf_open_dma()