Lines Matching refs:rval

88         int rval = 0;  in ql_eioctl()  local
121 if ((rval = ql_rdwr_indreg32(ha, u.rv->reg, &u.rv->val, in ql_eioctl()
123 rval = ENXIO; in ql_eioctl()
130 rval = EIO; in ql_eioctl()
135 if ((rval = ql_rd_flash32(ha, u.rdf->off, &u.rdf->data))) in ql_eioctl()
136 rval = ENXIO; in ql_eioctl()
144 rval = ENXIO; in ql_eioctl()
149 rval = ENXIO; in ql_eioctl()
154 rval = EIO; in ql_eioctl()
159 if ((rval = ql_wr_flash_buffer(ha, u.wrf->off, u.wrf->size, in ql_eioctl()
161 printf("flash write failed[%d]\n", rval); in ql_eioctl()
162 rval = ENXIO; in ql_eioctl()
171 rval = ENXIO; in ql_eioctl()
176 rval = ENXIO; in ql_eioctl()
181 rval = EIO; in ql_eioctl()
186 if ((rval = ql_erase_flash(ha, u.erf->off, in ql_eioctl()
188 printf("flash erase failed[%d]\n", rval); in ql_eioctl()
189 rval = ENXIO; in ql_eioctl()
196 if ((rval = ql_rdwr_offchip_mem(ha, u.mem->off, &val, in ql_eioctl()
198 rval = ENXIO; in ql_eioctl()
211 rval = EINVAL; in ql_eioctl()
226 rval = EINVAL; in ql_eioctl()
239 rval = EINVAL; in ql_eioctl()
245 rval = ENXIO; in ql_eioctl()
261 rval = ENXIO; in ql_eioctl()
277 rval = ENXIO; in ql_eioctl()
295 rval = ENXIO; in ql_eioctl()
305 rval = ENXIO; in ql_eioctl()
310 if ((rval = copyout(ha->hw.mdump_template, in ql_eioctl()
313 rval = ENXIO; in ql_eioctl()
317 if ((rval = copyout(ha->hw.mdump_buffer, in ql_eioctl()
322 rval = ENXIO; in ql_eioctl()
327 rval = ql_drvr_state(ha, (qla_driver_state_t *)data); in ql_eioctl()
331 rval = ql_slowpath_log(ha, (qla_sp_log_t *)data); in ql_eioctl()
347 return rval; in ql_eioctl()
353 int rval = 0; in ql_drvr_state() local
371 rval = copyout(ha->hw.drvr_state, state->buffer, drvr_state_size); in ql_drvr_state()
375 return (rval); in ql_drvr_state()
638 int rval = 0; in ql_slowpath_log() local
648 rval = copyout(ha->hw.sp_log, log->buffer, size); in ql_slowpath_log()
650 if (!rval) { in ql_slowpath_log()
656 __func__, rval, log->next_idx, log->num_entries, size); in ql_slowpath_log()
659 return (rval); in ql_slowpath_log()