Lines Matching refs:res
182 int res;
195 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id,
198 if (res < 0)
199 return res;
201 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id,
204 if (res < 0)
205 return res;
215 int vdev_id, count, res = 0;
228 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id,
231 if (res < 0) {
232 ath10k_warn(ar, "failed to enable spectral scan: %d\n", res);
233 return res;
264 res = ath10k_wmi_vdev_spectral_conf(ar, &arg);
265 if (res < 0) {
266 ath10k_warn(ar, "failed to configure spectral scan: %d\n", res);
267 return res;
308 int res;
324 res = ath10k_spectral_scan_config(ar,
326 if (res < 0) {
328 res);
330 res = ath10k_spectral_scan_trigger(ar);
331 if (res < 0) {
333 res);
336 res = -EINVAL;
339 res = ath10k_spectral_scan_config(ar, SPECTRAL_BACKGROUND);
341 res = ath10k_spectral_scan_config(ar, SPECTRAL_MANUAL);
343 res = ath10k_spectral_scan_config(ar, SPECTRAL_DISABLED);
345 res = -EINVAL;
350 if (res < 0)
351 return res;