/illumos-gate/usr/src/uts/common/os/ |
H A D | callout.c | 401 if (callout_queue_add(ct, cl) && (ct->ct_suspend == 0)) in callout_queue_insert() 540 ASSERT(ct->ct_heap_num <= ct->ct_heap_max); in callout_heap_expand() 542 while (ct->ct_heap_num == ct->ct_heap_max) { in callout_heap_expand() 562 if (ct->ct_heap_num == ct->ct_heap_max) in callout_heap_expand() 641 ASSERT(ct->ct_heap_num < ct->ct_heap_max); in callout_heap_insert() 648 ct->ct_heap[ct->ct_heap_num].ch_expiration = cl->cl_expiration; in callout_heap_insert() 649 ct->ct_heap[ct->ct_heap_num].ch_list = cl; in callout_heap_insert() 662 if (callout_upheap(ct) && (ct->ct_suspend == 0)) in callout_heap_insert() 818 if ((ct->ct_heap_num == 0) || (ct->ct_suspend > 0)) in callout_heap_delete() 1135 if (ct->ct_heap_num == ct->ct_heap_max) { in timeout_generic() [all …]
|
H A D | contract.c | 416 avl_remove(&ct->ct_type->ct_type_avl, ct); in contract_rele() 436 ct->ct_type->ct_type_ops->contop_free(ct); in contract_rele() 827 cte_trim(&ct->ct_type->ct_type_events, ct); in contract_destroy() 1152 res = ct ? ct->ct_id : -1; in contract_type_max() 1171 res = ct ? ct->ct_id : -1; in contract_max() 1197 ct = AVL_NEXT(tree, ct); in contract_lookup_common() 1198 res = ct ? ct->ct_id : -1; in contract_lookup_common() 1262 while (ct && !(ct->ct_state < CTS_ORPHAN && in contract_plookup() 1265 ct = AVL_NEXT(&contract_avl, ct); in contract_plookup() 1266 res = ct ? ct->ct_id : -1; in contract_plookup() [all …]
|
H A D | sunmdi.c | 1328 ct = kmem_zalloc(sizeof (*ct), KM_SLEEP); in i_mdi_client_alloc() 1473 kmem_free(ct, sizeof (*ct)); in i_mdi_client_free() 1505 ct = ct->ct_hnext; in i_mdi_client_find() 1712 if (ct != NULL && ct->ct_lb_args != NULL) { in mdi_set_lb_region_size() 3231 cv_wait(&ct->ct_failover_cv, &ct->ct_mutex); in mdi_pi_free() 3262 (void) i_mdi_client_free(ct->ct_vhci, ct); in mdi_pi_free() 3397 ct->ct_path_last = ct->ct_path_head; in i_mdi_client_remove_path() 4068 if ((ct == NULL) || (ct->ct_dip == NULL)) in mdi_pi_get_node_name() 6559 (void *)ct, ct->ct_power_cnt, incr)); in i_mdi_pm_hold_client() 6589 (void *)ct, ct->ct_power_cnt, decr)); in i_mdi_pm_rele_client() [all …]
|
H A D | callb.c | 118 mutex_enter(&ct->ct_lock); in callb_add_common() 119 while (ct->ct_busy) in callb_add_common() 120 cv_wait(&ct->ct_busy_cv, &ct->ct_lock); in callb_add_common() 122 ct->ct_ncallb++; in callb_add_common() 146 mutex_exit(&ct->ct_lock); in callb_add_common() 218 ct->ct_freelist = me; in callb_delete() 220 mutex_exit(&ct->ct_lock); in callb_delete() 265 mutex_exit(&ct->ct_lock); in callb_execute_class() 328 ASSERT(ct->ct_busy == 0); in callb_lock_table() 329 ct->ct_busy = 1; in callb_lock_table() [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_vc.c | 248 if ((ct = malloc(sizeof (*ct))) != NULL) in _clnt_vc_create_timed() 333 ct->ct_mpos = XDR_GETPOS(&(ct->ct_xdrs)); in _clnt_vc_create_timed() 1424 #define REMAIN_BYTES(p) (ct->ct_bufferSize-(ct->ct_##p - ct->ct_buffer)) 1467 (ct->ct_buffer + ct->ct_bufferSize)) { in addInBuffer() 1468 ct->ct_bufferWritePtr = ct->ct_buffer; in addInBuffer() 1494 ct->ct_bufferReadPtr = ct->ct_bufferWritePtr = ct->ct_buffer; in consumeFromBuffer() 1498 ct->ct_buffer + ct->ct_bufferSize) { in consumeFromBuffer() 1733 ct->ct_bufferReadPtr = ct->ct_buffer; in nb_send() 1734 ct->ct_bufferWritePtr = ct->ct_buffer; in nb_send() 1805 node->ct = ct; in register_nb() [all …]
|
/illumos-gate/usr/src/ucblib/librpcsoc/ |
H A D | clnt_tcp.c | 112 struct ct_data *ct; in clnttcp_create() local 123 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); in clnttcp_create() 124 if (ct == NULL) { in clnttcp_create() 185 xdrmem_create(&(ct->ct_xdrs), ct->ct_mcall, MCALL_MSG_SIZE, in clnttcp_create() 193 ct->ct_mpos = XDR_GETPOS(&(ct->ct_xdrs)); in clnttcp_create() 220 struct ct_data *ct; in clnttcp_call() local 245 if ((! XDR_PUTBYTES(xdrs, ct->ct_mcall, ct->ct_mpos)) || in clnttcp_call() 317 struct ct_data *ct; in clnttcp_geterr() local 326 struct ct_data *ct; in clnttcp_freeres() local 402 ct = data; in readtcp() [all …]
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | clnt_btcp.c | 122 struct ct_data *ct; in clntbtcp_create() local 137 ct = (struct ct_data *)bkmem_alloc(sizeof (*ct)); in clntbtcp_create() 138 if (ct == NULL) { in clntbtcp_create() 246 xdrmem_create(&(ct->ct_xdrs), ct->ct_mcall, MCALL_MSG_SIZE, in clntbtcp_create() 253 ct->ct_mpos = XDR_GETPOS(&(ct->ct_xdrs)); in clntbtcp_create() 260 xdrrec_create(&(ct->ct_xdrs), sendsz, recvsz, (caddr_t)ct, readtcp, in clntbtcp_create() 269 if (ct) in clntbtcp_create() 270 bkmem_free((caddr_t)ct, sizeof (*ct)); in clntbtcp_create() 286 struct ct_data *ct; in clntbtcp_call() local 309 ct->ct_wait_msec = ct->ct_total.tv_sec * 1000 + in clntbtcp_call() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_deleg_ops.c | 80 if (ct != NULL && ct->cc_flags & CC_DONTBLOCK) { in recall_all_delegations() 114 if ((ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) && in deleg_rd_open() 139 if (ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) { in deleg_wr_open() 162 if (ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) { in deleg_wr_read() 202 if (ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) { in deleg_wr_write() 214 caller_context_t *ct) in deleg_rd_setattr() argument 234 caller_context_t *ct) in deleg_wr_setattr() argument 243 if (ct == NULL || (ct->cc_caller_id != nfs4_srv_caller_id)) { in deleg_wr_setattr() 283 if (ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) { in deleg_wr_rwlock() 316 if (ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) { in deleg_wr_space() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | fem.h | 269 caller_context_t *ct) 303 caller_context_t *ct); 307 caller_context_t *ct); 309 caller_context_t *ct); 313 caller_context_t *ct); 315 caller_context_t *ct); 317 caller_context_t *ct); 319 caller_context_t *ct); 344 caller_context_t *ct); 346 caller_context_t *ct); [all …]
|
H A D | mdi_impldefs.h | 554 #define MDI_CLIENT_LOCK(ct) mutex_enter(&(ct)->ct_mutex) argument 555 #define MDI_CLIENT_TRYLOCK(ct) mutex_tryenter(&(ct)->ct_mutex) argument 556 #define MDI_CLIENT_UNLOCK(ct) mutex_exit(&(ct)->ct_mutex) argument 558 #define MDI_CLIENT_LOCKED(ct) MUTEX_HELD(&(ct)->ct_mutex) argument 567 #define MDI_CLIENT_UNSTABLE(ct) (ct)->ct_unstable++; argument 568 #define MDI_CLIENT_STABLE(ct) { \ argument 569 (ct)->ct_unstable--; \ 570 if ((ct)->ct_unstable == 0) { \ 674 #define MDI_CLIENT_STATE(ct) ((ct)->ct_state) argument 675 #define MDI_CLIENT_SET_STATE(ct, state) ((ct)->ct_state = state) argument [all …]
|
H A D | vnode.h | 1114 fop_open(vpp, mode, cr, ct) 1116 fop_close(vp, f, c, o, cr, ct) 1124 fop_setfl(vp, f, a, cr, ct) 1136 fop_remove(dvp, p, cr, ct, f) 1154 fop_inactive(vp, cr, ct) 1156 fop_fid(vp, fidp, ct) 1158 fop_rwlock(vp, w, ct) 1160 fop_rwunlock(vp, w, ct) 1162 fop_seek(vp, ooff, noffp, ct) 1164 fop_cmp(vp1, vp2, ct) [all …]
|
/illumos-gate/usr/src/uts/intel/io/coretemp/ |
H A D | coretemp.c | 269 mutex_enter(&ct->coretemp_mutex); in coretemp_read() 302 mutex_exit(&ct->coretemp_mutex); in coretemp_read() 320 mutex_exit(&ct->coretemp_mutex); in coretemp_read() 331 coretemp_destroy(coretemp_t *ct) in coretemp_destroy() argument 357 sensor->cs_coretemp = ct; in coretemp_create_sensor() 404 coretemp_t *ct = arg1; in coretemp_walk() local 443 coretemp_t *ct = NULL; in coretemp_attach() local 456 ct->coretemp_dip = dip; in coretemp_attach() 472 coretemp = ct; in coretemp_attach() 473 mutex_exit(&ct->coretemp_mutex); in coretemp_attach() [all …]
|
/illumos-gate/usr/src/uts/common/fs/doorfs/ |
H A D | door_sys.c | 647 ct->d_buf = ct->d_args.rbuf; in door_call() 648 ct->d_bufsize = ct->d_args.rsize; in door_call() 834 ct->d_args.data_ptr = ct->d_args.rbuf; in door_call() 835 if (ct->d_kernel || (!ct->d_overflow && in door_call() 921 kmem_free(ct->d_buf, ct->d_bufsize); in door_call() 935 kmem_free(ct->d_fpp, ct->d_fpp_size); in door_call() 2329 ASSERT(DOOR_T_HELD(ct) || ct->d_kernel); in door_overflow() 2480 kmem_free(ct->d_buf, ct->d_bufsize); in door_args() 2791 ct->d_args.data_ptr = ct->d_args.rbuf; in door_results() 2808 kmem_free(ct->d_buf, ct->d_bufsize); in door_results() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fem.c | 243 caller_context_t *ct, in smb_fem_fcn_create() argument 254 ct, vsecp); in smb_fem_fcn_create() 278 caller_context_t *ct, in smb_fem_fcn_remove() argument 303 caller_context_t *ct, in smb_fem_fcn_rename() argument 447 if (ct != &smb_ct) { in smb_fem_oplock_open() 497 if (ct != &smb_ct) { in smb_fem_oplock_read() 530 if (ct != &smb_ct) { in smb_fem_oplock_write() 588 if (ct != &smb_ct) { in smb_fem_oplock_space() 630 if (ct != &smb_ct) { in smb_fem_oplock_vnevent() 667 ASSERT(ct != &smb_ct); in smb_fem_oplock_wait() [all …]
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vnops.c | 109 caller_context_t *ct) in lo_close() argument 120 caller_context_t *ct) in lo_read() argument 131 caller_context_t *ct) in lo_write() argument 148 caller_context_t *ct) in lo_ioctl() argument 170 caller_context_t *ct) in lo_getattr() argument 189 caller_context_t *ct) in lo_setattr() argument 204 caller_context_t *ct) in lo_access() argument 687 ct, vsecp); in lo_create() 1078 ct)); in lo_getpage() 1126 ct)); in lo_addmap() [all …]
|
/illumos-gate/usr/src/uts/common/contract/ |
H A D | process.c | 230 contract_t *ct; in ctmpl_process_set() local 261 if (ct == NULL) in ctmpl_process_set() 264 contract_rele(ct); in ctmpl_process_set() 268 contract_rele(ct); in ctmpl_process_set() 272 ct = NULL; in ctmpl_process_set() 625 contract_orphan(ct); in contract_process_abandon() 627 contract_rele(ct); in contract_process_abandon() 883 contract_t *ct; in contract_process_create() local 985 contract_rele(ct); in contract_process_exit() 1010 contract_t *ct; in contract_process_fork() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_ctl.c | 95 mutex_enter(&ct->ct_lock); in ctfs_ctl_access() 96 if ((curproc == ct->ct_owner) || in ctfs_ctl_access() 97 (ct->ct_owner == NULL && ct->ct_regent != NULL && in ctfs_ctl_access() 99 mutex_exit(&ct->ct_lock); in ctfs_ctl_access() 103 mutex_exit(&ct->ct_lock); in ctfs_ctl_access() 164 caller_context_t *ct) in ctfs_stat_getattr() argument 207 error = contract_newct(ct); in ctfs_ctl_ioctl() 213 error = contract_qack(ct, event); in ctfs_ctl_ioctl() 282 ct_type_t *type = ct->ct_type; in ctfs_stat_ioctl() 299 mutex_enter(&ct->ct_lock); in ctfs_stat_ioctl() [all …]
|
H A D | ctfs_cdir.c | 66 ctfs_create_cdirnode(vnode_t *pvp, contract_t *ct) in ctfs_create_cdirnode() argument 82 gfs_file_set_inode(vp, CTFS_INO_CT_DIR(ct->ct_id)); in ctfs_create_cdirnode() 84 cdir->ctfs_cn_contract = ct; in ctfs_create_cdirnode() 85 contract_hold(ct); in ctfs_create_cdirnode() 86 contract_vnode_set(ct, &cdir->ctfs_cn_linkage, vp); in ctfs_create_cdirnode() 101 caller_context_t *ct) in ctfs_cdir_getattr() argument 138 contract_t *ct = cdirnode->ctfs_cn_contract; in ctfs_cdir_inactive() local 140 mutex_enter(&ct->ct_lock); in ctfs_cdir_inactive() 142 mutex_exit(&ct->ct_lock); in ctfs_cdir_inactive() 147 mutex_exit(&ct->ct_lock); in ctfs_cdir_inactive() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/sys/ |
H A D | vnode.h | 1027 fop_open(vpp, mode, cr, ct) 1029 fop_close(vp, f, c, o, cr, ct) 1037 fop_setfl(vp, f, a, cr, ct) 1049 fop_remove(dvp, p, cr, ct, f) 1067 fop_inactive(vp, cr, ct) 1069 fop_fid(vp, fidp, ct) 1071 fop_rwlock(vp, w, ct) 1073 fop_rwunlock(vp, w, ct) 1075 fop_seek(vp, ooff, noffp, ct) 1077 fop_cmp(vp1, vp2, ct) [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/sys/ |
H A D | vnode.h | 1034 fop_open(vpp, mode, cr, ct) 1036 fop_close(vp, f, c, o, cr, ct) 1044 fop_setfl(vp, f, a, cr, ct) 1056 fop_remove(dvp, p, cr, ct, f) 1074 fop_inactive(vp, cr, ct) 1076 fop_fid(vp, fidp, ct) 1078 fop_rwlock(vp, w, ct) 1080 fop_rwunlock(vp, w, ct) 1082 fop_seek(vp, ooff, noffp, ct) 1084 fop_cmp(vp1, vp2, ct) [all …]
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_vnops.c | 375 struct caller_context *ct) in sdev_read() argument 509 VOP_RWUNLOCK(avp, 1, ct); in sdev_getsecattr() 581 caller_context_t *ct) in sdev_self_access() argument 601 caller_context_t *ct) in sdev_access() argument 883 ct, flags); in sdev_remove() 1129 onm, kcred, ct, 0); in sdev_rename() 1416 caller_context_t *ct) in sdev_readlink() argument 1515 caller_context_t *ct) in sdev_seek() argument 1533 caller_context_t *ct) in sdev_frlock() argument 1541 flk_cbp, cr, ct); in sdev_frlock() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_sol_glue.c | 504 year = ct->year; in clock_ct_to_ts() 509 print_ct(ct); in clock_ct_to_ts() 515 if (ct->mon < 1 || ct->mon > 12 || ct->day < 1 || in clock_ct_to_ts() 516 ct->day > days_in_month(year, ct->mon) || in clock_ct_to_ts() 517 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || in clock_ct_to_ts() 539 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 + in clock_ct_to_ts() 540 ct->sec; in clock_ct_to_ts() 566 ct->year = year; in clock_ts_to_ct() 571 ct->mon = i; in clock_ts_to_ct() 581 ct->sec = rsec; in clock_ts_to_ct() [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_vnode.c | 970 caller_context_t *ct) in fop_open() argument 1034 caller_context_t *ct) in fop_close() argument 1065 caller_context_t *ct) in fop_read() argument 1084 caller_context_t *ct) in fop_write() argument 1105 caller_context_t *ct) in fop_ioctl() argument 1122 caller_context_t *ct) in fop_setfl() argument 1139 caller_context_t *ct) in fop_getattr() argument 1172 caller_context_t *ct) in fop_setattr() argument 1205 caller_context_t *ct) in fop_access() argument 1230 caller_context_t *ct, in fop_lookup() argument [all …]
|
/illumos-gate/usr/src/cmd/eqn/ |
H A D | e.y | 77 lcol : LCOL { $$ = ct++; } ; 78 ccol : CCOL { $$ = ct++; } ; 79 rcol : RCOL { $$ = ct++; } ; 80 col : COL { $$ = ct++; } ; 95 | lpile '{' list '}' { lpile('L', $1, ct); ct = $1; } 96 | cpile '{' list '}' { lpile('C', $1, ct); ct = $1; } 97 | rpile '{' list '}' { lpile('R', $1, ct); ct = $1; } 98 | pile '{' list '}' { lpile('-', $1, ct); ct = $1; } 159 lpile : LPILE { $$ = ct; } ; 160 cpile : CPILE { $$ = ct; } ; [all …]
|
/illumos-gate/usr/src/uts/common/fs/namefs/ |
H A D | namevno.c | 165 caller_context_t *ct) in nm_close() argument 174 (void) VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, ct); in nm_close() 194 caller_context_t *ct) in nm_read() argument 201 caller_context_t *ct) in nm_write() argument 208 caller_context_t *ct) in nm_ioctl() argument 220 caller_context_t *ct) in nm_getattr() argument 376 caller_context_t *ct, int flags) in nm_link() argument 418 return (VOP_FID(VTONM(vp)->nm_filevp, fidnodep, ct)); in nm_fid() 448 if (VOP_REALVP(vp, &rvp, ct) == 0) in nm_realvp() 456 pollhead_t **phpp, caller_context_t *ct) in nm_poll() argument [all …]
|