Home
last modified time | relevance | path

Searched refs:lock_t (Results 1 – 25 of 40) sorted by relevance

12

/titanic_50/usr/src/uts/sparc/sys/
H A Dmachlock.h41 extern void lock_set(lock_t *lp);
42 extern int lock_try(lock_t *lp);
43 extern int lock_spin_try(lock_t *lp);
44 extern int ulock_try(lock_t *lp);
45 extern void ulock_clear(lock_t *lp);
46 extern void lock_clear(lock_t *lp);
47 extern void lock_set_spl(lock_t *lp, int new_pil, ushort_t *old_pil);
48 extern void lock_clear_splx(lock_t *lp, int s);
55 #define LOCK_HELD(lp) (*(volatile lock_t *)(lp) != 0)
57 typedef lock_t disp_lock_t; /* dispatcher lock type */
H A Dmachtypes.h55 typedef unsigned char lock_t; /* lock work for busy wait */ typedef
/titanic_50/usr/src/uts/intel/sys/
H A Dmachlock.h45 extern void lock_set(lock_t *lp);
46 extern int lock_try(lock_t *lp);
47 extern int lock_spin_try(lock_t *lp);
48 extern int ulock_try(lock_t *lp);
49 extern void lock_clear(lock_t *lp);
50 extern void ulock_clear(lock_t *lp);
51 extern void lock_set_spl(lock_t *lp, int new_pil, ushort_t *old_pil);
52 extern void lock_clear_splx(lock_t *lp, int s);
59 #define LOCK_HELD(lp) (*(volatile lock_t *)(lp) != 0)
61 typedef lock_t disp_lock_t; /* dispatcher lock type */
H A Dmutex_impl.h63 lock_t m_dummylock; /* 0 dummy lock (always set) */
64 lock_t m_spinlock; /* 1 real lock */
/titanic_50/usr/src/uts/i86pc/sys/
H A Dapic_common.h132 extern lock_t apic_mode_switch_lock;
133 extern lock_t apic_gethrtime_lock;
150 extern lock_t apic_nmi_lock;
152 extern lock_t apic_error_lock;
H A Dclock.h97 lock_set_spl((lock_t *)&hres_lock + HRES_LOCK_OFFSET, \
104 (lock_t *)&hres_lock + HRES_LOCK_OFFSET);
H A Dapix.h133 lock_t x_lock;
168 extern lock_t apix_lock;
/titanic_50/usr/src/uts/common/disp/
H A Ddisp_lock.c126 lock_t *volatile *tlpp = &t->t_lockp; in thread_lock()
127 lock_t *lp = *tlpp; in thread_lock()
169 lock_t *volatile *tlpp = &t->t_lockp; in thread_lock_high()
170 lock_t *lp = *tlpp; in thread_lock_high()
/titanic_50/usr/src/uts/common/os/
H A Dturnstile.c176 static lock_t turnstile_loser_lock;
331 turnstile_interlock(lock_t *wlp, lock_t *volatile *olpp) in turnstile_interlock()
336 volatile lock_t *olp = *olpp; in turnstile_interlock()
343 if (lock_try((lock_t *)olp)) { in turnstile_interlock()
350 lock_clear((lock_t *)olp); in turnstile_interlock()
359 if (olp >= (lock_t *)turnstile_table && olp < wlp) { in turnstile_interlock()
361 lock_set((lock_t *)olp); in turnstile_interlock()
362 lock_clear((lock_t *)olp); in turnstile_interlock()
H A Dunix_bb.c48 lock_t unix_bb_lock;
H A Dmutex.c647 lock_set_spin(lock_t *lp) in lock_set_spin()
681 lock_set_spl_spin(lock_t *lp, int new_pil, ushort_t *old_pil_addr, int old_pil) in lock_set_spl_spin()
H A Ddtrace_subr.c70 lock_t dthr_lock; /* lock for this element */
/titanic_50/usr/src/uts/common/sys/
H A Dt_lock.h80 #define DISP_LOCK_INIT(lp) LOCK_INIT_CLEAR((lock_t *)(lp))
81 #define DISP_LOCK_HELD(lp) LOCK_HELD((lock_t *)(lp))
H A Dthread.h142 lock_t t_lock; /* used to resume() a thread */
199 lock_t t_lock_flush; /* for lock_mutex_flush() impl */
/titanic_50/usr/src/uts/sparc/v7/sys/
H A Dmutex_impl.h71 lock_t m_dummylock; /* 0 lock (always set) */
72 lock_t m_spinlock; /* 1 real lock */
/titanic_50/usr/src/uts/sparc/v9/sys/
H A Dmutex_impl.h66 lock_t m_spinlock; /* 6 real lock */
67 lock_t m_dummylock; /* 7 dummy lock (always set) */
/titanic_50/usr/src/uts/sparc/v9/ml/
H A Dlock_prim.s155 lock_try(lock_t *lp)
161 lock_spin_try(lock_t *lp)
167 lock_set(lock_t *lp)
169 extern void lock_set_spin(lock_t *);
177 lock_clear(lock_t *lp)
184 ulock_try(lock_t *lp)
190 ulock_clear(lock_t *lp)
270 lock_set_spl(lock_t *lp, int new_pil, u_short *old_pil_addr)
273 extern void lock_set_spl_spin(lock_t *, int, u_short *, int);
314 lock_clear_splx(lock_t *lp, int s)
/titanic_50/usr/src/uts/sun4/sys/
H A Dclock.h167 lock_set_spl((lock_t *)&hres_lock + HRES_LOCK_OFFSET, \
175 (lock_t *)&hres_lock + HRES_LOCK_OFFSET);
/titanic_50/usr/src/uts/common/tnf/
H A Dtnf_buf.c82 lock_t *lp; in tnfw_b_alloc_block()
311 lock_t *lp; in tnfw_b_fw_alloc()
361 ASSERT(sizeof (tnf_byte_lock_t) == sizeof (lock_t)); in tnfw_b_init_buffer()
H A Dtnf_buf.h123 lock_t lock; /* protects hint updates */
/titanic_50/usr/src/uts/intel/ia32/sys/
H A Dmachtypes.h65 typedef unsigned char lock_t; /* lock work for busy wait */ typedef
/titanic_50/usr/src/uts/intel/ia32/ml/
H A Dlock_prim.s56 lock_try(lock_t *lp)
61 lock_spin_try(lock_t *lp)
66 ulock_try(lock_t *lp)
190 lock_clear(lock_t *lp)
195 ulock_clear(lock_t *lp)
281 lock_set_spl(lock_t *lp, int new_pil, u_short *old_pil)
361 lock_init(lock_t *lp)
394 lock_set(lock_t *lp)
441 lock_clear_splx(lock_t *lp, int s)
/titanic_50/usr/src/uts/sun4u/starfire/sys/
H A Didn_smr.h177 lock_t sl_lock;
H A Didn.h1666 lock_t diowanted;
1673 lock_t diocheck; /* drwlock */
1679 lock_t dreclaim_inprogress; /* drwlock */
1859 lock_t idn_dmv_active;
1862 sizeof (lock_t) - \
2370 lock_t ch_initlck;
2371 lock_t ch_actvlck;
2377 (2*sizeof (uchar_t)) - (2*sizeof (lock_t)) -
2644 lock_t first_swlink;
2645 lock_t first_hwlink;
/titanic_50/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic_common.c132 lock_t apic_mode_switch_lock;
160 lock_t apic_gethrtime_lock;
177 lock_t apic_nmi_lock;
179 lock_t apic_error_lock;

12