/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_decl.c | 54 ctf_decl_init(ctf_decl_t *cd, char *buf, size_t len) argument 58 bzero(cd, sizeof (ctf_decl_t)); 61 cd->cd_order[i] = CTF_PREC_BASE - 1; 63 cd->cd_qualp = CTF_PREC_BASE; 64 cd->cd_ordp = CTF_PREC_BASE; 66 cd->cd_buf = buf; 67 cd->cd_ptr = buf; 68 cd->cd_end = buf + len; 72 ctf_decl_fini(ctf_decl_t *cd) argument 78 for (cdp = ctf_list_next(&cd 87 ctf_decl_push(ctf_decl_t *cd, ctf_file_t *fp, ctf_id_t type) argument 172 ctf_decl_sprintf(ctf_decl_t *cd, const char *format, ...) argument [all...] |
H A D | ctf_types.c | 204 ctf_decl_t cd; local 213 ctf_decl_init(&cd, buf, len); 214 ctf_decl_push(&cd, fp, type); 216 if (cd.cd_err != 0) { 217 ctf_decl_fini(&cd); 218 return (ctf_set_errno(fp, cd.cd_err)); 228 ptr = cd.cd_order[CTF_PREC_POINTER] > CTF_PREC_POINTER; 229 arr = cd.cd_order[CTF_PREC_ARRAY] > CTF_PREC_ARRAY; 237 for (cdp = ctf_list_next(&cd.cd_nodes[prec]); 246 ctf_decl_sprintf(&cd, " "); [all...] |
/illumos-gate/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); 120 * _sdbc_tr_configure - configure a trace area for the descriptor "cd". 130 _sdbc_tr_configure(int cd) argument 139 if (cd == SDT_INV_CD) 142 if (_sd_trace_table[cd].tbl) 151 "allocate %d bytes for trace, cd=%d", size, cd); 159 "alloc trace lock for cd %d", cd); 164 _sd_trace_table[cd] 217 _sd_alert(int f, int cd, int len, nsc_off_t fba, int flg, int ret) argument 295 _sd_trace(int f, int cd, int len, nsc_off_t fba, int flg, int ret) argument 360 int cd; local 382 int cd; local 416 long cd; member in struct:a 425 int cd, count, lost, new_cnt; local 570 _sd_set_adump(int cd, int flag, _sdtr_table_t *table) argument [all...] |
H A D | sd_bcache.h | 54 #define SDBC_KSTAT_CDSTATS "cd" 457 int ci_cd; /* the cd */ 538 kmutex_t cd_lock; /* spinlock guarding this cd */ 541 ss_voldata_t *cd_global; /* RM information for this cd */ 550 volatile char cd_recovering; /* cd is being recovered failover or */ 716 #define CC_CD_BLK_MATCH(cd, blk, centry) \ 717 (((centry)->cc_head.hh_cd == cd) && \ 731 #define ASSERT_IO_SIZE(fba_num, fba_len, cd) \ 733 (_sd_cache_files[(cd)].cd_info->sh_filesize)) { \ 738 (_sd_cache_files[(cd)] [all...] |
H A D | sd_ft.c | 83 static void _sd_cd_discard_mirror(int cd); 353 _sd_recovery_wblk_wait(int cd) argument 355 _sd_cd_info_t *cdi = &_sd_cache_files[cd]; 358 FILE_OPENED(cd) && cdi->cd_recovering) { 360 if (!cdi->cd_writer) (void) cd_writer(cd); 363 if (!_sd_cache_initialized || !FILE_OPENED(cd)) 438 int cd = ft_cent->sc_cd; local 444 SDTRACE(ST_ENTER|SDF_FT_CLONE, cd, BLK_FBAS, cblk, dirty, _SD_NO_NET); 445 cdi = &(_sd_cache_files[cd]); 446 if ((cdi->cd_info->sh_failed != 2) && !FILE_OPENED(cd)) { 521 _sd_repin_cd(int cd) argument 697 int cd; local 774 _sd_cd_online(int cd, int discard) argument 904 _sd_cd_discard_mirror(int cd) argument 915 int r, cd = *ap; local 931 int rc, cd, flag = 0; local 994 sdbc_recover_vol(ss_vol_t *vol, int cd) argument 1084 int cd; local 1104 int cd; local 1178 int cd; local 1198 _sd_wait_for_flush(int cd) argument [all...] |
H A D | sd_io.h | 55 extern void _sd_enqueue_io_pending(int cd, _sd_cctl_t *cclist); 58 extern int cd_writer(int cd);
|
H A D | sd_hash.h | 69 #define HASH(cd, blk, table) \ 70 (((cd << 6) ^ ((blk) ^ ((blk) >> table->ht_bits))) \ 80 extern _sd_hash_hd_t *_sd_hash_search(int cd, nsc_off_t block_num, 82 extern _sd_hash_hd_t *_sd_hash_insert(int cd, nsc_off_t block_num,
|
H A D | sd_tdaemon.c | 48 #define _CD_VTRK_SIZE(cd) (dev_tsize[GET_CD_STATE(cd)] * 1024) 49 #define _CD_VTRK_NUM(cd, len) ((len)/_CD_VTRK_SIZE(cd)) 50 #define _CD_VTRK_OFF(cd, len) ((len)%(_CD_VTRK_SIZE(cd))) 83 #define SET_CD_STATE(cd, i) (cd_test_sts[(cd)].cd_state = (short)(i)) 84 #define GET_CD_STATE(cd) (cd_test_sts[(cd)] 267 int cd; member in struct:statis 408 _td_attach_cd(int cd) argument 415 _td_detach_cd(int cd) argument 440 test_control(int typ, int cd, nsc_off_t fba_pos, nsc_size_t fba_len) argument 634 int cd, tsize; member in struct:io_type 659 int cd; local 991 int cd; local [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, 672 * kstat implementation - cd stats 680 * NOTE: one I/O kstat instance for each cd 1314 * cd - the cache descriptor. 1320 int cd; local 1326 cd 1337 int cd; local 1356 _sd_open_cd(char *filename, const int cd, const int flag) argument 1554 _sd_close(int cd) argument 1637 int cd = (int)(unsigned long)xcd; local 1655 _sdbc_remote_store_pinned(int cd) argument 1712 _sd_flush_cd(int cd) argument 1764 int cd = (int)(unsigned long)xcd; local 1828 int cd = (int)(unsigned long)xcd; local 1880 int cd = (int)(unsigned long)xcd; local 1930 int cd = (int)(unsigned long)xcd; local 2023 int cd = (int)(unsigned long)xcd; local 2067 _sd_allocate_buf(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, int flag, int *sts) argument 2088 _sd_prefetch_buf(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, int flag, _sd_buf_handle_t *handle, int locked) argument 2456 _sd_cc_wait(int cd, nsc_off_t cblk, _sd_cctl_t *centry, int flag) argument 2526 int cd = (int)(unsigned long)xcd; local 3591 _sd_check_buffer_alloc(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, _sd_buf_handle_t **hp) argument 3671 int cd = HANDLE_CD(handle); local 4145 sdbc_centry_alloc_blks(int cd, nsc_off_t cblk, nsc_size_t reqblks, int flag) argument 4232 sdbc_centry_alloc(int cd, nsc_off_t cblk, nsc_size_t req_blocks, int *stall, sdbc_allocbuf_t *alloc_tok, int flag) argument 4263 sdbc_alloc_dmc(int cd, nsc_off_t cblk, nsc_size_t req_blocks, int *stall, sdbc_allocbuf_t *alloc_tok, int flag) argument 4312 sdbc_alloc_from_dmchain(int cd, nsc_off_t cblk, sdbc_allocbuf_t *alloc_tok, int flag) argument 4525 sdbc_alloc_lru(int cd, nsc_off_t cblk, int *stall, int flag) argument 5073 int cd = HANDLE_CD(handle); local 5196 int cd = CENTRY_CD(cc_ent); local 5273 int cd, err; local 5535 int cd; local 5663 int cd = HANDLE_CD(handle); local 6047 int cd = HANDLE_CD(wr_handle); local 6213 int cd; local 6475 _sd_enqueue_dirty(int cd, _sd_cctl_t *chain, _sd_cctl_t *cc_last, int numq) argument 6541 _sd_enqueue_dirty_chain(int cd, _sd_cctl_t *chain_first, _sd_cctl_t *chain_last, int numq) argument 6688 _sd_set_hint(int cd, uint_t hint) argument 6704 _sd_clear_hint(int cd, uint_t hint) argument 6719 _sd_get_cd_hint(int cd, uint_t *hint) argument 6786 int cd = (int)(unsigned long)xcd; local 6799 int cd = (int)(unsigned long)xcd; local 6817 int cd = (int)(unsigned long)xcd; local 6827 int cd = (int)(unsigned long)xcd; local 7287 cd_kstat_add(int cd) argument 7361 cd_kstat_remove(int cd) argument [all...] |
H A D | sd_io.c | 875 int flushed, i, cd; local 932 cd = CENTRY_CD(cclist); 1002 SDALERT(SDF_FLCLIST, cd, 0, 1038 /* SDTRACE(ST_INFO|SDF_FLCLIST, cd, FBA_NUM(len), dblk, flushed, bp); */ 1039 (void) sd_start_io(bp, _sd_cache_files[cd].cd_strategy, 1042 DISK_FBA_WRITE(cd, FBA_NUM(len)); 1044 WRITE_DESTAGED(cd, FBA_NUM(len)); 1046 _sd_enqueue_io_pending(cd, cclist); 1048 SDTRACE(ST_EXIT|SDF_FLCLIST, cd, FBA_NUM(len), dblk, flushed, 0); 1053 _sd_enqueue_io_pending(int cd, _sd_cctl_ argument 1074 int cd; local 1144 _sd_process_pending(int cd) argument 1327 int cd; local 1403 int cd; local 1511 int cd; local 1531 int cd, num; local 1582 int cd; local 1618 cd_write_thread(int cd) argument 1713 cd_writer(int cd) argument 1799 int cd; local [all...] |
H A D | sd_trace.h | 36 #define SDALERT(f, cd, len, fba, flg, ret) 37 #define SDTRACE(f, cd, len, fba, flg, ret) 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,\ 96 _sdtr_table_t *tbl; /* points to the trace table for a cd */ 97 kmutex_t *t_lock; /* the lock for this cd */ 308 extern int _sdbc_tr_configure(int cd); 311 extern void _sd_alert(int f, int cd, in [all...] |
H A D | sd_hash.c | 176 * cd - device that we are interested in. 193 _sd_hash_search(int cd, nsc_off_t block_num, _sd_hash_table_t *table) argument 204 i = HASH(cd, block_num, table); 232 if ((hptr->hh_cd == cd) && (hptr->hh_blk_num == block_num)) 246 i = HASH(cd, block_num, table); 252 if ((hptr->hh_cd == cd) && (hptr->hh_blk_num == block_num)) 274 * cd - device that we are interested in. 280 * Pointer to block that was passed in, except if the cd, block_num 286 * sets the cd, block_num in the block for future references. 290 _sd_hash_insert(int cd, argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | iconv.c | 89 iconv_t cd; local 92 if ((cd = malloc(sizeof (struct _iconv_info))) == NULL) 100 free(cd); 104 cd->_conv = iconv_open_all(tocode, fromcode, ipath); 105 if (cd->_conv != (iconv_p)-1) { 108 return (cd); 114 cd->_conv = iconv_search_alias(tocode, fromcode, ipath); 116 if (cd->_conv == (iconv_p)-1) { 127 free(cd); 136 cd 409 iconv_close(iconv_t cd) argument 429 passthru_icv_close(iconv_t cd) argument 434 iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) argument 449 passthru_icv_iconv(iconv_t cd, const char **inbuf, size_t *inbufleft, char **outbuf, size_t *outbufleft) argument [all...] |
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keyserv_cache.c | 162 struct cachekey_disklist *cd, 209 struct cachekey_disklist *cd; local 349 cd = &(ch->array[0]); 351 i++, cd = MOVE_ADDR(cd, ch->reclength)) { 352 cd->uid = (uid_t)-1; 353 cd->prev = MOVE_ADDR(cd, -(ch->reclength)); 354 cd->next = MOVE_ADDR(cd, 406 struct cachekey_disklist *cd; local 465 struct cachekey_disklist *cd = 0; local 586 struct cachekey_disklist *cd; local 803 struct cachekey_disklist *cd; local 860 struct cachekey_disklist *cd; local 923 copy_cl_item(struct cachekey_header *ch, struct cachekey_disklist *cd, des_block key) argument 994 struct cachekey_disklist *cd; local 1043 struct cachekey_disklist *cd, *cdtmp; local [all...] |
/illumos-gate/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) argument 114 const char *s = cd->cd_ctfdata + hp->cth_stroff + offset; 122 if (hp->cth_stroff + offset >= cd->cd_ctflen) 182 print_header(const ctf_header_t *hp, const ctf_data_t *cd) argument 190 ref_to_str(hp->cth_parlabel, hp, cd)); 192 ref_to_str(hp->cth_parname, hp, cd)); 204 print_labeltable(const ctf_header_t *hp, const ctf_data_t *cd) argument 207 const ctf_lblent_t *ctl = (ctf_lblent_t *)(cd->cd_ctfdata + 215 if (hp->cth_lbloff >= cd->cd_ctflen) 217 if (hp->cth_objtoff >= cd 237 next_sym(const ctf_data_t *cd, const int symidx, const uchar_t matchtype, char **namep) argument 268 read_data(const ctf_header_t *hp, const ctf_data_t *cd) argument 312 read_funcs(const ctf_header_t *hp, const ctf_data_t *cd) argument 389 read_types(const ctf_header_t *hp, const ctf_data_t *cd) argument 634 read_strtab(const ctf_header_t *hp, const ctf_data_t *cd) argument 812 ctf_data_t cd; local [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_prot.x | 109 int cd; 117 int cd; 129 int cd; 155 int cd; 165 int cd; 175 int cd; 188 int cd; 199 int cd; 217 int cd;
|
/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_raw.c | 291 int rc, cd, the_cd; local 332 for (cd = 0, cdi = _nsc_raw_files; cd < fd_hwm; cd++, cdi++) { 334 the_cd = cd; 337 the_cd = cd; 426 int cd; local 429 for (cd = 0; cd < fd_hwm; cd 451 int cd; local 499 int cd = __raw_get_cd(bp->b_edev); local 514 int cd; local 577 int rc, cd; local 709 int rc, cd; local 743 int cd; local 764 int cd; local 824 int cd, rc; local [all...] |
/illumos-gate/usr/src/cmd/avs/sdbc/ |
H A D | scmadm.c | 137 * Return the per-cd hints for a cd. 140 * over the per-cd hints, get them as well and OR the whole lot 144 get_cd_hint(const int cd) argument 157 cdhint = SDBC_IOCTL(SDBC_GET_CD_HINT, cd, 0, 0, 0, 0, &ustats); 160 gettext("%s: get cd(%d) hint failed\n"), progname, cd); 275 int cd; local 299 cd = -1; 301 cd 715 cd_to_device(int cd) argument 751 long cd = 0; local 843 save_hint(int cd, int hint, int flag) argument 939 int cd; local 1290 int cd; local 1321 int cd; local 1685 int cd, count, size, flag; local 1782 int cd; local 1865 int cd; local 1919 int cd, arg_cd = -1; local [all...] |
/illumos-gate/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, sizeo 346 register struct tcp_conn *cd = local 361 register struct tcp_conn *cd = local 403 register struct tcp_conn *cd = local [all...] |
/illumos-gate/usr/src/cmd/allocate/ |
H A D | mkdevalloc.c | 110 struct cd { struct 116 } *cd; variable in typeref:struct:cd 853 ncd = expandmem(i, (void **)&cd, sizeof (struct cd)); 862 cd[i].name = nm; 865 if (lstat(cd[i].name, &stat) < 0) { 873 if ((sz = readlink(cd[i].name, linkvalue, sizeof (linkvalue))) < 882 cd[i].device = nm; 884 cp = strrchr(cd[i].device, '/'); 886 (void) sscanf(cp, "c%dt%d", &cd[ [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | cryptmod.c | 206 cleanup(struct cipher_data_t *cd) argument 208 if (cd->key != NULL) { 209 bzero(cd->key, cd->keylen); 210 kmem_free(cd->key, cd->keylen); 211 cd->key = NULL; 214 if (cd->ckey != NULL) { 217 * "cd->key" for its raw key data. Since that was already 220 kmem_free(cd 329 plaintext_offset(struct cipher_data_t *cd) argument 376 encrypt_size(struct cipher_data_t *cd, size_t plainlen) argument 2640 setup_crypto(struct cr_info_t *ci, struct cipher_data_t *cd, int encrypt) argument [all...] |
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | utf_str.c | 93 convert_ucs2xx_to_utf8(iconv_t cd, const uint16_t *us) argument 99 if (cd == (iconv_t)-1) { 117 ret = iconv(cd, &iptr, &ileft, &optr, &oleft); 168 convert_utf8_to_ucs2xx(iconv_t cd, const char *utf8_string) argument 174 if (cd == (iconv_t)-1) { 191 ret = iconv(cd, &iptr, &ileft, (char **)&optr, &oleft);
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc_vc.c | 452 struct cf_conn *cd = xprt ? (struct cf_conn *)xprt->xp_p1 : NULL; local 467 if (cd) { 468 XDR_DESTROY(&(cd->xdrs)); 469 free(cd); 484 struct cf_conn *cd; local 494 cd = malloc(sizeof (struct cf_conn)); 495 if (cd == NULL) { 500 cd->sendsize = sendsize; 501 cd->recvsize = recvsize; 502 cd 588 struct cf_conn *cd, *pcd; local 1106 struct cf_conn *cd = (struct cf_conn *)xprt_conn->xp_p1; local 1279 struct cf_conn *cd = (struct cf_conn *)xprt_conn->xp_p1; local 1421 struct cf_conn *cd; local 1655 struct cf_conn *cd = (struct cf_conn *)(xprt->xp_p1); local 1727 struct cf_conn *cd = (struct cf_conn *)(xprt->xp_p1); local [all...] |
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | nhm_init.c | 100 smbios_info_t cd; local 102 if (smbios_info_common(shp, id, &cd) == 0) { 103 if (cd.smbi_serial && nhm_smbios_serial) { 104 (void) strncpy(dimmp->serial_number, cd.smbi_serial, 107 if (cd.smbi_manufacturer && nhm_smbios_manufacturer) { 109 cd.smbi_manufacturer, 112 if (cd.smbi_part && nhm_smbios_part_number) { 113 (void) strncpy(dimmp->part_number, cd.smbi_part, 116 if (cd.smbi_version && nhm_smbios_version) { 117 (void) strncpy(dimmp->revision, cd [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | metarpcopen.c | 200 clnt_data_t *cd = (clnt_data_t *)private; local 202 return (clnt_create_timed(hostname, cd->cd_prognum, cd->cd_version, 203 cd->cd_nettype, time_out)); 313 clnt_data_t cd; local 315 cd.cd_prognum = prognum; 316 cd.cd_version = version; 317 cd.cd_nettype = nettype; 319 (void *)&cd, MD_CLNT_CREATE_TOUT, (md_error_t *)NULL));
|