Lines Matching defs:ret
44 int i, ret;
58 ret = wfx_hif_scan(wvif, req, start_idx, i - start_idx);
59 if (ret) {
63 ret = wait_for_completion_timeout(&wvif->scan_complete, 1 * HZ);
64 if (!ret) {
66 ret = wait_for_completion_timeout(&wvif->scan_complete, 1 * HZ);
70 if (!ret) {
72 ret = -ETIMEDOUT;
75 ret = -ECONNABORTED;
77 ret = -EIO;
79 ret = wvif->scan_nb_chan_done;
84 return ret;
95 int chan_cur, ret, err;
107 ret = send_scan_req(wvif, &hw_req->req, chan_cur);
108 if (ret > 0) {
109 chan_cur += ret;
112 if (!ret)
116 ret = -ETIMEDOUT;
118 } while (ret >= 0 && chan_cur < hw_req->req.n_channels);
121 wfx_ieee80211_scan_completed_compat(wvif->wdev->hw, ret < 0);