Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/uts/common/os/
H A Dcallout.c401 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 Dcontract.c416 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 Dsunmdi.c1335 ct = kmem_zalloc(sizeof (*ct), KM_SLEEP); in i_mdi_client_alloc()
1480 kmem_free(ct, sizeof (*ct)); in i_mdi_client_free()
1512 ct = ct->ct_hnext; in i_mdi_client_find()
1720 if (ct != NULL && ct->ct_lb_args != NULL) { in mdi_set_lb_region_size()
3241 cv_wait(&ct->ct_failover_cv, &ct->ct_mutex); in mdi_pi_free()
3272 (void) i_mdi_client_free(ct->ct_vhci, ct); in mdi_pi_free()
3410 ct->ct_path_last = ct->ct_path_head; in i_mdi_client_remove_path()
4081 if ((ct == NULL) || (ct->ct_dip == NULL)) in mdi_pi_get_node_name()
6572 (void *)ct, ct->ct_power_cnt, incr)); in i_mdi_pm_hold_client()
6602 (void *)ct, ct->ct_power_cnt, decr)); in i_mdi_pm_rele_client()
[all …]
H A Dcallb.c120 mutex_enter(&ct->ct_lock); in callb_add_common()
121 while (ct->ct_busy) in callb_add_common()
122 cv_wait(&ct->ct_busy_cv, &ct->ct_lock); in callb_add_common()
124 ct->ct_ncallb++; in callb_add_common()
148 mutex_exit(&ct->ct_lock); in callb_add_common()
220 ct->ct_freelist = me; in callb_delete()
222 mutex_exit(&ct->ct_lock); in callb_delete()
267 mutex_exit(&ct->ct_lock); in callb_execute_class()
330 ASSERT(ct->ct_busy == 0); in callb_lock_table()
331 ct->ct_busy = 1; in callb_lock_table()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_vc.c248 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()
1464 #define REMAIN_BYTES(p) (ct->ct_bufferSize-(ct->ct_##p - ct->ct_buffer))
1507 (ct->ct_buffer + ct->ct_bufferSize)) { in addInBuffer()
1508 ct->ct_bufferWritePtr = ct->ct_buffer; in addInBuffer()
1534 ct->ct_bufferReadPtr = ct->ct_bufferWritePtr = ct->ct_buffer; in consumeFromBuffer()
1538 ct->ct_buffer + ct->ct_bufferSize) { in consumeFromBuffer()
1767 ct->ct_bufferReadPtr = ct->ct_buffer; in nb_send()
1768 ct->ct_bufferWritePtr = ct->ct_buffer; in nb_send()
1839 node->ct = ct; in register_nb()
[all …]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dclnt_tcp.c112 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 Dclnt_btcp.c122 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 Dnfs4_deleg_ops.c80 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 Dfem.h269 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 Dmdi_impldefs.h554 #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 Dvnode.h1114 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 Dcoretemp.c269 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 Ddoor_sys.c647 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 Dsmb_fem.c232 caller_context_t *ct, in smb_fem_fcn_create() argument
243 ct, vsecp); in smb_fem_fcn_create()
267 caller_context_t *ct, in smb_fem_fcn_remove() argument
292 caller_context_t *ct, in smb_fem_fcn_rename() argument
436 if (ct != &smb_ct) { in smb_fem_oplock_open()
486 if (ct != &smb_ct) { in smb_fem_oplock_read()
519 if (ct != &smb_ct) { in smb_fem_oplock_write()
577 if (ct != &smb_ct) { in smb_fem_oplock_space()
619 if (ct != &smb_ct) { in smb_fem_oplock_vnevent()
656 ASSERT(ct != &smb_ct); in smb_fem_oplock_wait()
[all …]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c109 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 Dprocess.c230 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 Dctfs_ctl.c97 mutex_enter(&ct->ct_lock); in ctfs_ctl_access()
98 if ((curproc == ct->ct_owner) || in ctfs_ctl_access()
99 (ct->ct_owner == NULL && ct->ct_regent != NULL && in ctfs_ctl_access()
101 mutex_exit(&ct->ct_lock); in ctfs_ctl_access()
105 mutex_exit(&ct->ct_lock); in ctfs_ctl_access()
166 caller_context_t *ct) in ctfs_stat_getattr() argument
209 error = contract_newct(ct); in ctfs_ctl_ioctl()
215 error = contract_qack(ct, event); in ctfs_ctl_ioctl()
284 ct_type_t *type = ct->ct_type; in ctfs_stat_ioctl()
301 mutex_enter(&ct->ct_lock); in ctfs_stat_ioctl()
[all …]
H A Dctfs_cdir.c68 ctfs_create_cdirnode(vnode_t *pvp, contract_t *ct) in ctfs_create_cdirnode() argument
84 gfs_file_set_inode(vp, CTFS_INO_CT_DIR(ct->ct_id)); in ctfs_create_cdirnode()
86 cdir->ctfs_cn_contract = ct; in ctfs_create_cdirnode()
87 contract_hold(ct); in ctfs_create_cdirnode()
88 contract_vnode_set(ct, &cdir->ctfs_cn_linkage, vp); in ctfs_create_cdirnode()
103 caller_context_t *ct) in ctfs_cdir_getattr() argument
140 contract_t *ct = cdirnode->ctfs_cn_contract; in ctfs_cdir_inactive() local
142 mutex_enter(&ct->ct_lock); in ctfs_cdir_inactive()
144 mutex_exit(&ct->ct_lock); in ctfs_cdir_inactive()
149 mutex_exit(&ct->ct_lock); in ctfs_cdir_inactive()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/sys/
H A Dvnode.h1027 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 Dvnode.h1034 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/intel/io/vmm/io/
H A Dvrtc.c208 ct.sec)); in secs_to_rtc()
210 ct.min)); in secs_to_rtc()
214 ct.dow)); in secs_to_rtc()
216 ct.day)); in secs_to_rtc()
295 if (error || ct.sec < 0 || ct.sec > 59) { in rtc_to_secs()
301 if (error || ct.min < 0 || ct.min > 59) { in rtc_to_secs()
316 if (ct.hour >= 1 && ct.hour <= 12) { in rtc_to_secs()
337 if (error || ct.hour < 0 || ct.hour > 23) { in rtc_to_secs()
348 ct.dow = -1; in rtc_to_secs()
351 if (error || ct.day < 1 || ct.day > 31) { in rtc_to_secs()
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c375 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 Dvmm_sol_glue.c513 year = ct->year; in clock_ct_to_ts()
518 print_ct(ct); in clock_ct_to_ts()
524 if (ct->mon < 1 || ct->mon > 12 || ct->day < 1 || in clock_ct_to_ts()
525 ct->day > days_in_month(year, ct->mon) || in clock_ct_to_ts()
526 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || in clock_ct_to_ts()
548 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 + in clock_ct_to_ts()
549 ct->sec; in clock_ct_to_ts()
575 ct->year = year; in clock_ts_to_ct()
580 ct->mon = i; in clock_ts_to_ct()
590 ct->sec = rsec; in clock_ts_to_ct()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_vnode.c970 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 De.y77 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 …]

12345678910>>...12