Home
last modified time | relevance | path

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

12345678910>>...28

/titanic_44/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.c136 sysret_t *rval, int fdes, int cmd, intptr_t arg) in passthru_otherdev_ioctl() argument
141 if ((*err = __systemcall(rval, SYS_fstatat + 1024, in passthru_otherdev_ioctl()
148 if ((*err = __systemcall(rval, SYS_fstatat + 1024, fdes, in passthru_otherdev_ioctl()
156 *err = (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in passthru_otherdev_ioctl()
169 sysret_t rval; in get_initpid_info() local
179 if ((err = __systemcall(&rval, SYS_brand, in get_initpid_info()
288 mntfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) in mntfs_ioctl() argument
297 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl()
300 if ((err = __systemcall(rval, SYS_fstatat + 1024, in mntfs_ioctl()
304 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl()
[all …]
/titanic_44/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.c105 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
181 if (rval != 0) { in ql_close()
182 EL(ha, "failed, rval = %xh\n", rval); in ql_close()
187 return (rval); in ql_close()
214 int rval = 0; in ql_ioctl() local
[all …]
H A Dql_debug.c152 int rval, tmp; in ql_el_msg() local
158 (rval = ql_validate_trace_desc(ha) == DDI_SUCCESS)) { in ql_el_msg()
197 rval = (int)snprintf(fmt, (size_t)EL_BUFFER_RESERVE, in ql_el_msg()
200 fmt1 = fmt + rval; in ql_el_msg()
202 (size_t)(uint32_t)((int)EL_BUFFER_RESERVE - rval), s, vl); in ql_el_msg()
203 rval += tmp; in ql_el_msg()
205 rval = (int)snprintf(fmt, (size_t)EL_BUFFER_RESERVE, in ql_el_msg()
208 fmt1 = fmt + rval; in ql_el_msg()
210 (size_t)(uint32_t)((int)EL_BUFFER_RESERVE - rval), s, vl); in ql_el_msg()
211 rval += tmp; in ql_el_msg()
[all …]
/titanic_44/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.c255 boolean_t rval = B_FALSE; in persistent_load() local
257 rval = nvf_load(); in persistent_load()
258 if (rval == B_TRUE) { in persistent_load()
263 return (rval); in persistent_load()
305 boolean_t rval; in persistent_disc_meth_get() local
308 rval = nvf_node_value_get(DISCOVERY_METHOD_ID, (uint32_t *)&methods); in persistent_disc_meth_get()
309 if (rval == B_FALSE) { in persistent_disc_meth_get()
334 boolean_t rval; in persistent_disc_meth_common() local
345 rval = nvf_node_value_set(DISCOVERY_METHOD_ID, discovery_types); in persistent_disc_meth_common()
347 return (rval); in persistent_disc_meth_common()
[all …]
/titanic_44/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 …]
/titanic_44/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 …]
/titanic_44/usr/src/lib/libsendfile/common/
H A Dsendfile.c47 sysret_t rval; in _sendfilev() local
50 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, vec, in _sendfilev()
54 rval.sys_rval1 = *xferred; in _sendfilev()
59 return ((ssize_t)rval.sys_rval1); in _sendfilev()
65 sysret_t rval; in _sendfile() local
74 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, &sfv, in _sendfile()
79 rval.sys_rval1 = xferred; in _sendfile()
84 return ((ssize_t)rval.sys_rval1); in _sendfile()
96 sysret_t rval; in _sendfilev64() local
99 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, vec, in _sendfilev64()
[all …]
/titanic_44/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 …]
/titanic_44/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser_rseq.c54 int rval = RSEQ_OK; in rseq_do_common() local
63 rval = (s->s_cb) ? (s->s_cb(rseq, i, arg)) : RSEQ_OK; in rseq_do_common()
65 if (rval == RSEQ_UNDO) { in rseq_do_common()
68 } else if (rval == RSEQ_ABORT) { in rseq_do_common()
71 ASSERT(rval == RSEQ_OK); in rseq_do_common()
73 return (rval); in rseq_do_common()
84 int rval = RSEQ_OK; in rseq_undo_common() local
93 rval = (s->s_cb) ? (s->s_cb(rseq, i, arg)) : RSEQ_OK; in rseq_undo_common()
95 if (rval == RSEQ_ABORT) { in rseq_undo_common()
98 ASSERT(rval == RSEQ_OK); in rseq_undo_common()
[all …]
/titanic_44/usr/src/uts/common/io/usb/clients/ugen/
H A Dugen.c129 int rval; in _init() local
131 if ((rval = ddi_soft_state_init(&ugen_skel_statep, in _init()
134 return (rval); in _init()
137 if ((rval = mod_install(&modlinkage)) != 0) { in _init()
140 return (rval); in _init()
143 return (rval); in _init()
150 int rval; in _fini() local
152 if ((rval = mod_remove(&modlinkage)) != 0) { in _fini()
154 return (rval); in _fini()
158 return (rval); in _fini()
[all …]
/titanic_44/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 …]
/titanic_44/usr/src/uts/i86pc/io/pci/
H A Dpci_tools.c135 int rval = SUCCESS; in pcitool_set_intr() local
156 rval = ENOTSUP; in pcitool_set_intr()
161 rval = ENOTSUP; in pcitool_set_intr()
170 rval = ENOTSUP; in pcitool_set_intr()
177 rval = EINVAL; in pcitool_set_intr()
186 rval = EINVAL; in pcitool_set_intr()
192 rval = EINVAL; in pcitool_set_intr()
229 rval = EIO; in pcitool_set_intr()
233 rval = EINVAL; in pcitool_set_intr()
237 rval = EINVAL; in pcitool_set_intr()
[all …]
/titanic_44/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.c367 int rval; in emlxs_dfc_func() local
380 rval = emlxs_dfc_table[i].func(hba, dfc, mode); in emlxs_dfc_func()
381 return (rval); in emlxs_dfc_func()
418 int rval = 0; in emlxs_dfc_copyin() local
435 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
460 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
493 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
509 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
525 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
541 rval = DFC_COPYIN_ERROR; in emlxs_dfc_copyin()
[all …]
/titanic_44/usr/src/cmd/pcitool/
H A Dpcitool_ui.c915 int rval = SUCCESS; in parse_nexus_opts() local
922 while ((*input != '\0') && (rval == SUCCESS)) { in parse_nexus_opts()
928 rval = FAILURE; in parse_nexus_opts()
934 rval = FAILURE; in parse_nexus_opts()
939 rval = FAILURE; in parse_nexus_opts()
942 if ((rval = get_value64(value, &recv64, HEX_ONLY)) != in parse_nexus_opts()
950 rval = FAILURE; in parse_nexus_opts()
960 rval = FAILURE; in parse_nexus_opts()
966 rval = FAILURE; in parse_nexus_opts()
972 rval = FAILURE; in parse_nexus_opts()
[all …]
/titanic_44/usr/src/uts/sun4u/starcat/io/
H A Dcvc.c835 int rval = ESUCCESS; in cvc_iosram_ops() local
908 rval = iosram_set_flag(IOSRAM_KEY_CONC, IOSRAM_DATA_INVALID, in cvc_iosram_ops()
910 if (rval != 0) { in cvc_iosram_ops()
912 if (rval != EAGAIN) { in cvc_iosram_ops()
915 rval); in cvc_iosram_ops()
938 int rval; in cvc_send_to_iosram() local
972 rval = iosram_get_flag(IOSRAM_KEY_CONO, &dvalid, NULL); in cvc_send_to_iosram()
973 if ((rval != 0) || (dvalid == IOSRAM_DATA_VALID)) { in cvc_send_to_iosram()
974 if ((rval != 0) && (rval != EAGAIN)) { in cvc_send_to_iosram()
976 rval); in cvc_send_to_iosram()
[all …]
/titanic_44/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 …]
/titanic_44/usr/src/uts/common/io/usb/usba/
H A Dusbai_util.c283 int rval; in usb_get_string_descr() local
300 rval = usb_pipe_sync_ctrl_xfer(dip, in usb_get_string_descr()
311 if (rval != USB_SUCCESS) { in usb_get_string_descr()
313 "rval=%d cr=%d", rval, completion_reason); in usb_get_string_descr()
330 "rval=%d, cr=%d, length=%d", rval, completion_reason, length); in usb_get_string_descr()
339 rval = USB_FAILURE; in usb_get_string_descr()
344 rval = usb_pipe_sync_ctrl_xfer(dip, in usb_get_string_descr()
356 "rval=%d, cb_flags=%d, cr=%d", rval, cb_flags, completion_reason); in usb_get_string_descr()
358 if ((data == NULL) || (rval != USB_SUCCESS)) { in usb_get_string_descr()
361 rval, completion_reason); in usb_get_string_descr()
[all …]
/titanic_44/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu.c221 int rval; in _init() local
241 rval = mod_install(&modlinkage); in _init()
242 if (rval != DDI_SUCCESS) { in _init()
250 return (rval); in _init()
256 int rval; in _fini() local
258 rval = mod_remove(&modlinkage); in _fini()
259 if (rval == DDI_SUCCESS) { in _fini()
267 return (rval); in _fini()
282 int rval = DDI_SUCCESS; in oplmsu_getinfo() local
287 rval = DDI_FAILURE; in oplmsu_getinfo()
[all …]
/titanic_44/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, NULL); 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 …]

12345678910>>...28