/titanic_44/usr/src/lib/libnisdb/ |
H A D | nisdb_rw.c | 42 __nisdb_rwinit(__nisdb_rwlock_t *rw) { in __nisdb_rwinit() argument 46 if (rw == 0) { in __nisdb_rwinit() 53 if ((ret = mutex_init(&rw->mutex, USYNC_THREAD, 0)) != 0) in __nisdb_rwinit() 55 if ((ret = cond_init(&rw->cv, USYNC_THREAD, 0)) != 0) in __nisdb_rwinit() 57 rw->destroyed = 0; in __nisdb_rwinit() 78 rw->force_write = NISDB_FORCE_WRITE; in __nisdb_rwinit() 80 rw->writer_count = rw->reader_count = rw->reader_blocked = 0; in __nisdb_rwinit() 81 rw->writer.id = rw->reader.id = INV_PTHREAD_ID; in __nisdb_rwinit() 82 rw->writer.count = rw->reader.count = 0; in __nisdb_rwinit() 83 rw->writer.next = rw->reader.next = 0; in __nisdb_rwinit() [all …]
|
H A D | nis_hashitem.h | 100 #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_44/usr/src/cmd/ipf/lib/common/ |
H A D | rwlock_emul.c | 5 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, rw->eMrw_read, rw->eMrw_write); 21 rw->eMrw_read++; 22 rw->eMrw_heldin = file; 23 rw->eMrw_heldat = line; 27 void eMrwlock_write_enter(rw, file, line) in eMrwlock_write_enter() argument [all …]
|
/titanic_44/usr/src/uts/common/os/ |
H A D | rwstlock.c | 61 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 154 (void) rwst_enter_common(l, rw, 0); in rwst_enter() [all …]
|
H A D | rwlock.c | 253 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() 277 rw_enter_sleep(rwlock_impl_t *lp, krw_t rw) in rw_enter_sleep() argument 285 if (rw == RW_READER) { in rw_enter_sleep() 289 } else if (rw == RW_READER_STARVEWRITER) { in rw_enter_sleep() 352 if (rw != RW_WRITER) { in rw_enter_sleep() 364 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, lp, sleep_time, rw, in rw_enter_sleep() 375 ASSERT(rw_locked(lp, rw)); in rw_enter_sleep() 379 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, lp, rw); in rw_enter_sleep() [all …]
|
H A D | fbio.c | 64 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 D | urw.c | 195 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 D | watchpoint.c | 109 rw_to_prot(enum seg_rw rw) in rw_to_prot() argument 111 switch (rw) { in rw_to_prot() 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() 360 pr_mappage(const caddr_t addr, size_t size, enum seg_rw rw, int kernel) in pr_mappage() argument 362 return (pr_do_mappage(addr, size, 1, rw, kernel)); in pr_mappage() 371 pr_unmappage(const caddr_t addr, size_t size, enum seg_rw rw, int kernel) in pr_unmappage() argument [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_ncallio.c | 215 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->rw_data)); in nsc_ncio_rwb() 263 rc = ncall_alloc(rw->rw_snode, 0, 0, &ncall); in nsc_ncio_rwb() 268 rw->rw_pos = (uint64_t)pos; in nsc_ncio_rwb() 269 rw->rw_len = (uint64_t)len; in nsc_ncio_rwb() [all …]
|
H A D | nsc_ncallio.h | 80 } 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 D | nsc_resv.c | 149 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) == rw && !iodev->si_rpend) 467 if ((fd->sf_avail & rw) == rw) 478 fd->sf_avail = rw; [all …]
|
/titanic_44/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_rwlock.c | 59 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 == RW_WRITER); in smbfs_rw_tryenter() 225 smbfs_rw_lock_held(smbfs_rwlock_t *l, krw_t rw) in smbfs_rw_lock_held() argument 228 if (rw == RW_READER) in smbfs_rw_lock_held() [all …]
|
/titanic_44/usr/src/uts/sparc/v9/fpu/ |
H A D | uword.c | 212 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[n - 16]; in write_iureg() [all …]
|
/titanic_44/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 113 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 == 1) { [all …]
|
/titanic_44/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_write.c | 55 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 D | smb_read.c | 67 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_44/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/helptools/ |
H A D | parseMain.java | 555 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.tag(tagName); in main() [all …]
|
/titanic_44/usr/src/uts/common/fs/zfs/ |
H A D | rrwlock.c | 231 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()
|
/titanic_44/usr/src/lib/libast/common/disc/ |
H A D | sfdcdio.c | 56 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_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | sobj.c | 407 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 = rw->rw_next; \ [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_labels.c | 114 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.srw_new; in pci_label_slotname_lookup() 135 rlabel = rw.srw_new; in pci_label_slotname_lookup()
|
/titanic_44/usr/src/uts/common/fs/zfs/sys/ |
H A D | rrwlock.h | 71 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_44/usr/src/lib/libfakekernel/common/ |
H A D | rwlock.c | 56 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()
|
/titanic_44/usr/src/uts/sun4u/serengeti/io/ |
H A D | sgcn.c | 911 sgcn_read_header(int rw, cnsram_header *header) in sgcn_read_header() argument 928 if (rw == RW_CONSOLE_READ) { in sgcn_read_header() 933 } else if (rw == RW_CONSOLE_WRITE) { in sgcn_read_header() 945 sgcn_rw(int rw, caddr_t buf, int len) in sgcn_rw() argument 952 rw, buf, len); in sgcn_rw() 959 sgcn_log_error(rw, EINVAL); in sgcn_rw() 964 rv = sgcn_read_header(rw, &header); in sgcn_rw() 966 sgcn_log_error(rw, EIO); in sgcn_rw() 970 sgcn_log_error(rw, EPROTO); in sgcn_rw() 974 if (rw == RW_CONSOLE_READ) in sgcn_rw() [all …]
|
/titanic_44/usr/src/uts/common/fs/swapfs/ |
H A D | swap_vnops.c | 57 caddr_t addr, enum seg_rw rw, struct cred *cr, caller_context_t *ct); 67 struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cr); 72 enum seg_rw rw, struct cred *cr); 116 enum seg_rw rw, in swap_getpage() argument 128 pl, plsz, seg, addr, rw, cr)); in swap_getpage() 145 enum seg_rw rw, in swap_getapage() argument 173 lock = (rw == S_CREATE ? SE_EXCL : SE_SHARED); in swap_getapage() 224 if (rw != S_CREATE) { in swap_getapage() 289 pvn_plist_init(pp, pl, plsz, off, PAGESIZE, rw); in swap_getapage() 319 enum seg_rw rw, in swap_getconpage() argument [all …]
|