Lines Matching defs:error
16 * Return 0 on success or negative value in case of error.
21 int error;
44 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd,
50 error = AS10X_CMD_ERROR;
53 if (error < 0)
57 error = as10x_rsp_parse(prsp, CONTROL_PROC_SETFILTER_RSP);
59 if (error == 0) {
65 return error;
73 * Return 0 on success or negative value in case of error.
78 int error;
95 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd,
101 error = AS10X_CMD_ERROR;
104 if (error < 0)
108 error = as10x_rsp_parse(prsp, CONTROL_PROC_REMOVEFILTER_RSP);
111 return error;
118 * Return 0 on success or negative value in case of error.
122 int error;
138 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd,
144 error = AS10X_CMD_ERROR;
147 if (error < 0)
151 error = as10x_rsp_parse(prsp, CONTROL_PROC_START_STREAMING_RSP);
154 return error;
161 * Return 0 on success or negative value in case of error.
165 int8_t error;
181 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd,
187 error = AS10X_CMD_ERROR;
190 if (error < 0)
194 error = as10x_rsp_parse(prsp, CONTROL_PROC_STOP_STREAMING_RSP);
197 return error;