Lines Matching refs:amp_index
170 static int _cs_amp_get_efi_calibration_data(struct device *dev, u64 target_uid, int amp_index,
196 if (!cal && (amp_index >= 0) && (amp_index < efi_data->count)) {
197 u64 cal_target = cs_amp_cal_target_u64(&efi_data->data[amp_index]);
206 cal = &efi_data->data[amp_index];
208 dev_warn(dev, "Calibration entry %d does not match silicon ID", amp_index);
228 * @amp_index: Entry index to use, or -1 to prevent lookup by index.
233 * (target_uid > 0, amp_index >= 0)
237 * [amp_index] has calTarget == 0, return that entry. Else fail.
239 * (target_uid > 0, amp_index < 0)
244 * (target_uid == 0, amp_index >= 0)
246 * Return the entry at [amp_index].
248 * An array lookup will be skipped if amp_index exceeds the number of
250 * be -ENOENT. An out-of-range amp_index does not prevent matching by
251 * target_uid - it has the same effect as passing amp_index < 0.
260 int cs_amp_get_efi_calibration_data(struct device *dev, u64 target_uid, int amp_index,
264 return _cs_amp_get_efi_calibration_data(dev, target_uid, amp_index, out_data);