Lines Matching refs:frame_size
195 unsigned int frame_size; in get_stream_frame_size() local
204 frame_size = AV_PACKETS_PER_XACT * sub_size; in get_stream_frame_size()
209 frame_size = 0; in get_stream_frame_size()
211 frame_size = (USB_MTU / sub_size) * sub_size; in get_stream_frame_size()
213 frame_size = cfg->packets_per_xact * sub_size; in get_stream_frame_size()
218 frame_size = 0; in get_stream_frame_size()
221 return frame_size; in get_stream_frame_size()
278 unsigned int frame_size = get_stream_frame_size(&mdev->dev, conf); in hdm_add_padding() local
281 if (!frame_size) in hdm_add_padding()
283 num_frames = mbo->buffer_length / frame_size; in hdm_add_padding()
293 mbo->virt_address + j * frame_size, in hdm_add_padding()
294 frame_size); in hdm_add_padding()
312 unsigned int frame_size = get_stream_frame_size(&mdev->dev, conf); in hdm_remove_padding() local
315 if (!frame_size) in hdm_remove_padding()
320 memmove(mbo->virt_address + frame_size * j, in hdm_remove_padding()
322 frame_size); in hdm_remove_padding()
324 mbo->processed_length = frame_size * num_frames; in hdm_remove_padding()
569 unsigned int frame_size; in hdm_configure_channel() local
606 frame_size = get_stream_frame_size(&mdev->dev, conf); in hdm_configure_channel()
607 if (frame_size == 0 || frame_size > USB_MTU) { in hdm_configure_channel()
612 num_frames = conf->buffer_size / frame_size; in hdm_configure_channel()
614 if (conf->buffer_size % frame_size) { in hdm_configure_channel()
617 conf->buffer_size = num_frames * frame_size; in hdm_configure_channel()
623 conf->extra_len = num_frames * (USB_MTU - frame_size); in hdm_configure_channel()