Lines Matching defs:conf
89 * @conf: channel configuration
107 struct most_channel_config *conf;
259 if (mdev->conf[channel].data_type == MOST_CH_ASYNC) {
278 struct most_channel_config *conf = &mdev->conf[channel];
279 unsigned int frame_size = get_stream_frame_size(&mdev->dev, conf);
312 struct most_channel_config *const conf = &mdev->conf[channel];
313 unsigned int frame_size = get_stream_frame_size(&mdev->dev, conf);
461 struct most_channel_config *conf;
476 conf = &mdev->conf[channel];
484 if ((conf->direction & MOST_CH_TX) && mdev->padding_active[channel] &&
494 if (conf->direction & MOST_CH_TX) {
502 if (conf->data_type != MOST_CH_ISOC &&
503 conf->data_type != MOST_CH_SYNC)
510 length + conf->extra_len,
555 * @conf: structure that holds the configuration information
567 struct most_channel_config *conf)
574 if (!conf) {
588 if (!conf->num_buffers || !conf->buffer_size) {
593 if (conf->data_type != MOST_CH_SYNC &&
594 !(conf->data_type == MOST_CH_ISOC &&
595 conf->packets_per_xact != 0xFF)) {
607 frame_size = get_stream_frame_size(&mdev->dev, conf);
613 num_frames = conf->buffer_size / frame_size;
615 if (conf->buffer_size % frame_size) {
616 u16 old_size = conf->buffer_size;
618 conf->buffer_size = num_frames * frame_size;
620 mdev->suffix[channel], old_size, conf->buffer_size);
624 conf->extra_len = num_frames * (USB_MTU - frame_size);
627 mdev->conf[channel] = *conf;
628 if (conf->data_type == MOST_CH_ASYNC) {
751 if (mdev->conf[channel].data_type == MOST_CH_ASYNC &&
752 mdev->conf[channel].direction == MOST_CH_RX) {
999 mdev->conf = kcalloc(num_endpoints, sizeof(*mdev->conf), GFP_KERNEL);
1000 if (!mdev->conf)
1094 kfree(mdev->conf);
1127 kfree(mdev->conf);