Home
last modified time | relevance | path

Searched refs:rw (Results 1 – 25 of 526) sorted by relevance

12345678910>>...22

/titanic_51/usr/src/lib/libnisdb/
H A Dnisdb_rw.c41 __nisdb_rwinit(__nisdb_rwlock_t *rw) { in __nisdb_rwinit() argument
45 if (rw == 0) { in __nisdb_rwinit()
52 if ((ret = mutex_init(&rw->mutex, USYNC_THREAD, 0)) != 0) in __nisdb_rwinit()
54 if ((ret = cond_init(&rw->cv, USYNC_THREAD, 0)) != 0) in __nisdb_rwinit()
56 rw->destroyed = 0; in __nisdb_rwinit()
77 rw->force_write = NISDB_FORCE_WRITE; in __nisdb_rwinit()
79 rw->writer_count = rw->reader_count = rw->reader_blocked = 0; in __nisdb_rwinit()
80 rw in __nisdb_rwinit()
89 find_reader(pthread_t id,__nisdb_rwlock_t * rw) find_reader() argument
107 __nisdb_rw_readlock_ok(__nisdb_rwlock_t * rw) __nisdb_rw_readlock_ok() argument
137 __nisdb_rw_force_writelock(__nisdb_rwlock_t * rw) __nisdb_rw_force_writelock() argument
164 __nisdb_wlock_trylock(__nisdb_rwlock_t * rw,int trylock) __nisdb_wlock_trylock() argument
306 __nisdb_wlock(__nisdb_rwlock_t * rw) __nisdb_wlock() argument
312 increment_reader(pthread_t id,__nisdb_rwlock_t * rw) increment_reader() argument
344 __nisdb_rlock(__nisdb_rwlock_t * rw) __nisdb_rlock() argument
411 __nisdb_wulock(__nisdb_rwlock_t * rw) __nisdb_wulock() argument
460 __nisdb_rulock(__nisdb_rwlock_t * rw) __nisdb_rulock() argument
550 __nisdb_assert_wheld(__nisdb_rwlock_t * rw) __nisdb_assert_wheld() argument
589 __nisdb_assert_rheld(__nisdb_rwlock_t * rw) __nisdb_assert_rheld() argument
643 __nisdb_destroy_lock(__nisdb_rwlock_t * rw) __nisdb_destroy_lock() argument
699 __nisdb_lock_report(__nisdb_rwlock_t * rw) __nisdb_lock_report() argument
[all...]
H A Dnis_hashitem.h100 #define nis_insert_item_rw(i, t, rw) __nis_insert_item_mt(i, t, rw) argument
103 #define nis_find_item_rw(i, t, rw) __nis_find_item_mt(i, t, rw, 0) argument
/titanic_51/usr/src/cmd/ipf/lib/common/
H A Drwlock_emul.c5 void eMrwlock_read_enter(rw, file, line) in eMrwlock_read_enter() argument
6 eMrwlock_t *rw; in eMrwlock_read_enter()
10 if (rw->eMrw_magic != EMM_MAGIC) {
12 rw->eMrw_owner, rw, rw->eMrw_magic);
15 if (rw->eMrw_read != 0 || rw->eMrw_write != 0) {
18 rw->eMrw_owner, rw, r
27 eMrwlock_write_enter(rw,file,line) eMrwlock_write_enter() argument
49 eMrwlock_downgrade(rw,file,line) eMrwlock_downgrade() argument
72 eMrwlock_exit(rw) eMrwlock_exit() argument
94 eMrwlock_init(rw,who) eMrwlock_init() argument
114 eMrwlock_destroy(rw) eMrwlock_destroy() argument
[all...]
/titanic_51/usr/src/uts/common/os/
H A Drwstlock.c61 rwst_enter_common(rwstlock_t *l, krw_t rw, int flags) in rwst_enter_common() argument
68 if (rw == RW_READER || rw == RW_READER_STARVEWRITER) { in rwst_enter_common()
70 (rw != RW_READER_STARVEWRITER && RWST_WRITE_WANTED(l))) { in rwst_enter_common()
92 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw, in rwst_enter_common()
96 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, l, rw); in rwst_enter_common()
98 ASSERT(rw == RW_WRITER); in rwst_enter_common()
122 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw, in rwst_enter_common()
126 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, l, rw); in rwst_enter_common()
152 rwst_enter(rwstlock_t *l, krw_t rw) in rwst_enter() argument
158 rwst_enter_sig(rwstlock_t * l,krw_t rw) rwst_enter_sig() argument
164 rwst_tryenter(rwstlock_t * l,krw_t rw) rwst_tryenter() argument
170 rwst_lock_held(rwstlock_t * l,krw_t rw) rwst_lock_held() argument
[all...]
H A Drwlock.c253 rw_locked(rwlock_impl_t *lp, krw_t rw) in rw_locked() argument
257 if (rw == RW_READER || rw == RW_READER_STARVEWRITER) in rw_locked()
260 if (rw == RW_WRITER) in rw_locked()
274 rw_enter_sleep(rwlock_impl_t *lp, krw_t rw) in rw_enter_sleep() argument
282 if (rw == RW_READER) { in rw_enter_sleep()
286 } else if (rw == RW_READER_STARVEWRITER) { in rw_enter_sleep()
348 if (rw != RW_WRITER) { in rw_enter_sleep()
359 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, lp, sleep_time, rw, in rw_enter_sleep()
370 ASSERT(rw_locked(lp, rw)); in rw_enter_sleep()
527 rw_tryenter(krwlock_t * rwlp,krw_t rw) rw_tryenter() argument
[all...]
H A Dfbio.c64 fbread(vnode_t *vp, offset_t off, uint_t len, enum seg_rw rw, in fbread() argument
81 MAXBSIZE, SM_LOCKPROTO, rw); in fbread()
84 off & (offset_t)MAXBMASK, MAXBSIZE, 0, rw); in fbread()
91 err = segmap_fault(kas.a_hat, segkmap, raddr, rsize, F_SOFTLOCK, rw); in fbread()
152 #define FBCOMMON(fbp, rw, flags, howtoreturn) \ argument
159 (void) segmap_fault(kas.a_hat, segkmap, addr, size, F_SOFTUNLOCK, rw); \
166 fbrelse(struct fbuf *fbp, enum seg_rw rw) in fbrelse() argument
168 FBCOMMON(fbp, rw, 0, (void)) in fbrelse()
H A Durw.c195 enum seg_rw rw; in urw() local
238 rw = S_WRITE; in urw()
240 rw = S_READ_NOCOW; in urw()
242 rw = S_READ; in urw()
244 if (SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTLOCK, rw)) { in urw()
300 if (rw == S_READ_NOCOW) in urw()
301 rw = S_READ; in urw()
303 (void) SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTUNLOCK, rw); in urw()
H A Dwatchpoint.c106 * Map the 'rw' argument to a protection flag.
109 rw_to_prot(enum seg_rw rw) in rw_to_prot() argument
111 switch (rw) { in rw_to_prot()
124 * Map the 'rw' argument to an index into an array of exec/write/read things.
128 rw_to_index(enum seg_rw rw) in rw_to_index() argument
130 switch (rw) { in rw_to_index()
160 pr_do_mappage(caddr_t addr, size_t size, int mapin, enum seg_rw rw, int kernel) in pr_do_mappage() argument
165 int prot_rw = rw_to_prot(rw); in pr_do_mappage()
166 int xrw = rw_to_index(rw); in pr_do_mappage()
344 pr_mappage(const caddr_t addr, size_t size, enum seg_rw rw, in argument
355 pr_unmappage(const caddr_t addr,size_t size,enum seg_rw rw,int kernel) pr_unmappage() argument
422 pr_is_watchpage_as(caddr_t addr,enum seg_rw rw,struct as * as) pr_is_watchpage_as() argument
480 pr_is_watchpage(caddr_t addr,enum seg_rw rw) pr_is_watchpage() argument
497 pr_is_watchpoint(caddr_t * paddr,int * pta,size_t size,size_t * plen,enum seg_rw rw) pr_is_watchpoint() argument
596 do_watch_step(caddr_t vaddr,size_t sz,enum seg_rw rw,int watchcode,greg_t pc) do_watch_step() argument
1413 pr_is_watched(caddr_t base,size_t len,int rw) pr_is_watched() argument
1434 watch_physio(int (* strat)(struct buf *),struct buf * bp,dev_t dev,int rw,void (* mincnt)(struct buf *),struct uio * uio) watch_physio() argument
1707 watch_disable_addr(const void * addr,size_t len,enum seg_rw rw) watch_disable_addr() argument
1715 watch_enable_addr(const void * addr,size_t len,enum seg_rw rw) watch_enable_addr() argument
[all...]
/titanic_51/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_ncallio.c215 nsc_ncio_rw_t *rw; in nsc_ncio_rwb() local
237 if (sizeof (*rw) > NCALL_DATA_SZ) { in nsc_ncio_rwb()
239 ASSERT(sizeof (*rw) <= NCALL_DATA_SZ); in nsc_ncio_rwb()
246 ncall_len = sizeof (*rw) - sizeof (rw->rw_data); in nsc_ncio_rwb()
250 ncall_len = sizeof (*rw); in nsc_ncio_rwb()
253 rw = &h->rw; in nsc_ncio_rwb()
257 bzero(rw->rw_data, sizeof (rw in nsc_ncio_rwb()
641 nsc_ncio_rw_t *rw; nsc_rncio_io() local
[all...]
H A Dnsc_ncallio.h80 } rw; member
86 #define rw_snode rw_u.rw.snode
87 #define rw_path rw_u.rw.path
88 #define rw_pos rw_u.rw.pos
89 #define rw_len rw_u.rw.len
97 struct nsc_ncio_rw rw; member
H A Dnsc_resv.c149 int rc, rw; local
154 rw = (flag & NSC_RDWR);
155 if ((fd->sf_flag & rw) != rw)
220 int rw; local
230 rw = (fd->sf_flag & NSC_RDWR);
232 return ((fd->sf_avail & rw) == rw);
437 int rw = (flag & NSC_RDWR); local
455 if ((fd->sf_avail & rw)
679 int rc, rw; global() local
[all...]
/titanic_51/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_rwlock.c59 smbfs_rw_enter_sig(smbfs_rwlock_t *l, krw_t rw, int intr) in smbfs_rw_enter_sig() argument
70 ASSERT(rw == RW_READER || rw == RW_WRITER); in smbfs_rw_enter_sig()
72 } else if (rw == RW_READER) { in smbfs_rw_enter_sig()
104 ASSERT(rw == RW_WRITER); in smbfs_rw_enter_sig()
149 smbfs_rw_tryenter(smbfs_rwlock_t *l, krw_t rw) in smbfs_rw_tryenter() argument
159 ASSERT(rw == RW_READER || rw == RW_WRITER); in smbfs_rw_tryenter()
161 } else if (rw == RW_READER) { in smbfs_rw_tryenter()
172 ASSERT(rw in smbfs_rw_tryenter()
225 smbfs_rw_lock_held(smbfs_rwlock_t * l,krw_t rw) smbfs_rw_lock_held() argument
[all...]
/titanic_51/usr/src/uts/sparc/v9/fpu/
H A Duword.c212 uint32_t res, *addr, *rw; in read_iureg() local
224 rw = (uint32_t *)(uintptr_t)rw32; in read_iureg()
226 addr = (uint32_t *)&rw[n - 16]; in read_iureg()
230 uint64_t res, *addr, *rw = (uint64_t *) in read_iureg() local
233 addr = (uint64_t *)&rw[n - 16]; in read_iureg()
239 ulong_t *addr, *rw = (ulong_t *)((uintptr_t)prw + STACK_BIAS); in read_iureg() local
242 addr = (ulong_t *)&rw[n - 16]; in read_iureg()
272 uint32_t res, *addr, *rw; in write_iureg() local
284 rw = (uint32_t *)(uintptr_t)rw32; in write_iureg()
286 addr = &rw[ in write_iureg()
290 uint64_t *addr, *rw = (uint64_t *) write_iureg() local
300 ulong_t *addr, *rw = (ulong_t *)((uintptr_t)prw + STACK_BIAS); write_iureg() local
[all...]
/titanic_51/usr/src/cmd/ipf/tools/
H A Dipfs.c113 int fd, olen, nlen, rw; local
135 rw = 0;
138 rw = 1;
142 rw = 1;
144 if (rw == 1) {
168 int fd, olen, nlen, rw; local
192 rw = 0;
195 rw = 1;
199 rw = 1;
201 if (rw
223 int c, lock = -1, devfd = -1, err = 0, rw = -1, ns = -1, set = 0; global() local
[all...]
/titanic_51/usr/src/uts/common/fs/smbsrv/
H A Dsmb_write.c55 sr->arg.rw = param; in smb_pre_write()
74 smb_rw_param_t *, sr->arg.rw); in smb_post_write()
76 kmem_free(sr->arg.rw, sizeof (smb_rw_param_t)); in smb_post_write()
82 smb_rw_param_t *param = sr->arg.rw; in smb_com_write()
140 sr->arg.rw = param; in smb_pre_write_and_close()
164 smb_rw_param_t *, sr->arg.rw); in smb_post_write_and_close()
166 kmem_free(sr->arg.rw, sizeof (smb_rw_param_t)); in smb_post_write_and_close()
172 smb_rw_param_t *param = sr->arg.rw; in smb_com_write_and_close()
244 sr->arg.rw = param; in smb_pre_write_and_unlock()
262 smb_rw_param_t *, sr->arg.rw); in smb_post_write_and_unlock()
[all...]
H A Dsmb_read.c67 sr->arg.rw = param; in smb_pre_read()
86 smb_rw_param_t *, sr->arg.rw); in smb_post_read()
88 kmem_free(sr->arg.rw, sizeof (smb_rw_param_t)); in smb_post_read()
94 smb_rw_param_t *param = sr->arg.rw; in smb_com_read()
153 sr->arg.rw = param; in smb_pre_lock_and_read()
172 smb_rw_param_t *, sr->arg.rw); in smb_post_lock_and_read()
174 kmem_free(sr->arg.rw, sizeof (smb_rw_param_t)); in smb_post_lock_and_read()
180 smb_rw_param_t *param = sr->arg.rw; in smb_com_lock_and_read()
245 sr->arg.rw = param; in smb_pre_read_andx()
281 smb_rw_param_t *, sr->arg.rw); in smb_post_read_andx()
[all...]
/titanic_51/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/helptools/
H A DparseMain.java555 ResourceWriter rw = new ResourceWriter(w); in main() local
558 rw.fileheader(); in main()
563 rw.delimiter(); in main()
564 rw.commentStart(); in main()
569 rw.comment(commentLine); in main()
571 rw.commentEnd(); in main()
572 rw.delimiter(); in main()
590 rw.classheader(className); in main()
621 rw.setTag(tagName); in main()
622 rw in main()
[all...]
/titanic_51/usr/src/uts/common/fs/zfs/
H A Drrwlock.c231 rrw_enter(rrwlock_t *rrl, krw_t rw, void *tag) in rrw_enter() argument
233 if (rw == RW_READER) in rrw_enter()
283 rrw_held(rrwlock_t *rrl, krw_t rw) in rrw_held() argument
288 if (rw == RW_WRITER) { in rrw_held()
341 rrm_enter(rrmlock_t *rrl, krw_t rw, void *tag) in rrm_enter() argument
343 if (rw == RW_READER) in rrm_enter()
388 rrm_held(rrmlock_t *rrl, krw_t rw) in rrm_held() argument
390 if (rw == RW_WRITER) { in rrm_held()
391 return (rrw_held(&rrl->locks[0], rw)); in rrm_held()
393 return (rrw_held(&rrl->locks[RRM_TD_LOCK()], rw)); in rrm_held()
[all...]
/titanic_51/usr/src/lib/libast/common/disc/
H A Dsfdcdio.c56 size_t rw, done; local
71 for(rw = (n/di->dio.d_miniosz)*di->dio.d_miniosz;; )
74 if((io = rw) > di->dio.d_maxiosz )
81 { rw -= rv; done += rv;
85 if(rv < io || rw < di->dio.d_miniosz)
97 if((rw = n-done) > 0 &&
98 (rv = type == SF_READ ? read(f->file,buf,rw) : write(f->file,buf,rw)) > 0 )
/titanic_51/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcdio.c56 size_t rw, done; local
71 for(rw = (n/di->dio.d_miniosz)*di->dio.d_miniosz;; )
74 if((io = rw) > di->dio.d_maxiosz )
81 { rw -= rv; done += rv;
85 if(rv < io || rw < di->dio.d_miniosz)
97 if((rw = n-done) > 0 &&
98 (rv = type == SF_READ ? read(f->file,buf,rw) : write(f->file,buf,rw)) > 0 )
/titanic_51/usr/src/boot/sys/boot/common/
H A Dbcache.c191 write_strategy(void *devdata, int rw, daddr_t blk, size_t size, in write_strategy() argument
206 return (dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize)); in write_strategy()
215 read_strategy(void *devdata, int rw, daddr_t blk, size_t size, in read_strategy() argument
296 if ((rw & F_NORA) == F_NORA) in read_strategy()
321 rw &= F_MASK; in read_strategy()
322 result = dd->dv_strategy(dd->dv_devdata, rw, p_blk, in read_strategy()
368 bcache_strategy(void *devdata, int rw, daddr_t blk, size_t size, in bcache_strategy() argument
387 rw &= F_MASK; in bcache_strategy()
388 return (dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize)); in bcache_strategy()
391 switch (rw in bcache_strategy()
[all...]
/titanic_51/usr/src/cmd/mdb/common/modules/genunix/
H A Dsobj.c407 rwlock_block_t *rw; in rwlock_walk() local
438 rw = mdb_alloc(sizeof (rwlock_block_t), UM_SLEEP | UM_GC); in rwlock_walk()
440 rw->rw_next = *rwp; in rwlock_walk()
441 rw->rw_qnum = i; in rwlock_walk()
442 rw->rw_thread = taddr; in rwlock_walk()
443 *rwp = rw; in rwlock_walk()
481 if (rw != NULL) { \
482 int q = rw->rw_qnum; \
483 mdb_printf(" %?p (%s)", rw->rw_thread, \
485 rw
494 rwlock_block_t *rw = NULL; rwlock() local
[all...]
/titanic_51/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_labels.c114 slot_rwd_t rw; in pci_label_slotname_lookup() local
115 rw = Slot_Rewrites->srw_platrewrites[s].prw_rewrites[i]; in pci_label_slotname_lookup()
116 if (strcmp(rw.srw_obp, label) == 0) { in pci_label_slotname_lookup()
119 __func__, i, rw.srw_obp, in pci_label_slotname_lookup()
120 rw.srw_new ? rw.srw_new : NULL); in pci_label_slotname_lookup()
125 if (rw.srw_test != NULL) { in pci_label_slotname_lookup()
128 __func__, rw.srw_test); in pci_label_slotname_lookup()
129 if (ret = rw.srw_test(mod, dp)) in pci_label_slotname_lookup()
130 rlabel = rw in pci_label_slotname_lookup()
[all...]
/titanic_51/usr/src/uts/common/fs/zfs/sys/
H A Drrwlock.h71 void rrw_enter(rrwlock_t *rrl, krw_t rw, void *tag);
76 boolean_t rrw_held(rrwlock_t *rrl, krw_t rw);
98 void rrm_enter(rrmlock_t *rrl, krw_t rw, void *tag);
102 boolean_t rrm_held(rrmlock_t *rrl, krw_t rw);
/titanic_51/usr/src/lib/libfakekernel/common/
H A Drwlock.c56 rw_enter(krwlock_t *rwlp, krw_t rw) in rw_enter() argument
60 if (rw == RW_READER) { in rw_enter()
80 rw_tryenter(krwlock_t *rwlp, krw_t rw) in rw_tryenter() argument
84 if (rw == RW_WRITER) { in rw_tryenter()

12345678910>>...22