Home
last modified time | relevance | path

Searched refs:ustatus (Results 1 – 22 of 22) sorted by relevance

/titanic_44/usr/src/lib/libunistat/common/
H A Dspcs_s_u.c51 spcs_s_uinit(spcs_s_info_t ustatus) in spcs_s_uinit() argument
53 spcs_s_pinfo_t *p = (spcs_s_pinfo_t *)ustatus; in spcs_s_uinit()
70 spcs_s_pinfo_t *ustatus; in spcs_s_ucreate() local
78 ustatus = (spcs_s_pinfo_t *)malloc(sizeof (spcs_s_pinfo_t)); in spcs_s_ucreate()
79 spcs_s_uinit((spcs_s_info_t)ustatus); in spcs_s_ucreate()
81 return ((spcs_s_info_t)ustatus); in spcs_s_ucreate()
109 spcs_s_string(spcs_s_info_t ustatus, char *msg) in spcs_s_string() argument
111 spcs_s_pinfo_t *p = (spcs_s_pinfo_t *)ustatus; in spcs_s_string()
189 spcs_s_report(spcs_s_info_t ustatus, FILE *fd) in spcs_s_report() argument
191 spcs_s_pinfo_t *p = (spcs_s_pinfo_t *)ustatus; in spcs_s_report()
[all …]
H A Dllib-lunistat35 void spcs_s_uinit(spcs_s_info_t ustatus);
37 char *spcs_s_string(spcs_s_info_t ustatus, char *msg);
38 void spcs_s_report(spcs_s_info_t ustatus, FILE *fd);
39 void spcs_s_exception(spcs_s_info_t ustatus, void *env);
/titanic_44/usr/src/uts/common/avs/ns/unistat/
H A Dspcs_s_k.c252 check_revision(spcs_s_info_t ustatus) in check_revision() argument
265 (void) ddi_copyin((void *) ustatus, (void *) p, SPCS_S_REVSIZE, mode); in check_revision()
371 scopyout(spcs_s_pinfo_t *kstatus, spcs_s_pinfo_t *ustatus) in scopyout() argument
396 (void) ddi_copyout((void *) kstatus, (void *) ustatus, in scopyout()
399 (void) ddi_copyout((void *)kstatus->idata, (void *) ustatus->idata, in scopyout()
401 (void) ddi_copyout((void *)kstatus->sdata, (void *) ustatus->sdata, in scopyout()
403 (void) ddi_copyout((void *)kstatus->tdata, (void *) ustatus->tdata, in scopyout()
415 spcs_s_copyout(spcs_s_info_t *kstatus_a, spcs_s_info_t ustatus) in spcs_s_copyout() argument
420 if (check_revision(ustatus) == B_TRUE) in spcs_s_copyout()
422 (spcs_s_pinfo_t *)ustatus); in spcs_s_copyout()
[all …]
H A Dspcs_s_u.h54 spcs_s_uinit(spcs_s_info_t ustatus);
77 char *spcs_s_string(spcs_s_info_t ustatus, char *msg);
91 void spcs_s_report(spcs_s_info_t ustatus, FILE *fd);
111 spcs_log(const char *product, spcs_s_info_t *ustatus, const char *format, ...);
H A Dspcs_s_k.h80 spcs_s_copyout(spcs_s_info_t *kstatus_a, spcs_s_info_t ustatus);
88 spcs_s_copyoutf(spcs_s_info_t *kstatus_a, spcs_s_info_t ustatus);
132 spcs_s_info_t ustatus, spcs_s_status_t stcode, ...);
158 spcs_s_info_t ustatus, spcs_s_status_t stcode, ...);
/titanic_44/usr/src/cmd/avs/rdc/
H A Dsndrsyncd.c128 spcs_s_info_t ustatus; local
136 ustatus = spcs_s_ucreate();
238 if (RDC_IOCTL(RDC_STATUS, rdc_info, 0, 0, 0, 0, ustatus)
240 spcs_log("sndr", &ustatus,
243 rdc_warn(&ustatus, gettext("status ioctl"));
306 spcs_s_info_t ustatus; in wait_link_down() local
311 ustatus = spcs_s_ucreate(); in wait_link_down()
320 if (RDC_IOCTL(RDC_LINK_DOWN, host, 0, 0, 0, 0, ustatus) in wait_link_down()
322 spcs_log("sndr", &ustatus, in wait_link_down()
325 rdc_warn(&ustatus, gettext("link down ioctl")); in wait_link_down()
[all …]
H A Drdc_ioctl.c59 spcs_s_info_t ustatus) in rdc_ioctl() argument
72 args.ustatus = ustatus; in rdc_ioctl()
H A Dsndrsubr.c243 spcs_s_info_t ustatus; in rdc_get_maxsets() local
247 ustatus = spcs_s_ucreate(); in rdc_get_maxsets()
249 rc = RDC_IOCTL(RDC_STATUS, &rdc_status, 0, 0, 0, 0, ustatus); in rdc_get_maxsets()
251 rdc_err(&ustatus, gettext("statistics error")); in rdc_get_maxsets()
254 spcs_s_ufree(&ustatus); in rdc_get_maxsets()
H A Dsndradm.c214 spcs_s_info_t ustatus; in rdc_print() local
254 ustatus = spcs_s_ucreate(); in rdc_print()
256 rc = RDC_IOCTL(RDC_STATUS, rdc_status, 0, 0, 0, 0, ustatus); in rdc_print()
258 rdc_err(&ustatus, gettext("statistics error")); in rdc_print()
261 spcs_s_ufree(&ustatus); in rdc_print()
1602 spcs_s_info_t ustatus; in rdc_force_disable() local
1639 ustatus = spcs_s_ucreate(); in rdc_force_disable()
1653 if (RDC_IOCTL(RDC_CONFIG, &parms, 0, 0, 0, 0, ustatus) != SPCS_S_OK) in rdc_force_disable()
1654 rdc_warn(&ustatus, gettext("set %s:%s not enabled in kernel"), in rdc_force_disable()
2057 spcs_s_info_t ustatus; local
[all …]
H A Dsndrboot.c270 spcs_s_info_t ustatus; local
481 ustatus = spcs_s_ucreate();
484 ret = RDC_IOCTL(RDC_CONFIG, &parms, NULL, 0, 0, 0, ustatus);
490 spcs_s_ufree(&ustatus);
506 rdc_err(&ustatus,
511 spcs_log("sndr", &ustatus,
516 rdc_err(&ustatus, 0);
525 spcs_s_ufree(&ustatus);
/titanic_44/usr/src/cmd/avs/sdbc/
H A Dsdbc_ioctl.c107 spcs_s_info_t *ustatus) in sdbc_ioctl() argument
112 *ustatus = NULL; in sdbc_ioctl()
149 *ustatus = args.sdbc_ustatus; in sdbc_ioctl()
152 *ustatus = NULL; in sdbc_ioctl()
H A Dscmadm.c126 sdbc_report_error(spcs_s_info_t *ustatus) in sdbc_report_error() argument
128 if (*ustatus != NULL) { in sdbc_report_error()
129 spcs_s_report(*ustatus, stderr); in sdbc_report_error()
130 spcs_s_ufree(ustatus); in sdbc_report_error()
274 spcs_s_info_t ustatus; in restore_hints() local
315 1, 0, 0, 0, &ustatus) == SPCS_S_ERROR) { in restore_hints()
320 sdbc_report_error(&ustatus); in restore_hints()
324 NSC_WRTHRU, 1, 0, 0, &ustatus) == SPCS_S_ERROR) { in restore_hints()
328 sdbc_report_error(&ustatus); in restore_hints()
342 1, 0, 0, 0, &ustatus) == SPCS_S_ERROR) { in restore_hints()
[all …]
H A Dsd_trace.c518 spcs_s_info_t ustatus; in rdc_get_maxsets() local
522 ustatus = spcs_s_ucreate(); in rdc_get_maxsets()
524 rc = RDC_IOCTL(RDC_STATUS, &rdc_status, 0, 0, 0, 0, ustatus); in rdc_get_maxsets()
525 spcs_s_ufree(&ustatus); in rdc_get_maxsets()
/titanic_44/usr/src/cmd/avs/dsw/
H A Diiboot.c147 spcs_s_info_t ustatus; in iiboot_lintmain() local
181 spcs_log("ii", &ustatus, "iiboot shutdown failed"); in iiboot_lintmain()
254 ustatus = spcs_s_ucreate(); in iiboot_lintmain()
257 ii_cfgp->status = ustatus; in iiboot_lintmain()
261 ii_iop->status = ustatus; in iiboot_lintmain()
285 spcs_log("ii", &ustatus, in iiboot_lintmain()
289 spcs_log("ii", &ustatus, in iiboot_lintmain()
292 iiboot_err(&ustatus, gettext("ioctl error")); in iiboot_lintmain()
295 spcs_s_ufree(&ustatus); in iiboot_lintmain()
/titanic_44/usr/src/uts/common/avs/ns/rdc/
H A Drdc.c481 args->ustatus = (spcs_s_info_t)args32.ustatus; in convert_ioctl_args()
486 args->ustatus = (spcs_s_info_t)args32.ustatus; in convert_ioctl_args()
495 args->ustatus = (spcs_s_info_t)args32.ustatus; in convert_ioctl_args()
501 args->ustatus = (spcs_s_info_t)args32.ustatus; in convert_ioctl_args()
506 args->ustatus = (spcs_s_info_t)args32.ustatus; in convert_ioctl_args()
800 spcs_s_copyoutf(&kstatus, args.ustatus); in rdcioctl()
825 spcs_s_copyoutf(&kstatus, args.ustatus); in rdcioctl()
832 spcs_s_copyoutf(&kstatus, args.ustatus); in rdcioctl()
H A Drdc_ioctl.h51 spcs_s_info_t ustatus; member
63 spcs_s_info32_t ustatus; member
485 #define RDC_IOCTL(cmd, a0, a1, a2, a3, a4, ustatus) \ argument
487 (long)(a3), (long)(a4), (ustatus))
/titanic_44/usr/src/lib/librdc/common/
H A Drdcerr.c51 rdc_set_error(spcs_s_info_t *ustatus, int context, int severity, in rdc_set_error() argument
76 rdc_error_str = spcs_s_string(*ustatus, msg); in rdc_set_error()
H A Drdcerr.h64 rdc_set_error(spcs_s_info_t *ustatus, int context, int severity,
H A Drdcconfig.c163 spcs_s_info_t ustatus; in rdc_config() local
166 ustatus = spcs_s_ucreate(); in rdc_config()
183 rc.rc = RDC_IOCTL(RDC_CONFIG, rdccfg, NULL, 0, 0, 0, ustatus); in rdc_config()
186 rdc_set_error(&ustatus, RDC_SPCS, 0, 0); in rdc_config()
198 spcs_s_info_t ustatus; in rdc_mtconfig() local
201 ustatus = spcs_s_ucreate(); in rdc_mtconfig()
221 rc[0]->rc = RDC_IOCTL(RDC_CONFIG, rdccfg, NULL, 0, 0, 0, ustatus); in rdc_mtconfig()
224 rdc_set_error(&ustatus, RDC_SPCS, 0, 0); in rdc_mtconfig()
/titanic_44/usr/src/uts/common/avs/ns/sdbc/
H A Dsdbc_ioctl.h282 #define SDBC_IOCTL(cmd, a0, a1, a2, a3, a4, ustatus) \ argument
284 (long)(a3), (long)(a4), (spcs_s_info_t *)(ustatus))
/titanic_44/usr/src/uts/common/avs/ns/sv/
H A Dsv.c1733 spcs_s_info_t ustatus; /* Address of user version of spcs status */ in svioctl() local
1918 ustatus = (spcs_s_info_t)svl32.svl_error; in svioctl()
1928 ustatus = svl.svl_error; in svioctl()
1936 return (spcs_s_ocopyoutf(&kstatus, ustatus, in svioctl()
1954 ustatus, ENOMEM)); in svioctl()
1962 return (spcs_s_ocopyoutf(&kstatus, ustatus, rc)); in svioctl()
2003 return (spcs_s_ocopyoutf(&kstatus, ustatus, 0)); in svioctl()
2028 ustatus = (spcs_s_info_t)svv32.svv_error; in svioctl()
2047 ustatus = svv.svv_error; in svioctl()
2052 return (spcs_s_ocopyoutf(&kstatus, ustatus, 0)); in svioctl()
/titanic_44/usr/src/uts/common/avs/ns/dsw/
H A Ddsw_dev.c4632 _ii_spcs_s_ocopyoutf(spcs_s_info_t *kstatusp, spcs_s_info_t ustatus, int err) in _ii_spcs_s_ocopyoutf() argument
4634 if (ustatus) in _ii_spcs_s_ocopyoutf()
4635 return (spcs_s_ocopyoutf(kstatusp, ustatus, err)); in _ii_spcs_s_ocopyoutf()
4642 spcs_s_info_t ustatus) in _ii_chk_copy() argument
4651 return (_ii_spcs_s_ocopyoutf(kstatusp, ustatus, DSW_ECOPYING)); in _ii_chk_copy()
4657 return (_ii_spcs_s_ocopyoutf(kstatusp, ustatus, DSW_EOFFLINE)); in _ii_chk_copy()
4663 return (_ii_spcs_s_ocopyoutf(kstatusp, ustatus, in _ii_chk_copy()
4671 return (_ii_spcs_s_ocopyoutf(kstatusp, ustatus, in _ii_chk_copy()
4679 return (_ii_spcs_s_ocopyoutf(kstatusp, ustatus, in _ii_chk_copy()
4689 return (_ii_spcs_s_ocopyoutf(kstatusp, ustatus, DSW_ECOPYING)); in _ii_chk_copy()
[all …]