Home
last modified time | relevance | path

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

12345678910>>...18

/kernel/linux/linux-5.10/drivers/net/wireless/zydas/zd1211rw/
Dzd_rf_rf2959.c32 static int bits(u32 rw, int from, int to)
34 rw &= ~(0xffffffffU << (to+1));
35 rw >>= from;
36 return rw;
39 static int bit(u32 rw, int bit)
41 return bits(rw, bit, bit);
44 static void dump_regwrite(u32 rw)
46 int reg = bits(rw, 18, 22);
47 int rw_flag = bits(rw, 23, 23);
48 PDEBUG("rf2959 %#010x reg %d rw %d", rw, reg, rw_flag);
[all …]
/kernel/linux/linux-5.10/arch/arc/include/asm/
Dspinlock.h79 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
101 : [rwlock] "r" (&(rw->counter)), in arch_read_lock()
109 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock() argument
125 : [rwlock] "r" (&(rw->counter)), in arch_read_trylock()
134 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
158 : [rwlock] "r" (&(rw->counter)), in arch_write_lock()
167 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
183 : [rwlock] "r" (&(rw->counter)), in arch_write_trylock()
193 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
209 : [rwlock] "r" (&(rw->counter)) in arch_read_unlock()
[all …]
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dspinlock.h67 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock() argument
73 arch_spin_lock(&(rw->lock_mutex)); in arch_read_trylock()
79 if (rw->counter > 0) { in arch_read_trylock()
80 rw->counter--; in arch_read_trylock()
84 arch_spin_unlock(&(rw->lock_mutex)); in arch_read_trylock()
91 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
97 arch_spin_lock(&(rw->lock_mutex)); in arch_write_trylock()
105 if (rw->counter == __ARCH_RW_LOCK_UNLOCKED__) { in arch_write_trylock()
106 rw->counter = 0; in arch_write_trylock()
109 arch_spin_unlock(&(rw->lock_mutex)); in arch_write_trylock()
[all …]
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dspinlock.h106 #define arch_read_relax(rw) barrier() argument
107 #define arch_write_relax(rw) barrier() argument
112 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
116 old = __atomic_add(1, &rw->cnts); in arch_read_lock()
118 arch_read_lock_wait(rw); in arch_read_lock()
121 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
123 __atomic_add_const_barrier(-1, &rw->cnts); in arch_read_unlock()
126 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
128 if (!__atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000)) in arch_write_lock()
129 arch_write_lock_wait(rw); in arch_write_lock()
[all …]
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dspinlock-cas.h52 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
55 do old = rw->lock; in arch_read_lock()
56 while (!old || __sl_cas(&rw->lock, old, old-1) != old); in arch_read_lock()
59 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
62 do old = rw->lock; in arch_read_unlock()
63 while (__sl_cas(&rw->lock, old, old+1) != old); in arch_read_unlock()
66 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
68 while (__sl_cas(&rw->lock, RW_LOCK_BIAS, 0) != RW_LOCK_BIAS); in arch_write_lock()
71 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock() argument
73 __sl_cas(&rw->lock, 0, RW_LOCK_BIAS); in arch_write_unlock()
[all …]
Dspinlock-llsc.h90 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
103 : "r" (&rw->lock) in arch_read_lock()
108 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
119 : "r" (&rw->lock) in arch_read_unlock()
124 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
137 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_lock()
142 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock() argument
147 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_unlock()
152 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock() argument
168 : "r" (&rw->lock) in arch_read_trylock()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dsimple_spinlock.h178 static inline long __arch_read_trylock(arch_rwlock_t *rw) in __arch_read_trylock() argument
191 : "r" (&rw->lock) in __arch_read_trylock()
201 static inline long __arch_write_trylock(arch_rwlock_t *rw) in __arch_write_trylock() argument
214 : "r" (token), "r" (&rw->lock) in __arch_write_trylock()
220 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
223 if (likely(__arch_read_trylock(rw) > 0)) in arch_read_lock()
228 splpar_rw_yield(rw); in arch_read_lock()
229 } while (unlikely(rw->lock < 0)); in arch_read_lock()
234 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
237 if (likely(__arch_write_trylock(rw) == 0)) in arch_write_lock()
[all …]
/kernel/linux/linux-5.10/block/
Dblk-throttle.c300 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit() argument
310 ret = tg->bps[rw][td->limit_index]; in tg_bps_limit()
314 tg->iops[rw][td->limit_index]) in tg_bps_limit()
320 if (td->limit_index == LIMIT_MAX && tg->bps[rw][LIMIT_LOW] && in tg_bps_limit()
321 tg->bps[rw][LIMIT_LOW] != tg->bps[rw][LIMIT_MAX]) { in tg_bps_limit()
324 adjusted = throtl_adjusted_limit(tg->bps[rw][LIMIT_LOW], td); in tg_bps_limit()
325 ret = min(tg->bps[rw][LIMIT_MAX], adjusted); in tg_bps_limit()
330 static unsigned int tg_iops_limit(struct throtl_grp *tg, int rw) in tg_iops_limit() argument
340 ret = tg->iops[rw][td->limit_index]; in tg_iops_limit()
344 tg->bps[rw][td->limit_index]) in tg_iops_limit()
[all …]
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dspinlock.h139 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
143 prefetchw(&rw->lock); in arch_write_lock()
152 : "r" (&rw->lock), "r" (0x80000000) in arch_write_lock()
158 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
162 prefetchw(&rw->lock); in arch_write_trylock()
170 : "r" (&rw->lock), "r" (0x80000000) in arch_write_trylock()
182 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock() argument
189 : "r" (&rw->lock), "r" (0) in arch_write_unlock()
207 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
211 prefetchw(&rw->lock); in arch_read_lock()
[all …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dspinlock_32.h79 static inline void __arch_read_lock(arch_rwlock_t *rw) in __arch_read_lock() argument
82 lp = rw; in __arch_read_lock()
99 static inline void __arch_read_unlock(arch_rwlock_t *rw) in __arch_read_unlock() argument
102 lp = rw; in __arch_read_unlock()
119 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
122 lp = rw; in arch_write_lock()
142 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
148 : "r" (&rw->lock) in arch_write_trylock()
152 val = rw->lock & ~0xff; in arch_write_trylock()
154 ((volatile u8*)&rw->lock)[3] = 0; in arch_write_trylock()
[all …]
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dprocess_32.c122 struct reg_window32 *rw = (struct reg_window32 *) r->u_regs[14]; in show_regs() local
138 rw->locals[0], rw->locals[1], rw->locals[2], rw->locals[3], in show_regs()
139 rw->locals[4], rw->locals[5], rw->locals[6], rw->locals[7]); in show_regs()
141 rw->ins[0], rw->ins[1], rw->ins[2], rw->ins[3], in show_regs()
142 rw->ins[4], rw->ins[5], rw->ins[6], rw->ins[7]); in show_regs()
153 struct reg_window32 *rw; in show_stack() local
169 rw = (struct reg_window32 *) fp; in show_stack()
170 pc = rw->ins[7]; in show_stack()
173 fp = rw->ins[6]; in show_stack()
388 struct reg_window32 *rw; local
[all …]
Dprocess_64.c110 struct reg_window32 __user *rw; in show_regwindow32() local
115 rw = compat_ptr((unsigned int)regs->u_regs[14]); in show_regwindow32()
118 if (copy_from_user (&r_w, rw, sizeof(r_w))) { in show_regwindow32()
139 struct reg_window __user *rw; in show_regwindow() local
146 rw = (struct reg_window __user *) in show_regwindow()
153 if (copy_from_user (&r_w, rw, sizeof(r_w))) { in show_regwindow()
218 struct reg_window *rw; in __global_reg_self() local
220 rw = (struct reg_window *) in __global_reg_self()
222 if (kstack_valid(tp, (unsigned long) rw)) { in __global_reg_self()
223 rp->i7 = rw->ins[7]; in __global_reg_self()
[all …]
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_mmiotrace.c171 struct mmiotrace_rw *rw; in mmio_print_rw() local
178 rw = &field->rw; in mmio_print_rw()
180 switch (rw->opcode) { in mmio_print_rw()
184 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
185 (unsigned long long)rw->phys, in mmio_print_rw()
186 rw->value, rw->pc, 0); in mmio_print_rw()
191 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
192 (unsigned long long)rw->phys, in mmio_print_rw()
193 rw->value, rw->pc, 0); in mmio_print_rw()
199 secs, usec_rem, rw->map_id, in mmio_print_rw()
[all …]
/kernel/linux/linux-5.10/Documentation/hwmon/
Damc6821.rst30 temp1_min rw "
31 temp1_max rw "
32 temp1_crit rw "
38 temp2_min rw "
39 temp2_max rw "
40 temp2_crit rw "
47 fan1_min rw "
48 fan1_max rw "
50 fan1_div rw Fan divisor can be either 2 or 4.
52 pwm1 rw pwm1
[all …]
Dmax1668.rst35 temp1_max rw local temperature maximum threshold for alarm
37 temp1_min rw local temperature minimum threshold for alarm
40 temp2_max rw remote temperature 1 maximum threshold for alarm
42 temp2_min rw remote temperature 1 minimum threshold for alarm
45 temp3_max rw remote temperature 2 maximum threshold for alarm
47 temp3_min rw remote temperature 2 minimum threshold for alarm
55 temp4_max rw remote temperature 3 maximum threshold for alarm
57 temp4_min rw remote temperature 3 minimum threshold for alarm
60 temp5_max rw remote temperature 4 maximum threshold for alarm
62 temp5_min rw remote temperature 4 minimum threshold for alarm
/kernel/linux/linux-5.10/drivers/block/xen-blkback/
Dcommon.h123 struct blkif_x86_32_request_rw rw; member
179 struct blkif_x86_64_request_rw rw; member
410 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_32_req()
411 dst->u.rw.handle = src->u.rw.handle; in blkif_get_x86_32_req()
412 dst->u.rw.id = src->u.rw.id; in blkif_get_x86_32_req()
413 dst->u.rw.sector_number = src->u.rw.sector_number; in blkif_get_x86_32_req()
415 if (n > dst->u.rw.nr_segments) in blkif_get_x86_32_req()
416 n = dst->u.rw.nr_segments; in blkif_get_x86_32_req()
418 dst->u.rw.seg[i] = src->u.rw.seg[i]; in blkif_get_x86_32_req()
458 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_64_req()
[all …]
/kernel/linux/linux-5.10/drivers/pci/
Dpci-bridge-emul.c44 u32 rw; member
54 .rw = (PCI_COMMAND_IO | PCI_COMMAND_MEMORY |
93 .rw = GENMASK(24, 0),
100 .rw = (GENMASK(15, 12) | GENMASK(7, 4)),
112 .rw = GENMASK(31, 20) | GENMASK(15, 4),
120 .rw = GENMASK(31, 20) | GENMASK(15, 4),
127 .rw = ~0,
131 .rw = ~0,
135 .rw = ~0,
158 .rw = (GENMASK(7, 0) |
[all …]
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dspinlock.h165 #define arch_read_lock_flags(rw, flags) arch_read_lock(rw) argument
167 #define arch_read_lock(rw) \ argument
169 arch_rwlock_t *__read_lock_ptr = (rw); \
180 #define arch_read_unlock(rw) \ argument
182 arch_rwlock_t *__read_lock_ptr = (rw); \
214 #define arch_write_lock(rw) arch_write_lock_flags(rw, 0) argument
216 #define arch_write_trylock(rw) \ argument
224 : "=r"(result) : "r"(rw) : "ar.ccv", "r29", "memory"); \
248 #define arch_write_trylock(rw) \ argument
252 ia64_val = ia64_cmpxchg4_acq((__u32 *)(rw), ia64_set_val, 0); \
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dttm_lock.c49 lock->rw = 0; in ttm_lock_init()
56 if (--lock->rw == 0) in ttm_read_unlock()
66 if (lock->rw >= 0 && lock->flags == 0) { in __ttm_read_lock()
67 ++lock->rw; in __ttm_read_lock()
93 if (lock->rw >= 0 && lock->flags == 0) { in __ttm_read_trylock()
94 ++lock->rw; in __ttm_read_trylock()
127 lock->rw = 0; in ttm_write_unlock()
137 if (lock->rw == 0 && ((lock->flags & ~TTM_WRITE_LOCK_PENDING) == 0)) { in __ttm_write_lock()
138 lock->rw = -1; in __ttm_write_lock()
180 if (lock->rw == 0) { in __ttm_suspend_lock()
/kernel/linux/linux-5.10/arch/s390/lib/
Dspinlock.c269 void arch_read_lock_wait(arch_rwlock_t *rw) in arch_read_lock_wait() argument
272 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait()
278 __atomic_add_const(-1, &rw->cnts); in arch_read_lock_wait()
280 arch_spin_lock(&rw->wait); in arch_read_lock_wait()
282 __atomic_add_const(1, &rw->cnts); in arch_read_lock_wait()
284 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait()
286 arch_spin_unlock(&rw->wait); in arch_read_lock_wait()
290 void arch_write_lock_wait(arch_rwlock_t *rw) in arch_write_lock_wait() argument
295 __atomic_add(0x20000, &rw->cnts); in arch_write_lock_wait()
298 arch_spin_lock(&rw->wait); in arch_write_lock_wait()
[all …]
/kernel/linux/linux-5.10/Documentation/target/
Dtcm_mod_builder.rst76 -rw-r--r-- 1 root root 282 2010-10-05 03:22 Kbuild
77 -rw-r--r-- 1 root root 171 2010-10-05 03:22 Kconfig
78 -rw-r--r-- 1 root root 49 2010-10-05 03:23 modules.order
79 -rw-r--r-- 1 root root 738 2010-10-05 03:22 tcm_nab5000_base.h
80 -rw-r--r-- 1 root root 9096 2010-10-05 03:22 tcm_nab5000_configfs.c
81 -rw-r--r-- 1 root root 191200 2010-10-05 03:23 tcm_nab5000_configfs.o
82 -rw-r--r-- 1 root root 40504 2010-10-05 03:23 .tcm_nab5000_configfs.o.cmd
83 -rw-r--r-- 1 root root 5414 2010-10-05 03:22 tcm_nab5000_fabric.c
84 -rw-r--r-- 1 root root 2016 2010-10-05 03:22 tcm_nab5000_fabric.h
85 -rw-r--r-- 1 root root 190932 2010-10-05 03:23 tcm_nab5000_fabric.o
[all …]
/kernel/linux/linux-5.10/Documentation/trace/coresight/
Dcoresight-etm4x-reference.rst22 :File: ``mode`` (rw)
74 :File: ``addr_idx`` (rw)
87 :File: ``addr_range`` (rw)
110 :File: ``addr_single`` (rw)
123 :File: ``addr_start`` (rw)
135 :File: ``addr_stop`` (rw)
147 :File: ``addr_context`` (rw)
161 :File: ``addr_ctxtype`` (rw)
176 :File: ``addr_exlevel_s_ns`` (rw)
193 :File: ``addr_instdatatype`` (rw)
[all …]
/kernel/linux/linux-5.10/drivers/nvdimm/
Dblk.c64 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument
94 cur_len, rw); in nd_blk_rw_integrity()
110 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument
118 unsigned int len, unsigned int off, int rw, sector_t sector) in nsblk_do_bvec() argument
147 err = ndbr->do_io(ndbr, dev_offset, iobuf + off, cur_len, rw); in nsblk_do_bvec()
153 err = nd_blk_rw_integrity(nsblk, bip, lba, rw); in nsblk_do_bvec()
172 int err = 0, rw; in nd_blk_submit_bio() local
179 rw = bio_data_dir(bio); in nd_blk_submit_bio()
188 bvec.bv_offset, rw, iter.bi_sector); in nd_blk_submit_bio()
192 (rw == READ) ? "READ" : "WRITE", in nd_blk_submit_bio()
[all …]
/kernel/linux/linux-5.10/arch/riscv/include/asm/
Dbarrier.h26 #define __smp_mb() RISCV_FENCE(rw,rw)
33 RISCV_FENCE(rw,w); \
41 RISCV_FENCE(r,rw); \
/kernel/linux/linux-5.10/fs/btrfs/
Dlocking.h122 static inline void btrfs_tree_unlock_rw(struct extent_buffer *eb, int rw) in btrfs_tree_unlock_rw() argument
124 if (rw == BTRFS_WRITE_LOCK || rw == BTRFS_WRITE_LOCK_BLOCKING) in btrfs_tree_unlock_rw()
126 else if (rw == BTRFS_READ_LOCK_BLOCKING) in btrfs_tree_unlock_rw()
128 else if (rw == BTRFS_READ_LOCK) in btrfs_tree_unlock_rw()

12345678910>>...18