Lines Matching refs:frame_size
196 unsigned int frame_size; in get_stream_frame_size() local
205 frame_size = AV_PACKETS_PER_XACT * sub_size; in get_stream_frame_size()
210 frame_size = 0; in get_stream_frame_size()
212 frame_size = (USB_MTU / sub_size) * sub_size; in get_stream_frame_size()
214 frame_size = cfg->packets_per_xact * sub_size; in get_stream_frame_size()
219 frame_size = 0; in get_stream_frame_size()
222 return frame_size; in get_stream_frame_size()
279 unsigned int frame_size = get_stream_frame_size(&mdev->dev, conf); in hdm_add_padding() local
282 if (!frame_size) in hdm_add_padding()
284 num_frames = mbo->buffer_length / frame_size; in hdm_add_padding()
294 mbo->virt_address + j * frame_size, in hdm_add_padding()
295 frame_size); in hdm_add_padding()
313 unsigned int frame_size = get_stream_frame_size(&mdev->dev, conf); in hdm_remove_padding() local
316 if (!frame_size) in hdm_remove_padding()
321 memmove(mbo->virt_address + frame_size * j, in hdm_remove_padding()
323 frame_size); in hdm_remove_padding()
325 mbo->processed_length = frame_size * num_frames; in hdm_remove_padding()
570 unsigned int frame_size; in hdm_configure_channel() local
607 frame_size = get_stream_frame_size(&mdev->dev, conf); in hdm_configure_channel()
608 if (frame_size == 0 || frame_size > USB_MTU) { in hdm_configure_channel()
613 num_frames = conf->buffer_size / frame_size; in hdm_configure_channel()
615 if (conf->buffer_size % frame_size) { in hdm_configure_channel()
618 conf->buffer_size = num_frames * frame_size; in hdm_configure_channel()
624 conf->extra_len = num_frames * (USB_MTU - frame_size); in hdm_configure_channel()