Home
last modified time | relevance | path

Searched refs:rval (Results 1 – 25 of 690) sorted by relevance

12345678910>>...28

/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c50 s10_fstatat(sysret_t *rval, in s10_fstatat() argument
53 return (__systemcall(rval, SYS_fstatat + 1024, in s10_fstatat()
58 s10_stat(sysret_t *rval, const char *path, struct stat *sb) in s10_stat() argument
60 return (__systemcall(rval, SYS_fstatat + 1024, in s10_stat()
65 s10_lstat(sysret_t *rval, const char *path, struct stat *sb) in s10_lstat() argument
67 return (__systemcall(rval, SYS_fstatat + 1024, in s10_lstat()
72 s10_fstat(sysret_t *rval, int filedes, struct stat *sb) in s10_fstat() argument
74 return (__systemcall(rval, SYS_fstatat + 1024, in s10_fstat()
81 s10_fstatat64(sysret_t *rval, in s10_fstatat64() argument
84 return (__systemcall(rval, SYS_fstatat64 + 1024, in s10_fstatat64()
[all …]
H A Ds10_signal.c114 sysret_t rval; in native_sigrtmin() local
118 sigrtmin = __systemcall(&rval, SYS_sysconfig + 1024, _CONFIG_SIGRT_MIN)? in native_sigrtmin()
119 _SIGRTMIN : (int)rval.sys_rval1; in native_sigrtmin()
127 sysret_t rval; in native_sigrtmax() local
131 sigrtmax = __systemcall(&rval, SYS_sysconfig + 1024, _CONFIG_SIGRT_MAX)? in native_sigrtmax()
132 _SIGRTMAX : (int)rval.sys_rval1; in native_sigrtmax()
340 s10_lwp_sigmask(sysret_t *rval, int how, uint_t bits0, uint_t bits1) in s10_lwp_sigmask() argument
353 err = __systemcall(rval, SYS_lwp_sigmask + 1024, in s10_lwp_sigmask()
363 native_blockset.__sigbits[0] = (int)rval->sys_rval1; in s10_lwp_sigmask()
364 native_blockset.__sigbits[1] = (int)rval->sys_rval2; in s10_lwp_sigmask()
[all …]
H A Ds10_brand.c139 sysret_t *rval, int fdes, int cmd, intptr_t arg) in passthru_otherdev_ioctl() argument
144 if ((*err = __systemcall(rval, SYS_fstatat + 1024, in passthru_otherdev_ioctl()
151 if ((*err = __systemcall(rval, SYS_fstatat + 1024, fdes, in passthru_otherdev_ioctl()
159 *err = (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in passthru_otherdev_ioctl()
172 sysret_t rval; in get_initpid_info() local
182 if ((err = __systemcall(&rval, SYS_brand, in get_initpid_info()
291 mntfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) in mntfs_ioctl() argument
300 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl()
303 if ((err = __systemcall(rval, SYS_fstatat + 1024, in mntfs_ioctl()
307 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_mbx.c89 int rval; in ql_mailbox_command() local
226 rval = QL_ABORTED; in ql_mailbox_command()
235 rval = QL_FUNCTION_TIMEOUT; in ql_mailbox_command()
243 rval = mcp->mb[0]; in ql_mailbox_command()
282 if (rval != QL_SUCCESS) { in ql_mailbox_command()
284 mbx_cmd_text(mbx_cmd), rval, mcp->mb[0]); in ql_mailbox_command()
290 return (rval); in ql_mailbox_command()
313 int rval = QL_SUCCESS; in ql_setup_mbox_dma_transfer() local
315 if ((rval = ql_setup_mbox_dma_resources(ha, mem_desc, size)) == in ql_setup_mbox_dma_transfer()
319 EL(ha, "failed, setup_mbox_dma_transfer: %xh\n", rval); in ql_setup_mbox_dma_transfer()
[all …]
H A Dql_ioctl.c106 int rval = 0; in ql_open() local
125 rval = EBUSY; in ql_open()
131 if (rval != 0) { in ql_open()
132 EL(ha, "failed, rval = %xh\n", rval); in ql_open()
137 return (rval); in ql_open()
161 int rval = 0; in ql_close() local
180 if (rval != 0) { in ql_close()
181 EL(ha, "failed, rval = %xh\n", rval); in ql_close()
186 return (rval); in ql_close()
213 int rval = 0; in ql_ioctl() local
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c206 boolean_t rval; in nvf_load() local
217 rval = nvf_parse(nvf_curr_filename); in nvf_load()
219 if (rval == B_TRUE) { in nvf_load()
221 return (rval); in nvf_load()
238 rval = nvf_parse(nvf_prev_filename); in nvf_load()
241 if (rval == B_TRUE) { in nvf_load()
243 return (rval); in nvf_load()
266 rval = nvlist_alloc(&nvf_list, NV_UNIQUE_NAME, KM_SLEEP); in nvf_load()
267 if (rval != 0) { in nvf_load()
269 "allocate root list (%d)", rval); in nvf_load()
[all …]
H A Dpersistent.c275 boolean_t rval = B_FALSE; in persistent_load() local
277 rval = nvf_load(); in persistent_load()
278 if (rval == B_TRUE) { in persistent_load()
283 return (rval); in persistent_load()
325 boolean_t rval; in persistent_disc_meth_get() local
328 rval = nvf_node_value_get(DISCOVERY_METHOD_ID, (uint32_t *)&methods); in persistent_disc_meth_get()
329 if (rval == B_FALSE) { in persistent_disc_meth_get()
354 boolean_t rval; in persistent_disc_meth_common() local
365 rval = nvf_node_value_set(DISCOVERY_METHOD_ID, discovery_types); in persistent_disc_meth_common()
367 return (rval); in persistent_disc_meth_common()
[all …]
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_tools.c76 int rval = SUCCESS; in pxtool_intr_info() local
94 rval = EFAULT; in pxtool_intr_info()
97 return (rval); in pxtool_intr_info()
122 int rval = EIO; in pxtool_get_intr() local
140 rval = EINVAL; in pxtool_get_intr()
161 rval = EINVAL; in pxtool_get_intr()
190 rval = EIO; in pxtool_get_intr()
198 rval = EIO; in pxtool_get_intr()
217 rval = EIO; in pxtool_get_intr()
225 rval = SUCCESS; in pxtool_get_intr()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/
H A Dusb_ms_cbi.c153 int i, rval = TRAN_ACCEPT; in scsa2usb_cbi_transport() local
184 rval = usb_pipe_sync_ctrl_xfer(scsa2usbp->scsa2usb_dip, in scsa2usb_cbi_transport()
198 cmd->cmd_cdb[SCSA2USB_OPCODE], rval); in scsa2usb_cbi_transport()
201 if (rval != USB_SUCCESS) { in scsa2usb_cbi_transport()
202 scsa2usb_cbi_handle_error(scsa2usbp, rval, completion_reason); in scsa2usb_cbi_transport()
226 rval = scsa2usb_handle_data_start(scsa2usbp, cmd, in scsa2usb_cbi_transport()
231 if (rval != USB_SUCCESS) { in scsa2usb_cbi_transport()
242 rval, data_req->bulk_completion_reason); in scsa2usb_cbi_transport()
257 "scsa2usb_cbi_transport: CB done rval = %d", rval); in scsa2usb_cbi_transport()
271 rval = scsa2usb_handle_cbi_status(status_req); in scsa2usb_cbi_transport()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbsprl/
H A Dpl2303_dsd.c386 int rval = USB_FAILURE; in pl2303_open_port() local
395 return (rval); in pl2303_open_port()
400 if ((rval = pl2303_pm_set_busy(plp)) != USB_SUCCESS) { in pl2303_open_port()
402 return (rval); in pl2303_open_port()
406 rval = pl2303_open_hw_port(plp); in pl2303_open_port()
408 if (rval == USB_SUCCESS) { in pl2303_open_port()
423 return (rval); in pl2303_open_port()
471 int rval; in pl2303_usb_power() local
504 rval = pl2303_pwrlvl0(plp); in pl2303_usb_power()
508 rval = pl2303_pwrlvl1(plp); in pl2303_usb_power()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci_tools.c140 int rval = SUCCESS; in pcitool_set_intr() local
161 rval = ENOTSUP; in pcitool_set_intr()
166 rval = ENOTSUP; in pcitool_set_intr()
175 rval = ENOTSUP; in pcitool_set_intr()
182 rval = EINVAL; in pcitool_set_intr()
191 rval = EINVAL; in pcitool_set_intr()
197 rval = EINVAL; in pcitool_set_intr()
234 rval = EIO; in pcitool_set_intr()
238 rval = EINVAL; in pcitool_set_intr()
242 rval = EINVAL; in pcitool_set_intr()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_tools.c256 int rval = SUCCESS; in pcitool_intr_info() local
274 rval = EFAULT; in pcitool_intr_info()
277 return (rval); in pcitool_intr_info()
303 int rval = SUCCESS; in pcitool_get_intr() local
315 rval = ENOTSUP; in pcitool_get_intr()
326 rval = EINVAL; in pcitool_get_intr()
373 rval = EIO; in pcitool_get_intr()
400 rval = EFAULT; in pcitool_get_intr()
403 return (rval); in pcitool_get_intr()
415 int rval = SUCCESS; in pcitool_set_intr() local
[all …]
/illumos-gate/usr/src/cmd/pcitool/
H A Dpcitool_ui.c916 int rval = SUCCESS; in parse_nexus_opts() local
923 while ((*input != '\0') && (rval == SUCCESS)) { in parse_nexus_opts()
929 rval = FAILURE; in parse_nexus_opts()
935 rval = FAILURE; in parse_nexus_opts()
940 rval = FAILURE; in parse_nexus_opts()
943 if ((rval = get_value64(value, &recv64, HEX_ONLY)) != in parse_nexus_opts()
951 rval = FAILURE; in parse_nexus_opts()
961 rval = FAILURE; in parse_nexus_opts()
967 rval = FAILURE; in parse_nexus_opts()
973 rval = FAILURE; in parse_nexus_opts()
[all …]
/illumos-gate/usr/src/lib/libsendfile/common/
H A Dsendfile.c45 sysret_t rval; in _sendfilev() local
48 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, vec, in _sendfilev()
52 rval.sys_rval1 = *xferred; in _sendfilev()
57 return ((ssize_t)rval.sys_rval1); in _sendfilev()
63 sysret_t rval; in _sendfile() local
72 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, &sfv, in _sendfile()
77 rval.sys_rval1 = xferred; in _sendfile()
82 return ((ssize_t)rval.sys_rval1); in _sendfile()
94 sysret_t rval; in _sendfilev64() local
97 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, vec, in _sendfilev64()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/ugen/
H A Dugen.c130 int rval; in _init() local
132 if ((rval = ddi_soft_state_init(&ugen_skel_statep, in _init()
135 return (rval); in _init()
138 if ((rval = mod_install(&modlinkage)) != 0) { in _init()
141 return (rval); in _init()
144 return (rval); in _init()
151 int rval; in _fini() local
153 if ((rval = mod_remove(&modlinkage)) != 0) { in _fini()
155 return (rval); in _fini()
159 return (rval); in _fini()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_diag.c138 uint32_t rval = FC_SUCCESS; in emlxs_diag_echo_run() local
225 if ((rval = emlxs_pkt_send(pkt, 1)) != FC_SUCCESS) { in emlxs_diag_echo_run()
254 rval = FC_TRANSPORT_ERROR; in emlxs_diag_echo_run()
261 rval = FC_SUCCESS; in emlxs_diag_echo_run()
270 rval = EMLXS_TEST_FAILED; in emlxs_diag_echo_run()
276 if (rval == FC_SUCCESS) { in emlxs_diag_echo_run()
289 return (rval); in emlxs_diag_echo_run()
304 int32_t rval = FC_SUCCESS; in emlxs_diag_biu_run() local
322 rval = FC_NOMEM; in emlxs_diag_biu_run()
334 rval = FC_NOMEM; in emlxs_diag_biu_run()
[all …]
H A Demlxs_fcf.c2179 uint32_t rval = 0; in emlxs_fcf_shutdown_notify() local
2203 rval = emlxs_fcftab_event(port, FCF_EVENT_SHUTDOWN, 0); in emlxs_fcf_shutdown_notify()
2205 if (wait && (rval == 0)) { in emlxs_fcf_shutdown_notify()
2220 rval = 1; in emlxs_fcf_shutdown_notify()
2226 return (rval); in emlxs_fcf_shutdown_notify()
2237 uint32_t rval = 0; in emlxs_fcf_linkup_notify() local
2256 rval = emlxs_fcftab_event(port, FCF_EVENT_LINKUP, 0); in emlxs_fcf_linkup_notify()
2260 return (rval); in emlxs_fcf_linkup_notify()
2271 uint32_t rval = 0; in emlxs_fcf_linkdown_notify() local
2290 rval = emlxs_fcftab_event(port, FCF_EVENT_LINKDOWN, 0); in emlxs_fcf_linkdown_notify()
[all …]
H A Demlxs_dfc.c368 int rval; in emlxs_dfc_func() local
381 rval = emlxs_dfc_table[i].func(hba, dfc, mode); in emlxs_dfc_func()
382 return (rval); in emlxs_dfc_func()
419 int rval = 0; in emlxs_dfc_copyin() local
436 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
461 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
494 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
510 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
526 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
542 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser_rseq.c53 int rval = RSEQ_OK; in rseq_do_common() local
62 rval = (s->s_cb) ? (s->s_cb(rseq, i, arg)) : RSEQ_OK; in rseq_do_common()
64 if (rval == RSEQ_UNDO) { in rseq_do_common()
67 } else if (rval == RSEQ_ABORT) { in rseq_do_common()
70 ASSERT(rval == RSEQ_OK); in rseq_do_common()
72 return (rval); in rseq_do_common()
83 int rval = RSEQ_OK; in rseq_undo_common() local
92 rval = (s->s_cb) ? (s->s_cb(rseq, i, arg)) : RSEQ_OK; in rseq_undo_common()
94 if (rval == RSEQ_ABORT) { in rseq_undo_common()
97 ASSERT(rval == RSEQ_OK); in rseq_undo_common()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai_util.c284 int rval; in usb_get_string_descr() local
301 rval = usb_pipe_sync_ctrl_xfer(dip, in usb_get_string_descr()
312 if (rval != USB_SUCCESS) { in usb_get_string_descr()
314 "rval=%d cr=%d", rval, completion_reason); in usb_get_string_descr()
331 "rval=%d, cr=%d, length=%d", rval, completion_reason, length); in usb_get_string_descr()
340 rval = USB_FAILURE; in usb_get_string_descr()
345 rval = usb_pipe_sync_ctrl_xfer(dip, in usb_get_string_descr()
357 "rval=%d, cb_flags=%d, cr=%d", rval, cb_flags, completion_reason); in usb_get_string_descr()
359 if ((data == NULL) || (rval != USB_SUCCESS)) { in usb_get_string_descr()
362 rval, completion_reason); in usb_get_string_descr()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge_flash.c43 int rval; in ql_flash_id() local
50 rval = ql_read_flash(qlge, FLASH_CONF_ADDR | 0x300 | FLASH_RES_CMD, in ql_flash_id()
57 rval = ql_read_flash(qlge, FLASH_CONF_ADDR | 0x0400 | FLASH_RDID_CMD, in ql_flash_id()
60 if ((rval != DDI_SUCCESS) || (fdata == 0)) { in ql_flash_id()
73 return (rval); in ql_flash_id()
84 int rval = DDI_SUCCESS; in qlge_dump_fcode() local
115 rval = ql_read_flash(qlge, addr++, &data); in qlge_dump_fcode()
116 if (rval != DDI_SUCCESS) { in qlge_dump_fcode()
126 if (rval != DDI_SUCCESS) { in qlge_dump_fcode()
127 cmn_err(CE_WARN, "failed, rval = %xh", rval); in qlge_dump_fcode()
[all …]
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu.c224 int rval; in _init() local
244 rval = mod_install(&modlinkage); in _init()
245 if (rval != DDI_SUCCESS) { in _init()
253 return (rval); in _init()
259 int rval; in _fini() local
261 rval = mod_remove(&modlinkage); in _fini()
262 if (rval == DDI_SUCCESS) { in _fini()
270 return (rval); in _fini()
285 int rval = DDI_SUCCESS; in oplmsu_getinfo() local
290 rval = DDI_FAILURE; in oplmsu_getinfo()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/px/
H A Dpx_tools_4v.c137 int rval; in pxtool_phys_access() local
187 rval = hv_hpriv((void *)pfunc, from_addr, to_addr, 0); in pxtool_phys_access()
188 switch (rval) { in pxtool_phys_access()
190 rval = ENOTSUP; in pxtool_phys_access()
193 rval = SUCCESS; in pxtool_phys_access()
196 rval = EIO; in pxtool_phys_access()
200 if ((rval == SUCCESS) && (!is_write)) { in pxtool_phys_access()
208 return (rval); in pxtool_phys_access()
228 int rval = 0; in pxtool_pcicfg_access() local
285 rval = H_EIO; in pxtool_pcicfg_access()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Ddevcache.c378 int rval; in fread_nvlist() local
449 rval = kobj_read_file(file, &c, 1, offset); in fread_nvlist()
451 if (rval > 0) { in fread_nvlist()
467 rval = nvlist_unpack(buf, hdr.nvpf_size, &nvl, 0); in fread_nvlist()
468 if (rval != 0) { in fread_nvlist()
470 filename, rval); in fread_nvlist()
484 int rval; in kfcreate() local
497 rval = vn_open(filename, UIO_SYSSPACE, fp->kf_vnflags, in kfcreate()
499 if (rval != 0) { in kfcreate()
502 filename, rval)); in kfcreate()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dst.c793 int rval; in st_probe() local
850 rval = DDI_PROBE_SUCCESS; in st_probe()
852 rval = DDI_PROBE_FAILURE; in st_probe()
857 rval = DDI_PROBE_FAILURE; in st_probe()
860 return (rval); in st_probe()
2279 int rval; in st_get_conf_from_tape_drive() local
2314 rval = st_modesense(un); in st_get_conf_from_tape_drive()
2315 if (rval) { in st_get_conf_from_tape_drive()
2316 if (rval == EACCES) { in st_get_conf_from_tape_drive()
2318 rval = 1; in st_get_conf_from_tape_drive()
[all …]

12345678910>>...28