Lines Matching defs:oparams

3989 					       struct snd_pcm_hw_params_old *oparams)
3994 params->flags = oparams->flags;
3995 for (i = 0; i < ARRAY_SIZE(oparams->masks); i++)
3996 params->masks[i].bits[0] = oparams->masks[i];
3997 memcpy(params->intervals, oparams->intervals, sizeof(oparams->intervals));
3998 params->rmask = __OLD_TO_NEW_MASK(oparams->rmask);
3999 params->cmask = __OLD_TO_NEW_MASK(oparams->cmask);
4000 params->info = oparams->info;
4001 params->msbits = oparams->msbits;
4002 params->rate_num = oparams->rate_num;
4003 params->rate_den = oparams->rate_den;
4004 params->fifo_size = oparams->fifo_size;
4007 static void snd_pcm_hw_convert_to_old_params(struct snd_pcm_hw_params_old *oparams,
4012 memset(oparams, 0, sizeof(*oparams));
4013 oparams->flags = params->flags;
4014 for (i = 0; i < ARRAY_SIZE(oparams->masks); i++)
4015 oparams->masks[i] = params->masks[i].bits[0];
4016 memcpy(oparams->intervals, params->intervals, sizeof(oparams->intervals));
4017 oparams->rmask = __NEW_TO_OLD_MASK(params->rmask);
4018 oparams->cmask = __NEW_TO_OLD_MASK(params->cmask);
4019 oparams->info = params->info;
4020 oparams->msbits = params->msbits;
4021 oparams->rate_num = params->rate_num;
4022 oparams->rate_den = params->rate_den;
4023 oparams->fifo_size = params->fifo_size;
4030 struct snd_pcm_hw_params_old *oparams __free(kfree) = NULL;
4037 oparams = memdup_user(_oparams, sizeof(*oparams));
4038 if (IS_ERR(oparams))
4039 return PTR_ERR(oparams);
4040 snd_pcm_hw_convert_from_old_params(params, oparams);
4049 snd_pcm_hw_convert_to_old_params(oparams, params);
4050 if (copy_to_user(_oparams, oparams, sizeof(*oparams)))
4059 struct snd_pcm_hw_params_old *oparams __free(kfree) = NULL;
4066 oparams = memdup_user(_oparams, sizeof(*oparams));
4067 if (IS_ERR(oparams))
4068 return PTR_ERR(oparams);
4070 snd_pcm_hw_convert_from_old_params(params, oparams);
4075 snd_pcm_hw_convert_to_old_params(oparams, params);
4076 if (copy_to_user(_oparams, oparams, sizeof(*oparams)))