Searched defs:rw (Results 1 - 25 of 263) sorted by relevance

1234567891011

/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddca_kstat.c157 dca_ksupdate(kstat_t *ksp, int rw) argument
166 if (rw == KSTAT_WRITE) {
/illumos-gate/usr/src/uts/common/os/
H A Dcopyops.c35 int rw, void (*mincnt)(struct buf *), struct uio *uio)
37 return (default_physio(strat, bp, dev, rw, mincnt, uio));
34 physio(int (*strat)(struct buf *), struct buf *bp, dev_t dev, int rw, void (*mincnt)(struct buf *), struct uio *uio) argument
H A Dsctp_crc32.c48 uint32_t rw = 0; local
52 rw |= 1 << (31 - i);
56 return (rw);
H A Drwstlock.c61 rwst_enter_common(rwstlock_t *l, krw_t rw, int flags) argument
68 if (rw == RW_READER || rw == RW_READER_STARVEWRITER) {
70 (rw != RW_READER_STARVEWRITER && RWST_WRITE_WANTED(l))) {
92 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw,
96 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, l, rw);
98 ASSERT(rw == RW_WRITER);
122 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw,
126 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, l, rw);
152 rwst_enter(rwstlock_t *l, krw_t rw) argument
158 rwst_enter_sig(rwstlock_t *l, krw_t rw) argument
164 rwst_tryenter(rwstlock_t *l, krw_t rw) argument
170 rwst_lock_held(rwstlock_t *l, krw_t rw) argument
[all...]
H A Dfbio.c64 fbread(vnode_t *vp, offset_t off, uint_t len, enum seg_rw rw, argument
81 MAXBSIZE, SM_LOCKPROTO, rw);
84 off & (offset_t)MAXBMASK, MAXBSIZE, 0, rw);
91 err = segmap_fault(kas.a_hat, segkmap, raddr, rsize, F_SOFTLOCK, rw);
152 #define FBCOMMON(fbp, rw, flags, howtoreturn) \
159 (void) segmap_fault(kas.a_hat, segkmap, addr, size, F_SOFTUNLOCK, rw); \
166 fbrelse(struct fbuf *fbp, enum seg_rw rw) argument
168 FBCOMMON(fbp, rw, 0, (void))
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprusrio.c44 prusrio(proc_t *p, enum uio_rw rw, struct uio *uiop, int old) argument
69 switch (rw) {
122 panic("prusrio: rw=%d neither UIO_READ not UIO_WRITE", rw);
/illumos-gate/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) argument
70 ASSERT(rw == RW_READER || rw == RW_WRITER);
72 } else if (rw == RW_READER) {
104 ASSERT(rw == RW_WRITER);
149 smbfs_rw_tryenter(smbfs_rwlock_t *l, krw_t rw) argument
159 ASSERT(rw == RW_READER || rw == RW_WRITER);
161 } else if (rw == RW_READER) {
172 ASSERT(rw
225 smbfs_rw_lock_held(smbfs_rwlock_t *l, krw_t rw) argument
[all...]
/illumos-gate/usr/src/uts/common/io/dls/
H A Ddls_stat.c62 dls_stat_update(kstat_t *ksp, dls_link_t *dlp, int rw) argument
68 if (rw != KSTAT_READ)
/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_kstat.c127 n2rng_ksupdate(kstat_t *ksp, int rw) argument
137 if (rw == KSTAT_WRITE) {
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvgen_stats.c163 vgen_kstat_update(kstat_t *ksp, int rw) argument
171 if (rw == KSTAT_READ) {
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_stat.c45 * rw - flags defining read/write
50 oce_update_stats(kstat_t *ksp, int rw) argument
57 if (rw == KSTAT_WRITE) {
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Duio.c24 * Move "n" bytes at byte address "p"; "rw" indicates the direction
30 uiomove(void *p, size_t n, enum uio_rw rw, struct uio *uio) argument
50 if (rw == UIO_READ)
H A Drwlock.c55 rw_enter(krwlock_t *rwlp, krw_t rw) argument
59 if (rw == RW_READER) {
81 rw_tryenter(krwlock_t *rwlp, krw_t rw) argument
85 if (rw == RW_WRITER) {
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfksmbfs_rwlock.c59 smbfs_rw_enter_sig(smbfs_rwlock_t *l, krw_t rw, int intr) argument
70 ASSERT(rw == RW_READER || rw == RW_WRITER);
72 } else if (rw == RW_READER) {
94 ASSERT(rw == RW_WRITER);
132 smbfs_rw_tryenter(smbfs_rwlock_t *l, krw_t rw) argument
142 ASSERT(rw == RW_READER || rw == RW_WRITER);
144 } else if (rw == RW_READER) {
155 ASSERT(rw
208 smbfs_rw_lock_held(smbfs_rwlock_t *l, krw_t rw) argument
[all...]
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_stat.c37 igb_update_stats(kstat_t *ks, int rw) argument
47 if (rw == KSTAT_WRITE)
/illumos-gate/usr/src/uts/common/io/bnx/
H A Dbnx_kstat.c36 bnx_kstat_update(kstat_t *kstats, int rw) argument
41 if (rw == KSTAT_WRITE) {
/illumos-gate/usr/src/cmd/tip/
H A Dvalue.c239 vaccess(unsigned mode, unsigned rw) argument
241 if (mode & (rw<<PUBLIC))
243 if (mode & (rw<<PRIVATE))
245 return ((mode & (rw<<ROOT)) && uid == 0);
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_stat.c39 static int e1000g_update_stats(kstat_t *ksp, int rw);
149 e1000g_update_stats(kstat_t *ksp, int rw) argument
162 if (rw == KSTAT_WRITE)
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Duword.c212 uint32_t res, *addr, *rw; local
224 rw = (uint32_t *)(uintptr_t)rw32;
226 addr = (uint32_t *)&rw[n - 16];
230 uint64_t res, *addr, *rw = (uint64_t *) local
233 addr = (uint64_t *)&rw[n - 16];
239 ulong_t *addr, *rw = (ulong_t *)((uintptr_t)prw + STACK_BIAS); local
242 addr = (ulong_t *)&rw[n - 16];
272 uint32_t res, *addr, *rw; local
284 rw = (uint32_t *)(uintptr_t)rw32;
286 addr = &rw[
290 uint64_t *addr, *rw = (uint64_t *) local
300 ulong_t *addr, *rw = (ulong_t *)((uintptr_t)prw + STACK_BIAS); local
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_stats.c68 int iscsi_hba_kstat_update(kstat_t *ks, int rw);
69 int iscsi_sess_kstat_update(kstat_t *ks, int rw);
70 int iscsi_conn_kstat_update(kstat_t *ks, int rw);
138 iscsi_hba_kstat_update(kstat_t *ks, int rw) argument
143 if (rw == KSTAT_READ) {
271 iscsi_sess_kstat_update(kstat_t *ks, int rw) argument
278 if (rw == KSTAT_READ) {
410 iscsi_conn_kstat_update(kstat_t *ks, int rw) argument
416 if (rw == KSTAT_READ) {
/illumos-gate/usr/src/uts/i86pc/os/
H A Dinstr_size.c129 instr_size(struct regs *rp, caddr_t *addrp, enum seg_rw rw) argument
137 rw == S_EXEC ? DIS_ISIZE_INSTR : DIS_ISIZE_OPERAND,
/illumos-gate/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 )
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dsimmstat.c295 simmstat_kstat_update(kstat_t *ksp, int rw) argument
308 if (rw == KSTAT_WRITE) {
/illumos-gate/usr/src/lib/libnisdb/
H A Dnisdb_rw.c41 __nisdb_rwinit(__nisdb_rwlock_t *rw) { argument
45 if (rw == 0) {
52 if ((ret = mutex_init(&rw->mutex, USYNC_THREAD, 0)) != 0)
54 if ((ret = cond_init(&rw->cv, USYNC_THREAD, 0)) != 0)
56 rw->destroyed = 0;
77 rw->force_write = NISDB_FORCE_WRITE;
79 rw->writer_count = rw->reader_count = rw->reader_blocked = 0;
80 rw
89 find_reader(pthread_t id, __nisdb_rwlock_t *rw) argument
107 __nisdb_rw_readlock_ok(__nisdb_rwlock_t *rw) argument
137 __nisdb_rw_force_writelock(__nisdb_rwlock_t *rw) argument
164 __nisdb_wlock_trylock(__nisdb_rwlock_t *rw, int trylock) argument
306 __nisdb_wlock(__nisdb_rwlock_t *rw) argument
312 increment_reader(pthread_t id, __nisdb_rwlock_t *rw) argument
344 __nisdb_rlock(__nisdb_rwlock_t *rw) argument
411 __nisdb_wulock(__nisdb_rwlock_t *rw) argument
460 __nisdb_rulock(__nisdb_rwlock_t *rw) argument
550 __nisdb_assert_wheld(__nisdb_rwlock_t *rw) argument
589 __nisdb_assert_rheld(__nisdb_rwlock_t *rw) argument
643 __nisdb_destroy_lock(__nisdb_rwlock_t *rw) argument
699 __nisdb_lock_report(__nisdb_rwlock_t *rw) argument
[all...]
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_mon.c65 sfxge_mon_kstat_update(kstat_t *ksp, int rw) argument
75 if (rw != KSTAT_READ) {

Completed in 80 milliseconds

1234567891011