/titanic_44/usr/src/common/ctf/ |
H A D | ctf_decl.c | 54 ctf_decl_init(ctf_decl_t *cd, char *buf, size_t len) in ctf_decl_init() argument 58 bzero(cd, sizeof (ctf_decl_t)); in ctf_decl_init() 61 cd->cd_order[i] = CTF_PREC_BASE - 1; in ctf_decl_init() 63 cd->cd_qualp = CTF_PREC_BASE; in ctf_decl_init() 64 cd->cd_ordp = CTF_PREC_BASE; in ctf_decl_init() 66 cd->cd_buf = buf; in ctf_decl_init() 67 cd->cd_ptr = buf; in ctf_decl_init() 68 cd->cd_end = buf + len; in ctf_decl_init() 72 ctf_decl_fini(ctf_decl_t *cd) in ctf_decl_fini() argument 78 for (cdp = ctf_list_next(&cd->cd_nodes[i]); in ctf_decl_fini() [all …]
|
H A D | ctf_types.c | 204 ctf_decl_t cd; in ctf_type_qlname() local 213 ctf_decl_init(&cd, buf, len); in ctf_type_qlname() 214 ctf_decl_push(&cd, fp, type); in ctf_type_qlname() 216 if (cd.cd_err != 0) { in ctf_type_qlname() 217 ctf_decl_fini(&cd); in ctf_type_qlname() 218 return (ctf_set_errno(fp, cd.cd_err)); in ctf_type_qlname() 228 ptr = cd.cd_order[CTF_PREC_POINTER] > CTF_PREC_POINTER; in ctf_type_qlname() 229 arr = cd.cd_order[CTF_PREC_ARRAY] > CTF_PREC_ARRAY; in ctf_type_qlname() 237 for (cdp = ctf_list_next(&cd.cd_nodes[prec]); in ctf_type_qlname() 246 ctf_decl_sprintf(&cd, " "); in ctf_type_qlname() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_trace.c | 67 static int _sd_set_adump(int cd, int flag, _sdtr_table_t *table); 130 _sdbc_tr_configure(int cd) in _sdbc_tr_configure() argument 139 if (cd == SDT_INV_CD) in _sdbc_tr_configure() 142 if (_sd_trace_table[cd].tbl) in _sdbc_tr_configure() 151 "allocate %d bytes for trace, cd=%d", size, cd); in _sdbc_tr_configure() 159 "alloc trace lock for cd %d", cd); in _sdbc_tr_configure() 164 _sd_trace_table[cd].t_lock = lk; in _sdbc_tr_configure() 165 t->tt_cd = cd; in _sdbc_tr_configure() 171 _sd_trace_table[cd].tbl = t; in _sdbc_tr_configure() 217 _sd_alert(int f, int cd, int len, nsc_off_t fba, int flg, int ret) in _sd_alert() argument [all …]
|
H A D | sd_bcache.h | 716 #define CC_CD_BLK_MATCH(cd, blk, centry) \ argument 717 (((centry)->cc_head.hh_cd == cd) && \ 731 #define ASSERT_IO_SIZE(fba_num, fba_len, cd) \ argument 733 (_sd_cache_files[(cd)].cd_info->sh_filesize)) { \ 738 (_sd_cache_files[(cd)].cd_info->sh_filesize)); \ 758 #define _SD_CD_HINTS(cd) (_sd_cache_files[(cd)].cd_hint) argument 761 #define _SD_SETUP_HANDLE(hndl, cd, fpos, flen, flag) { \ argument 762 hndl->bh_cd = cd; \ 767 if (cd == _CD_NOHASH) \ 772 (flag | _SD_CD_HINTS(cd) | \ [all …]
|
H A D | sd_ft.c | 83 static void _sd_cd_discard_mirror(int cd); 353 _sd_recovery_wblk_wait(int cd) in _sd_recovery_wblk_wait() argument 355 _sd_cd_info_t *cdi = &_sd_cache_files[cd]; in _sd_recovery_wblk_wait() 358 FILE_OPENED(cd) && cdi->cd_recovering) { in _sd_recovery_wblk_wait() 360 if (!cdi->cd_writer) (void) cd_writer(cd); in _sd_recovery_wblk_wait() 363 if (!_sd_cache_initialized || !FILE_OPENED(cd)) in _sd_recovery_wblk_wait() 438 int cd = ft_cent->sc_cd; in _sd_ft_clone() local 444 SDTRACE(ST_ENTER|SDF_FT_CLONE, cd, BLK_FBAS, cblk, dirty, _SD_NO_NET); in _sd_ft_clone() 445 cdi = &(_sd_cache_files[cd]); in _sd_ft_clone() 446 if ((cdi->cd_info->sh_failed != 2) && !FILE_OPENED(cd)) { in _sd_ft_clone() [all …]
|
H A D | sd_tdaemon.c | 48 #define _CD_VTRK_SIZE(cd) (dev_tsize[GET_CD_STATE(cd)] * 1024) argument 49 #define _CD_VTRK_NUM(cd, len) ((len)/_CD_VTRK_SIZE(cd)) argument 50 #define _CD_VTRK_OFF(cd, len) ((len)%(_CD_VTRK_SIZE(cd))) argument 83 #define SET_CD_STATE(cd, i) (cd_test_sts[(cd)].cd_state = (short)(i)) argument 84 #define GET_CD_STATE(cd) (cd_test_sts[(cd)].cd_state) argument 94 static void _td_detach_cd(int cd); 112 static int test_control(int typ, int cd, nsc_off_t fba_pos, nsc_size_t fba_len); 267 int cd; member 273 #define add_statis(c, l, o, t) (statis[sind].cd = (c), \ 408 _td_attach_cd(int cd) in _td_attach_cd() argument [all …]
|
H A D | sd_bcache.c | 114 static int cd_kstat_add(int cd); 115 static int cd_kstat_remove(int cd); 367 static int _sd_flush_cd(int cd); 368 static int _sd_check_buffer_alloc(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, 398 static int _sd_prefetch_buf(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, 1320 int cd; in _sd_open() local 1326 cd = _sd_open_cd(filename, -1, flag); in _sd_open() 1327 SDTRACE(SDF_OPEN, (cd < 0) ? SDT_INV_CD : cd, 0, SDT_INV_BL, 0, cd); in _sd_open() 1329 return (cd); in _sd_open() 1337 int cd; in _sd_open_io() local [all …]
|
H A D | sd_io.c | 875 int flushed, i, cd; in _sd_async_flclist() local 932 cd = CENTRY_CD(cclist); in _sd_async_flclist() 1002 SDALERT(SDF_FLCLIST, cd, 0, in _sd_async_flclist() 1039 (void) sd_start_io(bp, _sd_cache_files[cd].cd_strategy, in _sd_async_flclist() 1042 DISK_FBA_WRITE(cd, FBA_NUM(len)); in _sd_async_flclist() 1044 WRITE_DESTAGED(cd, FBA_NUM(len)); in _sd_async_flclist() 1046 _sd_enqueue_io_pending(cd, cclist); in _sd_async_flclist() 1048 SDTRACE(ST_EXIT|SDF_FLCLIST, cd, FBA_NUM(len), dblk, flushed, 0); in _sd_async_flclist() 1053 _sd_enqueue_io_pending(int cd, _sd_cctl_t *cclist) in _sd_enqueue_io_pending() argument 1057 cdi = &(_sd_cache_files[cd]); in _sd_enqueue_io_pending() [all …]
|
H A D | sd_trace.h | 36 #define SDALERT(f, cd, len, fba, flg, ret) argument 37 #define SDTRACE(f, cd, len, fba, flg, ret) argument 41 #define SDALERT(f, cd, len, fba, flg, ret) \ 42 _sd_alert(f, (int)cd, (int)len, (nsc_off_t)fba, (int)flg, (int)ret) 43 #define SDTRACE(f, cd, len, fba, flg, ret) \ 45 _sd_trace(f, (int)cd, (int)len, (nsc_off_t)fba,\ 308 extern int _sdbc_tr_configure(int cd); 311 extern void _sd_alert(int f, int cd, int len, nsc_off_t fba, int flg, int ret); 312 extern void _sd_trace(int f, int cd, int len, nsc_off_t fba, int flg,
|
H A D | sd_bio.c | 1231 int cd; in _sdbc_ioj_lookup() local 1233 for (cd = 0; cd < sdbc_max_devs; ++cd) in _sdbc_ioj_lookup() 1234 if (ioerr_inject_table[cd].ioj_dev == dev) { in _sdbc_ioj_lookup() 1235 if (ioerr_inject_table[cd].ioj_cnt > 0) { in _sdbc_ioj_lookup() 1236 --ioerr_inject_table[cd].ioj_cnt; in _sdbc_ioj_lookup() 1239 return (ioerr_inject_table[cd].ioj_err); in _sdbc_ioj_lookup() 1246 _sdbc_ioj_set_dev(int cd, dev_t crdev) in _sdbc_ioj_set_dev() argument 1250 if (cd == -1) { /* all -- used for clearing table on shutdown */ in _sdbc_ioj_set_dev() 1255 ioerr_inject_table[cd].ioj_dev = crdev; /* assume valid cd */ in _sdbc_ioj_set_dev() 1260 _sdbc_ioj_set_err(int cd, int err, int count) in _sdbc_ioj_set_err() argument [all …]
|
/titanic_44/usr/src/cmd/keyserv/ |
H A D | keyserv_cache.c | 162 struct cachekey_disklist *cd, 209 struct cachekey_disklist *cd; in create_cache_file_ch() local 349 cd = &(ch->array[0]); in create_cache_file_ch() 351 i++, cd = MOVE_ADDR(cd, ch->reclength)) { in create_cache_file_ch() 352 cd->uid = (uid_t)-1; in create_cache_file_ch() 353 cd->prev = MOVE_ADDR(cd, -(ch->reclength)); in create_cache_file_ch() 354 cd->next = MOVE_ADDR(cd, +(ch->reclength)); in create_cache_file_ch() 355 cd->prevhash = 0; in create_cache_file_ch() 356 cd->nexthash = 0; in create_cache_file_ch() 362 cd = MOVE_ADDR(cd, -(ch->reclength)); in create_cache_file_ch() [all …]
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | iconv.c | 89 iconv_t cd; in iconv_open() local 92 if ((cd = malloc(sizeof (struct _iconv_info))) == NULL) in iconv_open() 100 free(cd); in iconv_open() 104 cd->_conv = iconv_open_all(tocode, fromcode, ipath); in iconv_open() 105 if (cd->_conv != (iconv_p)-1) { in iconv_open() 108 return (cd); in iconv_open() 114 cd->_conv = iconv_search_alias(tocode, fromcode, ipath); in iconv_open() 116 if (cd->_conv == (iconv_p)-1) { in iconv_open() 127 free(cd); in iconv_open() 136 cd->_conv = malloc(sizeof (struct _iconv_fields)); in iconv_open() [all …]
|
/titanic_44/usr/src/tools/ctf/dump/ |
H A D | dump.c | 111 ref_to_str(uint_t name, const ctf_header_t *hp, const ctf_data_t *cd) in ref_to_str() argument 114 const char *s = cd->cd_ctfdata + hp->cth_stroff + offset; in ref_to_str() 122 if (hp->cth_stroff + offset >= cd->cd_ctflen) in ref_to_str() 182 print_header(const ctf_header_t *hp, const ctf_data_t *cd) in print_header() argument 190 ref_to_str(hp->cth_parlabel, hp, cd)); in print_header() 192 ref_to_str(hp->cth_parname, hp, cd)); in print_header() 204 print_labeltable(const ctf_header_t *hp, const ctf_data_t *cd) in print_labeltable() argument 207 const ctf_lblent_t *ctl = (ctf_lblent_t *)(cd->cd_ctfdata + in print_labeltable() 215 if (hp->cth_lbloff >= cd->cd_ctflen) in print_labeltable() 217 if (hp->cth_objtoff >= cd->cd_ctflen) in print_labeltable() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_raw.c | 291 int rc, cd, the_cd; in _raw_open() local 332 for (cd = 0, cdi = _nsc_raw_files; cd < fd_hwm; cd++, cdi++) { in _raw_open() 334 the_cd = cd; in _raw_open() 337 the_cd = cd; in _raw_open() 426 int cd; in __raw_get_cd() local 429 for (cd = 0; cd < fd_hwm; cd++) { in __raw_get_cd() 430 if (fd == _nsc_raw_files[cd].rdev) in __raw_get_cd() 431 return (cd); in __raw_get_cd() 451 int cd; in _raw_close() local 455 if ((cd = __raw_get_cd(fd)) == -1 || !_nsc_raw_files[cd].in_use) { in _raw_close() [all …]
|
/titanic_44/usr/src/cmd/avs/sdbc/ |
H A D | scmadm.c | 144 get_cd_hint(const int cd) in get_cd_hint() argument 157 cdhint = SDBC_IOCTL(SDBC_GET_CD_HINT, cd, 0, 0, 0, 0, &ustats); in get_cd_hint() 160 gettext("%s: get cd(%d) hint failed\n"), progname, cd); in get_cd_hint() 275 int cd; in restore_hints() local 299 cd = -1; in restore_hints() 301 cd = get_cd(buf); in restore_hints() 302 if (cd < 0) in restore_hints() 312 if (cd == -1) { in restore_hints() 323 } else if (SDBC_IOCTL(SDBC_SET_CD_HINT, cd, in restore_hints() 339 if (cd == -1) { in restore_hints() [all …]
|
/titanic_44/usr/src/uts/common/io/ |
H A D | cryptmod.c | 206 cleanup(struct cipher_data_t *cd) in cleanup() argument 208 if (cd->key != NULL) { in cleanup() 209 bzero(cd->key, cd->keylen); in cleanup() 210 kmem_free(cd->key, cd->keylen); in cleanup() 211 cd->key = NULL; in cleanup() 214 if (cd->ckey != NULL) { in cleanup() 220 kmem_free(cd->ckey, sizeof (crypto_key_t)); in cleanup() 221 cd->ckey = NULL; in cleanup() 224 if (cd->block != NULL) { in cleanup() 225 kmem_free(cd->block, cd->blocklen); in cleanup() [all …]
|
/titanic_44/usr/src/ucblib/librpcsoc/ |
H A D | svc_tcp.c | 191 register struct tcp_conn *cd; local 198 cd = (struct tcp_conn *)mem_alloc(sizeof (struct tcp_conn)); 199 if (cd == (struct tcp_conn *)NULL) { 205 cd->strm_stat = XPRT_IDLE; 206 xdrrec_create(&(cd->xdrs), sendsize, recvsize, 210 xprt->xp_p1 = (caddr_t)cd; 211 xprt->xp_verf.oa_base = cd->verf_body; 264 register struct tcp_conn *cd = (struct tcp_conn *)xprt->xp_p1; local 273 XDR_DESTROY(&(cd->xdrs)); 275 mem_free((caddr_t)cd, sizeof (struct tcp_conn)); [all …]
|
/titanic_44/usr/src/cmd/allocate/ |
H A D | mkdevalloc.c | 110 struct cd { struct 116 } *cd; variable 853 ncd = expandmem(i, (void **)&cd, sizeof (struct cd)); in docd() 862 cd[i].name = nm; in docd() 865 if (lstat(cd[i].name, &stat) < 0) { in docd() 873 if ((sz = readlink(cd[i].name, linkvalue, sizeof (linkvalue))) < in docd() 882 cd[i].device = nm; in docd() 884 cp = strrchr(cd[i].device, '/'); in docd() 886 (void) sscanf(cp, "c%dt%d", &cd[i].controller, &cd[i].number); in docd() 887 cd[i].id = cd[i].number; in docd() [all …]
|
/titanic_44/usr/src/lib/libnsl/rpc/ |
H A D | svc_vc.c | 452 struct cf_conn *cd = xprt ? (struct cf_conn *)xprt->xp_p1 : NULL; in svc_fd_xprtfree() local 467 if (cd) { in svc_fd_xprtfree() 468 XDR_DESTROY(&(cd->xdrs)); in svc_fd_xprtfree() 469 free(cd); in svc_fd_xprtfree() 484 struct cf_conn *cd; in makefd_xprt() local 494 cd = malloc(sizeof (struct cf_conn)); in makefd_xprt() 495 if (cd == NULL) { in makefd_xprt() 500 cd->sendsize = sendsize; in makefd_xprt() 501 cd->recvsize = recvsize; in makefd_xprt() 502 cd->strm_stat = XPRT_IDLE; in makefd_xprt() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_prot.x | 108 int cd; member 116 int cd; member 128 int cd; member 154 int cd; member 164 int cd; member 174 int cd; member 187 int cd; member 198 int cd; member 216 int cd; member
|
H A D | rdc_svc.c | 304 if ((diskio.cd >= rdc_max_sets) || (diskio.cd < 0)) { in r_net_read() 314 urdc = &rdc_u_info[diskio.cd]; in r_net_read() 323 st = rdc_readmaxfba(diskio.cd, diskio.pos, diskio.len, in r_net_read() 329 if (dset = rdc_net_get_set(diskio.cd, st)) { in r_net_read() 330 rdc_net_del_set(diskio.cd, dset); in r_net_read() 349 dset = rdc_net_get_set(diskio.cd, diskio.idx); in r_net_read() 422 rdc_net_del_set(diskio.cd, dset); in r_net_read() 424 rdc_net_put_set(diskio.cd, dset); in r_net_read() 462 if ((diskio.cd >= rdc_max_sets) || (diskio.cd < 0)) { in r_net_read6() 471 urdc = &rdc_u_info[diskio.cd]; in r_net_read6() [all …]
|
/titanic_44/usr/src/lib/libshell/common/fun/ |
H A D | dirs | 6 unalias cd 7 alias cd=_cd 31 -|-1|2) # \cd - 34 -[1-9]*([0-9])) # \cd -n 41 [1-9]*([0-9])) # \cd n 50 then print -u2 cd: Directory stack not that deep. 58 \cd "${dir:-$@}" >| /dev/null || return 1
|
/titanic_44/usr/src/uts/intel/io/intel_nhm/ |
H A D | nhm_init.c | 100 smbios_info_t cd; in dimm_manufacture_data() local 102 if (smbios_info_common(shp, id, &cd) == 0) { in dimm_manufacture_data() 103 if (cd.smbi_serial && nhm_smbios_serial) { in dimm_manufacture_data() 104 (void) strncpy(dimmp->serial_number, cd.smbi_serial, in dimm_manufacture_data() 107 if (cd.smbi_manufacturer && nhm_smbios_manufacturer) { in dimm_manufacture_data() 109 cd.smbi_manufacturer, in dimm_manufacture_data() 112 if (cd.smbi_part && nhm_smbios_part_number) { in dimm_manufacture_data() 113 (void) strncpy(dimmp->part_number, cd.smbi_part, in dimm_manufacture_data() 116 if (cd.smbi_version && nhm_smbios_version) { in dimm_manufacture_data() 117 (void) strncpy(dimmp->revision, cd.smbi_version, in dimm_manufacture_data()
|
/titanic_44/usr/src/uts/common/rpc/ |
H A D | svc_cots.c | 321 cots_data_t *cd = (cots_data_t *)clone_xprt->xp_p2buf; in svc_cots_kclone_destroy() local 323 if (cd->cd_req_mp) { in svc_cots_kclone_destroy() 324 freemsg(cd->cd_req_mp); in svc_cots_kclone_destroy() 325 cd->cd_req_mp = (mblk_t *)0; in svc_cots_kclone_destroy() 327 ASSERT(cd->cd_mp == NULL); in svc_cots_kclone_destroy() 351 cots_data_t *cd = (cots_data_t *)clone_xprt->xp_p2buf; in svc_cots_krecv() local 384 cd->cd_req_mp = mp; in svc_cots_krecv() 408 cots_data_t *cd = (cots_data_t *)clone_xprt->xp_p2buf; in svc_cots_ksend() local 436 mp = cd->cd_mp; in svc_cots_ksend() 442 cd->cd_mp = (mblk_t *)NULL; in svc_cots_ksend() [all …]
|
/titanic_44/usr/src/lib/libast/common/misc/ |
H A D | fts.c | 63 int cd; /* chdir status */ \ 110 #define ACCESS(p,f) ((p)->cd==0?(f)->fts_name:(f)->fts_path) 740 fts->cd = (flags & FTS_NOCHDIR) ? 1 : -1; in fts_open() 756 if (fts->cd > 0 || getcwd(fts->home, fts->homesize)) in fts_open() 761 fts->cd = 1; in fts_open() 880 if (fts->cd == 0) in fts_read() 882 else if (fts->cd < 0) in fts_read() 883 fts->cd = 0; in fts_read() 885 fts->curdir = fts->cd ? 0 : f->fts_parent; in fts_read() 893 if (fts->cd < 0) in fts_read() [all …]
|