Lines Matching defs:error

16  * Return 0 when no error, < 0 in case of error.
20 int error = AS10X_CMD_ERROR;
35 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd,
43 if (error < 0)
47 error = as10x_rsp_parse(prsp, CONTROL_PROC_TURNON_RSP);
50 return error;
57 * Return 0 on success or negative value in case of error.
61 int error = AS10X_CMD_ERROR;
76 error = adap->ops->xfer_cmd(
83 if (error < 0)
87 error = as10x_rsp_parse(prsp, CONTROL_PROC_TURNOFF_RSP);
90 return error;
98 * Return 0 on success or negative value in case of error.
103 int error = AS10X_CMD_ERROR;
129 error = adap->ops->xfer_cmd(adap,
138 if (error < 0)
142 error = as10x_rsp_parse(prsp, CONTROL_PROC_SETTUNE_RSP);
145 return error;
153 * Return 0 on success or negative value in case of error.
158 int error = AS10X_CMD_ERROR;
174 error = adap->ops->xfer_cmd(
182 if (error < 0)
186 error = as10x_rsp_parse(prsp, CONTROL_PROC_GETTUNESTAT_RSP);
187 if (error < 0)
198 return error;
206 * Return 0 on success or negative value in case of error.
210 int error = AS10X_CMD_ERROR;
226 error = adap->ops->xfer_cmd(adap,
235 if (error < 0)
239 error = as10x_rsp_parse(prsp, CONTROL_PROC_GETTPS_RSP);
240 if (error < 0)
256 return error;
264 * Return 0 on success or negative value in case of error.
269 int error = AS10X_CMD_ERROR;
285 error = adap->ops->xfer_cmd(adap,
294 if (error < 0)
298 error = as10x_rsp_parse(prsp, CONTROL_PROC_GET_DEMOD_STATS_RSP);
299 if (error < 0)
315 return error;
324 * Return 0 on success or negative value in case of error.
329 int error = AS10X_CMD_ERROR;
345 error = adap->ops->xfer_cmd(adap,
354 if (error < 0)
358 error = as10x_rsp_parse(prsp, CONTROL_PROC_GET_IMPULSE_RESP_RSP);
359 if (error < 0)
366 return error;
389 * Return 0 on success or negative value in case of error.
393 int error;
395 /* extract command error code */
396 error = prsp->body.common.rsp.error;
398 if ((error == 0) &&