Lines Matching defs:amp_index
223 static int _cs_amp_get_efi_calibration_data(struct device *dev, u64 target_uid, int amp_index,
253 if (!cal && (amp_index >= 0) && (amp_index < efi_data->count) &&
254 (efi_data->data[amp_index].calTime[0] || efi_data->data[amp_index].calTime[1])) {
255 u64 cal_target = cs_amp_cal_target_u64(&efi_data->data[amp_index]);
264 cal = &efi_data->data[amp_index];
266 dev_warn(dev, "Calibration entry %d does not match silicon ID", amp_index);
286 * @amp_index: Entry index to use, or -1 to prevent lookup by index.
291 * (target_uid > 0, amp_index >= 0)
295 * [amp_index] has calTarget == 0, return that entry. Else fail.
297 * (target_uid > 0, amp_index < 0)
302 * (target_uid == 0, amp_index >= 0)
304 * Return the entry at [amp_index].
306 * An array lookup will be skipped if amp_index exceeds the number of
308 * be -ENOENT. An out-of-range amp_index does not prevent matching by
309 * target_uid - it has the same effect as passing amp_index < 0.
318 int cs_amp_get_efi_calibration_data(struct device *dev, u64 target_uid, int amp_index,
322 return _cs_amp_get_efi_calibration_data(dev, target_uid, amp_index, out_data);