Lines Matching refs:curve_data
242 if ((priv->iq_autocal_len != priv->curve_data->entries) ||
251 priv->curve_data->entries);
282 if (i < priv->curve_data->entries) {
284 priv->curve_data->entry_size +
285 priv->curve_data->offset +
286 priv->curve_data->data));
315 struct pda_pa_curve_data *curve_data)
320 size_t cd_len = sizeof(*curve_data) +
321 (curve_data->points_per_channel*sizeof(*dst) + 2) *
322 curve_data->channels;
326 priv->curve_data = kmalloc(sizeof(*priv->curve_data) + cd_len,
328 if (!priv->curve_data)
331 priv->curve_data->entries = curve_data->channels;
332 priv->curve_data->entry_size = sizeof(__le16) +
333 sizeof(*dst) * curve_data->points_per_channel;
334 priv->curve_data->offset = offsetof(struct pda_pa_curve_data, data);
335 priv->curve_data->len = cd_len;
336 memcpy(priv->curve_data->data, curve_data, sizeof(*curve_data));
337 source = curve_data->data;
338 target = ((struct pda_pa_curve_data *) priv->curve_data->data)->data;
339 for (i = 0; i < curve_data->channels; i++) {
344 for (j = 0; j < curve_data->points_per_channel; j++) {
367 struct pda_pa_curve_data *curve_data)
372 size_t cd_len = sizeof(*curve_data) +
373 (curve_data->points_per_channel*sizeof(*dst) + 2) *
374 curve_data->channels;
378 priv->curve_data = kzalloc(cd_len + sizeof(*priv->curve_data),
380 if (!priv->curve_data)
383 priv->curve_data->entries = curve_data->channels;
384 priv->curve_data->entry_size = sizeof(__le16) +
385 sizeof(*dst) * curve_data->points_per_channel;
386 priv->curve_data->offset = offsetof(struct pda_pa_curve_data, data);
387 priv->curve_data->len = cd_len;
388 memcpy(priv->curve_data->data, curve_data, sizeof(*curve_data));
389 source = curve_data->data;
390 target = ((struct pda_pa_curve_data *) priv->curve_data->data)->data;
391 for (i = 0; i < curve_data->channels; i++) {
396 for (j = 0; j < curve_data->points_per_channel; j++) {
572 struct pda_pa_curve_data *curve_data =
574 if (data_len < sizeof(*curve_data)) {
579 switch (curve_data->cal_method_rev) {
581 err = p54_convert_rev0(dev, curve_data);
584 err = p54_convert_rev1(dev, curve_data);
589 curve_data->cal_method_rev);
653 if (priv->curve_data || data_len < sizeof(*pda))
655 priv->curve_data = p54_convert_db(pda, data_len);
670 !priv->curve_data) {
713 kfree(priv->curve_data);
716 priv->curve_data = NULL;