Symbol: w
arch/alpha/include/asm/bitops.h
423
static inline unsigned long __arch_hweight64(unsigned long w)
arch/alpha/include/asm/bitops.h
425
return __kernel_ctpop(w);
arch/alpha/include/asm/bitops.h
428
static inline unsigned int __arch_hweight32(unsigned int w)
arch/alpha/include/asm/bitops.h
430
return __arch_hweight64(w);
arch/alpha/include/asm/bitops.h
433
static inline unsigned int __arch_hweight16(unsigned int w)
arch/alpha/include/asm/bitops.h
435
return __arch_hweight64(w & 0xffff);
arch/alpha/include/asm/bitops.h
438
static inline unsigned int __arch_hweight8(unsigned int w)
arch/alpha/include/asm/bitops.h
440
return __arch_hweight64(w & 0xff);
arch/alpha/include/asm/core_cia.h
365
unsigned long w, base_and_type;
arch/alpha/include/asm/core_cia.h
373
w = __kernel_insbl(b, addr & 3);
arch/alpha/include/asm/core_cia.h
374
*(vuip) ((addr << 5) + base_and_type) = w;
arch/alpha/include/asm/core_cia.h
395
unsigned long w, base_and_type;
arch/alpha/include/asm/core_cia.h
403
w = __kernel_inswl(b, addr & 3);
arch/alpha/include/asm/core_cia.h
404
*(vuip) ((addr << 5) + base_and_type) = w;
arch/alpha/include/asm/core_mcpcia.h
287
unsigned long w;
arch/alpha/include/asm/core_mcpcia.h
291
w = __kernel_insbl(b, addr & 3);
arch/alpha/include/asm/core_mcpcia.h
292
*(vuip) ((addr << 5) + hose + 0x00) = w;
arch/alpha/include/asm/core_mcpcia.h
311
unsigned long w;
arch/alpha/include/asm/core_mcpcia.h
315
w = __kernel_inswl(b, addr & 3);
arch/alpha/include/asm/core_mcpcia.h
316
*(vuip) ((addr << 5) + hose + 0x08) = w;
arch/alpha/include/asm/core_t2.h
365
unsigned long w;
arch/alpha/include/asm/core_t2.h
367
w = __kernel_insbl(b, addr & 3);
arch/alpha/include/asm/core_t2.h
368
*(vuip) ((addr << 5) + T2_IO + 0x00) = w;
arch/alpha/include/asm/core_t2.h
380
unsigned long w;
arch/alpha/include/asm/core_t2.h
382
w = __kernel_inswl(b, addr & 3);
arch/alpha/include/asm/core_t2.h
383
*(vuip) ((addr << 5) + T2_IO + 0x08) = w;
arch/alpha/include/asm/core_t2.h
510
unsigned long w;
arch/alpha/include/asm/core_t2.h
514
w = __kernel_insbl(b, addr & 3);
arch/alpha/include/asm/core_t2.h
515
*(vuip) ((addr << 5) + T2_SPARSE_MEM + 0x00) = w;
arch/alpha/include/asm/core_t2.h
521
unsigned long w;
arch/alpha/include/asm/core_t2.h
525
w = __kernel_inswl(b, addr & 3);
arch/alpha/include/asm/core_t2.h
526
*(vuip) ((addr << 5) + T2_SPARSE_MEM + 0x08) = w;
arch/alpha/include/asm/core_t2.h
595
IOPORT(w, 16)
arch/alpha/kernel/core_mcpcia.c
200
unsigned long addr, w;
arch/alpha/kernel/core_mcpcia.c
207
w = conf_read(addr, type1, hose);
arch/alpha/kernel/core_mcpcia.c
210
*value = __kernel_extbl(w, where & 3);
arch/alpha/kernel/core_mcpcia.c
213
*value = __kernel_extwl(w, where & 3);
arch/alpha/kernel/core_mcpcia.c
216
*value = w;
arch/alpha/kernel/io.c
288
unsigned int w;
arch/alpha/kernel/io.c
290
w = ioread8(port);
arch/alpha/kernel/io.c
291
w |= ioread8(port) << 8;
arch/alpha/kernel/io.c
292
w |= ioread8(port) << 16;
arch/alpha/kernel/io.c
293
w |= ioread8(port) << 24;
arch/alpha/kernel/io.c
294
*(unsigned int *)dst = w;
arch/alpha/kernel/io.c
332
unsigned int w;
arch/alpha/kernel/io.c
334
w = ioread16(port);
arch/alpha/kernel/io.c
335
w |= ioread16(port) << 16;
arch/alpha/kernel/io.c
336
*(unsigned int *)dst = w;
arch/alpha/kernel/io.c
426
unsigned int w;
arch/alpha/kernel/io.c
428
w = *(unsigned int *)src;
arch/alpha/kernel/io.c
430
iowrite16(w >> 0, port);
arch/alpha/kernel/io.c
431
iowrite16(w >> 16, port);
arch/alpha/kernel/osf_sys.c
752
unsigned long w;
arch/alpha/kernel/osf_sys.c
760
w = current_thread_info()->ieee_state & IEEE_SW_MASK;
arch/alpha/kernel/osf_sys.c
761
w = swcr_update_status(w, rdfpcr());
arch/alpha/kernel/osf_sys.c
762
if (put_user(w, (unsigned long __user *) buffer))
arch/alpha/kernel/osf_sys.c
777
w = current_thread_info()->status & UAC_BITMASK;
arch/alpha/kernel/osf_sys.c
778
if (put_user(w, (unsigned int __user *)buffer))
arch/alpha/kernel/osf_sys.c
787
w = cpu->type;
arch/alpha/kernel/osf_sys.c
788
if (put_user(w, (unsigned long __user*)buffer))
arch/alpha/kernel/osf_sys.c
888
unsigned v, w, status;
arch/alpha/kernel/osf_sys.c
890
if (get_user(v, p) || get_user(w, p + 1))
arch/alpha/kernel/osf_sys.c
894
w &= UAC_BITMASK;
arch/alpha/kernel/osf_sys.c
896
status = (status & ~UAC_BITMASK) | w;
arch/alpha/lib/checksum.c
114
unsigned long w = *(unsigned long *) buff;
arch/alpha/lib/checksum.c
118
result += w;
arch/alpha/lib/checksum.c
119
carry = (w > result);
arch/arc/include/asm/entry-arcv2.h
160
; - K mode: add the offset from current SP where H/w starts auto push
arch/arc/include/asm/io.h
119
__raw_readsx(16, w)
arch/arc/include/asm/io.h
145
static inline void __raw_writel(u32 w, volatile void __iomem *addr)
arch/arc/include/asm/io.h
150
: "r" (w), "m" (*(volatile u32 __force *)addr)
arch/arc/include/asm/io.h
180
__raw_writesx(16, w)
arch/arc/include/asm/io.h
76
u32 w;
arch/arc/include/asm/io.h
80
: "=r" (w)
arch/arc/include/asm/io.h
84
return w;
arch/arm/include/asm/assembler.h
473
\instr\()b\t\cond\().w \reg, [\ptr, #\off]
arch/arm/include/asm/assembler.h
475
\instr\t\cond\().w \reg, [\ptr, #\off]
arch/arm/include/asm/assembler.h
560
.macro ret.w, reg
arch/arm/include/asm/ecard.h
101
unsigned char w:2; /* Width */
arch/arm/include/asm/tls.h
14
mrc p15, 0, \tmp2, c13, c0, 2 @ get the user r/w register
arch/arm/include/asm/tls.h
16
mcr p15, 0, \tpuser, c13, c0, 2 @ set the user r/w register
arch/arm/include/asm/uaccess-asm.h
13
.inst.w 0xf3af8014
arch/arm/include/asm/unified.h
33
#define W(instr) instr.w
arch/arm/include/asm/vdso/cp15.h
19
#define __read_sysreg(r, w, c, t) ({ \
arch/arm/include/asm/vdso/cp15.h
26
#define __write_sysreg(v, r, w, c, t) asm volatile(w " " c : : "r" ((t)(v)))
arch/arm/mach-omap1/dma.c
227
u16 w;
arch/arm/mach-omap1/dma.c
236
w = dma_read(GSCR, 0);
arch/arm/mach-omap1/dma.c
237
w |= 1 << 3;
arch/arm/mach-omap1/dma.c
238
dma_write(w, GSCR, 0);
arch/arm/mach-omap1/omap-dma.c
180
u16 w;
arch/arm/mach-omap1/omap-dma.c
182
w = p->dma_read(CSDP, lch);
arch/arm/mach-omap1/omap-dma.c
183
w &= ~(0x1f << 2);
arch/arm/mach-omap1/omap-dma.c
184
w |= src_port << 2;
arch/arm/mach-omap1/omap-dma.c
185
p->dma_write(w, CSDP, lch);
arch/arm/mach-omap1/usb.c
100
w = omap_readw(ULPD_SOFT_REQ);
arch/arm/mach-omap1/usb.c
101
w &= ~SOFT_USB_CLK_REQ;
arch/arm/mach-omap1/usb.c
102
omap_writew(w, ULPD_SOFT_REQ);
arch/arm/mach-omap1/usb.c
104
w = omap_readw(ULPD_CLOCK_CTRL);
arch/arm/mach-omap1/usb.c
105
w &= ~USB_MCLK_EN;
arch/arm/mach-omap1/usb.c
106
w |= DIS_USB_PVCI_CLK;
arch/arm/mach-omap1/usb.c
107
omap_writew(w, ULPD_CLOCK_CTRL);
arch/arm/mach-omap1/usb.c
55
u16 w;
arch/arm/mach-omap1/usb.c
596
u16 w;
arch/arm/mach-omap1/usb.c
620
w = omap_readw(ULPD_APLL_CTRL);
arch/arm/mach-omap1/usb.c
621
w &= ~APLL_NDPLL_SWITCH;
arch/arm/mach-omap1/usb.c
622
omap_writew(w, ULPD_APLL_CTRL);
arch/arm/mach-omap1/usb.c
624
w = omap_readw(ULPD_DPLL_CTRL);
arch/arm/mach-omap1/usb.c
625
w |= DPLL_IOB | DPLL_PLL_ENABLE;
arch/arm/mach-omap1/usb.c
626
omap_writew(w, ULPD_DPLL_CTRL);
arch/arm/mach-omap1/usb.c
628
w = omap_readw(ULPD_SOFT_REQ);
arch/arm/mach-omap1/usb.c
629
w |= SOFT_UDC_REQ | SOFT_DPLL_REQ;
arch/arm/mach-omap1/usb.c
630
omap_writew(w, ULPD_SOFT_REQ);
arch/arm/mach-rpc/ecard.c
917
ec->cid.w = cid.r_w;
arch/arm/mach-s3c/sdhci.h
51
extern void s3c64xx_setup_sdhci0_cfg_gpio(struct platform_device *, int w);
arch/arm/mach-s3c/sdhci.h
52
extern void s3c64xx_setup_sdhci1_cfg_gpio(struct platform_device *, int w);
arch/arm/mach-s3c/sdhci.h
53
extern void s3c64xx_setup_sdhci2_cfg_gpio(struct platform_device *, int w);
arch/arm64/include/asm/assembler.h
34
wx\n .req w\n
arch/arm64/include/asm/atomic_ll_sc.h
239
#define __CMPXCHG_CASE(w, sfx, name, sz, mb, acq, rel, cl, constraint) \
arch/arm64/include/asm/atomic_ll_sc.h
258
"1: ld" #acq "xr" #sfx "\t%" #w "[oldval], %[v]\n" \
arch/arm64/include/asm/atomic_ll_sc.h
259
" eor %" #w "[tmp], %" #w "[oldval], %" #w "[old]\n" \
arch/arm64/include/asm/atomic_ll_sc.h
260
" cbnz %" #w "[tmp], 2f\n" \
arch/arm64/include/asm/atomic_ll_sc.h
261
" st" #rel "xr" #sfx "\t%w[tmp], %" #w "[new], %[v]\n" \
arch/arm64/include/asm/atomic_ll_sc.h
278
__CMPXCHG_CASE(w, b, , 8, , , , , K)
arch/arm64/include/asm/atomic_ll_sc.h
279
__CMPXCHG_CASE(w, h, , 16, , , , , K)
arch/arm64/include/asm/atomic_ll_sc.h
280
__CMPXCHG_CASE(w, , , 32, , , , , K)
arch/arm64/include/asm/atomic_ll_sc.h
282
__CMPXCHG_CASE(w, b, acq_, 8, , a, , "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
283
__CMPXCHG_CASE(w, h, acq_, 16, , a, , "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
284
__CMPXCHG_CASE(w, , acq_, 32, , a, , "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
286
__CMPXCHG_CASE(w, b, rel_, 8, , , l, "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
287
__CMPXCHG_CASE(w, h, rel_, 16, , , l, "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
288
__CMPXCHG_CASE(w, , rel_, 32, , , l, "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
290
__CMPXCHG_CASE(w, b, mb_, 8, dmb ish, , l, "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
291
__CMPXCHG_CASE(w, h, mb_, 16, dmb ish, , l, "memory", K)
arch/arm64/include/asm/atomic_ll_sc.h
292
__CMPXCHG_CASE(w, , mb_, 32, dmb ish, , l, "memory", K)
arch/arm64/include/asm/atomic_lse.h
248
#define __CMPXCHG_CASE(w, sfx, name, sz, mb, cl...) \
arch/arm64/include/asm/atomic_lse.h
256
" cas" #mb #sfx " %" #w "[old], %" #w "[new], %[v]\n" \
arch/arm64/include/asm/atomic_lse.h
265
__CMPXCHG_CASE(w, b, , 8, )
arch/arm64/include/asm/atomic_lse.h
266
__CMPXCHG_CASE(w, h, , 16, )
arch/arm64/include/asm/atomic_lse.h
267
__CMPXCHG_CASE(w, , , 32, )
arch/arm64/include/asm/atomic_lse.h
269
__CMPXCHG_CASE(w, b, acq_, 8, a, "memory")
arch/arm64/include/asm/atomic_lse.h
270
__CMPXCHG_CASE(w, h, acq_, 16, a, "memory")
arch/arm64/include/asm/atomic_lse.h
271
__CMPXCHG_CASE(w, , acq_, 32, a, "memory")
arch/arm64/include/asm/atomic_lse.h
273
__CMPXCHG_CASE(w, b, rel_, 8, l, "memory")
arch/arm64/include/asm/atomic_lse.h
274
__CMPXCHG_CASE(w, h, rel_, 16, l, "memory")
arch/arm64/include/asm/atomic_lse.h
275
__CMPXCHG_CASE(w, , rel_, 32, l, "memory")
arch/arm64/include/asm/atomic_lse.h
277
__CMPXCHG_CASE(w, b, mb_, 8, al, "memory")
arch/arm64/include/asm/atomic_lse.h
278
__CMPXCHG_CASE(w, h, mb_, 16, al, "memory")
arch/arm64/include/asm/atomic_lse.h
279
__CMPXCHG_CASE(w, , mb_, 32, al, "memory")
arch/arm64/include/asm/cmpxchg.h
21
#define __XCHG_CASE(w, sfx, name, sz, mb, nop_lse, acq, acq_lse, rel, cl) \
arch/arm64/include/asm/cmpxchg.h
213
#define __CMPWAIT_CASE(w, sfx, sz) \
arch/arm64/include/asm/cmpxchg.h
222
" ldxr" #sfx "\t%" #w "[tmp], %[v]\n" \
arch/arm64/include/asm/cmpxchg.h
223
" eor %" #w "[tmp], %" #w "[tmp], %" #w "[val]\n" \
arch/arm64/include/asm/cmpxchg.h
224
" cbnz %" #w "[tmp], 1f\n" \
arch/arm64/include/asm/cmpxchg.h
231
__CMPWAIT_CASE(w, b, 8);
arch/arm64/include/asm/cmpxchg.h
232
__CMPWAIT_CASE(w, h, 16);
arch/arm64/include/asm/cmpxchg.h
233
__CMPWAIT_CASE(w, , 32);
arch/arm64/include/asm/cmpxchg.h
30
"1: ld" #acq "xr" #sfx "\t%" #w "0, %2\n" \
arch/arm64/include/asm/cmpxchg.h
31
" st" #rel "xr" #sfx "\t%w1, %" #w "3, %2\n" \
arch/arm64/include/asm/cmpxchg.h
35
" swp" #acq_lse #rel #sfx "\t%" #w "3, %" #w "0, %2\n" \
arch/arm64/include/asm/cmpxchg.h
45
__XCHG_CASE(w, b, , 8, , , , , , )
arch/arm64/include/asm/cmpxchg.h
46
__XCHG_CASE(w, h, , 16, , , , , , )
arch/arm64/include/asm/cmpxchg.h
47
__XCHG_CASE(w, , , 32, , , , , , )
arch/arm64/include/asm/cmpxchg.h
49
__XCHG_CASE(w, b, acq_, 8, , , a, a, , "memory")
arch/arm64/include/asm/cmpxchg.h
50
__XCHG_CASE(w, h, acq_, 16, , , a, a, , "memory")
arch/arm64/include/asm/cmpxchg.h
51
__XCHG_CASE(w, , acq_, 32, , , a, a, , "memory")
arch/arm64/include/asm/cmpxchg.h
53
__XCHG_CASE(w, b, rel_, 8, , , , , l, "memory")
arch/arm64/include/asm/cmpxchg.h
54
__XCHG_CASE(w, h, rel_, 16, , , , , l, "memory")
arch/arm64/include/asm/cmpxchg.h
55
__XCHG_CASE(w, , rel_, 32, , , , , l, "memory")
arch/arm64/include/asm/cmpxchg.h
57
__XCHG_CASE(w, b, mb_, 8, dmb ish, nop, , a, l, "memory")
arch/arm64/include/asm/cmpxchg.h
58
__XCHG_CASE(w, h, mb_, 16, dmb ish, nop, , a, l, "memory")
arch/arm64/include/asm/cmpxchg.h
59
__XCHG_CASE(w, , mb_, 32, dmb ish, nop, , a, l, "memory")
arch/arm64/include/asm/fpsimdmacros.h
200
_sme_check_wv \nw
arch/arm64/include/asm/fpsimdmacros.h
204
| (((\nw) & 3) << 13) \
arch/arm64/include/asm/fpsimdmacros.h
214
_sme_check_wv \nw
arch/arm64/include/asm/fpsimdmacros.h
218
| (((\nw) & 3) << 13) \
arch/arm64/include/asm/fpsimdmacros.h
29
str w\tmpnr, [\state, #16 * 2]
arch/arm64/include/asm/fpsimdmacros.h
31
str w\tmpnr, [\state, #16 * 2 + 4]
arch/arm64/include/asm/fpsimdmacros.h
318
str w\nxtmp, [\xpfpsr]
arch/arm64/include/asm/fpsimdmacros.h
320
str w\nxtmp, [\xpfpsr, #4]
arch/arm64/include/asm/fpsimdmacros.h
331
ldr w\nxtmp, [\xpfpsr]
arch/arm64/include/asm/fpsimdmacros.h
333
ldr w\nxtmp, [\xpfpsr, #4]
arch/arm64/include/asm/fpsimdmacros.h
338
mov w\nw, #0
arch/arm64/include/asm/fpsimdmacros.h
341
_sme_str_zav \nw, \nxbase
arch/arm64/include/asm/fpsimdmacros.h
343
add x\nw, x\nw, #1
arch/arm64/include/asm/fpsimdmacros.h
344
cmp \xvl, x\nw
arch/arm64/include/asm/fpsimdmacros.h
349
mov w\nw, #0
arch/arm64/include/asm/fpsimdmacros.h
352
_sme_ldr_zav \nw, \nxbase
arch/arm64/include/asm/fpsimdmacros.h
354
add x\nw, x\nw, #1
arch/arm64/include/asm/fpsimdmacros.h
355
cmp \xvl, x\nw
arch/arm64/include/asm/fpsimdmacros.h
64
ldr w\tmpnr, [\state, #16 * 2]
arch/arm64/include/asm/fpsimdmacros.h
66
ldr w\tmpnr, [\state, #16 * 2 + 4]
arch/arm64/include/asm/kvm_host.h
1676
p = &(vcpu)->arch.fgt[id].w; \
arch/arm64/include/asm/kvm_host.h
851
u64 w;
arch/arm64/include/asm/percpu.h
101
#op_lse "\t%" #w "[val], %" #w "[ret], %[ptr]\n" \
arch/arm64/include/asm/percpu.h
102
#op_llsc "\t%" #w "[ret], %" #w "[ret], %" #w "[val]\n" \
arch/arm64/include/asm/percpu.h
112
__PERCPU_OP_CASE(w, b, name, 8, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
113
__PERCPU_OP_CASE(w, h, name, 16, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
114
__PERCPU_OP_CASE(w, , name, 32, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
118
__PERCPU_RET_OP_CASE(w, b, name, 8, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
119
__PERCPU_RET_OP_CASE(w, h, name, 16, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
120
__PERCPU_RET_OP_CASE(w, , name, 32, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
66
#define __PERCPU_OP_CASE(w, sfx, name, sz, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
75
"1: ldxr" #sfx "\t%" #w "[tmp], %[ptr]\n" \
arch/arm64/include/asm/percpu.h
76
#op_llsc "\t%" #w "[tmp], %" #w "[tmp], %" #w "[val]\n" \
arch/arm64/include/asm/percpu.h
77
" stxr" #sfx "\t%w[loop], %" #w "[tmp], %[ptr]\n" \
arch/arm64/include/asm/percpu.h
80
#op_lse "\t%" #w "[val], %" #w "[tmp], %[ptr]\n" \
arch/arm64/include/asm/percpu.h
87
#define __PERCPU_RET_OP_CASE(w, sfx, name, sz, op_llsc, op_lse) \
arch/arm64/include/asm/percpu.h
96
"1: ldxr" #sfx "\t%" #w "[ret], %[ptr]\n" \
arch/arm64/include/asm/percpu.h
97
#op_llsc "\t%" #w "[ret], %" #w "[ret], %" #w "[val]\n" \
arch/arm64/include/asm/percpu.h
98
" stxr" #sfx "\t%w[loop], %" #w "[ret], %[ptr]\n" \
arch/arm64/kvm/at.c
1037
#define set_priv_perms(wr, r, w, x) \
arch/arm64/kvm/at.c
1040
(wr)->pw = (w); \
arch/arm64/kvm/at.c
1044
#define set_unpriv_perms(wr, r, w, x) \
arch/arm64/kvm/at.c
1047
(wr)->uw = (w); \
arch/arm64/kvm/at.c
1062
#define set_perms(w, wr, ip) \
arch/arm64/kvm/at.c
1067
set_ ## w ## _perms((wr), false, false, false); \
arch/arm64/kvm/at.c
1070
set_ ## w ## _perms((wr), true , false, false); \
arch/arm64/kvm/at.c
1073
set_ ## w ## _perms((wr), false, false, true ); \
arch/arm64/kvm/at.c
1076
set_ ## w ## _perms((wr), true , false, true ); \
arch/arm64/kvm/at.c
1079
set_ ## w ## _perms((wr), false, false, false); \
arch/arm64/kvm/at.c
1082
set_ ## w ## _perms((wr), true , true , false); \
arch/arm64/kvm/at.c
1085
set_ ## w ## _perms((wr), true , true , true ); \
arch/arm64/kvm/at.c
1088
set_ ## w ## _perms((wr), true , true , true ); \
arch/arm64/kvm/at.c
1091
set_ ## w ## _perms((wr), true , false, false); \
arch/arm64/kvm/at.c
1094
set_ ## w ## _perms((wr), true , false, false); \
arch/arm64/kvm/at.c
1097
set_ ## w ## _perms((wr), true , false, true ); \
arch/arm64/kvm/at.c
1100
set_ ## w ## _perms((wr), false, false, false); \
arch/arm64/kvm/at.c
1103
set_ ## w ## _perms((wr), true , true , false); \
arch/arm64/kvm/at.c
1106
set_ ## w ## _perms((wr), false, false, false); \
arch/arm64/kvm/at.c
1109
set_ ## w ## _perms((wr), true , true , true ); \
arch/arm64/kvm/at.c
1112
set_ ## w ## _perms((wr), false, false, false); \
arch/arm64/kvm/at.c
1117
set_ ## w ## _wxn((wr), ((ip) == 0b0110)); \
arch/arm64/kvm/at.c
1692
_ASM_EXTABLE_UACCESS_ERR(1b, 2b, %w[ret])
arch/arm64/kvm/at.c
1720
_ASM_EXTABLE_UACCESS_ERR(1b, 3b, %w[ret])
arch/arm64/kvm/at.c
1721
_ASM_EXTABLE_UACCESS_ERR(2b, 3b, %w[ret])
arch/arm64/kvm/config.c
64
#define __NEEDS_FEAT_3(m, f, w, id, fld, lim) \
arch/arm64/kvm/config.c
66
.w = (m), \
arch/arm64/kvm/config.c
75
#define __NEEDS_FEAT_1(m, f, w, fun) \
arch/arm64/kvm/config.c
77
.w = (m), \
arch/arm64/kvm/config.c
82
#define __NEEDS_FEAT_0(m, f, w, ...) \
arch/arm64/kvm/config.c
84
.w = (m), \
arch/arm64/kvm/config.c
88
#define __NEEDS_FEAT_FLAG(m, f, w, ...) \
arch/arm64/kvm/config.c
89
CONCATENATE(__NEEDS_FEAT_, COUNT_ARGS(__VA_ARGS__))(m, f, w, __VA_ARGS__)
arch/loongarch/include/asm/asm.h
101
#define LONG_ADD add.w
arch/loongarch/include/asm/asm.h
102
#define LONG_ADDI addi.w
arch/loongarch/include/asm/asm.h
103
#define LONG_ALSL alsl.w
arch/loongarch/include/asm/asm.h
104
#define LONG_BSTRINS bstrins.w
arch/loongarch/include/asm/asm.h
105
#define LONG_BSTRPICK bstrpick.w
arch/loongarch/include/asm/asm.h
106
#define LONG_SUB sub.w
arch/loongarch/include/asm/asm.h
107
#define LONG_L ld.w
arch/loongarch/include/asm/asm.h
108
#define LONG_LI li.w
arch/loongarch/include/asm/asm.h
109
#define LONG_LPTR ld.w
arch/loongarch/include/asm/asm.h
110
#define LONG_S st.w
arch/loongarch/include/asm/asm.h
111
#define LONG_SPTR st.w
arch/loongarch/include/asm/asm.h
112
#define LONG_SLLI slli.w
arch/loongarch/include/asm/asm.h
113
#define LONG_SLLV sll.w
arch/loongarch/include/asm/asm.h
114
#define LONG_SRLI srli.w
arch/loongarch/include/asm/asm.h
115
#define LONG_SRLV srl.w
arch/loongarch/include/asm/asm.h
116
#define LONG_SRAI srai.w
arch/loongarch/include/asm/asm.h
117
#define LONG_SRAV sra.w
arch/loongarch/include/asm/asm.h
118
#define LONG_ROTR rotr.w
arch/loongarch/include/asm/asm.h
119
#define LONG_ROTRI rotri.w
arch/loongarch/include/asm/asm.h
162
#define PTR_ADD add.w
arch/loongarch/include/asm/asm.h
163
#define PTR_ADDI addi.w
arch/loongarch/include/asm/asm.h
164
#define PTR_ALSL alsl.w
arch/loongarch/include/asm/asm.h
165
#define PTR_BSTRINS bstrins.w
arch/loongarch/include/asm/asm.h
166
#define PTR_BSTRPICK bstrpick.w
arch/loongarch/include/asm/asm.h
167
#define PTR_SUB sub.w
arch/loongarch/include/asm/asm.h
168
#define PTR_L ld.w
arch/loongarch/include/asm/asm.h
169
#define PTR_LI li.w
arch/loongarch/include/asm/asm.h
170
#define PTR_LPTR ld.w
arch/loongarch/include/asm/asm.h
171
#define PTR_S st.w
arch/loongarch/include/asm/asm.h
172
#define PTR_SPTR st.w
arch/loongarch/include/asm/asm.h
173
#define PTR_SLLI slli.w
arch/loongarch/include/asm/asm.h
174
#define PTR_SLLV sll.w
arch/loongarch/include/asm/asm.h
175
#define PTR_SRLI srli.w
arch/loongarch/include/asm/asm.h
176
#define PTR_SRLV srl.w
arch/loongarch/include/asm/asm.h
177
#define PTR_SRAI srai.w
arch/loongarch/include/asm/asm.h
178
#define PTR_SRAV sra.w
arch/loongarch/include/asm/asm.h
179
#define PTR_ROTR rotr.w
arch/loongarch/include/asm/asm.h
180
#define PTR_ROTRI rotri.w
arch/loongarch/include/asm/asm.h
55
#define REG_L ld.w
arch/loongarch/include/asm/asm.h
56
#define REG_S st.w
arch/loongarch/include/asm/asm.h
57
#define REG_ADD add.w
arch/loongarch/include/asm/asm.h
58
#define REG_SUB sub.w
arch/loongarch/include/asm/asm.h
70
#define INT_ADD add.w
arch/loongarch/include/asm/asm.h
71
#define INT_ADDI addi.w
arch/loongarch/include/asm/asm.h
72
#define INT_SUB sub.w
arch/loongarch/include/asm/asm.h
73
#define INT_L ld.w
arch/loongarch/include/asm/asm.h
74
#define INT_S st.w
arch/loongarch/include/asm/asm.h
75
#define INT_SLLI slli.w
arch/loongarch/include/asm/asm.h
76
#define INT_SLLV sll.w
arch/loongarch/include/asm/asm.h
77
#define INT_SRLI srli.w
arch/loongarch/include/asm/asm.h
78
#define INT_SRLV srl.w
arch/loongarch/include/asm/asm.h
79
#define INT_SRAI srai.w
arch/loongarch/include/asm/asm.h
80
#define INT_SRAV sra.w
arch/loongarch/include/asm/asmmacro.h
112
bstrins.w \tmp1, \tmp0, 15, 8
arch/loongarch/include/asm/asmmacro.h
114
bstrins.w \tmp1, \tmp0, 23, 16
arch/loongarch/include/asm/asmmacro.h
116
bstrins.w \tmp1, \tmp0, 31, 24
arch/loongarch/include/asm/asmmacro.h
117
st.w \tmp1, \thread, THREAD_FCC
arch/loongarch/include/asm/asmmacro.h
121
bstrins.w \tmp1, \tmp0, 15, 8
arch/loongarch/include/asm/asmmacro.h
123
bstrins.w \tmp1, \tmp0, 23, 16
arch/loongarch/include/asm/asmmacro.h
125
bstrins.w \tmp1, \tmp0, 31, 24
arch/loongarch/include/asm/asmmacro.h
126
st.w \tmp1, \thread, (THREAD_FCC + 4)
arch/loongarch/include/asm/asmmacro.h
130
ld.w \tmp0, \thread, THREAD_FCC
arch/loongarch/include/asm/asmmacro.h
131
bstrpick.w \tmp1, \tmp0, 7, 0
arch/loongarch/include/asm/asmmacro.h
133
bstrpick.w \tmp1, \tmp0, 15, 8
arch/loongarch/include/asm/asmmacro.h
135
bstrpick.w \tmp1, \tmp0, 23, 16
arch/loongarch/include/asm/asmmacro.h
137
bstrpick.w \tmp1, \tmp0, 31, 24
arch/loongarch/include/asm/asmmacro.h
139
ld.w \tmp0, \thread, (THREAD_FCC + 4)
arch/loongarch/include/asm/asmmacro.h
140
bstrpick.w \tmp1, \tmp0, 7, 0
arch/loongarch/include/asm/asmmacro.h
142
bstrpick.w \tmp1, \tmp0, 15, 8
arch/loongarch/include/asm/asmmacro.h
144
bstrpick.w \tmp1, \tmp0, 23, 16
arch/loongarch/include/asm/asmmacro.h
146
bstrpick.w \tmp1, \tmp0, 31, 24
arch/loongarch/include/asm/asmmacro.h
192
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
229
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
266
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
303
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
357
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
399
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
476
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
513
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
53
st.w \tmp, \thread, THREAD_FCSR
arch/loongarch/include/asm/asmmacro.h
55
stptr.w \tmp, \thread, THREAD_FCSR
arch/loongarch/include/asm/asmmacro.h
575
li.w \tmp, THREAD_FPR0
arch/loongarch/include/asm/asmmacro.h
63
stptr.w \tmp, \thread, THREAD_FTOP
arch/loongarch/include/asm/asmmacro.h
667
lu12i.w \reg, 0
arch/loongarch/include/asm/asmmacro.h
72
ld.w \tmp0, \thread, THREAD_FCSR
arch/loongarch/include/asm/asmmacro.h
74
ldptr.w \tmp0, \thread, THREAD_FCSR
arch/loongarch/include/asm/asmmacro.h
82
ldptr.w \tmp0, \thread, THREAD_FTOP
arch/loongarch/include/asm/atomic-llsc.h
69
ATOMIC_OPS(add, i , add.w ,+=)
arch/loongarch/include/asm/atomic-llsc.h
70
ATOMIC_OPS(sub, -i , add.w ,+=)
arch/loongarch/include/asm/stackframe.h
200
li.w t0, CSR_CRMD_WE
arch/loongarch/include/asm/stackframe.h
53
li.w \temp, 0xb0 # PLV=0, IE=0, PG=1
arch/loongarch/include/asm/stackframe.h
55
li.w \temp, 0x04 # PLV=0, PIE=1, PWE=0
arch/loongarch/include/asm/stackframe.h
57
li.w \temp, 0x00 # FPE=0, SXE=0, ASXE=0, BTE=0
arch/m68k/ifpsp060/src/fpsp.S
3857
# if the F-Line instruction is an "fmovecr" w/ a non-zero <ea>. if
arch/m68k/include/asm/MC68328.h
981
volatile unsigned short int w;
arch/m68k/include/asm/MC68328.h
988
volatile unsigned short int w;
arch/m68k/include/asm/MC68EZ328.h
803
volatile unsigned short int w;
arch/m68k/include/asm/MC68EZ328.h
810
volatile unsigned short int w;
arch/m68k/include/asm/MC68VZ328.h
896
volatile unsigned short int w;
arch/m68k/include/asm/MC68VZ328.h
903
volatile unsigned short int w;
arch/m68k/include/asm/atarihw.h
507
u_short w[2];
arch/m68k/include/asm/entry.h
138
pea -1:w /* orig d0 */
arch/m68k/include/asm/entry.h
188
pea -1:w /* orig d0 */
arch/m68k/include/asm/math-emu.h
161
lea (FPD_FPREG,FPDATA,%d0.w*4),%a0
arch/m68k/include/asm/math-emu.h
162
lea (%a0,%d0.w*8),%a0
arch/m68k/include/asm/math-emu.h
184
fp_get_instr_data w,2,\dest,\label,\addr
arch/m68k/include/asm/math-emu.h
236
.irp m b,w,l
arch/m68k/include/asm/math-emu.h
286
tst.w (%a0)
arch/m68k/include/asm/math-emu.h
297
move.w (2,%a0),%d0
arch/m68k/include/asm/mcf8390.h
107
#define BSWAP(w) (w)
arch/m68k/include/asm/mcf8390.h
110
#define RSWAP(w) (((w) << 8) | ((w) >> 8))
arch/m68k/include/asm/mcf8390.h
30
#define BSWAP(w) (((w) << 8) | ((w) >> 8))
arch/m68k/include/asm/mcf8390.h
31
#define RSWAP(w) (w)
arch/m68k/include/asm/mcf8390.h
81
#define BSWAP(w) (w)
arch/m68k/include/asm/mcf8390.h
84
#define RSWAP(w) (((w) << 8) | ((w) >> 8))
arch/m68k/include/asm/mcf8390.h
95
#define BSWAP(w) (w)
arch/m68k/include/asm/mcf8390.h
98
#define RSWAP(w) (((w) << 8) | ((w) >> 8))
arch/m68k/include/asm/raw_io.h
31
#define out_be16(addr,w) (void)((*(__force volatile u16 *) (unsigned long)(addr)) = (w))
arch/m68k/include/asm/raw_io.h
33
#define out_le16(addr,w) (void)((*(__force volatile __le16 *) (unsigned long)(addr)) = cpu_to_le16(w))
arch/m68k/include/asm/raw_io.h
85
#define rom_out_be16(addr, w) \
arch/m68k/include/asm/raw_io.h
86
(void)({u16 __maybe_unused __w, __v = (w); u32 _addr = ((u32) (addr)); \
arch/m68k/include/asm/raw_io.h
89
#define rom_out_le16(addr, w) \
arch/m68k/include/asm/raw_io.h
90
(void)({u16 __maybe_unused __w, __v = (w); u32 _addr = ((u32) (addr)); \
arch/m68k/include/asm/uaccess.h
167
__get_user_asm(MOVES, __gu_err, x, ptr, u16, w, r, -EFAULT); \
arch/m68k/include/asm/uaccess.h
187
#define __suffix2 w
arch/m68k/include/asm/uaccess.h
327
w, r, 2);
arch/m68k/include/asm/uaccess.h
330
__constant_copy_to_user_asm(res, to, from, tmp, 3, w, b,);
arch/m68k/include/asm/uaccess.h
340
__constant_copy_to_user_asm(res, to, from, tmp, 6, l, w,);
arch/m68k/include/asm/uaccess.h
343
__constant_copy_to_user_asm(res, to, from, tmp, 7, l, w, b);
arch/m68k/include/asm/uaccess.h
352
__constant_copy_to_user_asm(res, to, from, tmp, 10, l, l, w);
arch/m68k/include/asm/uaccess.h
396
u16, w, r, -EFAULT); \
arch/m68k/include/asm/uaccess.h
425
w, r, -EFAULT); \
arch/m68k/include/asm/uaccess.h
89
__put_user_asm(MOVES, __pu_err, __pu_val, ptr, w, r, -EFAULT); \
arch/m68k/math-emu/fp_decode.h
116
jmp ([0f:w,%pc,%d0*4])
arch/m68k/math-emu/fp_decode.h
136
ext.w %d0
arch/m68k/math-emu/fp_decode.h
157
move.w %d2,%d1 | scale factor
arch/m68k/math-emu/fp_decode.h
158
rol.w #7,%d1
arch/m68k/math-emu/fp_decode.h
159
and.w #3,%d1
arch/m68k/math-emu/fp_decode.h
170
jmp ([0f:w,%pc,%d0*4])
arch/m68k/math-emu/fp_decode.h
180
jmp ([0f:w,%pc,%d0*4])
arch/m68k/math-emu/fp_decode.h
231
move.w #6,%d1
arch/m68k/math-emu/fp_decode.h
233
cmp.w #7,%d0
arch/m68k/math-emu/fp_decode.h
236
cmp.w #6,%d1
arch/m68k/math-emu/fp_decode.h
239
move.w #4,%d1
arch/m68k/math-emu/fp_decode.h
252
lea (%a0,%d1.w*4),%a0
arch/m68k/math-emu/fp_decode.h
254
lea (%a0,%d1.w*8),%a0
arch/m68k/math-emu/fp_decode.h
257
add.w (fp_datasize,%d1.w*2),%a0
arch/m68k/math-emu/fp_decode.h
272
neg.w %d1
arch/m68k/math-emu/fp_decode.h
273
lea (%a0,%d1.w*4),%a0
arch/m68k/math-emu/fp_decode.h
274
add.w %d1,%d1
arch/m68k/math-emu/fp_decode.h
275
lea (%a0,%d1.w*4),%a0
arch/m68k/math-emu/fp_decode.h
279
neg.w %d1
arch/m68k/math-emu/fp_decode.h
280
lea (%a0,%d1.w*4),%a0
arch/m68k/math-emu/fp_decode.h
284
sub.w (fp_datasize,%d1.w*2),%a0
arch/m68k/math-emu/fp_decode.h
309
and.w %d2,%d0
arch/m68k/math-emu/fp_decode.h
350
add.w %d0,%a1
arch/m68k/math-emu/fp_decode.h
74
jmp ([0f:w,%pc,%d0*4])
arch/m68k/math-emu/fp_decode.h
86
jmp ([0f:w,%pc,%d0*4])
arch/microblaze/include/asm/mmu.h
27
unsigned long w:1; /* Write-thru cache mode */
arch/microblaze/lib/ashldi3.c
18
w.s.low = 0;
arch/microblaze/lib/ashldi3.c
19
w.s.high = (unsigned int) uu.s.low << -bm;
arch/microblaze/lib/ashldi3.c
23
w.s.low = (unsigned int) uu.s.low << b;
arch/microblaze/lib/ashldi3.c
24
w.s.high = ((unsigned int) uu.s.high << b) | carries;
arch/microblaze/lib/ashldi3.c
27
return w.ll;
arch/microblaze/lib/ashldi3.c
8
DWunion uu, w;
arch/microblaze/lib/ashrdi3.c
19
w.s.high =
arch/microblaze/lib/ashrdi3.c
21
w.s.low = uu.s.high >> -bm;
arch/microblaze/lib/ashrdi3.c
25
w.s.high = uu.s.high >> b;
arch/microblaze/lib/ashrdi3.c
26
w.s.low = ((unsigned int) uu.s.low >> b) | carries;
arch/microblaze/lib/ashrdi3.c
29
return w.ll;
arch/microblaze/lib/ashrdi3.c
8
DWunion uu, w;
arch/microblaze/lib/lshrdi3.c
18
w.s.high = 0;
arch/microblaze/lib/lshrdi3.c
19
w.s.low = (unsigned int) uu.s.high >> -bm;
arch/microblaze/lib/lshrdi3.c
23
w.s.high = (unsigned int) uu.s.high >> b;
arch/microblaze/lib/lshrdi3.c
24
w.s.low = ((unsigned int) uu.s.low >> b) | carries;
arch/microblaze/lib/lshrdi3.c
27
return w.ll;
arch/microblaze/lib/lshrdi3.c
8
DWunion uu, w;
arch/microblaze/lib/muldi3.c
51
DWunion w = {.ll = __umulsidi3(uu.s.low, vv.s.low)};
arch/microblaze/lib/muldi3.c
53
w.s.high += ((unsigned long) uu.s.low * (unsigned long) vv.s.high
arch/microblaze/lib/muldi3.c
56
return w.ll;
arch/mips/include/asm/arch_hweight.h
14
static inline unsigned int __arch_hweight32(unsigned int w)
arch/mips/include/asm/arch_hweight.h
16
return __builtin_popcount(w);
arch/mips/include/asm/arch_hweight.h
19
static inline unsigned int __arch_hweight16(unsigned int w)
arch/mips/include/asm/arch_hweight.h
21
return __builtin_popcount(w & 0xffff);
arch/mips/include/asm/arch_hweight.h
24
static inline unsigned int __arch_hweight8(unsigned int w)
arch/mips/include/asm/arch_hweight.h
26
return __builtin_popcount(w & 0xff);
arch/mips/include/asm/arch_hweight.h
29
static inline unsigned long __arch_hweight64(__u64 w)
arch/mips/include/asm/arch_hweight.h
31
return __builtin_popcountll(w);
arch/mips/include/asm/asmmacro.h
272
ld.b $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
281
ld.h $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
290
ld.w $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
299
ld.d $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
308
st.b $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
317
st.h $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
326
st.w $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
335
st.d $w\wd, \off(\base)
arch/mips/include/asm/asmmacro.h
344
copy_s.w $1, $w\ws[\n]
arch/mips/include/asm/asmmacro.h
353
copy_s.d $1, $w\ws[\n]
arch/mips/include/asm/asmmacro.h
362
insert.w $w\wd[\n], $1
arch/mips/include/asm/asmmacro.h
371
insert.d $w\wd[\n], $1
arch/mips/include/asm/io.h
315
BUILDIO_MEM(w, u16)
arch/mips/include/asm/io.h
332
BUILDIO_IOPORT(w, u16)
arch/mips/include/asm/io.h
430
BUILDSTRING(w, u16)
arch/mips/include/asm/ip32/mace.h
75
volatile unsigned short w[2];
arch/mips/include/asm/mach-loongson2ef/loongson.h
312
#define LOONGSON_ADDRWIN_CFG(s, d, w, src, dst, size) do {\
arch/mips/include/asm/mach-loongson2ef/loongson.h
313
s##_WIN##w##_BASE = (src); \
arch/mips/include/asm/mach-loongson2ef/loongson.h
314
s##_WIN##w##_MMAP = (dst) | ADDRWIN_MAP_DST_##d; \
arch/mips/include/asm/mach-loongson2ef/loongson.h
315
s##_WIN##w##_MASK = ~(size-1); \
arch/mips/include/asm/sibyte/bcm1480_int.h
147
#define _BCM1480_INT_MASK(w, n) _SB_MAKEMASK(w, ((n) & 0x3F))
arch/mips/include/asm/sibyte/bcm1480_regs.h
316
#define A_BCM1480_SCD_WDOG_BASE(w) (A_BCM1480_SCD_WDOG_0+((w)&2)*0x1000 + ((w)&1)*0x100)
arch/mips/include/asm/sibyte/bcm1480_regs.h
317
#define A_BCM1480_SCD_WDOG_REGISTER(w, r) (A_BCM1480_SCD_WDOG_BASE(w) + (r))
arch/mips/include/asm/sibyte/sb1250_regs.h
600
#define A_SCD_WDOG_BASE(w) (A_SCD_WDOG_0+SCD_WDOG_SPACING*(w))
arch/mips/include/asm/sibyte/sb1250_regs.h
601
#define A_SCD_WDOG_REGISTER(w, r) (A_SCD_WDOG_BASE(w) + (r))
arch/mips/include/asm/sibyte/sb1250_regs.h
624
#define A_SCD_TIMER_BASE(w) (A_SCD_TIMER_0+0x08*((w)&1)+0x100*(((w)&2)>>1))
arch/mips/include/asm/sibyte/sb1250_regs.h
625
#define A_SCD_TIMER_REGISTER(w, r) (A_SCD_TIMER_BASE(w) + (r))
arch/mips/include/asm/sn/sn0/hubio.h
90
#define IIO_WSTAT_TXRETRY_CNT(w) (((w) >> IIO_WSTAT_TXRETRY_SHFT) & \
arch/mips/kernel/r4k-bugs64.c
116
*w = lw;
arch/mips/kernel/r4k-bugs64.c
121
long v1[8], v2[8], w[8];
arch/mips/kernel/r4k-bugs64.c
135
mult_sh_align_mod(&v1[0], &v2[0], &w[0], 32, 0);
arch/mips/kernel/r4k-bugs64.c
136
mult_sh_align_mod(&v1[1], &v2[1], &w[1], 32, 1);
arch/mips/kernel/r4k-bugs64.c
137
mult_sh_align_mod(&v1[2], &v2[2], &w[2], 32, 2);
arch/mips/kernel/r4k-bugs64.c
138
mult_sh_align_mod(&v1[3], &v2[3], &w[3], 32, 3);
arch/mips/kernel/r4k-bugs64.c
139
mult_sh_align_mod(&v1[4], &v2[4], &w[4], 32, 4);
arch/mips/kernel/r4k-bugs64.c
140
mult_sh_align_mod(&v1[5], &v2[5], &w[5], 32, 5);
arch/mips/kernel/r4k-bugs64.c
141
mult_sh_align_mod(&v1[6], &v2[6], &w[6], 32, 6);
arch/mips/kernel/r4k-bugs64.c
142
mult_sh_align_mod(&v1[7], &v2[7], &w[7], 32, 7);
arch/mips/kernel/r4k-bugs64.c
146
if (v1[i] != w[i])
arch/mips/kernel/r4k-bugs64.c
158
if (v2[i] != w[i])
arch/mips/kernel/r4k-bugs64.c
252
long v, w, tmp;
arch/mips/kernel/r4k-bugs64.c
286
: "=&r" (v), "=&r" (w), "=&r" (tmp)
arch/mips/kernel/r4k-bugs64.c
289
daddiu_bug = v != w;
arch/mips/kernel/r4k-bugs64.c
304
: "=&r" (v), "=&r" (w), "=&r" (tmp)
arch/mips/kernel/r4k-bugs64.c
307
if (v == w) {
arch/mips/kernel/r4k-bugs64.c
44
void mult_sh_align_mod(long *v1, long *v2, long *w,
arch/mips/math-emu/cp1emu.c
1693
int w;
arch/mips/math-emu/cp1emu.c
1791
if (rv.w & 0x1)
arch/mips/math-emu/cp1emu.c
1792
rv.w = 0;
arch/mips/math-emu/cp1emu.c
1803
if (rv.w & 0x1)
arch/mips/math-emu/cp1emu.c
1806
rv.w = 0;
arch/mips/math-emu/cp1emu.c
1857
rv.w = ieee754sp_2008class(fs);
arch/mips/math-emu/cp1emu.c
1978
rv.w = ieee754sp_tint(fs);
arch/mips/math-emu/cp1emu.c
2001
rv.w = ieee754sp_tint(fs);
arch/mips/math-emu/cp1emu.c
2060
rv.w = ieee754sp_cmp(fs, ft,
arch/mips/math-emu/cp1emu.c
2329
rv.w = ieee754dp_tint(fs); /* wrong */
arch/mips/math-emu/cp1emu.c
2352
rv.w = ieee754dp_tint(fs);
arch/mips/math-emu/cp1emu.c
2411
rv.w = ieee754dp_cmp(fs, ft,
arch/mips/math-emu/cp1emu.c
2551
rv.w = 0;
arch/mips/math-emu/cp1emu.c
2561
rv.w = -1; /* true, all 1s */
arch/mips/math-emu/cp1emu.c
2576
rv.w = -1; /* true, all 1s */
arch/mips/math-emu/cp1emu.c
2780
if (rv.w)
arch/mips/math-emu/cp1emu.c
2793
SITOREG(rv.w, MIPSInst_FD(ir));
arch/mips/mm/cerr-sb1.c
426
uint32_t w;
arch/mips/mm/cerr-sb1.c
435
w = (uint32_t)(t >> 32);
arch/mips/mm/cerr-sb1.c
436
p ^= (parity[w>>24] ^ parity[(w>>16) & 0xFF]
arch/mips/mm/cerr-sb1.c
437
^ parity[(w>>8) & 0xFF] ^ parity[w & 0xFF]);
arch/mips/mm/cerr-sb1.c
438
w = (uint32_t)(t & 0xFFFFFFFF);
arch/mips/mm/cerr-sb1.c
439
p ^= (parity[w>>24] ^ parity[(w>>16) & 0xFF]
arch/mips/mm/cerr-sb1.c
440
^ parity[(w>>8) & 0xFF] ^ parity[w & 0xFF]);
arch/mips/pci/ops-mace.c
53
*val = mace->pci.config_data.w[((reg >> 1) & 1) ^ 1];
arch/mips/pci/ops-mace.c
85
mace->pci.config_data.w[((reg >> 1) & 1) ^ 1] = val;
arch/nios2/include/asm/pgtable.h
36
#define MKP(x, w, r) __pgprot(_PAGE_PRESENT | _PAGE_CACHED | \
arch/nios2/include/asm/pgtable.h
39
((w) ? _PAGE_WRITE : 0))
arch/parisc/include/asm/assembly.h
485
mfctl,w %cr11, %r1
arch/parisc/include/asm/psw.h
70
unsigned int w:1;
arch/parisc/kernel/pci.c
79
PCI_PORT_IN(w, 16)
arch/parisc/kernel/pci.c
94
PCI_PORT_OUT(w, 16)
arch/parisc/lib/checksum.c
65
unsigned int w = *(unsigned int *) buff;
arch/parisc/lib/checksum.c
68
addc(result, w);
arch/parisc/lib/io.c
34
unsigned int w;
arch/parisc/lib/io.c
36
w = inb(port) << 24;
arch/parisc/lib/io.c
37
w |= inb(port) << 16;
arch/parisc/lib/io.c
38
w |= inb(port) << 8;
arch/parisc/lib/io.c
39
w |= inb(port);
arch/parisc/lib/io.c
40
*(unsigned int *) p = w;
arch/parisc/math-emu/driver.c
51
#define FPSW_FLAGS(w) ((w) >> 27)
arch/parisc/math-emu/driver.c
52
#define FPSW_ENABLE(w) ((w) & 0x1f)
arch/parisc/net/bpf_jit.h
442
static inline u32 hppa_t11_insn(u8 opcode, u8 r2, u8 r1, u8 c, u32 w, u8 nop)
arch/parisc/net/bpf_jit.h
444
u32 ra = re_assemble_12(w);
arch/parisc/net/bpf_jit.h
450
static inline u32 hppa_t12_insn(u8 opcode, u8 rp, u32 w, u8 ext3, u8 nop)
arch/parisc/net/bpf_jit.h
452
return ((opcode << 26) | (rp << 21) | (ext3 << 13) | (nop << 1) | re_assemble_17(w));
arch/parisc/net/bpf_jit.h
455
static inline u32 hppa_t12_L_insn(u8 opcode, u32 w, u8 nop)
arch/parisc/net/bpf_jit.h
457
return ((opcode << 26) | (0x05 << 13) | (nop << 1) | re_assemble_22(w));
arch/powerpc/include/asm/bitops.h
311
unsigned int __arch_hweight8(unsigned int w);
arch/powerpc/include/asm/bitops.h
312
unsigned int __arch_hweight16(unsigned int w);
arch/powerpc/include/asm/bitops.h
313
unsigned int __arch_hweight32(unsigned int w);
arch/powerpc/include/asm/bitops.h
314
unsigned long __arch_hweight64(__u64 w);
arch/powerpc/include/asm/book3s/32/mmu-hash.h
168
unsigned long w:1; /* Write-thru cache mode */
arch/powerpc/include/asm/ppc-opcode.h
343
#define __PPC_WC(w) (((w) & 0x3) << 21)
arch/powerpc/include/asm/ppc-opcode.h
344
#define __PPC_WS(w) (((w) & 0x1f) << 11)
arch/powerpc/include/asm/ppc-opcode.h
403
#define PPC_RAW_WAIT(w, p) (0x7c00003c | __PPC_WC(w) | __PPC_PL(p))
arch/powerpc/include/asm/ppc-opcode.h
412
#define PPC_RAW_ERATWE(s, a, w) (0x7c0001a6 | __PPC_RS(s) | __PPC_RA(a) | __PPC_WS(w))
arch/powerpc/include/asm/ppc-opcode.h
413
#define PPC_RAW_ERATRE(s, a, w) (0x7c000166 | __PPC_RS(s) | __PPC_RA(a) | __PPC_WS(w))
arch/powerpc/include/asm/ppc-opcode.h
416
#define PPC_RAW_ERATSX(t, a, w) (0x7c000126 | __PPC_RS(t) | __PPC_RA0(a) | __PPC_RB(b))
arch/powerpc/include/asm/ppc-opcode.h
417
#define PPC_RAW_ERATSX_DOT(t, a, w) (0x7c000127 | __PPC_RS(t) | __PPC_RA0(a) | __PPC_RB(b))
arch/powerpc/include/asm/ppc-opcode.h
645
#define PPC_WAIT(w, p) stringify_in_c(.long PPC_RAW_WAIT(w, p))
arch/powerpc/include/asm/ppc-opcode.h
655
#define PPC_ERATWE(s, a, w) stringify_in_c(.long PPC_RAW_ERATWE(s, a, w))
arch/powerpc/include/asm/ppc-opcode.h
656
#define PPC_ERATRE(s, a, w) stringify_in_c(.long PPC_RAW_ERATRE(a, a, w))
arch/powerpc/include/asm/ppc-opcode.h
659
#define PPC_ERATSX(t, a, w) stringify_in_c(.long PPC_RAW_ERATSX(t, a, w))
arch/powerpc/include/asm/ppc-opcode.h
660
#define PPC_ERATSX_DOT(t, a, w) stringify_in_c(.long PPC_RAW_ERATSX_DOT(t, a, w))
arch/powerpc/include/asm/sstep.h
100
#define GETSIZE(w) ((w) >> 12)
arch/powerpc/include/asm/sstep.h
131
u32 w[4];
arch/powerpc/kernel/align.c
112
u32 w[2];
arch/powerpc/kernel/align.c
144
data.w[0] = *evr;
arch/powerpc/kernel/align.c
145
data.w[1] = regs->gpr[reg];
arch/powerpc/kernel/align.c
156
data.w[1] = *evr;
arch/powerpc/kernel/align.c
159
data.w[1] = regs->gpr[reg];
arch/powerpc/kernel/align.c
213
data.w[0] = temp.w[1];
arch/powerpc/kernel/align.c
214
data.w[1] = temp.w[1];
arch/powerpc/kernel/align.c
233
data.w[0] = swab32(data.w[0]);
arch/powerpc/kernel/align.c
234
data.w[1] = swab32(data.w[1]);
arch/powerpc/kernel/align.c
247
data.w[0] = (s16)data.h[1];
arch/powerpc/kernel/align.c
248
data.w[1] = (s16)data.h[3];
arch/powerpc/kernel/align.c
275
*evr = data.w[0];
arch/powerpc/kernel/align.c
276
regs->gpr[reg] = data.w[1];
arch/powerpc/kernel/rtasd.c
418
static void rtas_event_scan(struct work_struct *w);
arch/powerpc/kernel/rtasd.c
428
static void rtas_event_scan(struct work_struct *w)
arch/powerpc/kernel/time.c
918
unsigned long w, x, y, z;
arch/powerpc/kernel/time.c
926
w = a / divisor;
arch/powerpc/kernel/time.c
927
ra = ((u64)(a - (w * divisor)) << 32) + b;
arch/powerpc/kernel/time.c
938
dr->result_high = ((u64)w << 32) + x;
arch/powerpc/kvm/book3s_paired_singles.c
263
int rs, ulong addr, bool w, int i)
arch/powerpc/kvm/book3s_paired_singles.c
271
if (w) {
arch/powerpc/kvm/book3s_paired_singles.c
281
} else if ((r == EMULATE_DO_MMIO) && w) {
arch/powerpc/kvm/book3s_paired_singles.c
299
tmp[1], addr, w ? 4 : 8);
arch/powerpc/kvm/book3s_paired_singles.c
306
int rs, ulong addr, bool w, int i)
arch/powerpc/kvm/book3s_paired_singles.c
311
int len = w ? sizeof(u32) : sizeof(u64);
arch/powerpc/kvm/book3s_paired_singles.c
320
} else if ((r == EMULATE_DO_MMIO) && w) {
arch/powerpc/kvm/book3s_paired_singles.c
681
bool w = inst_get_field(inst, 16, 16) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
685
emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/book3s_paired_singles.c
691
bool w = inst_get_field(inst, 16, 16) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
695
emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/book3s_paired_singles.c
704
bool w = inst_get_field(inst, 16, 16) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
708
emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/book3s_paired_singles.c
714
bool w = inst_get_field(inst, 16, 16) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
718
emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/book3s_paired_singles.c
734
bool w = inst_get_field(inst, 21, 21) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
738
emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/book3s_paired_singles.c
748
bool w = inst_get_field(inst, 21, 21) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
752
emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/book3s_paired_singles.c
825
bool w = inst_get_field(inst, 21, 21) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
829
emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/book3s_paired_singles.c
835
bool w = inst_get_field(inst, 21, 21) ? true : false;
arch/powerpc/kvm/book3s_paired_singles.c
839
emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i);
arch/powerpc/kvm/booke.c
2035
int n, b = 0, w = 0;
arch/powerpc/kvm/booke.c
2098
type, w++))
arch/powerpc/lib/sstep.c
838
reg->w[i] = !rev ? *wp++ : byterev_4(*wp++);
arch/powerpc/lib/sstep.c
841
u32 val = reg->w[IS_LE ? 3 : 0];
arch/powerpc/lib/sstep.c
844
reg->w[i] = val;
arch/powerpc/lib/sstep.c
935
*wp++ = !rev ? reg->w[i] : byterev_4(reg->w[i]);
arch/powerpc/platforms/powernv/pci-ioda.c
2179
struct resource *r, *w;
arch/powerpc/platforms/powernv/pci-ioda.c
2194
w = NULL;
arch/powerpc/platforms/powernv/pci-ioda.c
2196
w = &hose->io_resource;
arch/powerpc/platforms/powernv/pci-ioda.c
2200
w = &hose->mem_resources[1];
arch/powerpc/platforms/powernv/pci-ioda.c
2202
w = &hose->mem_resources[0];
arch/powerpc/platforms/powernv/pci-ioda.c
2206
r->start = w->start;
arch/powerpc/platforms/powernv/pci-ioda.c
2207
r->end = w->end;
arch/riscv/include/asm/arch_hweight.h
20
static __always_inline unsigned int __arch_hweight32(unsigned int w)
arch/riscv/include/asm/arch_hweight.h
25
return __sw_hweight32(w);
arch/riscv/include/asm/arch_hweight.h
31
: "=r" (w) : "r" (w) :);
arch/riscv/include/asm/arch_hweight.h
33
return w;
arch/riscv/include/asm/arch_hweight.h
36
static inline unsigned int __arch_hweight16(unsigned int w)
arch/riscv/include/asm/arch_hweight.h
38
return __arch_hweight32(w & 0xffff);
arch/riscv/include/asm/arch_hweight.h
41
static inline unsigned int __arch_hweight8(unsigned int w)
arch/riscv/include/asm/arch_hweight.h
43
return __arch_hweight32(w & 0xff);
arch/riscv/include/asm/arch_hweight.h
47
static __always_inline unsigned long __arch_hweight64(__u64 w)
arch/riscv/include/asm/arch_hweight.h
52
return __sw_hweight64(w);
arch/riscv/include/asm/arch_hweight.h
58
: "=r" (w) : "r" (w) :);
arch/riscv/include/asm/arch_hweight.h
60
return w;
arch/riscv/include/asm/arch_hweight.h
63
static inline unsigned long __arch_hweight64(__u64 w)
arch/riscv/include/asm/arch_hweight.h
65
return __arch_hweight32((u32)w) +
arch/riscv/include/asm/arch_hweight.h
66
__arch_hweight32((u32)(w >> 32));
arch/riscv/include/asm/asm.h
31
#define REG_SC __REG_SEL(sc.d, sc.w)
arch/riscv/include/asm/asm.h
32
#define REG_AMOSWAP_AQ __REG_SEL(amoswap.d.aq, amoswap.w.aq)
arch/riscv/include/asm/atomic.h
127
ATOMIC_FETCH_OP( op, asm_op, I, w, int, ) \
arch/riscv/include/asm/atomic.h
128
ATOMIC_OP_RETURN(op, asm_op, c_op, I, w, int, )
arch/riscv/include/asm/atomic.h
131
ATOMIC_FETCH_OP( op, asm_op, I, w, int, ) \
arch/riscv/include/asm/atomic.h
132
ATOMIC_OP_RETURN(op, asm_op, c_op, I, w, int, ) \
arch/riscv/include/asm/atomic.h
166
ATOMIC_FETCH_OP(op, asm_op, I, w, int, )
arch/riscv/include/asm/atomic.h
169
ATOMIC_FETCH_OP(op, asm_op, I, w, int, ) \
arch/riscv/include/asm/atomic.h
66
ATOMIC_OP (op, asm_op, I, w, int, )
arch/riscv/include/asm/atomic.h
69
ATOMIC_OP (op, asm_op, I, w, int, ) \
arch/riscv/include/asm/barrier.h
25
#define __smp_wmb() RISCV_FENCE(w, w)
arch/riscv/include/asm/barrier.h
57
RISCV_FENCE(rw, w); \
arch/riscv/include/asm/fence.h
11
#define RISCV_RELEASE_BARRIER RISCV_FENCE_ASM(rw, w)
arch/riscv/include/asm/io.h
106
__io_reads_ins(ins, u16, w, __io_pbr(), __io_par(addr))
arch/riscv/include/asm/io.h
113
__io_writes_outs(writes, u16, w, __io_bw(), __io_aw())
arch/riscv/include/asm/io.h
120
__io_writes_outs(outs, u16, w, __io_pbw(), __io_paw())
arch/riscv/include/asm/io.h
99
__io_reads_ins(reads, u16, w, __io_br(), __io_ar(addr))
arch/riscv/include/asm/mmio.h
136
#define __io_bw() RISCV_FENCE(w, o)
arch/riscv/include/asm/mmiowb.h
10
#define mmiowb() RISCV_FENCE(o, w)
arch/riscv/mm/cacheflush.c
38
RISCV_FENCE(w, o);
arch/s390/include/asm/arch_hweight.h
15
: [w] "d" (w)
arch/s390/include/asm/arch_hweight.h
20
static __always_inline unsigned long popcnt_z15(unsigned long w)
arch/s390/include/asm/arch_hweight.h
26
: [w] "d" (w)
arch/s390/include/asm/arch_hweight.h
31
static __always_inline unsigned long __arch_hweight64(__u64 w)
arch/s390/include/asm/arch_hweight.h
34
return popcnt_z15(w);
arch/s390/include/asm/arch_hweight.h
36
w = popcnt_z196(w);
arch/s390/include/asm/arch_hweight.h
37
w += w >> 32;
arch/s390/include/asm/arch_hweight.h
38
w += w >> 16;
arch/s390/include/asm/arch_hweight.h
39
w += w >> 8;
arch/s390/include/asm/arch_hweight.h
40
return w & 0xff;
arch/s390/include/asm/arch_hweight.h
42
return __sw_hweight64(w);
arch/s390/include/asm/arch_hweight.h
45
static __always_inline unsigned int __arch_hweight32(unsigned int w)
arch/s390/include/asm/arch_hweight.h
48
return popcnt_z15(w);
arch/s390/include/asm/arch_hweight.h
50
w = popcnt_z196(w);
arch/s390/include/asm/arch_hweight.h
51
w += w >> 16;
arch/s390/include/asm/arch_hweight.h
52
w += w >> 8;
arch/s390/include/asm/arch_hweight.h
53
return w & 0xff;
arch/s390/include/asm/arch_hweight.h
55
return __sw_hweight32(w);
arch/s390/include/asm/arch_hweight.h
58
static __always_inline unsigned int __arch_hweight16(unsigned int w)
arch/s390/include/asm/arch_hweight.h
61
return popcnt_z15((unsigned short)w);
arch/s390/include/asm/arch_hweight.h
63
w = popcnt_z196(w);
arch/s390/include/asm/arch_hweight.h
64
w += w >> 8;
arch/s390/include/asm/arch_hweight.h
65
return w & 0xff;
arch/s390/include/asm/arch_hweight.h
67
return __sw_hweight16(w);
arch/s390/include/asm/arch_hweight.h
70
static __always_inline unsigned int __arch_hweight8(unsigned int w)
arch/s390/include/asm/arch_hweight.h
73
return popcnt_z196((unsigned char)w);
arch/s390/include/asm/arch_hweight.h
74
return __sw_hweight8(w);
arch/s390/include/asm/arch_hweight.h
9
static __always_inline unsigned long popcnt_z196(unsigned long w)
arch/s390/include/asm/cmpxchg.h
42
u32 w;
arch/s390/include/asm/cmpxchg.h
51
old32.w = prev;
arch/s390/include/asm/cmpxchg.h
54
new32.w = old32.w;
arch/s390/include/asm/cmpxchg.h
56
prev = __cs_asm(ptr, old32.w, new32.w);
arch/s390/include/asm/cmpxchg.h
57
} while (prev != old32.w);
arch/s390/include/asm/cmpxchg.h
65
u32 w;
arch/s390/include/asm/cmpxchg.h
74
old32.w = prev;
arch/s390/include/asm/cmpxchg.h
77
new32.w = old32.w;
arch/s390/include/asm/cmpxchg.h
79
prev = __cs_asm(ptr, old32.w, new32.w);
arch/s390/include/asm/cmpxchg.h
80
} while (prev != old32.w);
arch/s390/include/asm/fcx.h
298
void tcw_init(struct tcw *tcw, int r, int w);
arch/s390/include/asm/fcx.h
45
u32 w:1;
arch/s390/include/asm/nmi.h
49
u64 w : 1; /* 08 warning pending */
arch/s390/kernel/nmi.c
476
if (mci.w) {
arch/s390/kvm/dat.c
259
init.s.w = old.s.fc1.w;
arch/s390/kvm/dat.c
513
static long dat_pte_walk_range(gfn_t gfn, gfn_t end, struct page_table *table, struct dat_walk *w)
arch/s390/kvm/dat.c
520
if (!(w->flags & DAT_WALK_IGN_HOLES))
arch/s390/kvm/dat.c
522
if (!(w->flags & DAT_WALK_ANY))
arch/s390/kvm/dat.c
526
rc = w->ops->pte_entry(table->ptes + idx, gfn, gfn + 1, w);
arch/s390/kvm/dat.h
164
unsigned long w : 1; /* Writable soft-bit */
arch/s390/kvm/dat.h
187
unsigned long w : 1; /* Writable soft-bit */
arch/s390/kvm/dat.h
258
unsigned long w : 1; /* Writable */
arch/s390/kvm/dat.h
348
typedef long (*dat_walk_op)(union crste *crste, gfn_t gfn, gfn_t next, struct dat_walk *w);
arch/s390/kvm/dat.h
360
long (*pte_entry)(union pte *pte, gfn_t gfn, gfn_t next, struct dat_walk *w);
arch/s390/kvm/dat.h
400
res.s.w = writable;
arch/s390/kvm/dat.h
440
res.s.fc1.w = writable;
arch/s390/kvm/dat.h
78
unsigned long w : 1; /* Writable */
arch/s390/kvm/faultin.c
129
int kvm_s390_get_guest_page(struct kvm *kvm, struct guest_fault *f, gfn_t gfn, bool w)
arch/s390/kvm/faultin.c
132
int foll = w ? FOLL_WRITE : 0;
arch/s390/kvm/faultin.c
134
f->write_attempt = w;
arch/s390/kvm/faultin.h
17
int kvm_s390_get_guest_page(struct kvm *kvm, struct guest_fault *f, gfn_t gfn, bool w);
arch/s390/kvm/gaccess.c
1279
static int walk_guest_tables(struct gmap *sg, unsigned long saddr, struct pgtwalk *w, bool wr)
arch/s390/kvm/gaccess.c
1295
entries = get_entries(w);
arch/s390/kvm/gaccess.c
1297
w->level = LEVEL_MEM;
arch/s390/kvm/gaccess.c
1298
w->last_addr = saddr;
arch/s390/kvm/gaccess.c
1326
w->level = asce.dt;
arch/s390/kvm/gaccess.c
1329
w->last_addr = ptr + vaddr.rfx * 8;
arch/s390/kvm/gaccess.c
1330
rc = kvm_s390_get_guest_page_and_read_gpa(kvm, entries + w->level,
arch/s390/kvm/gaccess.c
1331
w->last_addr, &table.val);
arch/s390/kvm/gaccess.c
1341
w->p |= table.pgd.p;
arch/s390/kvm/gaccess.c
1343
w->level--;
arch/s390/kvm/gaccess.c
1346
w->last_addr = ptr + vaddr.rsx * 8;
arch/s390/kvm/gaccess.c
1347
rc = kvm_s390_get_guest_page_and_read_gpa(kvm, entries + w->level,
arch/s390/kvm/gaccess.c
1348
w->last_addr, &table.val);
arch/s390/kvm/gaccess.c
1358
w->p |= table.p4d.p;
arch/s390/kvm/gaccess.c
1360
w->level--;
arch/s390/kvm/gaccess.c
1363
w->last_addr = ptr + vaddr.rtx * 8;
arch/s390/kvm/gaccess.c
1364
rc = kvm_s390_get_guest_page_and_read_gpa(kvm, entries + w->level,
arch/s390/kvm/gaccess.c
1365
w->last_addr, &table.val);
arch/s390/kvm/gaccess.c
1375
w->p |= table.pud.p;
arch/s390/kvm/gaccess.c
1383
w->level--;
arch/s390/kvm/gaccess.c
1386
w->last_addr = ptr + vaddr.sx * 8;
arch/s390/kvm/gaccess.c
1387
rc = kvm_s390_get_guest_page_and_read_gpa(kvm, entries + w->level,
arch/s390/kvm/gaccess.c
1388
w->last_addr, &table.val);
arch/s390/kvm/gaccess.c
1397
w->p |= table.pmd.p;
arch/s390/kvm/gaccess.c
1403
w->level--;
arch/s390/kvm/gaccess.c
1405
w->last_addr = ptr + vaddr.px * 8;
arch/s390/kvm/gaccess.c
1406
rc = kvm_s390_get_guest_page_and_read_gpa(kvm, entries + w->level,
arch/s390/kvm/gaccess.c
1407
w->last_addr, &table.val);
arch/s390/kvm/gaccess.c
1414
w->p |= table.pte.p;
arch/s390/kvm/gaccess.c
1416
if (wr && w->p)
arch/s390/kvm/gaccess.c
1506
unsigned long saddr, struct pgtwalk *w)
arch/s390/kvm/gaccess.c
1516
entries = get_entries(w);
arch/s390/kvm/gaccess.c
1526
if ((ptep && !ptep->h.i && ptep->h.p == w->p) ||
arch/s390/kvm/gaccess.c
1527
(!ptep && crste_leaf(*table) && !table->h.i && table->h.p == w->p))
arch/s390/kvm/gaccess.c
1533
if (w->level <= LEVEL_MEM) {
arch/s390/kvm/gaccess.c
1543
for (i = gl ; i >= w->level; i--) {
arch/s390/kvm/gaccess.c
1559
l = min3(gl, hl, w->level);
arch/s390/kvm/gaccess.c
1579
return _do_shadow_pte(sg, saddr, ptep_h, ptep, entries + LEVEL_MEM, w->p);
arch/s390/kvm/gaccess.c
1580
return _do_shadow_crste(sg, saddr, host, table, entries + LEVEL_MEM, w->p);
arch/s390/kvm/gaccess.c
46
static inline struct guest_fault *get_entries(struct pgtwalk *w)
arch/s390/kvm/gaccess.c
48
return w->raw_entries - LEVEL_MEM;
arch/s390/kvm/gmap.c
371
static long _gmap_unmap_pte(union pte *ptep, gfn_t gfn, gfn_t next, struct dat_walk *w)
arch/s390/kvm/gmap.c
373
struct gmap_unmap_priv *priv = w->priv;
arch/s390/kvm/gmap.c
531
f->writable = oldcrste.s.fc1.w;
arch/s390/kvm/gmap.c
537
if (!f->write_attempt || oldcrste.s.fc1.w) {
arch/s390/kvm/gmap.c
538
f->write_attempt |= oldcrste.s.fc1.w && oldcrste.s.fc1.d;
arch/s390/kvm/gmap.c
560
f->writable = oldpte.s.w;
arch/s390/kvm/gmap.c
566
if (!oldpte.s.pr || (f->write_attempt && !oldpte.s.w))
arch/s390/kvm/interrupt.c
2840
if (mci.w)
arch/sh/include/asm/io.h
114
__BUILD_MEMORY_STRING(__raw_, w, u16)
arch/sh/include/asm/io.h
189
BUILDIO_IOPORT(w, u16)
arch/sh/include/asm/io.h
218
__BUILD_IOPORT_STRING(w, u16)
arch/sh/include/asm/io.h
84
__BUILD_UNCACHED_IO(w, u16)
arch/sh/include/asm/romimage-macros.h
26
mov.w r0, @r1
arch/sh/include/uapi/asm/swab.h
42
} v, w;
arch/sh/include/uapi/asm/swab.h
44
w.s.b = __arch_swab32(v.s.a);
arch/sh/include/uapi/asm/swab.h
45
w.s.a = __arch_swab32(v.s.b);
arch/sh/include/uapi/asm/swab.h
46
return w.u;
arch/sh/kernel/cpu/sh2a/fpu.c
110
w = -1;
arch/sh/kernel/cpu/sh2a/fpu.c
111
while (n) { n >>= 1; w++; }
arch/sh/kernel/cpu/sh2a/fpu.c
114
exp += w - 126 - 46;
arch/sh/kernel/cpu/sh2a/fpu.c
116
ix = ((int) (m >> (w - 23)) & 0x007fffff) | (exp << 23);
arch/sh/kernel/cpu/sh2a/fpu.c
118
ix = (int) (m >> (w - 22 - exp)) & 0x007fffff;
arch/sh/kernel/cpu/sh2a/fpu.c
165
int exp, w;
arch/sh/kernel/cpu/sh2a/fpu.c
178
w = -1;
arch/sh/kernel/cpu/sh2a/fpu.c
180
while (nh) { nh >>= 1; w++;}
arch/sh/kernel/cpu/sh2a/fpu.c
181
w += 64;
arch/sh/kernel/cpu/sh2a/fpu.c
183
while (nl) { nl >>= 1; w++;}
arch/sh/kernel/cpu/sh2a/fpu.c
186
exp += w - 1022 - 52 * 2;
arch/sh/kernel/cpu/sh2a/fpu.c
188
ix = (rshift64(mh, ml, w - 52) & 0x000fffffffffffffLL)
arch/sh/kernel/cpu/sh2a/fpu.c
191
ix = rshift64(mh, ml, w - 51 - exp) & 0x000fffffffffffffLL;
arch/sh/kernel/cpu/sh2a/fpu.c
98
int exp, w;
arch/sparc/include/asm/bitops_64.h
46
unsigned long __arch_hweight64(__u64 w);
arch/sparc/include/asm/bitops_64.h
47
unsigned int __arch_hweight32(unsigned int w);
arch/sparc/include/asm/bitops_64.h
48
unsigned int __arch_hweight16(unsigned int w);
arch/sparc/include/asm/bitops_64.h
49
unsigned int __arch_hweight8(unsigned int w);
arch/sparc/include/asm/io_32.h
85
static inline void sbus_writew(u16 w, volatile void __iomem *addr)
arch/sparc/include/asm/io_32.h
87
*(__force volatile u16 *)addr = w;
arch/sparc/include/asm/io_64.h
168
static inline void writew(u16 w, volatile void __iomem *addr)
arch/sparc/include/asm/io_64.h
172
: "Jr" (w), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E_L)
arch/sparc/include/asm/io_64.h
221
static inline void outw(u16 w, unsigned long addr)
arch/sparc/include/asm/io_64.h
223
writew(w, (volatile void __iomem *)addr);
arch/sparc/include/asm/io_64.h
329
static inline void sbus_writew(u16 w, volatile void __iomem *addr)
arch/sparc/include/asm/io_64.h
331
__raw_writew(w, addr);
arch/sparc/include/asm/io_64.h
78
static inline void __raw_writew(u16 w, const volatile void __iomem *addr)
arch/sparc/include/asm/io_64.h
82
: "Jr" (w), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E));
arch/sparc/include/asm/uaccess_64.h
118
case 4: __put_user_asm(data, w, addr, __pu_ret); break; \
arch/sparc/include/asm/uaccess_64.h
85
case 4: __put_kernel_asm(data, w, addr, __pu_ret); break; \
arch/sparc/include/asm/upa.h
79
static inline void _upa_writew(unsigned short w, unsigned long addr)
arch/sparc/include/asm/upa.h
83
: "r" (w), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E));
arch/sparc/kernel/of_device_32.c
80
u32 w = addr[0];
arch/sparc/kernel/of_device_32.c
84
switch((w >> 24) & 0x03) {
arch/sparc/kernel/of_device_32.c
94
if (w & 0x40000000)
arch/sparc/kernel/of_device_64.c
143
u32 w = addr[0];
arch/sparc/kernel/of_device_64.c
147
switch((w >> 24) & 0x03) {
arch/sparc/kernel/of_device_64.c
157
if (w & 0x40000000)
arch/sparc/lib/PeeCeeI.c
100
u32 w;
arch/sparc/lib/PeeCeeI.c
102
w = (__raw_readb(addr) << 24);
arch/sparc/lib/PeeCeeI.c
103
w |= (__raw_readb(addr) << 16);
arch/sparc/lib/PeeCeeI.c
104
w |= (__raw_readb(addr) << 8);
arch/sparc/lib/PeeCeeI.c
105
w |= (__raw_readb(addr) << 0);
arch/sparc/lib/PeeCeeI.c
106
*pi++ = w;
arch/sparc/lib/PeeCeeI.c
130
u32 w;
arch/sparc/lib/PeeCeeI.c
132
w = __raw_readw(addr) << 16;
arch/sparc/lib/PeeCeeI.c
133
w |= __raw_readw(addr) << 0;
arch/sparc/lib/PeeCeeI.c
134
*pi++ = w;
arch/um/drivers/hostaudio_kern.c
180
int r = 0, w = 0;
arch/um/drivers/hostaudio_kern.c
196
w = 1;
arch/um/drivers/hostaudio_kern.c
200
ret = os_open_file(dsp, of_set_rw(OPENFLAGS(), r, w), 0);
arch/um/drivers/hostaudio_kern.c
243
int r = 0, w = 0;
arch/um/drivers/hostaudio_kern.c
257
w = 1;
arch/um/drivers/hostaudio_kern.c
261
ret = os_open_file(mixer, of_set_rw(OPENFLAGS(), r, w), 0);
arch/um/drivers/ubd_kern.c
123
#define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \
arch/um/drivers/ubd_kern.c
126
#define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \
arch/um/drivers/ubd_kern.c
272
flags.w = 0;
arch/um/drivers/ubd_kern.c
616
if (!openflags->w ||
arch/um/drivers/ubd_kern.c
619
openflags->w = 0;
arch/um/drivers/ubd_kern.c
628
err = os_lock_file(fd, openflags->w);
arch/um/drivers/ubd_kern.c
768
flags.w = 0;
arch/um/drivers/ubd_kern.c
888
set_disk_ro(disk, !ubd_dev->openflags.w);
arch/um/include/shared/mem_user.h
40
unsigned long len, int r, int w, int x);
arch/um/include/shared/os.h
163
extern int os_shutdown_socket(int fd, int r, int w);
arch/um/include/shared/os.h
210
unsigned long len, int r, int w, int x);
arch/um/include/shared/os.h
212
int r, int w, int x);
arch/um/include/shared/os.h
67
unsigned int w : 1;
arch/um/include/shared/os.h
76
#define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \
arch/um/include/shared/os.h
87
flags.w = 1;
arch/um/include/shared/os.h
96
static inline struct openflags of_set_rw(struct openflags flags, int r, int w)
arch/um/include/shared/os.h
99
flags.w = w;
arch/um/kernel/physmem.c
26
int r, int w, int x)
arch/um/kernel/physmem.c
32
err = os_map_memory((void *) virt, fd, offset, len, r, w, x);
arch/um/kernel/physmem.c
39
"err = %d\n", virt, fd, offset, len, r, w, x, err);
arch/um/kernel/tlb.c
67
int r, w, x, prot;
arch/um/kernel/tlb.c
70
w = pte_write(*pte);
arch/um/kernel/tlb.c
74
w = 0;
arch/um/kernel/tlb.c
76
w = 0;
arch/um/kernel/tlb.c
79
(w ? UM_PROT_WRITE : 0) |
arch/um/os-Linux/file.c
169
if (flags.r && flags.w)
arch/um/os-Linux/file.c
173
else if (flags.w)
arch/um/os-Linux/file.c
476
int os_shutdown_socket(int fd, int r, int w)
arch/um/os-Linux/file.c
480
if (r && w)
arch/um/os-Linux/file.c
484
else if (w)
arch/um/os-Linux/process.c
103
int os_protect_memory(void *addr, unsigned long len, int r, int w, int x)
arch/um/os-Linux/process.c
105
int prot = ((r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) |
arch/um/os-Linux/process.c
88
int r, int w, int x)
arch/um/os-Linux/process.c
93
prot = (r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) |
arch/x86/events/intel/core.c
4122
int is_excl, i, w;
arch/x86/events/intel/core.c
4178
w = c->weight;
arch/x86/events/intel/core.c
4187
w--;
arch/x86/events/intel/core.c
4197
w--;
arch/x86/events/intel/core.c
4207
if (!w)
arch/x86/events/intel/core.c
4210
c->weight = w;
arch/x86/events/perf_event.h
389
#define __EVENT_CONSTRAINT_RANGE(c, e, n, m, w, o, f) { \
arch/x86/events/perf_event.h
394
.weight = (w), \
arch/x86/events/perf_event.h
399
#define __EVENT_CONSTRAINT(c, n, m, w, o, f) \
arch/x86/events/perf_event.h
400
__EVENT_CONSTRAINT_RANGE(c, c, n, m, w, o, f)
arch/x86/include/asm/arch_hweight.h
15
static __always_inline unsigned int __arch_hweight32(unsigned int w)
arch/x86/include/asm/arch_hweight.h
22
: [val] REG_IN (w));
arch/x86/include/asm/arch_hweight.h
27
static inline unsigned int __arch_hweight16(unsigned int w)
arch/x86/include/asm/arch_hweight.h
29
return __arch_hweight32(w & 0xffff);
arch/x86/include/asm/arch_hweight.h
32
static inline unsigned int __arch_hweight8(unsigned int w)
arch/x86/include/asm/arch_hweight.h
34
return __arch_hweight32(w & 0xff);
arch/x86/include/asm/arch_hweight.h
38
static inline unsigned long __arch_hweight64(__u64 w)
arch/x86/include/asm/arch_hweight.h
40
return __arch_hweight32((u32)w) +
arch/x86/include/asm/arch_hweight.h
41
__arch_hweight32((u32)(w >> 32));
arch/x86/include/asm/arch_hweight.h
44
static __always_inline unsigned long __arch_hweight64(__u64 w)
arch/x86/include/asm/arch_hweight.h
51
: [val] REG_IN (w));
arch/x86/include/asm/io.h
308
BUILDIO(w, u16)
arch/x86/include/asm/shared/io.h
23
BUILDIO(w, w, u16)
arch/x86/kernel/amd_nb.c
265
u32 w;
arch/x86/kernel/amd_nb.c
269
0x9c, &w);
arch/x86/kernel/amd_nb.c
270
if (!(w & 1))
arch/x86/kvm/emulate.c
320
case 2: __EM_ASM_1(op##w, ax); break; \
arch/x86/kvm/emulate.c
329
case 2: __EM_ASM_1(op##w, cx); break; \
arch/x86/kvm/emulate.c
338
case 2: __EM_ASM_1_EX(op##w, cx); break; \
arch/x86/kvm/emulate.c
347
case 2: __EM_ASM_2(op##w, ax, dx); break; \
arch/x86/kvm/emulate.c
356
case 2: __EM_ASM_2(op##w, dx, ax); break; \
arch/x86/kvm/emulate.c
365
case 2: __EM_ASM_2(op##w, ax, dx); break; \
arch/x86/kvm/emulate.c
374
case 2: __EM_ASM_2(op##w, ax, cl); break; \
arch/x86/kvm/emulate.c
383
case 2: __EM_ASM_3(op##w, ax, dx, cl); break; \
arch/x86/kvm/mmu/mmu.c
5538
const u8 w = BYTE_MASK(ACC_WRITE_MASK);
arch/x86/kvm/mmu/mmu.c
5555
u8 wf = (pfec & PFERR_WRITE_MASK) ? (u8)~w : 0;
arch/x86/kvm/reverse_cpuid.h
21
#define KVM_X86_FEATURE(w, f) ((w)*32 + (f))
arch/x86/kvm/x86.c
9950
static void pvclock_irq_work_fn(struct irq_work *w)
arch/x86/net/bpf_jit_comp.c
1533
bool w, u8 src_reg2, bool l, u8 pp)
arch/x86/net/bpf_jit_comp.c
1562
b2 = (w << 7) | ((~vvvv & 0xf) << 3) | (l << 2) | (pp & 3);
arch/x86/net/bpf_jit_comp.c
1999
bool w = (BPF_CLASS(insn->code) == BPF_ALU64);
arch/x86/net/bpf_jit_comp.c
2014
emit_shiftx(&prog, dst_reg, src_reg, w, op);
arch/xtensa/mm/tlb.c
232
static int check_tlb_entry(unsigned w, unsigned e, bool dtlb)
arch/xtensa/mm/tlb.c
234
unsigned tlbidx = w | (e << PAGE_SHIFT);
arch/xtensa/mm/tlb.c
248
dtlb ? 'D' : 'I', w, e, vpn,
arch/xtensa/mm/tlb.c
256
dtlb ? 'D' : 'I', w, e, r0, r1, pte);
arch/xtensa/mm/tlb.c
27
int w, i;
arch/xtensa/mm/tlb.c
278
unsigned w, e;
arch/xtensa/mm/tlb.c
282
for (w = 0; w < DTLB_ARF_WAYS; ++w)
arch/xtensa/mm/tlb.c
284
bug |= check_tlb_entry(w, e, true);
arch/xtensa/mm/tlb.c
285
for (w = 0; w < ITLB_ARF_WAYS; ++w)
arch/xtensa/mm/tlb.c
287
bug |= check_tlb_entry(w, e, false);
arch/xtensa/mm/tlb.c
29
for (w = 0; w < ITLB_ARF_WAYS; w++) {
arch/xtensa/mm/tlb.c
31
int e = w + (i << PAGE_SHIFT);
arch/xtensa/mm/tlb.c
40
int w, i;
arch/xtensa/mm/tlb.c
42
for (w = 0; w < DTLB_ARF_WAYS; w++) {
arch/xtensa/mm/tlb.c
44
int e = w + (i << PAGE_SHIFT);
crypto/aegis128-neon-inner.c
102
asm(AES_ROUND : "+w"(w) : "w"(z));
crypto/aegis128-neon-inner.c
103
return w;
crypto/aegis128-neon-inner.c
52
uint8x16_t aegis_aes_round(uint8x16_t w)
crypto/aegis128-neon-inner.c
69
w = vqtbl1q_u8(w, vld1q_u8(shift_rows));
crypto/aegis128-neon-inner.c
73
v = vqtbl4q_u8(vld1q_u8_x4(crypto_aes_sbox), w);
crypto/aegis128-neon-inner.c
74
v = vqtbx4q_u8(v, vld1q_u8_x4(crypto_aes_sbox + 0x40), w - 0x40);
crypto/aegis128-neon-inner.c
75
v = vqtbx4q_u8(v, vld1q_u8_x4(crypto_aes_sbox + 0x80), w - 0x80);
crypto/aegis128-neon-inner.c
76
v = vqtbx4q_u8(v, vld1q_u8_x4(crypto_aes_sbox + 0xc0), w - 0xc0);
crypto/aegis128-neon-inner.c
78
asm("tbl %0.16b, {v16.16b-v19.16b}, %1.16b" : "=w"(v) : "w"(w));
crypto/aegis128-neon-inner.c
79
w -= 0x40;
crypto/aegis128-neon-inner.c
80
asm("tbx %0.16b, {v20.16b-v23.16b}, %1.16b" : "+w"(v) : "w"(w));
crypto/aegis128-neon-inner.c
81
w -= 0x40;
crypto/aegis128-neon-inner.c
82
asm("tbx %0.16b, {v24.16b-v27.16b}, %1.16b" : "+w"(v) : "w"(w));
crypto/aegis128-neon-inner.c
83
w -= 0x40;
crypto/aegis128-neon-inner.c
84
asm("tbx %0.16b, {v28.16b-v31.16b}, %1.16b" : "+w"(v) : "w"(w));
crypto/aegis128-neon-inner.c
88
w = (v << 1) ^ (uint8x16_t)(((int8x16_t)v >> 7) & 0x1b);
crypto/aegis128-neon-inner.c
89
w ^= (uint8x16_t)vrev32q_u16((uint16x8_t)v);
crypto/aegis128-neon-inner.c
90
w ^= vqtbl1q_u8(v ^ w, vld1q_u8(ror32by8));
crypto/aegis128-neon-inner.c
92
return w;
crypto/algapi.c
72
static void crypto_destroy_instance_workfn(struct work_struct *w)
crypto/algapi.c
74
struct crypto_template *tmpl = container_of(w, struct crypto_template,
crypto/ecc.c
1597
u64 yy[ECC_MAX_DIGITS], xxx[ECC_MAX_DIGITS], w[ECC_MAX_DIGITS];
crypto/ecc.c
1616
vli_mod_mult_fast(w, curve->a, pk->x, curve); /* a·x */
crypto/ecc.c
1617
vli_mod_add(w, w, curve->b, curve->p, pk->ndigits); /* a·x + b */
crypto/ecc.c
1618
vli_mod_add(w, w, xxx, curve->p, pk->ndigits); /* x^3 + a·x + b */
crypto/ecc.c
1619
if (vli_cmp(yy, w, pk->ndigits) != 0) /* Equation */
crypto/lrw.c
147
struct skcipher_walk w;
crypto/lrw.c
158
err = skcipher_walk_virt(&w, req, false);
crypto/lrw.c
162
iv = (__be32 *)w.iv;
crypto/lrw.c
168
while (w.nbytes) {
crypto/lrw.c
169
unsigned int avail = w.nbytes;
crypto/lrw.c
173
wsrc = w.src.virt.addr;
crypto/lrw.c
174
wdst = w.dst.virt.addr;
crypto/lrw.c
185
if (second_pass && w.nbytes == w.total) {
crypto/lrw.c
192
err = skcipher_walk_done(&w, avail);
crypto/twofish_common.c
468
#define CALC_S(a, b, c, d, i, w, x, y, z) \
crypto/twofish_common.c
471
(a) ^= exp_to_poly[tmp + (w)]; \
crypto/twofish_common.c
649
CALC_K256 (w, i, q0[i], q1[i], q0[i+1], q1[i+1]);
crypto/twofish_common.c
662
CALC_K192 (w, i, q0[i], q1[i], q0[i+1], q1[i+1]);
crypto/twofish_common.c
675
CALC_K (w, i, q0[i], q1[i], q0[i+1], q1[i+1]);
crypto/twofish_generic.c
86
x = get_unaligned_le32(in + (n) * 4) ^ ctx->w[m]
crypto/twofish_generic.c
89
x ^= ctx->w[m]; \
crypto/xts.c
100
while (w.nbytes) {
crypto/xts.c
101
unsigned int avail = w.nbytes;
crypto/xts.c
105
wsrc = w.src.virt.addr;
crypto/xts.c
106
wdst = w.dst.virt.addr;
crypto/xts.c
110
w.total - w.nbytes + avail < 2 * XTS_BLOCK_SIZE) {
crypto/xts.c
119
skcipher_walk_done(&w, avail - bs);
crypto/xts.c
127
err = skcipher_walk_done(&w, avail);
crypto/xts.c
89
struct skcipher_walk w;
crypto/xts.c
98
err = skcipher_walk_virt(&w, req, false);
drivers/accel/qaic/qaic_control.c
1025
struct wrapper_msg *w;
drivers/accel/qaic/qaic_control.c
1037
list_for_each_entry(w, &wrappers->list, list)
drivers/accel/qaic/qaic_control.c
1085
list_for_each_entry(w, &wrappers->list, list) {
drivers/accel/qaic/qaic_control.c
1086
kref_get(&w->ref_count);
drivers/accel/qaic/qaic_control.c
1087
ret = mhi_queue_buf(qdev->cntl_ch, DMA_TO_DEVICE, &w->msg, w->len,
drivers/accel/qaic/qaic_control.c
1088
list_is_last(&w->list, &wrappers->list) ? MHI_EOT : MHI_CHAIN);
drivers/accel/qaic/qaic_control.c
1091
kref_put(&w->ref_count, free_wrapper);
drivers/accel/qaic/qaic_control.c
1138
struct wrapper_msg *w;
drivers/accel/qaic/qaic_control.c
1145
list_for_each_entry_safe(wrapper, w, &wrappers->list, list)
drivers/accel/qaic/qaic_control.c
1187
struct wrapper_msg *w;
drivers/accel/qaic/qaic_control.c
1238
list_for_each_entry_safe(wrapper, w, &wrappers->list, list)
drivers/accel/qaic/qaic_control.c
254
struct wrapper_msg *w;
drivers/accel/qaic/qaic_control.c
257
list_for_each_entry(w, &wrappers->list, list)
drivers/accel/qaic/qaic_control.c
258
crc = crc32(crc, &w->msg, w->len);
drivers/accel/qaic/qaic_control.c
345
struct wrapper_msg *w = kzalloc(size, GFP_KERNEL);
drivers/accel/qaic/qaic_control.c
347
if (!w)
drivers/accel/qaic/qaic_control.c
349
list_add_tail(&w->list, &wrappers->list);
drivers/accel/qaic/qaic_control.c
350
kref_init(&w->ref_count);
drivers/accel/qaic/qaic_control.c
351
w->head = wrappers;
drivers/accel/qaic/qaic_control.c
352
return w;
drivers/accel/qaic/qaic_control.c
491
struct wrapper_msg *w;
drivers/accel/qaic/qaic_control.c
521
w = trans_wrapper;
drivers/accel/qaic/qaic_control.c
529
w->len = (void *)asp - (void *)&w->msg;
drivers/accel/qaic/qaic_control.c
530
*size += w->len;
drivers/accel/qaic/qaic_control.c
531
w = add_wrapper(wrappers, QAIC_WRAPPER_MAX_SIZE);
drivers/accel/qaic/qaic_control.c
532
if (!w)
drivers/accel/qaic/qaic_control.c
534
boundary = (void *)w + QAIC_WRAPPER_MAX_SIZE;
drivers/accel/qaic/qaic_control.c
535
asp = (struct wire_addr_size_pair *)&w->msg;
drivers/accel/qaic/qaic_control.c
543
w->len = (void *)asp + sizeof(*asp) - (void *)&w->msg;
drivers/accel/qaic/qaic_control.c
544
*size += w->len;
drivers/accessibility/speakup/main.c
462
u16 w;
drivers/accessibility/speakup/main.c
466
w = scr_readw(pos);
drivers/accessibility/speakup/main.c
467
c = w & 0xff;
drivers/accessibility/speakup/main.c
469
if (w & vc->vc_hi_font_mask) {
drivers/accessibility/speakup/main.c
470
w &= ~vc->vc_hi_font_mask;
drivers/accessibility/speakup/main.c
475
*attribs = (w & 0xff00) >> 8;
drivers/android/binder.c
2808
struct binder_work *w;
drivers/android/binder.c
2810
list_for_each_entry(w, target_list, entry) {
drivers/android/binder.c
2813
if (w->type != BINDER_WORK_TRANSACTION)
drivers/android/binder.c
2815
t_queued = container_of(w, struct binder_transaction, work);
drivers/android/binder.c
3062
struct binder_work *w;
drivers/android/binder.c
3259
w = list_first_entry_or_null(&thread->todo,
drivers/android/binder.c
3261
if (!(tr->flags & TF_ONE_WAY) && w &&
drivers/android/binder.c
3262
w->type == BINDER_WORK_TRANSACTION) {
drivers/android/binder.c
4039
struct binder_work *w;
drivers/android/binder.c
4042
list_for_each_entry(w, &proc->delivered_freeze, entry) {
drivers/android/binder.c
4044
container_of(w, struct binder_ref_freeze, work);
drivers/android/binder.c
4093
struct binder_work *w;
drivers/android/binder.c
4099
w = binder_dequeue_work_head_ilocked(
drivers/android/binder.c
4101
if (!w) {
drivers/android/binder.c
4105
w, &proc->todo);
drivers/android/binder.c
4504
struct binder_work *w;
drivers/android/binder.c
4513
list_for_each_entry(w, &proc->delivered_death,
drivers/android/binder.c
4516
container_of(w,
drivers/android/binder.c
4784
struct binder_work *w = NULL;
drivers/android/binder.c
4809
w = binder_dequeue_work_head_ilocked(list);
drivers/android/binder.c
4813
switch (w->type) {
drivers/android/binder.c
4816
t = container_of(w, struct binder_transaction, work);
drivers/android/binder.c
4820
w, struct binder_error, work);
drivers/android/binder.c
4836
w->type == BINDER_WORK_TRANSACTION_ONEWAY_SPAM_SUSPECT)
drivers/android/binder.c
4838
else if (w->type == BINDER_WORK_TRANSACTION_PENDING)
drivers/android/binder.c
4843
kfree(w);
drivers/android/binder.c
4855
struct binder_node *node = container_of(w, struct binder_node, work);
drivers/android/binder.c
4948
death = container_of(w, struct binder_ref_death, work);
drivers/android/binder.c
4949
if (w->type == BINDER_WORK_CLEAR_DEATH_NOTIFICATION)
drivers/android/binder.c
4962
if (w->type == BINDER_WORK_CLEAR_DEATH_NOTIFICATION) {
drivers/android/binder.c
4968
w, &proc->delivered_death);
drivers/android/binder.c
4988
freeze = container_of(w, struct binder_ref_freeze, work);
drivers/android/binder.c
4992
binder_enqueue_work_ilocked(w, &proc->delivered_freeze);
drivers/android/binder.c
5007
container_of(w, struct binder_ref_freeze, work);
drivers/android/binder.c
5025
proc->pid, thread->pid, w->type);
drivers/android/binder.c
5180
struct binder_work *w;
drivers/android/binder.c
5185
w = binder_dequeue_work_head_ilocked(list);
drivers/android/binder.c
5186
wtype = w ? w->type : 0;
drivers/android/binder.c
5188
if (!w)
drivers/android/binder.c
5195
t = container_of(w, struct binder_transaction, work);
drivers/android/binder.c
5202
w, struct binder_error, work);
drivers/android/binder.c
5213
kfree(w);
drivers/android/binder.c
5220
death = container_of(w, struct binder_ref_death, work);
drivers/android/binder.c
5232
freeze = container_of(w, struct binder_ref_freeze, work);
drivers/android/binder.c
541
struct binder_work *w;
drivers/android/binder.c
543
w = list_first_entry_or_null(list, struct binder_work, entry);
drivers/android/binder.c
544
if (w)
drivers/android/binder.c
545
list_del_init(&w->entry);
drivers/android/binder.c
546
return w;
drivers/android/binder.c
6435
struct binder_work *w, bool hash_ptrs)
drivers/android/binder.c
6440
switch (w->type) {
drivers/android/binder.c
6442
t = container_of(w, struct binder_transaction, work);
drivers/android/binder.c
6448
w, struct binder_error, work);
drivers/android/binder.c
6457
node = container_of(w, struct binder_node, work);
drivers/android/binder.c
6484
seq_printf(m, "%sunknown work: type %d\n", prefix, w->type);
drivers/android/binder.c
6494
struct binder_work *w;
drivers/android/binder.c
6519
list_for_each_entry(w, &thread->todo, entry) {
drivers/android/binder.c
6522
w, hash_ptrs);
drivers/android/binder.c
6533
struct binder_work *w;
drivers/android/binder.c
6555
list_for_each_entry(w, &node->async_todo, entry)
drivers/android/binder.c
6558
w, hash_ptrs);
drivers/android/binder.c
6623
struct binder_work *w;
drivers/android/binder.c
6662
list_for_each_entry(w, &proc->todo, entry)
drivers/android/binder.c
6664
" pending transaction", w,
drivers/android/binder.c
6666
list_for_each_entry(w, &proc->delivered_death, entry) {
drivers/android/binder.c
6670
list_for_each_entry(w, &proc->delivered_freeze, entry) {
drivers/android/binder.c
6786
struct binder_work *w;
drivers/android/binder.c
6837
list_for_each_entry(w, &proc->todo, entry) {
drivers/android/binder.c
6838
if (w->type == BINDER_WORK_TRANSACTION)
drivers/ata/pata_parport/kbic.c
26
#define j53(w) (((w >> 3) & 0x1f) | ((w >> 4) & 0xe0))
drivers/ata/sata_mv.c
1222
int b, w, o;
drivers/ata/sata_mv.c
1226
for (w = 0, o = 0; b < bytes && w < 4; w++) {
drivers/ata/sata_mv.c
1238
int b, w, o;
drivers/ata/sata_mv.c
1243
for (w = 0, o = 0; b < bytes && w < 4; w++) {
drivers/bcma/driver_pci.c
287
u32 w;
drivers/bcma/driver_pci.c
289
w = bcma_pcie_read(pc, BCMA_CORE_PCI_DLLP_PMTHRESHREG);
drivers/bcma/driver_pci.c
291
w |= BCMA_CORE_PCI_ASPMTIMER_EXTEND;
drivers/bcma/driver_pci.c
293
w &= ~BCMA_CORE_PCI_ASPMTIMER_EXTEND;
drivers/bcma/driver_pci.c
294
bcma_pcie_write(pc, BCMA_CORE_PCI_DLLP_PMTHRESHREG, w);
drivers/block/drbd/drbd_debugfs.c
252
list_for_each_entry(peer_req, lh, w.list) {
drivers/block/drbd/drbd_int.h
1791
drbd_queue_work(struct drbd_work_queue *q, struct drbd_work *w)
drivers/block/drbd/drbd_int.h
1795
list_add_tail(&w->list, &q->q);
drivers/block/drbd/drbd_int.h
1801
drbd_queue_work_if_unqueued(struct drbd_work_queue *q, struct drbd_work *w)
drivers/block/drbd/drbd_int.h
1805
if (list_empty_careful(&w->list))
drivers/block/drbd/drbd_int.h
1806
list_add_tail(&w->list, &q->q);
drivers/block/drbd/drbd_int.h
190
struct drbd_work w;
drivers/block/drbd/drbd_int.h
202
struct drbd_work w;
drivers/block/drbd/drbd_int.h
2183
&device->bm_io_work.w);
drivers/block/drbd/drbd_int.h
318
struct drbd_work w;
drivers/block/drbd/drbd_int.h
546
struct drbd_work w;
drivers/block/drbd/drbd_main.c
1968
INIT_LIST_HEAD(&device->bm_io_work.w.list);
drivers/block/drbd/drbd_main.c
1976
device->bm_io_work.w.cb = w_bitmap_io;
drivers/block/drbd/drbd_main.c
2356
struct drbd_work w;
drivers/block/drbd/drbd_main.c
2360
static int w_complete(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_main.c
2363
container_of(w, struct completion_work, w);
drivers/block/drbd/drbd_main.c
2373
completion_work.w.cb = w_complete;
drivers/block/drbd/drbd_main.c
2375
drbd_queue_work(work_queue, &completion_work.w);
drivers/block/drbd/drbd_main.c
3425
static int w_bitmap_io(struct drbd_work *w, int unused)
drivers/block/drbd/drbd_main.c
3428
container_of(w, struct drbd_device, bm_io_work.w);
drivers/block/drbd/drbd_main.c
3486
D_ASSERT(device, list_empty(&device->bm_io_work.w.list));
drivers/block/drbd/drbd_main.c
3504
&device->bm_io_work.w);
drivers/block/drbd/drbd_main.c
56
static int w_bitmap_io(struct drbd_work *w, int unused);
drivers/block/drbd/drbd_receiver.c
1474
if (list_empty(&peer_req->w.list)) {
drivers/block/drbd/drbd_receiver.c
1476
list_add_tail(&peer_req->w.list, &device->active_ee);
drivers/block/drbd/drbd_receiver.c
1846
static int e_end_resync_block(struct drbd_work *w, int unused)
drivers/block/drbd/drbd_receiver.c
1849
container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_receiver.c
1887
peer_req->w.cb = e_end_resync_block;
drivers/block/drbd/drbd_receiver.c
1892
list_add_tail(&peer_req->w.list, &device->sync_ee);
drivers/block/drbd/drbd_receiver.c
1902
list_del(&peer_req->w.list);
drivers/block/drbd/drbd_receiver.c
2017
static int e_end_block(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_receiver.c
2020
container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_receiver.c
205
INIT_LIST_HEAD(&peer_req->w.list);
drivers/block/drbd/drbd_receiver.c
2060
static int e_send_ack(struct drbd_work *w, enum drbd_packet ack)
drivers/block/drbd/drbd_receiver.c
2063
container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_receiver.c
2073
static int e_send_superseded(struct drbd_work *w, int unused)
drivers/block/drbd/drbd_receiver.c
2075
return e_send_ack(w, P_SUPERSEDED);
drivers/block/drbd/drbd_receiver.c
2078
static int e_send_retry_write(struct drbd_work *w, int unused)
drivers/block/drbd/drbd_receiver.c
2081
container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_receiver.c
2084
return e_send_ack(w, connection->agreed_pro_version >= 100 ?
drivers/block/drbd/drbd_receiver.c
2131
list_for_each_entry(rs_req, &device->sync_ee, w.list) {
drivers/block/drbd/drbd_receiver.c
2312
peer_req->w.cb = superseded ? e_send_superseded :
drivers/block/drbd/drbd_receiver.c
2314
list_add_tail(&peer_req->w.list, &device->done_ee);
drivers/block/drbd/drbd_receiver.c
2412
peer_req->w.cb = e_end_block;
drivers/block/drbd/drbd_receiver.c
250
list_for_each_entry_safe(peer_req, t, &work_list, w.list) {
drivers/block/drbd/drbd_receiver.c
2501
list_add_tail(&peer_req->w.list, &device->active_ee);
drivers/block/drbd/drbd_receiver.c
2522
list_del(&peer_req->w.list);
drivers/block/drbd/drbd_receiver.c
2690
peer_req->w.cb = w_e_end_data_req;
drivers/block/drbd/drbd_receiver.c
2703
peer_req->w.cb = w_e_end_rsdata_req;
drivers/block/drbd/drbd_receiver.c
2725
peer_req->w.cb = w_e_end_csum_rs_req;
drivers/block/drbd/drbd_receiver.c
2733
peer_req->w.cb = w_e_end_ov_reply;
drivers/block/drbd/drbd_receiver.c
274
list_for_each_entry_safe(peer_req, t, &work_list, w.list) {
drivers/block/drbd/drbd_receiver.c
2757
peer_req->w.cb = w_e_end_ov_req;
drivers/block/drbd/drbd_receiver.c
278
err2 = peer_req->w.cb(&peer_req->w, !!err);
drivers/block/drbd/drbd_receiver.c
2792
list_add_tail(&peer_req->w.list, &device->read_ee);
drivers/block/drbd/drbd_receiver.c
2817
list_del(&peer_req->w.list);
drivers/block/drbd/drbd_receiver.c
4789
peer_req->w.cb = e_end_resync_block;
drivers/block/drbd/drbd_receiver.c
4795
list_add_tail(&peer_req->w.list, &device->sync_ee);
drivers/block/drbd/drbd_receiver.c
4803
list_del(&peer_req->w.list);
drivers/block/drbd/drbd_receiver.c
5697
dw->w.cb = w_ov_finished;
drivers/block/drbd/drbd_receiver.c
5699
drbd_queue_work(&peer_device->connection->sender_work, &dw->w);
drivers/block/drbd/drbd_req.c
47
INIT_LIST_HEAD(&req->w.list);
drivers/block/drbd/drbd_req.c
660
req->w.cb = w_send_read_req;
drivers/block/drbd/drbd_req.c
662
&req->w);
drivers/block/drbd/drbd_req.c
696
req->w.cb = w_send_dblock;
drivers/block/drbd/drbd_req.c
698
&req->w);
drivers/block/drbd/drbd_req.c
712
req->w.cb = w_send_out_of_sync;
drivers/block/drbd/drbd_req.c
714
&req->w);
drivers/block/drbd/drbd_req.c
824
req->w.cb = w_restart_disk_io;
drivers/block/drbd/drbd_req.c
826
&req->w);
drivers/block/drbd/drbd_req.c
831
if (!(req->rq_state & RQ_WRITE) && !req->w.cb) {
drivers/block/drbd/drbd_req.c
846
if (req->w.cb) {
drivers/block/drbd/drbd_req.c
849
&req->w);
drivers/block/drbd/drbd_state.c
1476
ascw->w.cb = w_after_state_ch;
drivers/block/drbd/drbd_state.c
1481
&ascw->w);
drivers/block/drbd/drbd_state.c
1489
static int w_after_state_ch(struct drbd_work *w, int unused)
drivers/block/drbd/drbd_state.c
1492
container_of(w, struct after_state_chg_work, w);
drivers/block/drbd/drbd_state.c
2038
struct drbd_work w;
drivers/block/drbd/drbd_state.c
2047
static int w_after_conn_state_ch(struct drbd_work *w, int unused)
drivers/block/drbd/drbd_state.c
2050
container_of(w, struct after_conn_state_chg_work, w);
drivers/block/drbd/drbd_state.c
23
struct drbd_work w;
drivers/block/drbd/drbd_state.c
2360
acscw->w.cb = w_after_conn_state_ch;
drivers/block/drbd/drbd_state.c
2364
drbd_queue_work(&connection->sender_work, &acscw->w);
drivers/block/drbd/drbd_state.c
279
static int w_after_state_ch(struct drbd_work *w, int unused);
drivers/block/drbd/drbd_worker.c
1038
int w_e_end_data_req(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1040
struct drbd_peer_request *peer_req = container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_worker.c
1098
int w_e_end_rsdata_req(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1100
struct drbd_peer_request *peer_req = container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_worker.c
1149
int w_e_end_csum_rs_req(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1151
struct drbd_peer_request *peer_req = container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_worker.c
1212
int w_e_end_ov_req(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1214
struct drbd_peer_request *peer_req = container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_worker.c
1270
int w_e_end_ov_reply(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1272
struct drbd_peer_request *peer_req = container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_worker.c
132
list_move_tail(&peer_req->w.list, &device->done_ee);
drivers/block/drbd/drbd_worker.c
1373
int w_send_write_hint(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1376
container_of(w, struct drbd_device, unplug_work);
drivers/block/drbd/drbd_worker.c
1405
int w_send_out_of_sync(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1407
struct drbd_request *req = container_of(w, struct drbd_request, w);
drivers/block/drbd/drbd_worker.c
1436
int w_send_dblock(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1438
struct drbd_request *req = container_of(w, struct drbd_request, w);
drivers/block/drbd/drbd_worker.c
1469
int w_send_read_req(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1471
struct drbd_request *req = container_of(w, struct drbd_request, w);
drivers/block/drbd/drbd_worker.c
1499
int w_restart_disk_io(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
1501
struct drbd_request *req = container_of(w, struct drbd_request, w);
drivers/block/drbd/drbd_worker.c
2155
struct drbd_work *w = NULL;
drivers/block/drbd/drbd_worker.c
2186
w = list_first_entry(&work_list, struct drbd_work, list);
drivers/block/drbd/drbd_worker.c
2187
list_del_init(&w->list);
drivers/block/drbd/drbd_worker.c
2188
update_worker_timing_details(connection, w->cb);
drivers/block/drbd/drbd_worker.c
2189
if (w->cb(w, connection->cstate < C_WF_REPORT_PARAMS) == 0)
drivers/block/drbd/drbd_worker.c
2202
w = list_first_entry(&work_list, struct drbd_work, list);
drivers/block/drbd/drbd_worker.c
2203
list_del_init(&w->list);
drivers/block/drbd/drbd_worker.c
2204
update_worker_timing_details(connection, w->cb);
drivers/block/drbd/drbd_worker.c
2205
w->cb(w, 1);
drivers/block/drbd/drbd_worker.c
338
static int w_e_send_csum(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
340
struct drbd_peer_request *peer_req = container_of(w, struct drbd_peer_request, w);
drivers/block/drbd/drbd_worker.c
402
peer_req->w.cb = w_e_send_csum;
drivers/block/drbd/drbd_worker.c
405
list_add_tail(&peer_req->w.list, &device->read_ee);
drivers/block/drbd/drbd_worker.c
417
list_del(&peer_req->w.list);
drivers/block/drbd/drbd_worker.c
426
int w_resync_timer(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
429
container_of(w, struct drbd_device, resync_work);
drivers/block/drbd/drbd_worker.c
819
int w_ov_finished(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
822
container_of(w, struct drbd_device_work, w);
drivers/block/drbd/drbd_worker.c
831
static int w_resync_finished(struct drbd_work *w, int cancel)
drivers/block/drbd/drbd_worker.c
834
container_of(w, struct drbd_device_work, w);
drivers/block/drbd/drbd_worker.c
876
dw->w.cb = w_resync_finished;
drivers/block/drbd/drbd_worker.c
878
drbd_queue_work(&connection->sender_work, &dw->w);
drivers/block/drbd/drbd_worker.c
89
list_del(&peer_req->w.list);
drivers/block/drbd/drbd_worker.c
96
drbd_queue_work(&peer_device->connection->sender_work, &peer_req->w);
drivers/block/mtip32xx/mtip32xx.h
180
struct mtip_work *w = (struct mtip_work *) work; \
drivers/block/mtip32xx/mtip32xx.h
181
mtip_workq_sdbfx(w->port, group, w->completed); \
drivers/block/zram/zram_drv.c
1377
static void zram_deferred_decompress(struct work_struct *w)
drivers/block/zram/zram_drv.c
1379
struct zram_rb_req *req = container_of(w, struct zram_rb_req, work);
drivers/block/zram/zram_drv.c
1464
static void zram_sync_read(struct work_struct *w)
drivers/block/zram/zram_drv.c
1466
struct zram_rb_req *req = container_of(w, struct zram_rb_req, work);
drivers/bus/mvebu-mbus.c
626
struct mbus_dram_window *w;
drivers/bus/mvebu-mbus.c
629
w = &mvebu_mbus_dram_info.cs[i];
drivers/bus/mvebu-mbus.c
630
base = w->base;
drivers/bus/mvebu-mbus.c
631
size = w->size;
drivers/bus/mvebu-mbus.c
657
w = &mvebu_mbus_dram_info_nooverlap.cs[cs_nooverlap++];
drivers/bus/mvebu-mbus.c
658
w->cs_index = i;
drivers/bus/mvebu-mbus.c
659
w->mbus_attr = 0xf & ~(1 << i);
drivers/bus/mvebu-mbus.c
661
w->mbus_attr |= ATTR_HW_COHERENCY;
drivers/bus/mvebu-mbus.c
662
w->base = base;
drivers/bus/mvebu-mbus.c
663
w->size = size;
drivers/bus/mvebu-mbus.c
690
struct mbus_dram_window *w;
drivers/bus/mvebu-mbus.c
692
w = &mvebu_mbus_dram_info.cs[cs++];
drivers/bus/mvebu-mbus.c
693
w->cs_index = i;
drivers/bus/mvebu-mbus.c
694
w->mbus_attr = 0xf & ~(1 << i);
drivers/bus/mvebu-mbus.c
696
w->mbus_attr |= ATTR_HW_COHERENCY;
drivers/bus/mvebu-mbus.c
697
w->base = base & DDR_BASE_CS_LOW_MASK;
drivers/bus/mvebu-mbus.c
698
w->size = (u64)(size | ~DDR_SIZE_MASK) + 1;
drivers/bus/mvebu-mbus.c
741
struct mbus_dram_window *w;
drivers/bus/mvebu-mbus.c
743
w = &mvebu_mbus_dram_info.cs[cs++];
drivers/bus/mvebu-mbus.c
744
w->cs_index = i;
drivers/bus/mvebu-mbus.c
745
w->mbus_attr = 0; /* CS address decoding done inside */
drivers/bus/mvebu-mbus.c
748
w->base = map & 0xff800000;
drivers/bus/mvebu-mbus.c
749
w->size = 0x100000 << (((map & 0x000f0000) >> 16) - 4);
drivers/char/dsp56k.c
214
put_user(dsp56k_host_interface.data.w[1], data+n++));
drivers/char/dsp56k.c
276
get_user(dsp56k_host_interface.data.w[1], data+n++));
drivers/char/hw_random/cctrng.c
315
static void cc_trng_compwork_handler(struct work_struct *w)
drivers/char/hw_random/cctrng.c
320
container_of(w, struct cctrng_drvdata, compwork);
drivers/char/hw_random/cctrng.c
448
static void cc_trng_startwork_handler(struct work_struct *w)
drivers/char/hw_random/cctrng.c
451
container_of(w, struct cctrng_drvdata, startwork);
drivers/char/hw_random/omap3-rom-rng.c
37
static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w)
drivers/char/ipmi/ipmi_msghandler.c
3824
struct ipmi_smi_watcher *w;
drivers/char/ipmi/ipmi_msghandler.c
3857
list_for_each_entry(w, &smi_watchers, link)
drivers/char/ipmi/ipmi_msghandler.c
3858
w->smi_gone(intf_num);
drivers/char/ipmi/ipmi_msghandler.c
830
struct ipmi_smi_watcher *w;
drivers/char/ipmi/ipmi_msghandler.c
832
list_for_each_entry(w, &smi_watchers, link) {
drivers/char/ipmi/ipmi_msghandler.c
833
if (try_module_get(w->owner)) {
drivers/char/ipmi/ipmi_msghandler.c
834
w->new_smi(i, dev);
drivers/char/ipmi/ipmi_msghandler.c
835
module_put(w->owner);
drivers/clk/bcm/clk-cygnus.c
16
#define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, }
drivers/clk/bcm/clk-ns2.c
14
#define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, }
drivers/clk/bcm/clk-nsp.c
14
#define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, }
drivers/clk/bcm/clk-sr.c
14
#define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, }
drivers/clk/davinci/pll.h
70
#define SYSCLK(i, n, p, w, f) \
drivers/clk/davinci/pll.h
75
.ratio_width = (w), \
drivers/clk/qcom/clk-alpha-pll.c
337
#define ALPHA_SHIFT(w) min(w, ALPHA_BITWIDTH)
drivers/clk/rockchip/clk.h
1002
#define MUX(_id, cname, pnames, f, o, s, w, mf) \
drivers/clk/rockchip/clk.h
1012
.mux_width = w, \
drivers/clk/rockchip/clk.h
1017
#define MUXTBL(_id, cname, pnames, f, o, s, w, mf, mt) \
drivers/clk/rockchip/clk.h
1027
.mux_width = w, \
drivers/clk/rockchip/clk.h
1033
#define MUXGRF(_id, cname, pnames, f, o, s, w, mf, gt) \
drivers/clk/rockchip/clk.h
1043
.mux_width = w, \
drivers/clk/rockchip/clk.h
1049
#define DIV(_id, cname, pname, f, o, s, w, df) \
drivers/clk/rockchip/clk.h
1059
.div_width = w, \
drivers/clk/rockchip/clk.h
1064
#define DIVTBL(_id, cname, pname, f, o, s, w, df, dt) \
drivers/clk/rockchip/clk.h
1074
.div_width = w, \
drivers/clk/rockchip/clk.h
1240
#define DIV_HALF(_id, cname, pname, f, o, s, w, df) \
drivers/clk/rockchip/clk.h
1250
.div_width = w, \
drivers/clk/samsung/clk.h
144
#define __MUX(_id, cname, pnames, o, s, w, f, mf) \
drivers/clk/samsung/clk.h
153
.width = w, \
drivers/clk/samsung/clk.h
157
#define MUX(_id, cname, pnames, o, s, w) \
drivers/clk/samsung/clk.h
158
__MUX(_id, cname, pnames, o, s, w, CLK_SET_RATE_NO_REPARENT, 0)
drivers/clk/samsung/clk.h
160
#define MUX_F(_id, cname, pnames, o, s, w, f, mf) \
drivers/clk/samsung/clk.h
161
__MUX(_id, cname, pnames, o, s, w, (f) | CLK_SET_RATE_NO_REPARENT, mf)
drivers/clk/samsung/clk.h
164
#define nMUX(_id, cname, pnames, o, s, w) \
drivers/clk/samsung/clk.h
165
__MUX(_id, cname, pnames, o, s, w, 0, 0)
drivers/clk/samsung/clk.h
167
#define nMUX_F(_id, cname, pnames, o, s, w, f, mf) \
drivers/clk/samsung/clk.h
168
__MUX(_id, cname, pnames, o, s, w, f, mf)
drivers/clk/samsung/clk.h
194
#define __DIV(_id, cname, pname, o, s, w, f, df, t) \
drivers/clk/samsung/clk.h
202
.width = w, \
drivers/clk/samsung/clk.h
207
#define DIV(_id, cname, pname, o, s, w) \
drivers/clk/samsung/clk.h
208
__DIV(_id, cname, pname, o, s, w, 0, 0, NULL)
drivers/clk/samsung/clk.h
210
#define DIV_F(_id, cname, pname, o, s, w, f, df) \
drivers/clk/samsung/clk.h
211
__DIV(_id, cname, pname, o, s, w, f, df, NULL)
drivers/clk/samsung/clk.h
213
#define DIV_T(_id, cname, pname, o, s, w, t) \
drivers/clk/samsung/clk.h
214
__DIV(_id, cname, pname, o, s, w, 0, 0, t)
drivers/clk/tegra/clk-pll.c
244
#define mask(w) ((1 << (w)) - 1)
drivers/clk/tegra/clk-tegra210.c
1398
#define mask(w) ((1 << (w)) - 1)
drivers/clk/tegra/clk-utils.c
10
#define div_mask(w) ((1 << (w)) - 1)
drivers/comedi/drivers/s626.h
612
#define S626_MAKE(x, w, p) (((x) & ((1 << (w)) - 1)) << (p))
drivers/comedi/drivers/s626.h
613
#define S626_UNMAKE(v, w, p) (((v) >> (p)) & ((1 << (w)) - 1))
drivers/cpuidle/coupled.c
270
int w = atomic_read(&coupled->ready_waiting_counts) & WAITING_MASK;
drivers/cpuidle/coupled.c
271
return w == coupled->online_count;
drivers/cpuidle/coupled.c
282
int w = atomic_read(&coupled->ready_waiting_counts) & WAITING_MASK;
drivers/cpuidle/coupled.c
283
return w == 0;
drivers/cpuidle/coupled.c
470
int w;
drivers/cpuidle/coupled.c
492
w = cpuidle_coupled_set_waiting(dev->cpu, coupled, next_state);
drivers/cpuidle/coupled.c
500
if (w == coupled->online_count) {
drivers/crypto/amcc/crypto4xx_alg.c
159
sa->sa_contents.w = SA_AES_CONTENTS | (keylen << 2);
drivers/crypto/amcc/crypto4xx_alg.c
32
sa->sa_command_0.w = 0;
drivers/crypto/amcc/crypto4xx_alg.c
385
sa->sa_contents.w = SA_AES_CCM_CONTENTS | (keylen << 2);
drivers/crypto/amcc/crypto4xx_alg.c
52
sa->sa_command_1.w = 0;
drivers/crypto/amcc/crypto4xx_alg.c
534
sa->sa_contents.w = SA_AES_GCM_CONTENTS | (keylen << 2);
drivers/crypto/amcc/crypto4xx_core.c
100
writel(part_ring_size.w, dev->ce_base + CRYPTO4XX_PART_RING_SIZE);
drivers/crypto/amcc/crypto4xx_core.c
102
io_threshold.w = 0;
drivers/crypto/amcc/crypto4xx_core.c
1041
((READ_ONCE(pd->pd_ctl.w) &
drivers/crypto/amcc/crypto4xx_core.c
105
writel(io_threshold.w, dev->ce_base + CRYPTO4XX_IO_THRESHOLD);
drivers/crypto/amcc/crypto4xx_core.c
119
writel(pe_dma_cfg.w, dev->ce_base + CRYPTO4XX_PE_DMA_CFG);
drivers/crypto/amcc/crypto4xx_core.c
62
pe_dma_cfg.w = 0;
drivers/crypto/amcc/crypto4xx_core.c
71
writel(pe_dma_cfg.w, dev->ce_base + CRYPTO4XX_PE_DMA_CFG);
drivers/crypto/amcc/crypto4xx_core.c
78
writel(pe_dma_cfg.w, dev->ce_base + CRYPTO4XX_PE_DMA_CFG);
drivers/crypto/amcc/crypto4xx_core.c
86
ring_size.w = 0;
drivers/crypto/amcc/crypto4xx_core.c
881
pd->pd_ctl.w = PD_CTL_HOST_READY |
drivers/crypto/amcc/crypto4xx_core.c
884
pd->pd_ctl_len.w = 0x00400000 | (assoclen + datalen);
drivers/crypto/amcc/crypto4xx_core.c
89
writel(ring_size.w, dev->ce_base + CRYPTO4XX_RING_SIZE);
drivers/crypto/amcc/crypto4xx_core.c
90
ring_ctrl.w = 0;
drivers/crypto/amcc/crypto4xx_core.c
91
writel(ring_ctrl.w, dev->ce_base + CRYPTO4XX_RING_CTRL);
drivers/crypto/amcc/crypto4xx_core.c
97
part_ring_size.w = 0;
drivers/crypto/amcc/crypto4xx_reg_def.h
161
u32 w;
drivers/crypto/amcc/crypto4xx_reg_def.h
173
u32 w;
drivers/crypto/amcc/crypto4xx_reg_def.h
185
u32 w;
drivers/crypto/amcc/crypto4xx_reg_def.h
196
u32 w;
drivers/crypto/amcc/crypto4xx_reg_def.h
207
u32 w;
drivers/crypto/amcc/crypto4xx_reg_def.h
256
u32 w;
drivers/crypto/amcc/crypto4xx_reg_def.h
270
u32 w;
drivers/crypto/amcc/crypto4xx_sa.h
105
u32 w;
drivers/crypto/amcc/crypto4xx_sa.h
166
u32 w;
drivers/crypto/amcc/crypto4xx_sa.h
41
u32 w;
drivers/crypto/caam/pdb.h
473
u8 *w; /* or Wx,y */
drivers/crypto/ccree/cc_request_mgr.c
187
int i, w;
drivers/crypto/ccree/cc_request_mgr.c
197
for (w = 0; w <= 5; w++)
drivers/crypto/ccree/cc_request_mgr.c
198
writel_relaxed(seq[i].word[w], reg);
drivers/crypto/chelsio/chcr_algo.h
393
static inline u32 aes_ks_subword(const u32 w)
drivers/crypto/chelsio/chcr_algo.h
397
*(u32 *)(&bytes[0]) = w;
drivers/crypto/hifn_795x.c
1352
static int hifn_cipher_walk_init(struct hifn_cipher_walk *w,
drivers/crypto/hifn_795x.c
1358
sg_init_table(w->cache, num);
drivers/crypto/hifn_795x.c
1360
w->num = 0;
drivers/crypto/hifn_795x.c
1368
s = &w->cache[i];
drivers/crypto/hifn_795x.c
1371
w->num++;
drivers/crypto/hifn_795x.c
1377
static void hifn_cipher_walk_exit(struct hifn_cipher_walk *w)
drivers/crypto/hifn_795x.c
1381
for (i = 0; i < w->num; ++i) {
drivers/crypto/hifn_795x.c
1382
struct scatterlist *s = &w->cache[i];
drivers/crypto/hifn_795x.c
1389
w->num = 0;
drivers/crypto/hifn_795x.c
1422
struct hifn_cipher_walk *w)
drivers/crypto/hifn_795x.c
1431
if (idx >= w->num && (w->flags & ASYNC_FLAGS_MISALIGNED))
drivers/crypto/hifn_795x.c
1445
t = &w->cache[idx];
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
355
u64 w[KMB_ECC_VLI_MAX_DIGITS] = { 0 };
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
383
w[0] = POW_CUBE;
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
385
rc = kmb_ecc_do_scalar_op(ecc_dev, xxx, pk->x, w, curve, pk->ndigits,
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
391
rc = kmb_ecc_do_scalar_op(ecc_dev, w, curve->a, pk->x, curve,
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
398
rc = kmb_ecc_do_scalar_op(ecc_dev, w, w, curve->b, curve,
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
405
rc = kmb_ecc_do_scalar_op(ecc_dev, w, xxx, w, curve, pk->ndigits,
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
411
rc = vli_cmp(yy, w, pk->ndigits);
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
418
memzero_explicit(w, sizeof(w));
drivers/cxl/core/port.c
2283
static void cxl_bus_rescan_queue(struct work_struct *w)
drivers/dma/imx-dma.c
136
unsigned int w;
drivers/dma/imx-dma.c
505
(imxdma->slots_2d[i].wsr != d->w)))
drivers/dma/imx-dma.c
515
imxdma->slots_2d[slot].wsr = d->w;
drivers/dma/imx-dma.c
526
imx_dmav1_writel(imxdma, d->w, DMA_WSRA);
drivers/dma/imx-dma.c
532
imx_dmav1_writel(imxdma, d->w, DMA_WSRB);
drivers/dma/imx-dma.c
964
desc->w = xt->sgl[0].icg + desc->x;
drivers/dma/mv_xor.h
69
#define WINDOW_BASE(w) (0x50 + ((w) << 2))
drivers/dma/mv_xor.h
70
#define WINDOW_SIZE(w) (0x70 + ((w) << 2))
drivers/dma/mv_xor.h
71
#define WINDOW_REMAP_HIGH(w) (0x90 + ((w) << 2))
drivers/edac/edac_device.h
219
#define to_edac_mem_ctl_work(w) \
drivers/edac/edac_device.h
220
container_of(w, struct mem_ctl_info, work)
drivers/edac/edac_device.h
222
#define to_edac_device_ctl_work(w) \
drivers/edac/edac_device.h
223
container_of(w,struct edac_device_ctl_info,work)
drivers/edac/edac_pci.h
90
#define to_edac_pci_ctl_work(w) \
drivers/edac/edac_pci.h
91
container_of(w, struct edac_pci_ctl_info,work)
drivers/edac/i5100_edac.c
681
u16 w;
drivers/edac/i5100_edac.c
683
pci_read_config_word(pdev, addr, &w);
drivers/edac/i5100_edac.c
685
priv->mtr[i][j].present = i5100_mtr_present(w);
drivers/edac/i5100_edac.c
686
priv->mtr[i][j].ethrottle = i5100_mtr_ethrottle(w);
drivers/edac/i5100_edac.c
687
priv->mtr[i][j].width = 4 + 4 * i5100_mtr_width(w);
drivers/edac/i5100_edac.c
688
priv->mtr[i][j].numbank = 2 + i5100_mtr_numbank(w);
drivers/edac/i5100_edac.c
689
priv->mtr[i][j].numrow = 13 + i5100_mtr_numrow(w);
drivers/edac/i5100_edac.c
690
priv->mtr[i][j].numcol = 10 + i5100_mtr_numcol(w);
drivers/edac/i5100_edac.c
703
u16 w;
drivers/edac/i5100_edac.c
705
pci_read_config_word(priv->mc, I5100_SPDDATA, &w);
drivers/edac/i5100_edac.c
706
if (i5100_spddata_busy(w))
drivers/edac/i5100_edac.c
716
pci_read_config_word(priv->mc, I5100_SPDDATA, &w);
drivers/edac/i5100_edac.c
717
if (!i5100_spddata_busy(w))
drivers/edac/i5100_edac.c
722
if (!i5100_spddata_rdo(w) || i5100_spddata_sbe(w))
drivers/edac/i5100_edac.c
725
*byte = i5100_spddata_data(w);
drivers/edac/i5100_edac.c
792
u16 w;
drivers/edac/i5100_edac.c
798
pci_read_config_word(pdev, I5100_TOLM, &w);
drivers/edac/i5100_edac.c
799
priv->tolm = (u64) i5100_tolm_tolm(w) * 256 * 1024 * 1024;
drivers/edac/i5100_edac.c
801
pci_read_config_word(pdev, I5100_MIR0, &w);
drivers/edac/i5100_edac.c
802
priv->mir[0].limit = (u64) i5100_mir_limit(w) << 28;
drivers/edac/i5100_edac.c
803
priv->mir[0].way[1] = i5100_mir_way1(w);
drivers/edac/i5100_edac.c
804
priv->mir[0].way[0] = i5100_mir_way0(w);
drivers/edac/i5100_edac.c
806
pci_read_config_word(pdev, I5100_MIR1, &w);
drivers/edac/i5100_edac.c
807
priv->mir[1].limit = (u64) i5100_mir_limit(w) << 28;
drivers/edac/i5100_edac.c
808
priv->mir[1].way[1] = i5100_mir_way1(w);
drivers/edac/i5100_edac.c
809
priv->mir[1].way[0] = i5100_mir_way0(w);
drivers/edac/i5100_edac.c
811
pci_read_config_word(pdev, I5100_AMIR_0, &w);
drivers/edac/i5100_edac.c
812
priv->amir[0] = w;
drivers/edac/i5100_edac.c
813
pci_read_config_word(pdev, I5100_AMIR_1, &w);
drivers/edac/i5100_edac.c
814
priv->amir[1] = w;
drivers/edac/igen6_edac.c
712
u32 w = dimm_l ? MAD_DIMM_CH_DLW(mad_dimm) :
drivers/edac/igen6_edac.c
715
switch (w) {
drivers/firewire/sbp2.c
1090
unsigned int w = sbp2_param_workarounds;
drivers/firewire/sbp2.c
1092
if (w)
drivers/firewire/sbp2.c
1097
if (w & SBP2_WORKAROUND_OVERRIDE)
drivers/firewire/sbp2.c
1110
w |= sbp2_workarounds_table[i].workarounds;
drivers/firewire/sbp2.c
1114
if (w)
drivers/firewire/sbp2.c
1117
w, firmware_revision, model);
drivers/firewire/sbp2.c
1118
tgt->workarounds = w;
drivers/firmware/arm_scmi/driver.c
2021
#define SCMI_PROTO_FC_RING_DB(w) \
drivers/firmware/arm_scmi/driver.c
2023
u##w val = 0; \
drivers/firmware/arm_scmi/driver.c
2026
val = ioread##w(db->addr) & db->mask; \
drivers/firmware/arm_scmi/driver.c
2027
iowrite##w((u##w)db->set | val, db->addr); \
drivers/firmware/efi/libstub/gop.c
58
u32 w, h, d = 0;
drivers/firmware/efi/libstub/gop.c
63
w = simple_strtoull(option, &option, 10);
drivers/firmware/efi/libstub/gop.c
83
cmdline.res.width = w;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
404
int w;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
424
if (common_modes[i].w > 1024 ||
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
429
if (common_modes[i].w > native_mode->hdisplay ||
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
431
(common_modes[i].w == native_mode->hdisplay &&
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
436
mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
28
#define work_to_evf_mgr(w, name) container_of(w, struct amdgpu_eviction_fence_mgr, name)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
33
#define work_to_uq_mgr(w, name) container_of(w, struct amdgpu_userq_mgr, name)
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
212
int w;
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
240
mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
2289
int w = amdgpu_crtc->cursor_width;
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
2311
((w - 1) << 16) | (amdgpu_crtc->cursor_height - 1));
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8664
int w;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8701
if (common_modes[i].w > native_mode->hdisplay ||
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8703
(common_modes[i].w == native_mode->hdisplay &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8708
if (common_modes[i].w == curmode->hdisplay &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8719
common_modes[i].name, common_modes[i].w,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8932
connector, common_modes[i].w, common_modes[i].h);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1057
payload->cursor_rect.width = hubp->cur_rect.w;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
319
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l,
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
340
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
350
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
351
p = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
352
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
356
if ((ix % w) == 0 && p != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
343
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l,
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
364
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
374
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
375
p = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
376
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
380
if ((ix % w) == 0 && p != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
514
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, S, ix, wx, p, l0, a, ax, l,
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
535
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
545
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
546
p = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
547
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
551
if ((ix % w) == 0 && p != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
619
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, P, l0, a, ax, L,
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
644
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
654
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
655
P = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
656
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
660
if ((ix % w) == 0 && P != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
690
unsigned int pixelsPerClock = 0, lstall, D, initalXmitDelay, w, s, ix, wx, P, l0, a, ax, L, Delay, pixels;
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
714
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
724
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
725
P = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
726
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
730
if ((ix % w) == 0 && P != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
708
unsigned int pixelsPerClock = 0, lstall, D, initalXmitDelay, w, s, ix, wx, P, l0, a, ax, L, Delay, pixels;
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
732
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
742
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
743
P = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
744
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
748
if ((ix % w) == 0 && P != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
53
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, L,
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
76
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
86
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
87
p = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
88
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
92
if ((ix % w) == 0 && p != 0)
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
859
dml_uint_t pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, L,
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
884
w = sliceWidth / pixelsPerClock;
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
894
wx = (w + 2) / 3;
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
895
p = 3 * wx - w;
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
896
l0 = ix / w;
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
900
if ((ix % w) == 0 && p != 0)
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.c
141
dml_float_t dml_min4(dml_float_t x, dml_float_t y, dml_float_t z, dml_float_t w)
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.c
143
return dml_min(dml_min(dml_min(x, y), z), w);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.h
41
__DML_DLL_EXPORT__ dml_float_t dml_min4(dml_float_t x, dml_float_t y, dml_float_t z, dml_float_t w);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
1108
hubp->cur_rect.w = param->stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
645
hubp->cur_rect.w = attr->width;
drivers/gpu/drm/amd/display/dc/hubp/dcn32/dcn32_hubp.c
173
hubp->cur_rect.w = attr->width;
drivers/gpu/drm/amd/display/dc/inc/hw/cursor_reg_cache.h
71
uint32_t w;
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
844
u32 w = dflow->in_w;
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
856
swap(w, h);
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
858
dflow->en_scaling = (w != dflow->out_w) || (h != dflow->out_h);
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
862
dflow->en_img_enhancement = dflow->out_w >= 2 * w ||
drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c
95
int w = mode->hdisplay, h = mode->vdisplay;
drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c
97
if ((w < mode_config->min_width) || (w > mode_config->max_width))
drivers/gpu/drm/arm/malidp_hw.c
417
static int malidp500_rotmem_required(struct malidp_hw_device *hwdev, u16 w,
drivers/gpu/drm/arm/malidp_hw.c
427
return w * bpp;
drivers/gpu/drm/arm/malidp_hw.c
514
int num_planes, u16 w, u16 h, u32 fmt_id,
drivers/gpu/drm/arm/malidp_hw.c
545
malidp_hw_write(hwdev, MALIDP_DE_H_ACTIVE(w) | MALIDP_DE_V_ACTIVE(h),
drivers/gpu/drm/arm/malidp_hw.c
759
static int malidp550_rotmem_required(struct malidp_hw_device *hwdev, u16 w,
drivers/gpu/drm/arm/malidp_hw.c
783
return w * bytes_per_column;
drivers/gpu/drm/arm/malidp_hw.c
786
static int malidp650_rotmem_required(struct malidp_hw_device *hwdev, u16 w,
drivers/gpu/drm/arm/malidp_hw.c
803
return w * bytes_per_column;
drivers/gpu/drm/arm/malidp_hw.c
855
int num_planes, u16 w, u16 h, u32 fmt_id,
drivers/gpu/drm/arm/malidp_hw.c
882
malidp_hw_write(hwdev, MALIDP_DE_H_ACTIVE(w) | MALIDP_DE_V_ACTIVE(h),
drivers/gpu/drm/arm/malidp_hw.h
183
int (*rotmem_required)(struct malidp_hw_device *hwdev, u16 w, u16 h,
drivers/gpu/drm/arm/malidp_hw.h
204
s32 *pitches, int num_planes, u16 w, u16 h, u32 fmt_id,
drivers/gpu/drm/arm/malidp_mw.c
51
int w = mode->hdisplay, h = mode->vdisplay;
drivers/gpu/drm/arm/malidp_mw.c
53
if ((w < mode_config->min_width) || (w > mode_config->max_width))
drivers/gpu/drm/armada/armada_crtc.c
605
uint32_t xoff, xscr, w = dcrtc->cursor_w, s;
drivers/gpu/drm/armada/armada_crtc.c
616
w -= min(xoff, w);
drivers/gpu/drm/armada/armada_crtc.c
617
} else if (dcrtc->cursor_x + w > dcrtc->crtc.mode.hdisplay) {
drivers/gpu/drm/armada/armada_crtc.c
620
w = max_t(int, dcrtc->crtc.mode.hdisplay - dcrtc->cursor_x, 0);
drivers/gpu/drm/armada/armada_crtc.c
647
if (!dcrtc->cursor_obj || !h || !w) {
drivers/gpu/drm/armada/armada_crtc.c
670
if (dcrtc->cursor_hw_sz != (h << 16 | w)) {
drivers/gpu/drm/armada/armada_crtc.c
683
armada_load_cursor_argb(dcrtc->base, pix, s, w, h);
drivers/gpu/drm/armada/armada_crtc.c
689
dcrtc->cursor_hw_sz = h << 16 | w;
drivers/gpu/drm/armada/armada_crtc.c
703
struct drm_file *file, uint32_t handle, uint32_t w, uint32_t h)
drivers/gpu/drm/armada/armada_crtc.c
713
if (handle && w > 0 && h > 0) {
drivers/gpu/drm/armada/armada_crtc.c
715
if (w > 64 || h > 64 || (w > 32 && h > 32))
drivers/gpu/drm/armada/armada_crtc.c
728
if (obj->obj.size < w * h * 4) {
drivers/gpu/drm/armada/armada_crtc.c
741
dcrtc->cursor_w = w;
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h
116
#define ATMEL_HLCDC_LAYER_DISC_SIZE(w, h) (((w) - 1) | (((h) - 1) << 16))
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h
95
#define ATMEL_HLCDC_LAYER_SIZE(w, h) (((w) - 1) | (((h) - 1) << 16))
drivers/gpu/drm/display/drm_dp_mst_topology.c
522
struct drm_dp_remote_dpcd_write *w =
drivers/gpu/drm/display/drm_dp_mst_topology.c
525
w->port_number = (buf[idx] >> 4) & 0xf;
drivers/gpu/drm/display/drm_dp_mst_topology.c
527
w->dpcd_address = (buf[idx] << 16) & 0xf0000;
drivers/gpu/drm/display/drm_dp_mst_topology.c
528
w->dpcd_address |= (buf[++idx] << 8) & 0xff00;
drivers/gpu/drm/display/drm_dp_mst_topology.c
529
w->dpcd_address |= buf[++idx] & 0xff;
drivers/gpu/drm/display/drm_dp_mst_topology.c
531
w->num_bytes = buf[++idx];
drivers/gpu/drm/display/drm_dp_mst_topology.c
533
w->bytes = kmemdup(&buf[++idx], w->num_bytes,
drivers/gpu/drm/display/drm_dp_mst_topology.c
535
if (!w->bytes)
drivers/gpu/drm/display/drm_dp_mst_topology.c
578
struct drm_dp_remote_i2c_write *w = &req->u.i2c_write;
drivers/gpu/drm/display/drm_dp_mst_topology.c
580
w->port_number = (buf[idx] >> 4) & 0xf;
drivers/gpu/drm/display/drm_dp_mst_topology.c
581
w->write_i2c_device_id = buf[++idx] & 0x7f;
drivers/gpu/drm/display/drm_dp_mst_topology.c
582
w->num_bytes = buf[++idx];
drivers/gpu/drm/display/drm_dp_mst_topology.c
583
w->bytes = kmemdup(&buf[++idx], w->num_bytes,
drivers/gpu/drm/display/drm_dp_mst_topology.c
585
if (!w->bytes)
drivers/gpu/drm/drm_edid.c
3465
int w, h;
drivers/gpu/drm/drm_edid.c
3480
if ((mode->hdisplay == cea_interlaced[i].w) &&
drivers/gpu/drm/drm_edid.c
3750
newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0);
drivers/gpu/drm/drm_edid.c
3779
newmode = drm_gtf2_mode(dev, drm_edid, m->w, m->h, m->r);
drivers/gpu/drm/drm_edid.c
3809
newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0);
drivers/gpu/drm/drm_edid.c
3897
est3_modes[m].w,
drivers/gpu/drm/drm_edid.c
689
short w;
drivers/gpu/drm/drm_edid.c
7501
u16 w, h;
drivers/gpu/drm/drm_edid.c
7506
w = tile->tile_size[0] | tile->tile_size[1] << 8;
drivers/gpu/drm/drm_edid.c
7522
connector->tile_h_size = w + 1;
drivers/gpu/drm/drm_flip_work.c
102
static void flip_worker(struct work_struct *w)
drivers/gpu/drm/drm_flip_work.c
104
struct drm_flip_work *work = container_of(w, struct drm_flip_work, worker);
drivers/gpu/drm/drm_framebuffer.c
383
static void drm_mode_rmfb_work_fn(struct work_struct *w)
drivers/gpu/drm/drm_framebuffer.c
385
struct drm_mode_rmfb_work *arg = container_of(w, typeof(*arg), work);
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
419
val = COORDINATE_X(state->crtc.x + state->crtc.w - 1) |
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
426
val = COORDINATE_X(state->crtc.x + state->crtc.w - 1) |
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
445
val = BIT_VAL(pitch - state->crtc.w * cpp, 27, 14)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
446
| BIT_VAL(state->crtc.w * cpp, 13, 0);
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
448
val = BIT_VAL(pitch - state->crtc.w * cpp, 29, 15)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
449
| BIT_VAL(state->crtc.w * cpp, 14, 0);
drivers/gpu/drm/exynos/exynos7_drm_decon.c
442
state->crtc.w, state->crtc.h);
drivers/gpu/drm/exynos/exynos7_drm_decon.c
448
last_x = state->crtc.x + state->crtc.w;
drivers/gpu/drm/exynos/exynos_drm_drv.h
45
unsigned int w, h;
drivers/gpu/drm/exynos/exynos_drm_fimc.c
475
h2 = real_width - buf->rect.w - buf->rect.x;
drivers/gpu/drm/exynos/exynos_drm_fimc.c
480
buf->rect.x, buf->rect.y, buf->rect.w, buf->rect.h,
drivers/gpu/drm/exynos/exynos_drm_fimc.c
518
buf->rect.y, buf->rect.w, buf->rect.h);
drivers/gpu/drm/exynos/exynos_drm_fimc.c
524
cfg |= (EXYNOS_CIREAL_ISIZE_WIDTH(buf->rect.w) |
drivers/gpu/drm/exynos/exynos_drm_fimc.c
749
src_h = src->w;
drivers/gpu/drm/exynos/exynos_drm_fimc.c
751
src_w = src->w;
drivers/gpu/drm/exynos/exynos_drm_fimc.c
757
dst_h = dst->w;
drivers/gpu/drm/exynos/exynos_drm_fimc.c
759
dst_w = dst->w;
drivers/gpu/drm/exynos/exynos_drm_fimc.c
861
buf->rect.w, buf->rect.h);
drivers/gpu/drm/exynos/exynos_drm_fimc.c
882
EXYNOS_CITRGFMT_TARGETVSIZE(buf->rect.w));
drivers/gpu/drm/exynos/exynos_drm_fimc.c
884
cfg |= (EXYNOS_CITRGFMT_TARGETHSIZE(buf->rect.w) |
drivers/gpu/drm/exynos/exynos_drm_fimc.c
889
cfg = EXYNOS_CITAREA_TARGET_AREA(buf->rect.w * buf->rect.h);
drivers/gpu/drm/exynos/exynos_drm_fimd.c
865
state->crtc.w, state->crtc.h);
drivers/gpu/drm/exynos/exynos_drm_fimd.c
868
buf_offsize = pitch - (state->crtc.w * cpp);
drivers/gpu/drm/exynos/exynos_drm_fimd.c
869
line_size = state->crtc.w * cpp;
drivers/gpu/drm/exynos/exynos_drm_fimd.c
883
last_x = state->crtc.x + state->crtc.w;
drivers/gpu/drm/exynos/exynos_drm_fimd.c
904
val = state->crtc.w * state->crtc.h;
drivers/gpu/drm/exynos/exynos_drm_fimd.c
911
fimd_win_set_pixfmt(ctx, win, fb, state->src.w);
drivers/gpu/drm/exynos/exynos_drm_gsc.c
576
cfg = (GSC_CROPPED_WIDTH(buf->rect.w) |
drivers/gpu/drm/exynos/exynos_drm_gsc.c
593
if (buf->rect.w >= GSC_WIDTH_ITU_709)
drivers/gpu/drm/exynos/exynos_drm_gsc.c
751
src_w = src->w;
drivers/gpu/drm/exynos/exynos_drm_gsc.c
756
dst_h = dst->w;
drivers/gpu/drm/exynos/exynos_drm_gsc.c
758
dst_w = dst->w;
drivers/gpu/drm/exynos/exynos_drm_gsc.c
878
GSC_SCALED_HEIGHT(buf->rect.w));
drivers/gpu/drm/exynos/exynos_drm_gsc.c
880
cfg = (GSC_SCALED_WIDTH(buf->rect.w) |
drivers/gpu/drm/exynos/exynos_drm_gsc.c
894
if (buf->rect.w >= GSC_WIDTH_ITU_709)
drivers/gpu/drm/exynos/exynos_drm_ipp.c
271
task->src.rect.w = task->dst.rect.w = UINT_MAX;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
498
if (!__size_limit_check(buf->rect.w, lh) ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
539
dw = (!swap) ? dst->w : dst->h;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
540
dh = (!swap) ? dst->h : dst->w;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
542
if (!__scale_limit_check(src->w, dw, lh->min, lh->max) ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
615
if (src->rect.w == UINT_MAX)
drivers/gpu/drm/exynos/exynos_drm_ipp.c
616
src->rect.w = src->buf.width;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
619
if (dst->rect.w == UINT_MAX)
drivers/gpu/drm/exynos/exynos_drm_ipp.c
620
dst->rect.w = dst->buf.width;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
624
if (src->rect.x + src->rect.w > (src->buf.width) ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
626
dst->rect.x + dst->rect.w > (dst->buf.width) ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
634
if ((!swap && (src->rect.w != dst->rect.w ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
636
(swap && (src->rect.w != dst->rect.h ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
637
src->rect.h != dst->rect.w)))
drivers/gpu/drm/exynos/exynos_drm_plane.c
110
exynos_state->src.w = (actual_w * exynos_state->h_ratio) >> 16;
drivers/gpu/drm/exynos/exynos_drm_plane.c
116
exynos_state->crtc.w = actual_w;
drivers/gpu/drm/exynos/exynos_drm_plane.c
122
exynos_state->crtc.w, exynos_state->crtc.h);
drivers/gpu/drm/exynos/exynos_drm_plane.c
211
if (state->src.w == state->crtc.w)
drivers/gpu/drm/exynos/exynos_drm_rotator.c
152
ROT_SRC_CROP_SIZE_W(buf->rect.w);
drivers/gpu/drm/exynos/exynos_drm_scaler.c
201
val = SCALER_SRC_WH_SET_WIDTH(src_pos->w);
drivers/gpu/drm/exynos/exynos_drm_scaler.c
248
val = SCALER_DST_WH_SET_WIDTH(dst_pos->w);
drivers/gpu/drm/exynos/exynos_drm_scaler.c
271
h_ratio = (src_pos->h << 16) / dst_pos->w;
drivers/gpu/drm/exynos/exynos_drm_scaler.c
272
v_ratio = (src_pos->w << 16) / dst_pos->h;
drivers/gpu/drm/exynos/exynos_drm_scaler.c
274
h_ratio = (src_pos->w << 16) / dst_pos->w;
drivers/gpu/drm/exynos/exynos_mixer.c
1052
u32 w = mode->hdisplay, h = mode->vdisplay;
drivers/gpu/drm/exynos/exynos_mixer.c
1055
w, h, drm_mode_vrefresh(mode),
drivers/gpu/drm/exynos/exynos_mixer.c
1061
if ((w >= 464 && w <= 720 && h >= 261 && h <= 576) ||
drivers/gpu/drm/exynos/exynos_mixer.c
1062
(w >= 1024 && w <= 1280 && h >= 576 && h <= 720) ||
drivers/gpu/drm/exynos/exynos_mixer.c
1063
(w >= 1664 && w <= 1920 && h >= 936 && h <= 1080))
drivers/gpu/drm/exynos/exynos_mixer.c
1066
if ((w == 1024 && h == 768) ||
drivers/gpu/drm/exynos/exynos_mixer.c
1067
(w == 1366 && h == 768) ||
drivers/gpu/drm/exynos/exynos_mixer.c
1068
(w == 1280 && h == 1024))
drivers/gpu/drm/exynos/exynos_mixer.c
563
vp_reg_write(ctx, VP_SRC_WIDTH, state->src.w);
drivers/gpu/drm/exynos/exynos_mixer.c
566
vp_reg_write(ctx, VP_DST_WIDTH, state->crtc.w);
drivers/gpu/drm/exynos/exynos_mixer.c
666
val = MXR_GRP_WH_WIDTH(state->src.w);
drivers/gpu/drm/hyperv/hyperv_drm.h
50
u32 w, u32 h, u32 pitch);
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
81
static int hyperv_check_size(struct hyperv_drm_device *hv, int w, int h,
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
84
u32 pitch = w * (hv->screen_depth / 8);
drivers/gpu/drm/hyperv/hyperv_drm_proto.c
276
u32 w, u32 h, u32 pitch)
drivers/gpu/drm/hyperv/hyperv_drm_proto.c
291
msg.situ.video_output[0].width_pixels = w;
drivers/gpu/drm/i915/display/i9xx_plane_regs.h
104
#define PRIM_WIDTH(w) REG_FIELD_PREP(PRIM_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/i9xx_plane_regs.h
69
#define DISP_WIDTH(w) REG_FIELD_PREP(DISP_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_color_regs.h
308
#define CGM_PIPE_DEGAMMA(pipe, i, w) _MMIO(_PIPE(pipe, _CGM_PIPE_A_DEGAMMA, _CGM_PIPE_B_DEGAMMA) + (i) * 8 + (w) * 4)
drivers/gpu/drm/i915/display/intel_color_regs.h
309
#define CGM_PIPE_GAMMA(pipe, i, w) _MMIO(_PIPE(pipe, _CGM_PIPE_A_GAMMA, _CGM_PIPE_B_GAMMA) + (i) * 8 + (w) * 4)
drivers/gpu/drm/i915/display/intel_cursor_regs.h
63
#define CURSOR_WIDTH(w) REG_FIELD_PREP(CURSOR_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_display_regs.h
1156
#define PS_WIN_XSIZE(w) REG_FIELD_PREP(PS_WIN_XSIZE_MASK, (w))
drivers/gpu/drm/i915/display/intel_display_regs.h
398
#define PIPESRC_WIDTH(w) REG_FIELD_PREP(PIPESRC_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_display_trace.h
503
int scaler_id, int x, int y, int w, int h),
drivers/gpu/drm/i915/display/intel_display_trace.h
504
TP_ARGS(plane, scaler_id, x, y, w, h),
drivers/gpu/drm/i915/display/intel_display_trace.h
514
__field(int, w)
drivers/gpu/drm/i915/display/intel_display_trace.h
530
__entry->w = w;
drivers/gpu/drm/i915/display/intel_display_trace.h
537
__entry->w, __entry->h, __entry->x, __entry->y)
drivers/gpu/drm/i915/display/intel_display_trace.h
542
int x, int y, int w, int h),
drivers/gpu/drm/i915/display/intel_display_trace.h
543
TP_ARGS(crtc, scaler_id, x, y, w, h),
drivers/gpu/drm/i915/display/intel_display_trace.h
553
__field(int, w)
drivers/gpu/drm/i915/display/intel_display_trace.h
565
__entry->w = w;
drivers/gpu/drm/i915/display/intel_display_trace.h
572
__entry->w, __entry->h, __entry->x, __entry->y)
drivers/gpu/drm/i915/display/intel_fb.c
954
static void intel_fb_plane_dims(const struct intel_framebuffer *fb, int color_plane, int *w, int *h)
drivers/gpu/drm/i915/display/intel_fb.c
966
*w = DIV_ROUND_UP(main_width, main_hsub * hsub);
drivers/gpu/drm/i915/display/intel_fbc.c
1278
unsigned int *w, unsigned int *h)
drivers/gpu/drm/i915/display/intel_fbc.c
1281
*w = 8192;
drivers/gpu/drm/i915/display/intel_fbc.c
1284
*w = 5120;
drivers/gpu/drm/i915/display/intel_fbc.c
1287
*w = 4096;
drivers/gpu/drm/i915/display/intel_fbc.c
1290
*w = 4096;
drivers/gpu/drm/i915/display/intel_fbc.c
1293
*w = 2048;
drivers/gpu/drm/i915/display/intel_fbc.c
1320
unsigned int *w, unsigned int *h)
drivers/gpu/drm/i915/display/intel_fbc.c
1323
*w = 5120;
drivers/gpu/drm/i915/display/intel_fbc.c
1326
*w = 4096;
drivers/gpu/drm/i915/display/intel_fbc.c
1329
*w = 4096;
drivers/gpu/drm/i915/display/intel_fbc.c
1332
*w = 2048;
drivers/gpu/drm/i915/display/intel_fbc.c
1340
unsigned int w, h, max_w, max_h;
drivers/gpu/drm/i915/display/intel_fbc.c
1344
w = drm_rect_width(&plane_state->uapi.src) >> 16;
drivers/gpu/drm/i915/display/intel_fbc.c
1347
return w <= max_w && h <= max_h;
drivers/gpu/drm/i915/display/intel_pfit_regs.h
59
#define PF_WIN_XSIZE(w) REG_FIELD_PREP(PF_WIN_XSIZE_MASK, (w))
drivers/gpu/drm/i915/display/intel_psr.c
502
__le16 w;
drivers/gpu/drm/i915/display/intel_psr.c
511
w = cpu_to_le16(4);
drivers/gpu/drm/i915/display/intel_psr.c
516
r = drm_dp_dpcd_read(&intel_dp->aux, DP_PSR2_SU_X_GRANULARITY, &w, sizeof(w));
drivers/gpu/drm/i915/display/intel_psr.c
517
if (r != sizeof(w))
drivers/gpu/drm/i915/display/intel_psr.c
524
if (r != sizeof(w) || w == 0)
drivers/gpu/drm/i915/display/intel_psr.c
525
w = cpu_to_le16(4);
drivers/gpu/drm/i915/display/intel_psr.c
537
connector->dp.psr_caps.su_w_granularity = le16_to_cpu(w);
drivers/gpu/drm/i915/display/intel_psr.c
581
u16 w;
drivers/gpu/drm/i915/display/intel_psr.c
586
w = 4;
drivers/gpu/drm/i915/display/intel_psr.c
595
w = le16_to_cpu(*(__le16 *)&connector->dp.panel_replay_caps.dpcd[INTEL_PR_DPCD_INDEX(DP_PANEL_REPLAY_CAP_X_GRANULARITY)]) ? : 4;
drivers/gpu/drm/i915/display/intel_psr.c
599
connector->dp.panel_replay_caps.su_w_granularity = w;
drivers/gpu/drm/i915/display/intel_sprite_regs.h
103
#define DVS_SRC_WIDTH(w) REG_FIELD_PREP(DVS_SRC_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_sprite_regs.h
167
#define SPRITE_WIDTH(w) REG_FIELD_PREP(SPRITE_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_sprite_regs.h
213
#define SPRITE_SRC_WIDTH(w) REG_FIELD_PREP(SPRITE_SRC_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_sprite_regs.h
286
#define SP_WIDTH(w) REG_FIELD_PREP(SP_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_sprite_regs.h
57
#define DVS_WIDTH(w) REG_FIELD_PREP(DVS_WIDTH_MASK, (w))
drivers/gpu/drm/i915/display/intel_tv.c
1754
u16 w, h;
drivers/gpu/drm/i915/display/intel_tv.c
1800
if (input->w > 1024 &&
drivers/gpu/drm/i915/display/intel_tv.c
1806
if (DISPLAY_VER(display) == 3 && input->w > 1024 &&
drivers/gpu/drm/i915/display/intel_tv.c
1827
intel_tv_scale_mode_horiz(mode, input->w, 0, 0);
drivers/gpu/drm/i915/display/skl_universal_plane.c
2012
int w = drm_rect_width(&plane_state->uapi.src) >> 16;
drivers/gpu/drm/i915/display/skl_universal_plane.c
2038
while ((*x + w) * cpp > plane_state->view.color_plane[0].mapping_stride) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
2063
int w = drm_rect_width(&plane_state->uapi.src) >> 16;
drivers/gpu/drm/i915/display/skl_universal_plane.c
2074
if (w > max_width || w < min_width || h > max_height || h < min_height) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
2078
w, h, min_width, min_height, max_width, max_height);
drivers/gpu/drm/i915/display/skl_universal_plane.c
2144
int w = drm_rect_width(&plane_state->uapi.src) >> 17;
drivers/gpu/drm/i915/display/skl_universal_plane.c
2149
if (w > max_width || w < min_width || h > max_height || h < min_height) {
drivers/gpu/drm/i915/display/skl_universal_plane.c
2153
w, h, min_width, min_height, max_width, max_height);
drivers/gpu/drm/i915/display/skl_universal_plane_regs.h
134
#define PLANE_WIDTH(w) REG_FIELD_PREP(PLANE_WIDTH_MASK, (w))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1090
struct i915_request *w =
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1091
container_of(p->waiter, typeof(*w), sched);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1097
if (w->engine != rq->engine)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1101
GEM_BUG_ON(i915_request_has_initial_breadcrumb(w) &&
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1102
__i915_request_has_started(w) &&
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1105
if (!i915_request_is_ready(w))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1108
if (rq_prio(w) < rq_prio(rq))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1111
GEM_BUG_ON(rq_prio(w) > rq_prio(rq));
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1112
GEM_BUG_ON(i915_request_is_active(w));
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
1113
list_move_tail(&w->sched.link, &list);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2070
struct i915_request *w =
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2071
container_of(p->waiter, typeof(*w), sched);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2077
if (w->engine != rq->engine)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2080
if (!i915_request_is_ready(w))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2083
if (__i915_request_is_complete(w))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2086
if (i915_request_on_hold(w))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2089
list_move_tail(&w->sched.link, &list);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2171
struct i915_request *w =
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2172
container_of(p->waiter, typeof(*w), sched);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2177
if (w->engine != rq->engine)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2180
if (!i915_request_on_hold(w))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2184
if (hold_request(w))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
2187
list_move_tail(&w->sched.link, &list);
drivers/gpu/drm/i915/gt/intel_reset.c
1013
static void set_wedged_work(struct work_struct *w)
drivers/gpu/drm/i915/gt/intel_reset.c
1015
struct intel_gt *gt = container_of(w, struct intel_gt, wedge);
drivers/gpu/drm/i915/gt/intel_reset.c
1413
struct intel_wedge_me w;
drivers/gpu/drm/i915/gt/intel_reset.c
1421
intel_wedge_on_timeout(&w, gt, 60 * HZ) {
drivers/gpu/drm/i915/gt/intel_reset.c
1679
struct intel_wedge_me *w = container_of(work, typeof(*w), work.work);
drivers/gpu/drm/i915/gt/intel_reset.c
1681
gt_err(w->gt, "%s timed out, cancelling all in-flight rendering.\n", w->name);
drivers/gpu/drm/i915/gt/intel_reset.c
1682
set_wedged_work(&w->gt->wedge);
drivers/gpu/drm/i915/gt/intel_reset.c
1685
void __intel_init_wedge(struct intel_wedge_me *w,
drivers/gpu/drm/i915/gt/intel_reset.c
1690
w->gt = gt;
drivers/gpu/drm/i915/gt/intel_reset.c
1691
w->name = name;
drivers/gpu/drm/i915/gt/intel_reset.c
1693
INIT_DELAYED_WORK_ONSTACK(&w->work, intel_wedge_me);
drivers/gpu/drm/i915/gt/intel_reset.c
1694
queue_delayed_work(gt->i915->unordered_wq, &w->work, timeout);
drivers/gpu/drm/i915/gt/intel_reset.c
1697
void __intel_fini_wedge(struct intel_wedge_me *w)
drivers/gpu/drm/i915/gt/intel_reset.c
1699
cancel_delayed_work_sync(&w->work);
drivers/gpu/drm/i915/gt/intel_reset.c
1700
destroy_delayed_work_on_stack(&w->work);
drivers/gpu/drm/i915/gt/intel_reset.c
1701
w->gt = NULL;
drivers/gpu/drm/i915/gt/intel_reset.h
70
void __intel_init_wedge(struct intel_wedge_me *w,
drivers/gpu/drm/i915/gt/intel_reset.h
74
void __intel_fini_wedge(struct intel_wedge_me *w);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1907
static void gen9_whitelist_build(struct i915_wa_list *w)
drivers/gpu/drm/i915/gt/intel_workarounds.c
1910
whitelist_reg(w, GEN9_CTX_PREEMPT_REG);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1913
whitelist_reg(w, GEN8_CS_CHICKEN1);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1916
whitelist_reg(w, GEN8_HDC_CHICKEN1);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1919
whitelist_reg(w, COMMON_SLICE_CHICKEN2);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1924
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
1929
gen9_whitelist_build(w);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1932
whitelist_mcr_reg(w, GEN8_L3SQCREG4);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1945
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
1950
gen9_whitelist_build(w);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1953
whitelist_mcr_reg(w, GEN8_L3SQCREG4);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1958
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
1963
gen9_whitelist_build(w);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1966
whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1971
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
1976
gen9_whitelist_build(w);
drivers/gpu/drm/i915/gt/intel_workarounds.c
1987
whitelist_reg_ext(w, PS_INVOCATION_COUNT,
drivers/gpu/drm/i915/gt/intel_workarounds.c
1994
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
1997
whitelist_reg_ext(w,
drivers/gpu/drm/i915/gt/intel_workarounds.c
2011
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
2018
whitelist_mcr_reg(w, GEN9_HALF_SLICE_CHICKEN7);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2021
whitelist_mcr_reg(w, GEN10_SAMPLER_MODE);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2024
whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2035
whitelist_reg_ext(w, PS_INVOCATION_COUNT,
drivers/gpu/drm/i915/gt/intel_workarounds.c
2042
whitelist_reg_ext(w, _MMIO(0x2000 + engine->mmio_base),
drivers/gpu/drm/i915/gt/intel_workarounds.c
2045
whitelist_reg_ext(w, _MMIO(0x2014 + engine->mmio_base),
drivers/gpu/drm/i915/gt/intel_workarounds.c
2048
whitelist_reg_ext(w, _MMIO(0x23B0 + engine->mmio_base),
drivers/gpu/drm/i915/gt/intel_workarounds.c
2059
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
2075
whitelist_reg_ext(w, PS_INVOCATION_COUNT,
drivers/gpu/drm/i915/gt/intel_workarounds.c
2084
whitelist_reg(w, GEN7_COMMON_SLICE_CHICKEN1);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2087
whitelist_reg(w, HIZ_CHICKEN);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2090
whitelist_reg(w, GEN11_COMMON_SLICE_CHICKEN3);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2100
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
2105
whitelist_mcr_reg(w, XEHP_COMMON_SLICE_CHICKEN3);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2106
whitelist_reg(w, GEN7_COMMON_SLICE_CHICKEN1);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2115
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
2120
whitelist_mcr_reg(w, XEHP_COMMON_SLICE_CHICKEN3);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2121
whitelist_reg(w, GEN7_COMMON_SLICE_CHICKEN1);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2131
struct i915_wa_list *w = &engine->whitelist;
drivers/gpu/drm/i915/gt/intel_workarounds.c
2133
wa_init_start(w, engine->gt, "whitelist", engine->name);
drivers/gpu/drm/i915/gt/intel_workarounds.c
2162
wa_init_finish(w);
drivers/gpu/drm/i915/gt/selftest_hangcheck.c
1560
struct intel_wedge_me w;
drivers/gpu/drm/i915/gt/selftest_hangcheck.c
1563
intel_wedge_on_timeout(&w, gt, HZ / 10 /* 100ms */)
drivers/gpu/drm/i915/gt/selftest_hangcheck.c
1947
struct intel_wedge_me w;
drivers/gpu/drm/i915/gt/selftest_hangcheck.c
1949
intel_wedge_on_timeout(&w, engine->gt, HZ / 20 /* 50ms */)
drivers/gpu/drm/i915/gt/selftest_hangcheck.c
300
struct intel_wedge_me w;
drivers/gpu/drm/i915/gt/selftest_hangcheck.c
322
intel_wedge_on_timeout(&w, gt, HZ / 5 /* 200ms */)
drivers/gpu/drm/i915/gt/selftest_timeline.c
824
static int setup_watcher(struct hwsp_watcher *w, struct intel_gt *gt,
drivers/gpu/drm/i915/gt/selftest_timeline.c
836
w->map = i915_gem_object_pin_map_unlocked(obj,
drivers/gpu/drm/i915/gt/selftest_timeline.c
838
if (IS_ERR(w->map)) {
drivers/gpu/drm/i915/gt/selftest_timeline.c
840
return PTR_ERR(w->map);
drivers/gpu/drm/i915/gt/selftest_timeline.c
849
w->vma = vma;
drivers/gpu/drm/i915/gt/selftest_timeline.c
850
w->addr = i915_ggtt_offset(vma);
drivers/gpu/drm/i915/gt/selftest_timeline.c
869
static int create_watcher(struct hwsp_watcher *w,
drivers/gpu/drm/i915/gt/selftest_timeline.c
880
w->rq = intel_context_create_request(ce);
drivers/gpu/drm/i915/gt/selftest_timeline.c
882
if (IS_ERR(w->rq))
drivers/gpu/drm/i915/gt/selftest_timeline.c
883
return PTR_ERR(w->rq);
drivers/gpu/drm/i915/gt/selftest_timeline.c
885
w->addr = i915_ggtt_offset(w->vma);
drivers/gpu/drm/i915/gt/selftest_timeline.c
887
switch_tl_lock(w->rq, NULL);
drivers/gpu/drm/i915/gt/selftest_timeline.c
892
static int check_watcher(struct hwsp_watcher *w, const char *name,
drivers/gpu/drm/i915/gt/selftest_timeline.c
895
struct i915_request *rq = fetch_and_zero(&w->rq);
drivers/gpu/drm/i915/gt/selftest_timeline.c
899
GEM_BUG_ON(w->addr - i915_ggtt_offset(w->vma) > w->vma->size);
drivers/gpu/drm/i915/gt/selftest_timeline.c
912
end = (w->addr - i915_ggtt_offset(w->vma)) / sizeof(*w->map);
drivers/gpu/drm/i915/gt/selftest_timeline.c
914
if (!op(w->map[offset + 1], w->map[offset])) {
drivers/gpu/drm/i915/gt/selftest_timeline.c
916
name, w->map[offset + 1], w->map[offset]);
drivers/gpu/drm/i915/gt/selftest_timeline.c
928
static void cleanup_watcher(struct hwsp_watcher *w)
drivers/gpu/drm/i915/gt/selftest_timeline.c
930
if (w->rq) {
drivers/gpu/drm/i915/gt/selftest_timeline.c
931
switch_tl_lock(NULL, w->rq);
drivers/gpu/drm/i915/gt/selftest_timeline.c
933
i915_request_add(w->rq);
drivers/gpu/drm/i915/gt/selftest_timeline.c
936
i915_vma_unpin_and_release(&w->vma, I915_VMA_RELEASE_MAP);
drivers/gpu/drm/i915/gt/selftest_workarounds.c
705
u32 w = values[v];
drivers/gpu/drm/i915/gt/selftest_workarounds.c
710
expect = reg_write(expect, w, rsvd);
drivers/gpu/drm/i915/gt/selftest_workarounds.c
712
w, results[idx], expect);
drivers/gpu/drm/i915/gt/selftest_workarounds.c
716
u32 w = ~values[v];
drivers/gpu/drm/i915/gt/selftest_workarounds.c
721
expect = reg_write(expect, w, rsvd);
drivers/gpu/drm/i915/gt/selftest_workarounds.c
723
w, results[idx], expect);
drivers/gpu/drm/i915/gt/uc/intel_guc.c
164
static void guc_dead_worker_func(struct work_struct *w)
drivers/gpu/drm/i915/gt/uc/intel_guc.c
166
struct intel_guc *guc = container_of(w, struct intel_guc, dead_guc_worker);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
1199
static void ct_incoming_request_worker_func(struct work_struct *w)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
1202
container_of(w, struct intel_guc_ct, requests.worker);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
135
static void ct_incoming_request_worker_func(struct work_struct *w);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
1386
static void ct_dead_ct_worker_func(struct work_struct *w)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
1388
struct intel_guc_ct *ct = container_of(w, struct intel_guc_ct, dead_ct_worker);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
28
static void ct_dead_ct_worker_func(struct work_struct *w);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
2094
static void destroyed_worker_func(struct work_struct *w);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
2095
static void reset_fail_worker_func(struct work_struct *w);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
3558
static void destroyed_worker_func(struct work_struct *w)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
3560
struct intel_guc *guc = container_of(w, struct intel_guc,
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
5312
static void reset_fail_worker_func(struct work_struct *w)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
5314
struct intel_guc *guc = container_of(w, struct intel_guc,
drivers/gpu/drm/i915/gvt/handlers.c
2165
#define MMIO_F(reg, s, f, am, rm, d, r, w) do { \
drivers/gpu/drm/i915/gvt/handlers.c
2167
s, f, am, rm, d, r, w); \
drivers/gpu/drm/i915/gvt/handlers.c
2172
#define MMIO_DH(reg, d, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2173
MMIO_F(reg, 4, 0, 0, 0, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2175
#define MMIO_DFH(reg, d, f, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2176
MMIO_F(reg, 4, f, 0, 0, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2178
#define MMIO_GM(reg, d, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2179
MMIO_F(reg, 4, F_GMADR, 0xFFFFF000, 0, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2181
#define MMIO_GM_RDR(reg, d, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2182
MMIO_F(reg, 4, F_GMADR | F_CMD_ACCESS, 0xFFFFF000, 0, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2184
#define MMIO_RO(reg, d, f, rm, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2185
MMIO_F(reg, 4, F_RO | f, 0, rm, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2187
#define MMIO_RING_F(prefix, s, f, am, rm, d, r, w) do { \
drivers/gpu/drm/i915/gvt/handlers.c
2188
MMIO_F(prefix(RENDER_RING_BASE), s, f, am, rm, d, r, w); \
drivers/gpu/drm/i915/gvt/handlers.c
2189
MMIO_F(prefix(BLT_RING_BASE), s, f, am, rm, d, r, w); \
drivers/gpu/drm/i915/gvt/handlers.c
2190
MMIO_F(prefix(GEN6_BSD_RING_BASE), s, f, am, rm, d, r, w); \
drivers/gpu/drm/i915/gvt/handlers.c
2191
MMIO_F(prefix(VEBOX_RING_BASE), s, f, am, rm, d, r, w); \
drivers/gpu/drm/i915/gvt/handlers.c
2193
MMIO_F(prefix(GEN8_BSD2_RING_BASE), s, f, am, rm, d, r, w); \
drivers/gpu/drm/i915/gvt/handlers.c
2196
#define MMIO_RING_DFH(prefix, d, f, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2197
MMIO_RING_F(prefix, 4, f, 0, 0, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2199
#define MMIO_RING_GM(prefix, d, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2200
MMIO_RING_F(prefix, 4, F_GMADR, 0xFFFF0000, 0, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2202
#define MMIO_RING_GM_RDR(prefix, d, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2203
MMIO_RING_F(prefix, 4, F_GMADR | F_CMD_ACCESS, 0xFFFF0000, 0, d, r, w)
drivers/gpu/drm/i915/gvt/handlers.c
2205
#define MMIO_RING_RO(prefix, d, f, rm, r, w) \
drivers/gpu/drm/i915/gvt/handlers.c
2206
MMIO_RING_F(prefix, 4, F_RO | f, 0, rm, d, r, w)
drivers/gpu/drm/i915/intel_uncore.h
340
__raw_read(16, w)
drivers/gpu/drm/i915/intel_uncore.h
345
__raw_write(16, w)
drivers/gpu/drm/i915/intel_uncore.h
367
__uncore_read(read16, 16, w, true)
drivers/gpu/drm/i915/intel_uncore.h
369
__uncore_read(read16_notrace, 16, w, false)
drivers/gpu/drm/i915/intel_uncore.h
373
__uncore_write(write16, 16, w, true)
drivers/gpu/drm/imagination/pvr_queue.c
112
static void pvr_queue_fence_release_work(struct work_struct *w)
drivers/gpu/drm/imagination/pvr_queue.c
114
struct pvr_queue_fence *fence = container_of(w, struct pvr_queue_fence, release_work);
drivers/gpu/drm/imx/dc/dc-cf.c
64
void dc_cf_framedimensions(struct dc_cf *cf, unsigned int w,
drivers/gpu/drm/imx/dc/dc-cf.c
67
regmap_write(cf->reg_cfg, FRAMEDIMENSIONS, WIDTH(w) | HEIGHT(h));
drivers/gpu/drm/imx/dc/dc-fl.c
76
static void dc_fl_set_framedimensions(struct dc_fu *fu, int w, int h)
drivers/gpu/drm/imx/dc/dc-fl.c
79
FRAMEWIDTH(w) | FRAMEHEIGHT(h));
drivers/gpu/drm/imx/dc/dc-fu.c
159
int w, int h)
drivers/gpu/drm/imx/dc/dc-fu.c
162
LINEWIDTH(w) | LINECOUNT(h));
drivers/gpu/drm/imx/dc/dc-fu.c
180
unsigned int w, unsigned int h)
drivers/gpu/drm/imx/dc/dc-fu.c
183
CLIPWINDOWWIDTH(w) | CLIPWINDOWHEIGHT(h));
drivers/gpu/drm/imx/dc/dc-fu.h
90
int w, int h);
drivers/gpu/drm/imx/dc/dc-fu.h
95
void (*set_framedimensions)(struct dc_fu *fu, int w, int h);
drivers/gpu/drm/imx/dc/dc-fw.c
104
static void dc_fw_set_framedimensions(struct dc_fu *fu, int w, int h)
drivers/gpu/drm/imx/dc/dc-fw.c
107
FRAMEWIDTH(w) | FRAMEHEIGHT(h));
drivers/gpu/drm/imx/dc/dc-pe.h
81
void dc_cf_framedimensions(struct dc_cf *cf, unsigned int w, unsigned int h);
drivers/gpu/drm/loongson/lsdc_gfxpll.c
55
u32 w[2];
drivers/gpu/drm/loongson/lsdc_gfxpll.c
65
reg->w[0] = readl(this->mmio);
drivers/gpu/drm/loongson/lsdc_gfxpll.c
66
reg->w[1] = readl(this->mmio + 4);
drivers/gpu/drm/loongson/lsdc_pixpll.c
258
dst->w[0] = readl(this->mmio);
drivers/gpu/drm/loongson/lsdc_pixpll.c
259
dst->w[1] = readl(this->mmio + 4);
drivers/gpu/drm/loongson/lsdc_pixpll.c
269
writel(src->w[0], this->mmio);
drivers/gpu/drm/loongson/lsdc_pixpll.c
270
writel(src->w[1], this->mmio + 4);
drivers/gpu/drm/loongson/lsdc_pixpll.c
41
u32 w[2];
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
154
static void mtk_dither_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
160
mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_REG_DITHER_SIZE);
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
190
static void mtk_dsc_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
220
static void mtk_od_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
226
mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_REG_OD_SIZE);
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
238
static void mtk_postmask_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
244
mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs,
drivers/gpu/drm/mediatek/mtk_ddp_comp.h
144
unsigned int w, unsigned int h,
drivers/gpu/drm/mediatek/mtk_ddp_comp.h
149
comp->funcs->config(comp->dev, w, h, vrefresh, bpc, cmdq_pkt);
drivers/gpu/drm/mediatek/mtk_ddp_comp.h
56
void (*config)(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_aal.c
67
void mtk_aal_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_aal.c
74
sz = FIELD_PREP(DISP_AAL_SIZE_HSIZE, w);
drivers/gpu/drm/mediatek/mtk_disp_ccorr.c
57
void mtk_ccorr_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_ccorr.c
63
mtk_ddp_write(cmdq_pkt, w << 16 | h, &ccorr->cmdq_reg, ccorr->regs,
drivers/gpu/drm/mediatek/mtk_disp_color.c
60
void mtk_color_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_color.c
66
mtk_ddp_write(cmdq_pkt, w, &color->cmdq_reg, color->regs, DISP_COLOR_WIDTH(color));
drivers/gpu/drm/mediatek/mtk_disp_drv.h
122
void mtk_ovl_adaptor_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_drv.h
17
void mtk_aal_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_drv.h
28
void mtk_ccorr_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_drv.h
37
void mtk_color_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_drv.h
56
void mtk_gamma_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_drv.h
84
void mtk_ovl_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_gamma.c
209
void mtk_gamma_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_gamma.c
216
sz = FIELD_PREP(DISP_GAMMA_SIZE_HSIZE, w);
drivers/gpu/drm/mediatek/mtk_disp_merge.c
129
void mtk_merge_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_merge.c
133
mtk_merge_advance_config(dev, w, 0, h, vrefresh, bpc, cmdq_pkt);
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
313
void mtk_ovl_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
319
if (w != 0 && h != 0)
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
320
mtk_ddp_write_relaxed(cmdq_pkt, h << 16 | w, &ovl->cmdq_reg, ovl->regs,
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c
209
void mtk_ovl_adaptor_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c
215
mtk_ethdr_config(ovl_adaptor->ovl_adaptor_comp[OVL_ADAPTOR_ETHDR0], w, h,
drivers/gpu/drm/mediatek/mtk_ethdr.c
214
void mtk_ethdr_config(struct device *dev, unsigned int w,
drivers/gpu/drm/mediatek/mtk_ethdr.c
226
dev_dbg(dev, "%s-w:%d, h:%d\n", __func__, w, h);
drivers/gpu/drm/mediatek/mtk_ethdr.c
245
mtk_ddp_write(cmdq_pkt, h << 16 | w, &mixer->cmdq_base, mixer->regs, MIX_ROI_SIZE);
drivers/gpu/drm/mediatek/mtk_ethdr.c
261
mtk_mmsys_hdr_config(priv->mmsys_dev, w / 2, h, cmdq_pkt);
drivers/gpu/drm/mediatek/mtk_ethdr.h
13
void mtk_ethdr_config(struct device *dev, unsigned int w,
drivers/gpu/drm/meson/meson_plane.c
31
#define SCI_WH_M1_W(w) FIELD_PREP(GENMASK(28, 16), w)
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
503
uint32_t w = src_w, h = src_h;
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
506
w /= chroma_subsmpl_h;
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
511
pixel_ext->num_ext_pxls_left[i] = w;
drivers/gpu/drm/msm/msm_drv.h
266
int w, int h, int p, uint32_t format);
drivers/gpu/drm/msm/msm_fb.c
250
msm_alloc_stolen_fb(struct drm_device *dev, int w, int h, int p, uint32_t format)
drivers/gpu/drm/msm/msm_fb.c
254
.width = w,
drivers/gpu/drm/nouveau/dispnv50/atom.h
238
u16 w;
drivers/gpu/drm/nouveau/dispnv50/atom.h
79
u16 w;
drivers/gpu/drm/nouveau/dispnv50/atom.h
96
u16 w;
drivers/gpu/drm/nouveau/dispnv50/base507c.c
254
asyh->base.w = asyw->state.fb->width;
drivers/gpu/drm/nouveau/dispnv50/base507c.c
99
NVVAL(NV507C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/base827c.c
63
NVVAL(NV827C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/base907c.c
48
NVVAL(NV907C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/curs507a.c
120
if (asyw->image.w != asyw->state.crtc_w) {
drivers/gpu/drm/nouveau/dispnv50/curs507a.c
130
if (asyw->image.pitch[0] != asyw->image.w * fb->format->cpp[0]) {
drivers/gpu/drm/nouveau/dispnv50/curs507a.c
133
wndw->plane.name, asyw->image.pitch[0], asyw->image.w);
drivers/gpu/drm/nouveau/dispnv50/curs507a.c
141
wndw->plane.name, asyw->image.w, asyw->image.h);
drivers/gpu/drm/nouveau/dispnv50/head507d.c
179
switch (asyw->image.w) {
drivers/gpu/drm/nouveau/dispnv50/head507d.c
216
NVVAL(NV507D, HEAD_SET_SIZE, WIDTH, asyh->core.w) |
drivers/gpu/drm/nouveau/dispnv50/head507d.c
253
asyh->core.w = asyh->base.w;
drivers/gpu/drm/nouveau/dispnv50/head507d.c
265
asyh->core.w = asyh->state.mode.hdisplay;
drivers/gpu/drm/nouveau/dispnv50/head507d.c
275
asyh->core.pitch = ALIGN(asyh->core.w, 64) * 4;
drivers/gpu/drm/nouveau/dispnv50/head827d.c
87
NVVAL(NV827D, HEAD_SET_SIZE, WIDTH, asyh->core.w) |
drivers/gpu/drm/nouveau/dispnv50/head907d.c
223
NVVAL(NV907D, HEAD_SET_SIZE, WIDTH, asyh->core.w) |
drivers/gpu/drm/nouveau/dispnv50/ovly507e.c
76
NVVAL(NV507E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/ovly827e.c
53
NVVAL(NV827E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/ovly907e.c
50
NVVAL(NV907E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/wndw.c
291
asyw->image.w = fb->width;
drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
172
NVVAL(NVC37E, SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c
47
NVVAL(NVC57E, SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c
44
NVVAL(NVC57E, SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/dispnv50/wndwca7e.c
65
NVVAL(NVCA7E, SET_SIZE, WIDTH, asyw->image.w) |
drivers/gpu/drm/nouveau/nouveau_drm.c
172
nouveau_cli_work(struct work_struct *w)
drivers/gpu/drm/nouveau/nouveau_drm.c
174
struct nouveau_cli *cli = container_of(w, typeof(*cli), work);
drivers/gpu/drm/nouveau/nouveau_gem.c
150
nouveau_gem_object_delete_work(struct nouveau_cli_work *w)
drivers/gpu/drm/nouveau/nouveau_gem.c
153
container_of(w, typeof(*work), work);
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
526
u32 w = data >> 16;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
530
if (w & 0x8000)
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
532
w |= 0xffff0000;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
533
max = min + w;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
544
u32 w = data >> 16;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
548
if (w & 0x8000)
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
550
w |= 0xffff0000;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
551
max = min + w;
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
91
const int w = 8, x = (i / 4) % w;
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
96
if (x == (w - 1) || ((i + 4) == dmalen))
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.h
30
#define MASK(w) ((1 << (w)) - 1)
drivers/gpu/drm/omapdrm/dss/dispc.c
3728
uint w = last - first;
drivers/gpu/drm/omapdrm/dss/dispc.c
3732
if (w == 0)
drivers/gpu/drm/omapdrm/dss/dispc.c
3735
for (j = 0; j <= w; j++) {
drivers/gpu/drm/omapdrm/dss/dispc.c
3736
r = (lut[i].red * (w - j) + lut[i+1].red * j) / w;
drivers/gpu/drm/omapdrm/dss/dispc.c
3737
g = (lut[i].green * (w - j) + lut[i+1].green * j) / w;
drivers/gpu/drm/omapdrm/dss/dispc.c
3738
b = (lut[i].blue * (w - j) + lut[i+1].blue * j) / w;
drivers/gpu/drm/omapdrm/dss/dsi.c
2293
int w;
drivers/gpu/drm/omapdrm/dss/dsi.c
2306
for (w = 0; w < len + 2;) {
drivers/gpu/drm/omapdrm/dss/dsi.c
2318
if (w < len)
drivers/gpu/drm/omapdrm/dss/dsi.c
2319
buf[w] = (val >> (b * 8)) & 0xff;
drivers/gpu/drm/omapdrm/dss/dsi.c
2321
++w;
drivers/gpu/drm/omapdrm/dss/dsi.c
3104
u16 w = dsi->vm.hactive;
drivers/gpu/drm/omapdrm/dss/dsi.c
3107
DSSDBG("dsi_update_screen_dispc(%dx%d)\n", w, h);
drivers/gpu/drm/omapdrm/dss/dsi.c
3110
bytespl = w * bytespp;
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
1027
int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2;
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
1028
if (w >= 0) {
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
1029
p += w;
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
530
struct tiler_block *tiler_reserve_2d(enum tiler_fmt fmt, u16 w,
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
546
w = DIV_ROUND_UP(w, geom[fmt].slot_w);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
557
ret = tcm_reserve_2d(containers[fmt], w, h, align, -1, slot_bytes,
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
689
void tiler_align(enum tiler_fmt fmt, u16 *w, u16 *h)
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
692
*w = round_up(*w, geom[fmt].slot_w);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
706
size_t tiler_size(enum tiler_fmt fmt, u16 w, u16 h)
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
708
tiler_align(fmt, &w, &h);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
709
return geom[fmt].cpp * w * h;
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
712
size_t tiler_vsize(enum tiler_fmt fmt, u16 w, u16 h)
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
715
return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h;
drivers/gpu/drm/omapdrm/omap_dmm_tiler.h
87
struct tiler_block *tiler_reserve_2d(enum tiler_fmt fmt, u16 w, u16 h,
drivers/gpu/drm/omapdrm/omap_dmm_tiler.h
97
size_t tiler_size(enum tiler_fmt fmt, u16 w, u16 h);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.h
98
size_t tiler_vsize(enum tiler_fmt fmt, u16 w, u16 h);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.h
99
void tiler_align(enum tiler_fmt fmt, u16 *w, u16 *h);
drivers/gpu/drm/omapdrm/omap_fb.c
163
u32 w = state->src_w >> 16;
drivers/gpu/drm/omapdrm/omap_fb.c
177
w /= 2;
drivers/gpu/drm/omapdrm/omap_fb.c
184
x += w - 1;
drivers/gpu/drm/omapdrm/omap_gem.c
1479
u16 h = 1, w = PAGE_SIZE >> i;
drivers/gpu/drm/omapdrm/omap_gem.c
1481
tiler_align(fmts[i], &w, &h);
drivers/gpu/drm/omapdrm/omap_gem.c
1495
block = tiler_reserve_2d(fmts[i], w, h, PAGE_SIZE);
drivers/gpu/drm/omapdrm/omap_gem.c
1505
DBG("%d:%d: %dx%d: dma_addr=%pad stride=%d", i, j, w, h,
drivers/gpu/drm/omapdrm/tcm-sita.c
107
if ((*pos % slot_stride) + w > slot_stride) {
drivers/gpu/drm/omapdrm/tcm-sita.c
120
bitmap_set(mask, (*pos % BITS_PER_LONG), w);
drivers/gpu/drm/omapdrm/tcm-sita.c
129
(*pos % BITS_PER_LONG) + w)) {
drivers/gpu/drm/omapdrm/tcm-sita.c
148
bitmap_set(map, index, w);
drivers/gpu/drm/omapdrm/tcm-sita.c
173
static s32 sita_reserve_2d(struct tcm *tcm, u16 h, u16 w, u16 align,
drivers/gpu/drm/omapdrm/tcm-sita.c
181
ret = l2r_t2b(w, h, align, offset, &pos, slot_bytes, tcm->bitmap,
drivers/gpu/drm/omapdrm/tcm-sita.c
187
area->p1.x = area->p0.x + w - 1;
drivers/gpu/drm/omapdrm/tcm-sita.c
203
u16 w, h;
drivers/gpu/drm/omapdrm/tcm-sita.c
207
w = area->p1.x - area->p0.x + 1;
drivers/gpu/drm/omapdrm/tcm-sita.c
210
w = area->p1.x + area->p1.y * tcm->width - pos + 1;
drivers/gpu/drm/omapdrm/tcm-sita.c
215
free_slots(pos, w, h, tcm->bitmap, tcm->width);
drivers/gpu/drm/omapdrm/tcm-sita.c
28
static void free_slots(unsigned long pos, u16 w, u16 h,
drivers/gpu/drm/omapdrm/tcm-sita.c
34
bitmap_clear(map, pos, w);
drivers/gpu/drm/omapdrm/tcm-sita.c
43
static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map,
drivers/gpu/drm/omapdrm/tcm-sita.c
50
*pos = num_bits - w;
drivers/gpu/drm/omapdrm/tcm-sita.c
55
if (bit - *pos >= w) {
drivers/gpu/drm/omapdrm/tcm-sita.c
57
bitmap_set(map, *pos, w);
drivers/gpu/drm/omapdrm/tcm-sita.c
62
search_count = num_bits - bit + w;
drivers/gpu/drm/omapdrm/tcm-sita.c
63
*pos = bit - w;
drivers/gpu/drm/omapdrm/tcm-sita.c
79
static int l2r_t2b(u16 w, u16 h, u16 a, s16 offset,
drivers/gpu/drm/omapdrm/tcm-sita.c
97
*pos = bitmap_find_next_zero_area(map, num_bits, curr_bit, w,
drivers/gpu/drm/panfrost/panfrost_regs.h
311
#define AS_MEMATTR_AARCH64_INNER_ALLOC_EXPL(w, r) ((3 << 2) | \
drivers/gpu/drm/panfrost/panfrost_regs.h
312
((w) ? BIT(0) : 0) | \
drivers/gpu/drm/panthor/panthor_regs.h
160
#define AS_MEMATTR_AARCH64_INNER_ALLOC_EXPL(w, r) ((3 << 2) | \
drivers/gpu/drm/panthor/panthor_regs.h
161
((w) ? BIT(0) : 0) | \
drivers/gpu/drm/qxl/qxl_display.c
277
int w;
drivers/gpu/drm/qxl/qxl_display.c
291
extra_modes[i].w,
drivers/gpu/drm/radeon/evergreen_cs.c
875
unsigned w, h, d;
drivers/gpu/drm/radeon/evergreen_cs.c
877
w = r600_mip_minify(width, i);
drivers/gpu/drm/radeon/evergreen_cs.c
880
surf.nbx = r600_fmt_get_nblocksx(surf.format, w);
drivers/gpu/drm/radeon/r100.c
2123
static int r100_track_compress_size(int compress_format, int w, int h)
drivers/gpu/drm/radeon/r100.c
2146
wblocks = (w + block_width - 1) / block_width;
drivers/gpu/drm/radeon/r100.c
2156
unsigned face, w, h;
drivers/gpu/drm/radeon/r100.c
2163
w = track->textures[idx].cube_info[face].width;
drivers/gpu/drm/radeon/r100.c
2167
size = r100_track_compress_size(compress_format, w, h);
drivers/gpu/drm/radeon/r100.c
2169
size = w * h;
drivers/gpu/drm/radeon/r100.c
2190
unsigned u, i, w, h, d;
drivers/gpu/drm/radeon/r100.c
2207
w = (track->textures[u].pitch / track->textures[u].cpp) / (1 << i);
drivers/gpu/drm/radeon/r100.c
2209
w = track->textures[u].pitch / (1 << i);
drivers/gpu/drm/radeon/r100.c
2211
w = track->textures[u].width;
drivers/gpu/drm/radeon/r100.c
2213
w |= track->textures[u].width_11;
drivers/gpu/drm/radeon/r100.c
2214
w = w / (1 << i);
drivers/gpu/drm/radeon/r100.c
2216
w = roundup_pow_of_two(w);
drivers/gpu/drm/radeon/r100.c
2233
size += r100_track_compress_size(track->textures[u].compress_format, w, h) * d;
drivers/gpu/drm/radeon/r100.c
2236
size += w * h * d;
drivers/gpu/drm/radeon/r600_cs.c
210
int r600_fmt_get_nblocksx(u32 format, u32 w)
drivers/gpu/drm/radeon/r600_cs.c
221
return DIV_ROUND_UP(w, bw);
drivers/gpu/drm/radeon/radeon.h
2895
int r600_fmt_get_nblocksx(u32 format, u32 w);
drivers/gpu/drm/radeon/radeon_connectors.c
469
int w;
drivers/gpu/drm/radeon/radeon_connectors.c
493
if (common_modes[i].w > 1024 ||
drivers/gpu/drm/radeon/radeon_connectors.c
498
if (common_modes[i].w > native_mode->hdisplay ||
drivers/gpu/drm/radeon/radeon_connectors.c
500
(common_modes[i].w == native_mode->hdisplay &&
drivers/gpu/drm/radeon/radeon_connectors.c
504
if (common_modes[i].w < 320 || common_modes[i].h < 200)
drivers/gpu/drm/radeon/radeon_connectors.c
507
mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
drivers/gpu/drm/radeon/radeon_cursor.c
149
int w = radeon_crtc->cursor_width;
drivers/gpu/drm/radeon/radeon_cursor.c
192
cursor_end = x + w;
drivers/gpu/drm/radeon/radeon_cursor.c
195
w = w - (cursor_end - frame_end);
drivers/gpu/drm/radeon/radeon_cursor.c
197
w--;
drivers/gpu/drm/radeon/radeon_cursor.c
201
w--;
drivers/gpu/drm/radeon/radeon_cursor.c
203
if (w <= 0) {
drivers/gpu/drm/radeon/radeon_cursor.c
209
if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) ||
drivers/gpu/drm/radeon/radeon_cursor.c
221
((w - 1) << 16) | (radeon_crtc->cursor_height - 1));
drivers/gpu/drm/radeon/radeon_cursor.c
226
((w - 1) << 16) | (radeon_crtc->cursor_height - 1));
drivers/gpu/drm/scheduler/sched_main.c
1209
static void drm_sched_free_job_work(struct work_struct *w)
drivers/gpu/drm/scheduler/sched_main.c
1212
container_of(w, struct drm_gpu_scheduler, work_free_job);
drivers/gpu/drm/scheduler/sched_main.c
1231
static void drm_sched_run_job_work(struct work_struct *w)
drivers/gpu/drm/scheduler/sched_main.c
1234
container_of(w, struct drm_gpu_scheduler, work_run_job);
drivers/gpu/drm/sun4i/sun4i_backend.h
40
#define SUN4I_BACKEND_DISSIZE(w, h) (((((h) - 1) & 0xffff) << 16) | \
drivers/gpu/drm/sun4i/sun4i_backend.h
41
(((w) - 1) & 0xffff))
drivers/gpu/drm/sun4i/sun4i_backend.h
44
#define SUN4I_BACKEND_LAYSIZE(w, h) (((((h) - 1) & 0x1fff) << 16) | \
drivers/gpu/drm/sun4i/sun4i_backend.h
45
(((w) - 1) & 0x1fff))
drivers/gpu/drm/sun4i/sun4i_frontend.h
79
#define SUN4I_FRONTEND_INSIZE(h, w) ((((h) - 1) << 16) | (((w) - 1)))
drivers/gpu/drm/sun4i/sun4i_frontend.h
82
#define SUN4I_FRONTEND_OUTSIZE(h, w) ((((h) - 1) << 16) | (((w) - 1)))
drivers/gpu/drm/sun4i/sun8i_mixer.c
269
int w, h, x, y, zpos;
drivers/gpu/drm/sun4i/sun8i_mixer.c
283
w = drm_rect_width(&plane_state->dst);
drivers/gpu/drm/sun4i/sun8i_mixer.c
288
enable, zpos, x, y, w, h);
drivers/gpu/drm/sun4i/sun8i_mixer.c
302
SUN8I_MIXER_SIZE(w, h));
drivers/gpu/drm/sun4i/sun8i_mixer.h
16
#define SUN8I_MIXER_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1))
drivers/gpu/drm/sun4i/sun8i_ui_scaler.h
24
#define SUN8I_UI_SCALER_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1))
drivers/gpu/drm/sun4i/sun8i_vi_scaler.h
30
#define SUN8I_VI_SCALER_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1))
drivers/gpu/drm/tegra/dc.c
320
if (window->src.w == window->dst.w)
drivers/gpu/drm/tegra/dc.c
372
value = V_SIZE(window->dst.h) | H_SIZE(window->dst.w);
drivers/gpu/drm/tegra/dc.c
377
h_size = window->src.w * bpp;
drivers/gpu/drm/tegra/dc.c
381
h_offset += (window->src.w - 1) * bpp;
drivers/gpu/drm/tegra/dc.c
396
h_dda = compute_dda_inc(window->src.w, window->dst.w, false, bpp);
drivers/gpu/drm/tegra/dc.c
748
window.src.w = drm_rect_width(&new_state->src) >> 16;
drivers/gpu/drm/tegra/dc.c
752
window.dst.w = drm_rect_width(&new_state->dst);
drivers/gpu/drm/tegra/dc.h
139
unsigned int w;
drivers/gpu/drm/tegra/dc.h
145
unsigned int w;
drivers/gpu/drm/tests/drm_panic_test.c
47
#define DRM_PANIC_TEST_MODE(w, h, f, name) { \
drivers/gpu/drm/tests/drm_panic_test.c
48
.width = w, \
drivers/gpu/drm/tests/drm_plane_helper_test.c
125
params->src_expected.w, params->src_expected.h);
drivers/gpu/drm/tests/drm_plane_helper_test.c
127
params->crtc_expected.w, params->crtc_expected.h);
drivers/gpu/drm/tests/drm_plane_helper_test.c
32
unsigned int w;
drivers/gpu/drm/tests/drm_plane_helper_test.c
38
unsigned int w;
drivers/gpu/drm/tests/drm_plane_helper_test.c
70
mock->src_w = params->src.w;
drivers/gpu/drm/tests/drm_plane_helper_test.c
74
mock->crtc_w = params->crtc.w;
drivers/gpu/drm/tidss/tidss_dispc.c
2576
unsigned int w = last - first;
drivers/gpu/drm/tidss/tidss_dispc.c
2580
if (w == 0)
drivers/gpu/drm/tidss/tidss_dispc.c
2583
for (j = 0; j <= w; j++) {
drivers/gpu/drm/tidss/tidss_dispc.c
2584
r = (lut[i].red * (w - j) + lut[i + 1].red * j) / w;
drivers/gpu/drm/tidss/tidss_dispc.c
2585
g = (lut[i].green * (w - j) + lut[i + 1].green * j) / w;
drivers/gpu/drm/tidss/tidss_dispc.c
2586
b = (lut[i].blue * (w - j) + lut[i + 1].blue * j) / w;
drivers/gpu/drm/vboxvideo/vbox_mode.c
309
cmd_hdr.w = (u16)clips->x2 - clips->x1;
drivers/gpu/drm/vboxvideo/vboxvideo.h
59
u16 w;
drivers/gpu/drm/vc4/vc4_txp.c
204
int w = mode->hdisplay, h = mode->vdisplay;
drivers/gpu/drm/vc4/vc4_txp.c
206
if (w < mode_config->min_width || w > mode_config->max_width)
drivers/gpu/drm/virtio/virtgpu_ioctl.c
304
args->box.w, args->box.h, args->box.x, args->box.y,
drivers/gpu/drm/virtio/virtgpu_plane.c
141
uint32_t w = rect->x2 - rect->x1;
drivers/gpu/drm/virtio/virtgpu_plane.c
153
return virtio_gpu_panic_cmd_transfer_to_host_2d(vgdev, off, w, h, x, y,
drivers/gpu/drm/virtio/virtgpu_plane.c
164
uint32_t w = rect->x2 - rect->x1;
drivers/gpu/drm/virtio/virtgpu_plane.c
176
virtio_gpu_cmd_transfer_to_host_2d(vgdev, off, w, h, x, y,
drivers/gpu/drm/virtio/virtgpu_vq.c
52
dst->w = cpu_to_le32(src->w);
drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h
105
uint32 w;
drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h
116
int32 w;
drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h
70
uint32 w;
drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h
82
uint32 w;
drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h
95
uint32 w;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
545
u32 w, u32 h,
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
586
w, h, diff);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
624
ret = vmw_bo_cpu_blit_line(&d, dst_offset, src_offset, w);
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c
140
u32 w, u32 h)
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c
148
return w * h * sizeof(u32) + sizeof(SVGAGBCursorHeader);
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c
362
box->w > VMW_CURSOR_SNOOP_WIDTH || box->h > VMW_CURSOR_SNOOP_HEIGHT) {
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c
370
box->w, box->h, box->d, box_count,
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c
390
if (box->w == VMW_CURSOR_SNOOP_WIDTH && cmd->dma.guest.pitch == image_pitch) {
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c
398
box->w * desc->pitchBytesPerBlock);
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
1348
u32 w, u32 h,
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
1444
if ((rects[i].x + rects[i].w > INT_MAX) ||
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
1453
drm_rects[i].x2 = curr_rect.x + curr_rect.w;
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
1573
dirty->unit_x2 = dirty->fb_x + vclips_ptr->w +
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
103
return vmw_kms_write_svga(dev_priv, w, h, fb->pitches[0],
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
92
int w = 0, h = 0;
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
95
w = max(w, crtc->x + crtc->mode.hdisplay);
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
150
items[SVGA_VIDEO_SRC_WIDTH].value = arg->src.w;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
154
items[SVGA_VIDEO_DST_WIDTH].value = arg->dst.w;
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
1216
box->w = drm_rect_width(&diff.rect);
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
1324
box->w = drm_rect_width(clip);
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
277
update->body.rect.w = right - left;
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
638
blit->w = dirty->unit_x2 - dirty->unit_x1;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1792
box_c2 = box->x + box->w;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1793
if (box->w == 0 || box->x > loc_start->x)
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1796
box->w = loc_end->x - box->x;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1799
box->w = size->width;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1805
box->w = size->width;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1824
box->w = size->width;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1897
box_c2 = box->x + box->w;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1898
if (box->w == 0 || box->x > start)
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
1901
box->w = end - box->x;
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
312
cb->w = cur_size->width;
drivers/gpu/drm/xe/xe_execlist.c
397
static void execlist_exec_queue_destroy_async(struct work_struct *w)
drivers/gpu/drm/xe/xe_execlist.c
400
container_of(w, struct xe_execlist_exec_queue, destroy_async);
drivers/gpu/drm/xe/xe_gpu_scheduler.c
40
static void xe_sched_process_msg_work(struct work_struct *w)
drivers/gpu/drm/xe/xe_gpu_scheduler.c
43
container_of(w, struct xe_gpu_scheduler, work_process_msg);
drivers/gpu/drm/xe/xe_gt.c
171
static void gt_reset_worker(struct work_struct *w);
drivers/gpu/drm/xe/xe_gt.c
866
static void gt_reset_worker(struct work_struct *w)
drivers/gpu/drm/xe/xe_gt.c
868
struct xe_gt *gt = container_of(w, typeof(*gt), reset.worker);
drivers/gpu/drm/xe/xe_gt_sriov_pf.c
231
static void pf_worker_restart_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_gt_sriov_pf.c
233
struct xe_gt *gt = container_of(w, typeof(*gt), sriov.pf.workers.restart);
drivers/gpu/drm/xe/xe_gt_sriov_pf.c
24
static void pf_worker_restart_func(struct work_struct *w);
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c
2085
static void control_worker_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c
2087
struct xe_gt *gt = container_of(w, struct xe_gt, sriov.pf.control.worker);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
1403
static void migration_worker_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
1405
struct xe_gt *gt = container_of(w, struct xe_gt,
drivers/gpu/drm/xe/xe_guc_ct.c
1949
static void g2h_worker_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_guc_ct.c
1951
struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, g2h_worker);
drivers/gpu/drm/xe/xe_guc_ct.c
2203
static void ct_dead_worker_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_guc_ct.c
2205
struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, dead.worker);
drivers/gpu/drm/xe/xe_guc_ct.c
39
static void g2h_worker_func(struct work_struct *w);
drivers/gpu/drm/xe/xe_guc_ct.c
40
static void safe_mode_worker_func(struct work_struct *w);
drivers/gpu/drm/xe/xe_guc_ct.c
577
static void safe_mode_worker_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_guc_ct.c
579
struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, safe_mode_worker.work);
drivers/gpu/drm/xe/xe_guc_ct.c
83
static void ct_dead_worker_func(struct work_struct *w);
drivers/gpu/drm/xe/xe_guc_relay.c
36
static void relays_worker_fn(struct work_struct *w);
drivers/gpu/drm/xe/xe_guc_relay.c
794
static void relays_worker_fn(struct work_struct *w)
drivers/gpu/drm/xe/xe_guc_relay.c
796
struct xe_guc_relay *relay = container_of(w, struct xe_guc_relay, worker);
drivers/gpu/drm/xe/xe_guc_submit.c
1651
static void __guc_exec_queue_destroy_async(struct work_struct *w)
drivers/gpu/drm/xe/xe_guc_submit.c
1654
container_of(w, struct xe_guc_exec_queue, destroy_async);
drivers/gpu/drm/xe/xe_hw_engine_group.c
18
hw_engine_group_resume_lr_jobs_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_hw_engine_group.c
21
struct xe_hw_engine_group *group = container_of(w, struct xe_hw_engine_group, resume_work);
drivers/gpu/drm/xe/xe_oa.c
954
static void xe_oa_fence_work_fn(struct work_struct *w)
drivers/gpu/drm/xe/xe_oa.c
956
struct xe_oa_fence *ofence = container_of(w, typeof(*ofence), work.work);
drivers/gpu/drm/xe/xe_pagefault.c
250
static void xe_pagefault_queue_work(struct work_struct *w)
drivers/gpu/drm/xe/xe_pagefault.c
253
container_of(w, typeof(*pf_queue), worker);
drivers/gpu/drm/xe/xe_pagefault.c
276
queue_work(gt_to_xe(pf.gt)->usm.pf_wq, w);
drivers/gpu/drm/xe/xe_preempt_fence.c
15
static void preempt_fence_work_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_preempt_fence.c
19
container_of(w, typeof(*pfence), preempt_work);
drivers/gpu/drm/xe/xe_svm.c
422
static void xe_svm_garbage_collector_work_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_svm.c
424
struct xe_vm *vm = container_of(w, struct xe_vm,
drivers/gpu/drm/xe/xe_sync.c
76
static void user_fence_worker(struct work_struct *w)
drivers/gpu/drm/xe/xe_sync.c
78
struct xe_user_fence *ufence = container_of(w, struct xe_user_fence, worker);
drivers/gpu/drm/xe/xe_vm.c
1101
static void vma_destroy_work_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_vm.c
1104
container_of(w, struct xe_vma, destroy_work);
drivers/gpu/drm/xe/xe_vm.c
1404
static void vm_destroy_work_func(struct work_struct *w);
drivers/gpu/drm/xe/xe_vm.c
1841
static void vm_destroy_work_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_vm.c
1844
container_of(w, struct xe_vm, destroy_work);
drivers/gpu/drm/xe/xe_vm.c
453
static void preempt_rebind_work_func(struct work_struct *w)
drivers/gpu/drm/xe/xe_vm.c
455
struct xe_vm *vm = container_of(w, struct xe_vm, preempt.rebind_work);
drivers/gpu/drm/xlnx/zynqmp_dp.c
1146
unsigned int w;
drivers/gpu/drm/xlnx/zynqmp_dp.c
1156
w = DIV_ROUND_UP(4 * rate, 1000 * 1000 * 10 * 8) * 8;
drivers/gpu/drm/xlnx/zynqmp_dp.c
1157
if (w > 6 * rate / (1000 * 1000 * 10) || w > 48) {
drivers/gpu/drm/xlnx/zynqmp_dp.c
1163
(w << ZYNQMP_DP_AUX_CLK_DIVIDER_AUX_FILTER_SHIFT) |
drivers/gpu/ipu-v3/ipu-csi.c
515
void ipu_csi_set_window(struct ipu_csi *csi, struct v4l2_rect *w)
drivers/gpu/ipu-v3/ipu-csi.c
522
ipu_csi_write(csi, (w->width - 1) | ((w->height - 1) << 16),
drivers/gpu/ipu-v3/ipu-csi.c
527
reg |= ((w->top << CSI_VSC_SHIFT) | (w->left << CSI_HSC_SHIFT));
drivers/hid/hid-logitech-hidpp.c
2460
static void hidpp_ff_work_handler(struct work_struct *w)
drivers/hid/hid-logitech-hidpp.c
2462
struct hidpp_ff_work_data *wd = container_of(w, struct hidpp_ff_work_data, work);
drivers/hid/hid-multitouch.c
113
__s32 *x, *y, *cx, *cy, *p, *w, *h, *a;
drivers/hid/hid-multitouch.c
1179
int wide = (*slot->w > *slot->h);
drivers/hid/hid-multitouch.c
1180
int major = max(*slot->w, *slot->h);
drivers/hid/hid-multitouch.c
1181
int minor = min(*slot->w, *slot->h);
drivers/hid/hid-multitouch.c
615
usage->w = DEFAULT_ZERO;
drivers/hid/hid-multitouch.c
923
MT_STORE_FIELD(w);
drivers/hid/hid-ntrig.c
53
__u16 x, y, w, h;
drivers/hid/hid-ntrig.c
612
nd->w = value;
drivers/hid/hid-ntrig.c
676
if (nd->w < nd->min_width ||
drivers/hid/hid-ntrig.c
686
if (nd->w >= nd->activation_width &&
drivers/hid/hid-ntrig.c
735
if (nd->w > nd->h) {
drivers/hid/hid-ntrig.c
739
ABS_MT_TOUCH_MAJOR, nd->w);
drivers/hid/hid-ntrig.c
748
ABS_MT_TOUCH_MINOR, nd->w);
drivers/hid/hid-picolcd_cir.c
37
int i, w, sz;
drivers/hid/hid-picolcd_cir.c
60
w = (raw_data[i] << 8) | (raw_data[i+1]);
drivers/hid/hid-picolcd_cir.c
61
rawir.pulse = !!(w & 0x8000);
drivers/hid/hid-picolcd_cir.c
62
rawir.duration = rawir.pulse ? (65536 - w) : w;
drivers/hid/hid-sony.c
1115
int w, int h, int touch_major, int touch_minor, int orientation)
drivers/hid/hid-sony.c
1152
input_set_abs_params(sc->touchpad, ABS_MT_POSITION_X, 0, w, 0, 0);
drivers/hid/wacom_wac.c
1439
int w = touch[6] * input_abs_get_res(touch_input, ABS_MT_POSITION_X);
drivers/hid/wacom_wac.c
1449
input_report_abs(touch_input, ABS_MT_TOUCH_MAJOR, max(w, h));
drivers/hid/wacom_wac.c
1450
input_report_abs(touch_input, ABS_MT_TOUCH_MINOR, min(w, h));
drivers/hid/wacom_wac.c
1451
input_report_abs(touch_input, ABS_MT_ORIENTATION, w > h);
drivers/hid/wacom_wac.c
1614
int w = get_unaligned_le16(&data[offset + 10]);
drivers/hid/wacom_wac.c
1617
input_report_abs(input, ABS_MT_TOUCH_MAJOR, min(w,h));
drivers/hid/wacom_wac.c
1619
min(w, h) + int_dist(t_x, t_y, c_x, c_y));
drivers/hid/wacom_wac.c
1620
input_report_abs(input, ABS_MT_WIDTH_MINOR, min(w, h));
drivers/hid/wacom_wac.c
1621
input_report_abs(input, ABS_MT_ORIENTATION, w > h);
drivers/hte/hte.c
337
static void hte_do_cb_work(struct work_struct *w)
drivers/hte/hte.c
340
struct hte_ts_info *ei = container_of(w, struct hte_ts_info, cb_work);
drivers/hwmon/pmbus/max20730.c
420
static long direct_to_val(u16 w, enum pmbus_sensor_classes class,
drivers/hwmon/pmbus/max20730.c
426
long d = (s16)w;
drivers/i2c/busses/i2c-davinci.c
157
u16 w;
drivers/i2c/busses/i2c-davinci.c
159
w = davinci_i2c_read_reg(i2c_dev, DAVINCI_I2C_MDR_REG);
drivers/i2c/busses/i2c-davinci.c
161
w &= ~DAVINCI_I2C_MDR_IRS;
drivers/i2c/busses/i2c-davinci.c
163
w |= DAVINCI_I2C_MDR_IRS;
drivers/i2c/busses/i2c-davinci.c
165
davinci_i2c_write_reg(i2c_dev, DAVINCI_I2C_MDR_REG, w);
drivers/i2c/busses/i2c-davinci.c
406
u16 w;
drivers/i2c/busses/i2c-davinci.c
437
w = davinci_i2c_read_reg(dev, DAVINCI_I2C_IMR_REG);
drivers/i2c/busses/i2c-davinci.c
439
w |= DAVINCI_I2C_IMR_RRDY;
drivers/i2c/busses/i2c-davinci.c
441
w |= DAVINCI_I2C_IMR_XRDY;
drivers/i2c/busses/i2c-davinci.c
442
davinci_i2c_write_reg(dev, DAVINCI_I2C_IMR_REG, w);
drivers/i2c/busses/i2c-davinci.c
503
w = davinci_i2c_read_reg(dev, DAVINCI_I2C_MDR_REG);
drivers/i2c/busses/i2c-davinci.c
504
w |= DAVINCI_I2C_MDR_STP;
drivers/i2c/busses/i2c-davinci.c
505
davinci_i2c_write_reg(dev, DAVINCI_I2C_MDR_REG, w);
drivers/i2c/busses/i2c-davinci.c
559
u16 w = davinci_i2c_read_reg(dev, DAVINCI_I2C_MDR_REG);
drivers/i2c/busses/i2c-davinci.c
560
w |= DAVINCI_I2C_MDR_NACK;
drivers/i2c/busses/i2c-davinci.c
561
davinci_i2c_write_reg(dev, DAVINCI_I2C_MDR_REG, w);
drivers/i2c/busses/i2c-davinci.c
570
u16 w = davinci_i2c_read_reg(dev, DAVINCI_I2C_MDR_REG);
drivers/i2c/busses/i2c-davinci.c
571
w |= DAVINCI_I2C_MDR_RM | DAVINCI_I2C_MDR_STP;
drivers/i2c/busses/i2c-davinci.c
572
davinci_i2c_write_reg(dev, DAVINCI_I2C_MDR_REG, w);
drivers/i2c/busses/i2c-davinci.c
587
u16 w;
drivers/i2c/busses/i2c-davinci.c
618
w = davinci_i2c_read_reg(dev,
drivers/i2c/busses/i2c-davinci.c
620
w |= DAVINCI_I2C_MDR_STP;
drivers/i2c/busses/i2c-davinci.c
622
DAVINCI_I2C_MDR_REG, w);
drivers/i2c/busses/i2c-davinci.c
653
w = davinci_i2c_read_reg(dev,
drivers/i2c/busses/i2c-davinci.c
655
w &= ~DAVINCI_I2C_IMR_XRDY;
drivers/i2c/busses/i2c-davinci.c
658
w);
drivers/i2c/busses/i2c-omap.c
1002
u16 w;
drivers/i2c/busses/i2c-omap.c
1005
w = omap_i2c_read_reg(omap, OMAP_I2C_DATA_REG);
drivers/i2c/busses/i2c-omap.c
1006
*omap->buf++ = w;
drivers/i2c/busses/i2c-omap.c
1014
*omap->buf++ = w >> 8;
drivers/i2c/busses/i2c-omap.c
1023
u16 w;
drivers/i2c/busses/i2c-omap.c
1026
w = *omap->buf++;
drivers/i2c/busses/i2c-omap.c
1034
w |= *omap->buf++ << 8;
drivers/i2c/busses/i2c-omap.c
1046
omap_i2c_write_reg(omap, OMAP_I2C_DATA_REG, w);
drivers/i2c/busses/i2c-omap.c
666
u16 w;
drivers/i2c/busses/i2c-omap.c
687
w = omap_i2c_read_reg(omap, OMAP_I2C_BUF_REG);
drivers/i2c/busses/i2c-omap.c
688
w |= OMAP_I2C_BUF_RXFIF_CLR | OMAP_I2C_BUF_TXFIF_CLR;
drivers/i2c/busses/i2c-omap.c
689
omap_i2c_write_reg(omap, OMAP_I2C_BUF_REG, w);
drivers/i2c/busses/i2c-omap.c
695
w = OMAP_I2C_CON_EN | OMAP_I2C_CON_MST | OMAP_I2C_CON_STT;
drivers/i2c/busses/i2c-omap.c
699
w |= OMAP_I2C_CON_OPMODE_HS;
drivers/i2c/busses/i2c-omap.c
704
w |= OMAP_I2C_CON_XA;
drivers/i2c/busses/i2c-omap.c
706
w |= OMAP_I2C_CON_TRX;
drivers/i2c/busses/i2c-omap.c
709
w |= OMAP_I2C_CON_STP;
drivers/i2c/busses/i2c-omap.c
715
omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, w);
drivers/i2c/busses/i2c-omap.c
735
w |= OMAP_I2C_CON_STP;
drivers/i2c/busses/i2c-omap.c
736
w &= ~OMAP_I2C_CON_STT;
drivers/i2c/busses/i2c-omap.c
737
omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, w);
drivers/i2c/busses/i2c-omap.c
779
w = omap_i2c_read_reg(omap, OMAP_I2C_CON_REG);
drivers/i2c/busses/i2c-omap.c
780
w |= OMAP_I2C_CON_STP;
drivers/i2c/busses/i2c-omap.c
781
omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, w);
drivers/i2c/busses/i2c-omap.c
902
u16 iv, w;
drivers/i2c/busses/i2c-omap.c
924
w = omap_i2c_read_reg(omap, OMAP_I2C_DATA_REG);
drivers/i2c/busses/i2c-omap.c
925
*omap->buf++ = w;
drivers/i2c/busses/i2c-omap.c
928
*omap->buf++ = w >> 8;
drivers/i2c/busses/i2c-omap.c
936
w = *omap->buf++;
drivers/i2c/busses/i2c-omap.c
939
w |= *omap->buf++ << 8;
drivers/i2c/busses/i2c-omap.c
942
omap_i2c_write_reg(omap, OMAP_I2C_DATA_REG, w);
drivers/infiniband/core/cq.c
39
static void ib_cq_rdma_dim_work(struct work_struct *w)
drivers/infiniband/core/cq.c
41
struct dim *dim = container_of(w, struct dim, work);
drivers/infiniband/hw/erdma/erdma_cm.c
119
struct list_head *w, *tmp;
drivers/infiniband/hw/erdma/erdma_cm.c
122
list_for_each_safe(w, tmp, &cep->work_freelist) {
drivers/infiniband/hw/erdma/erdma_cm.c
123
work = list_entry(w, struct erdma_cm_work, list);
drivers/infiniband/hw/erdma/erdma_cm.c
741
static void erdma_cm_work_handler(struct work_struct *w)
drivers/infiniband/hw/erdma/erdma_cm.c
747
work = container_of(w, struct erdma_cm_work, work.work);
drivers/infiniband/hw/hfi1/iowait.c
114
uint iowait_priority_update_top(struct iowait *w,
drivers/infiniband/hw/hfi1/iowait.c
121
cnt = (w->priority << IOWAIT_PRIORITY_STARVE_SHIFT) + w->starved_cnt;
drivers/infiniband/hw/hfi1/iowait.c
81
void iowait_cancel_work(struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.c
83
cancel_work_sync(&iowait_get_ib_work(w)->iowork);
drivers/infiniband/hw/hfi1/iowait.c
85
if (iowait_get_tid_work(w)->iowork.func)
drivers/infiniband/hw/hfi1/iowait.c
86
cancel_work_sync(&iowait_get_tid_work(w)->iowork);
drivers/infiniband/hw/hfi1/iowait.c
93
int iowait_set_work_flag(struct iowait_work *w)
drivers/infiniband/hw/hfi1/iowait.c
95
if (w == &w->iow->wait[IOWAIT_IB_SE]) {
drivers/infiniband/hw/hfi1/iowait.c
96
iowait_set_flag(w->iow, IOWAIT_PENDING_IB);
drivers/infiniband/hw/hfi1/iowait.c
99
iowait_set_flag(w->iow, IOWAIT_PENDING_TID);
drivers/infiniband/hw/hfi1/iowait.h
299
static inline u16 iowait_get_desc(struct iowait_work *w)
drivers/infiniband/hw/hfi1/iowait.h
304
if (!list_empty(&w->tx_head)) {
drivers/infiniband/hw/hfi1/iowait.h
305
tx = list_first_entry(&w->tx_head, struct sdma_txreq,
drivers/infiniband/hw/hfi1/iowait.h
309
w->iow->priority++;
drivers/infiniband/hw/hfi1/iowait.h
314
static inline u32 iowait_get_all_desc(struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.h
318
num_desc = iowait_get_desc(&w->wait[IOWAIT_IB_SE]);
drivers/infiniband/hw/hfi1/iowait.h
319
num_desc += iowait_get_desc(&w->wait[IOWAIT_TID_SE]);
drivers/infiniband/hw/hfi1/iowait.h
323
static inline void iowait_update_priority(struct iowait_work *w)
drivers/infiniband/hw/hfi1/iowait.h
327
if (!list_empty(&w->tx_head)) {
drivers/infiniband/hw/hfi1/iowait.h
328
tx = list_first_entry(&w->tx_head, struct sdma_txreq,
drivers/infiniband/hw/hfi1/iowait.h
331
w->iow->priority++;
drivers/infiniband/hw/hfi1/iowait.h
335
static inline void iowait_update_all_priority(struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.h
337
iowait_update_priority(&w->wait[IOWAIT_IB_SE]);
drivers/infiniband/hw/hfi1/iowait.h
338
iowait_update_priority(&w->wait[IOWAIT_TID_SE]);
drivers/infiniband/hw/hfi1/iowait.h
341
static inline void iowait_init_priority(struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.h
343
w->priority = 0;
drivers/infiniband/hw/hfi1/iowait.h
344
if (w->init_priority)
drivers/infiniband/hw/hfi1/iowait.h
345
w->init_priority(w);
drivers/infiniband/hw/hfi1/iowait.h
348
static inline void iowait_get_priority(struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.h
350
iowait_init_priority(w);
drivers/infiniband/hw/hfi1/iowait.h
351
iowait_update_all_priority(w);
drivers/infiniband/hw/hfi1/iowait.h
364
static inline void iowait_queue(bool pkts_sent, struct iowait *w,
drivers/infiniband/hw/hfi1/iowait.h
374
w->starved_cnt = 0;
drivers/infiniband/hw/hfi1/iowait.h
376
w->starved_cnt++;
drivers/infiniband/hw/hfi1/iowait.h
378
if (w->priority > 0 || !pkts_sent)
drivers/infiniband/hw/hfi1/iowait.h
379
list_add(&w->list, wait_head);
drivers/infiniband/hw/hfi1/iowait.h
381
list_add_tail(&w->list, wait_head);
drivers/infiniband/hw/hfi1/iowait.h
392
static inline void iowait_starve_clear(bool pkts_sent, struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.h
395
w->starved_cnt = 0;
drivers/infiniband/hw/hfi1/iowait.h
399
uint iowait_priority_update_top(struct iowait *w,
drivers/infiniband/hw/hfi1/iowait.h
417
static inline void iowait_inc_wait_count(struct iowait_work *w, u16 n)
drivers/infiniband/hw/hfi1/iowait.h
419
if (!w)
drivers/infiniband/hw/hfi1/iowait.h
421
w->iow->tx_count++;
drivers/infiniband/hw/hfi1/iowait.h
422
w->iow->count += n;
drivers/infiniband/hw/hfi1/iowait.h
429
static inline struct iowait_work *iowait_get_tid_work(struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.h
431
return &w->wait[IOWAIT_TID_SE];
drivers/infiniband/hw/hfi1/iowait.h
438
static inline struct iowait_work *iowait_get_ib_work(struct iowait *w)
drivers/infiniband/hw/hfi1/iowait.h
440
return &w->wait[IOWAIT_IB_SE];
drivers/infiniband/hw/hfi1/iowait.h
447
static inline struct iowait *iowait_ioww_to_iow(struct iowait_work *w)
drivers/infiniband/hw/hfi1/iowait.h
449
if (likely(w))
drivers/infiniband/hw/hfi1/iowait.h
450
return w->iow;
drivers/infiniband/hw/hfi1/iowait.h
454
void iowait_cancel_work(struct iowait *w);
drivers/infiniband/hw/hfi1/iowait.h
455
int iowait_set_work_flag(struct iowait_work *w);
drivers/infiniband/hw/hfi1/mad.c
635
static void set_link_width_enabled(struct hfi1_pportdata *ppd, u32 w)
drivers/infiniband/hw/hfi1/mad.c
637
(void)hfi1_set_ib_cfg(ppd, HFI1_IB_CFG_LWID_ENB, w);
drivers/infiniband/hw/hfi1/mad.c
640
static void set_link_width_downgrade_enabled(struct hfi1_pportdata *ppd, u32 w)
drivers/infiniband/hw/hfi1/mad.c
642
(void)hfi1_set_ib_cfg(ppd, HFI1_IB_CFG_LWID_DG_ENB, w);
drivers/infiniband/hw/hfi1/qp.c
520
static void hfi1_init_priority(struct iowait *w)
drivers/infiniband/hw/hfi1/qp.c
522
struct rvt_qp *qp = iowait_to_qp(w);
drivers/infiniband/hw/hfi1/qp.c
526
w->priority++;
drivers/infiniband/hw/hfi1/qp.c
528
w->priority++;
drivers/infiniband/hw/hfi1/ruc.c
478
struct iowait_work *w = container_of(work, struct iowait_work, iowork);
drivers/infiniband/hw/hfi1/ruc.c
479
struct rvt_qp *qp = iowait_to_qp(w->iow);
drivers/infiniband/hw/hfi1/sdma.c
380
struct iowait *w, *nw;
drivers/infiniband/hw/hfi1/sdma.c
385
list_for_each_entry_safe(w, nw, &sde->dmawait, list) {
drivers/infiniband/hw/hfi1/sdma.c
386
if (w->wakeup) {
drivers/infiniband/hw/hfi1/sdma.c
387
w->wakeup(w, SDMA_AVAIL_REASON);
drivers/infiniband/hw/hfi1/sdma.c
388
list_del_init(&w->list);
drivers/infiniband/hw/hfi1/tid_rdma.c
5344
struct iowait_work *w = container_of(work, struct iowait_work, iowork);
drivers/infiniband/hw/hfi1/tid_rdma.c
5345
struct rvt_qp *qp = iowait_to_qp(w->iow);
drivers/infiniband/hw/hfi1/verbs_txreq.h
60
static inline struct verbs_txreq *get_waiting_verbs_txreq(struct iowait_work *w)
drivers/infiniband/hw/hfi1/verbs_txreq.h
64
stx = iowait_get_txhead(w);
drivers/infiniband/hw/hfi1/verbs_txreq.h
70
static inline bool verbs_txreq_queued(struct iowait_work *w)
drivers/infiniband/hw/hfi1/verbs_txreq.h
72
return iowait_packet_queued(w);
drivers/infiniband/hw/mlx5/odp.c
2006
static void mlx5_ib_prefetch_mr_work(struct work_struct *w)
drivers/infiniband/hw/mlx5/odp.c
2009
container_of(w, struct prefetch_mr_work, work);
drivers/infiniband/sw/rxe/rxe_odp.c
422
static void rxe_ib_prefetch_mr_work(struct work_struct *w)
drivers/infiniband/sw/rxe/rxe_odp.c
425
container_of(w, struct prefetch_mr_work, work);
drivers/infiniband/sw/siw/siw_cm.c
1058
static void siw_cm_work_handler(struct work_struct *w)
drivers/infiniband/sw/siw/siw_cm.c
1064
work = container_of(w, struct siw_cm_work, work.work);
drivers/infiniband/sw/siw/siw_cm.c
235
struct list_head *w, *tmp;
drivers/infiniband/sw/siw/siw_cm.c
238
list_for_each_safe(w, tmp, &cep->work_freelist) {
drivers/infiniband/sw/siw/siw_cm.c
239
work = list_entry(w, struct siw_cm_work, list);
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h
115
#define OPA_VNIC_ENCAP_RC_EXT(w, b) (((w) >> OPA_VNIC_ENCAP_RC_ ## b) & 0x7)
drivers/infiniband/ulp/srpt/ib_srpt.c
2140
static void srpt_release_channel_work(struct work_struct *w)
drivers/infiniband/ulp/srpt/ib_srpt.c
2147
ch = container_of(w, struct srpt_rdma_ch, release_work);
drivers/infiniband/ulp/srpt/ib_srpt.c
3443
u16 w[4];
drivers/infiniband/ulp/srpt/ib_srpt.c
3446
if (sscanf(name, "%hx:%hx:%hx:%hx", &w[0], &w[1], &w[2], &w[3]) != 4)
drivers/infiniband/ulp/srpt/ib_srpt.c
3448
*guid = get_unaligned_be64(w);
drivers/input/gameport/fm801-gp.c
31
unsigned short w;
drivers/input/gameport/fm801-gp.c
33
w = inw(gameport->io + 2);
drivers/input/gameport/fm801-gp.c
34
*buttons = (~w >> 14) & 0x03;
drivers/input/gameport/fm801-gp.c
35
axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
drivers/input/gameport/fm801-gp.c
36
w = inw(gameport->io + 4);
drivers/input/gameport/fm801-gp.c
37
axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
drivers/input/gameport/fm801-gp.c
38
w = inw(gameport->io + 6);
drivers/input/gameport/fm801-gp.c
39
*buttons |= ((~w >> 14) & 0x03) << 2;
drivers/input/gameport/fm801-gp.c
40
axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
drivers/input/gameport/fm801-gp.c
41
w = inw(gameport->io + 8);
drivers/input/gameport/fm801-gp.c
42
axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
drivers/input/input-mt.c
387
static void find_reduced_matrix(int *w, int nr, int nc, int nrc, int mu)
drivers/input/input-mt.c
393
adjust_dual(w + i, nr, w + i + nrc, nr <= nc, mu);
drivers/input/input-mt.c
396
sum += adjust_dual(w + i, 1, w + i + nr, nc <= nr, mu);
drivers/input/input-mt.c
408
int *w = mt->red;
drivers/input/input-mt.c
418
*w++ = dx * dx + dy * dy - mu;
drivers/input/input-mt.c
422
return w - mt->red;
drivers/input/input-mt.c
429
int *w = mt->red, j;
drivers/input/input-mt.c
439
if (w[j] < 0) {
drivers/input/input-mt.c
445
w += num_pos;
drivers/input/joystick/adi.c
123
unsigned char u, v, w, x;
drivers/input/joystick/adi.c
140
w = u ^ (v = x = gameport_read(gameport));
drivers/input/joystick/adi.c
141
for (i = 0; i < 2; i++, w >>= 2, x >>= 2) {
drivers/input/joystick/adi.c
143
if ((w & 0x30) && s[i]) {
drivers/input/joystick/adi.c
144
if ((w & 0x30) < 0x30 && adi[i].ret < ADI_MAX_LENGTH && t[i] > 0) {
drivers/input/joystick/adi.c
145
adi[i].data[++adi[i].ret] = w;
drivers/input/joystick/analog.c
366
int i, j, t, v, w, x, y, z;
drivers/input/joystick/analog.c
402
w = (x >> 3);
drivers/input/joystick/analog.c
410
w = (x >> 4);
drivers/input/joystick/analog.c
413
input_set_abs_params(input_dev, t, v, (x << 1) - v, port->fuzz, w);
drivers/input/joystick/cobra.c
40
unsigned char u, v, w;
drivers/input/joystick/cobra.c
59
for (i = 0, w = u ^ v; i < 2 && w; i++, w >>= 2)
drivers/input/joystick/cobra.c
60
if (w & 0x30) {
drivers/input/joystick/cobra.c
61
if ((w & 0x30) < 0x30 && r[i] < COBRA_LENGTH && t[i] > 0) {
drivers/input/joystick/cobra.c
62
buf[i] |= (__u64)((w >> 5) & 1) << r[i]++;
drivers/input/joystick/grip.c
108
unsigned char u, v, w;
drivers/input/joystick/grip.c
121
v = w = (gameport_read(gameport) >> shift) & 3;
drivers/input/joystick/grip.c
135
if ((((u ^ v) & (v ^ w)) >> 1) & ~(u | v | w) & 1) {
drivers/input/joystick/grip.c
148
w = v;
drivers/input/joystick/tmdc.c
129
unsigned char u, v, w, x;
drivers/input/joystick/tmdc.c
143
w = gameport_read(gameport) >> 4;
drivers/input/joystick/tmdc.c
146
x = w;
drivers/input/joystick/tmdc.c
147
w = gameport_read(gameport) >> 4;
drivers/input/joystick/tmdc.c
149
for (k = 0, v = w, u = x; k < 2; k++, v >>= 2, u >>= 2) {
drivers/input/joystick/walkera0701.c
100
val8 *= (w->buf[18] & 2) - 1; /*sign */
drivers/input/joystick/walkera0701.c
102
magic = (w->buf[21] << 4) | w->buf[22];
drivers/input/joystick/walkera0701.c
103
magic_bit = (w->buf[24] & 8) >> 3;
drivers/input/joystick/walkera0701.c
108
input_report_abs(w->input_dev, ABS_X, val2);
drivers/input/joystick/walkera0701.c
109
input_report_abs(w->input_dev, ABS_Y, val1);
drivers/input/joystick/walkera0701.c
110
input_report_abs(w->input_dev, ABS_Z, val6);
drivers/input/joystick/walkera0701.c
111
input_report_abs(w->input_dev, ABS_THROTTLE, val3);
drivers/input/joystick/walkera0701.c
112
input_report_abs(w->input_dev, ABS_RUDDER, val4);
drivers/input/joystick/walkera0701.c
113
input_report_abs(w->input_dev, ABS_MISC, val7);
drivers/input/joystick/walkera0701.c
114
input_report_key(w->input_dev, BTN_GEAR_DOWN, val5 > 0);
drivers/input/joystick/walkera0701.c
126
struct walkera_dev *w = handler_data;
drivers/input/joystick/walkera0701.c
128
w->irq_time = ktime_to_ns(ktime_get());
drivers/input/joystick/walkera0701.c
129
pulse_time = w->irq_time - w->irq_lasttime;
drivers/input/joystick/walkera0701.c
130
w->irq_lasttime = w->irq_time;
drivers/input/joystick/walkera0701.c
133
if (unlikely(0 != hrtimer_try_to_cancel(&w->timer))) {
drivers/input/joystick/walkera0701.c
134
w->counter = NO_SYNC;
drivers/input/joystick/walkera0701.c
138
if (w->counter < NO_SYNC) {
drivers/input/joystick/walkera0701.c
139
if (w->ack) {
drivers/input/joystick/walkera0701.c
141
w->buf[w->counter] = 8;
drivers/input/joystick/walkera0701.c
144
w->buf[w->counter] = 0;
drivers/input/joystick/walkera0701.c
146
if (w->counter == 24) { /* full frame */
drivers/input/joystick/walkera0701.c
147
walkera0701_parse_frame(w);
drivers/input/joystick/walkera0701.c
148
w->counter = NO_SYNC;
drivers/input/joystick/walkera0701.c
150
w->counter = 0;
drivers/input/joystick/walkera0701.c
156
w->buf[w->counter++] |= (pulse_time & 7);
drivers/input/joystick/walkera0701.c
158
w->counter = NO_SYNC;
drivers/input/joystick/walkera0701.c
162
w->counter = 0;
drivers/input/joystick/walkera0701.c
164
hrtimer_start(&w->timer, BIN_SAMPLE, HRTIMER_MODE_REL);
drivers/input/joystick/walkera0701.c
170
struct walkera_dev *w;
drivers/input/joystick/walkera0701.c
172
w = container_of(handle, struct walkera_dev, timer);
drivers/input/joystick/walkera0701.c
173
w->ack = read_ack(w->pardevice);
drivers/input/joystick/walkera0701.c
180
struct walkera_dev *w = input_get_drvdata(dev);
drivers/input/joystick/walkera0701.c
182
if (parport_claim(w->pardevice))
drivers/input/joystick/walkera0701.c
185
parport_enable_irq(w->parport);
drivers/input/joystick/walkera0701.c
191
struct walkera_dev *w = input_get_drvdata(dev);
drivers/input/joystick/walkera0701.c
193
parport_disable_irq(w->parport);
drivers/input/joystick/walkera0701.c
194
hrtimer_cancel(&w->timer);
drivers/input/joystick/walkera0701.c
196
parport_release(w->pardevice);
drivers/input/joystick/walkera0701.c
202
struct walkera_dev *w = &w_dev;
drivers/input/joystick/walkera0701.c
215
w->parport = pp;
drivers/input/joystick/walkera0701.c
220
walkera0701_parport_cb.private = w;
drivers/input/joystick/walkera0701.c
222
w->pardevice = parport_register_dev_model(pp, "walkera0701",
drivers/input/joystick/walkera0701.c
225
if (!w->pardevice) {
drivers/input/joystick/walkera0701.c
230
if (parport_negotiate(w->pardevice->port, IEEE1284_MODE_COMPAT)) {
drivers/input/joystick/walkera0701.c
235
hrtimer_setup(&w->timer, timer_handler, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/input/joystick/walkera0701.c
237
w->input_dev = input_allocate_device();
drivers/input/joystick/walkera0701.c
238
if (!w->input_dev) {
drivers/input/joystick/walkera0701.c
243
input_set_drvdata(w->input_dev, w);
drivers/input/joystick/walkera0701.c
244
w->input_dev->name = "Walkera WK-0701 TX";
drivers/input/joystick/walkera0701.c
245
w->input_dev->phys = w->parport->name;
drivers/input/joystick/walkera0701.c
246
w->input_dev->id.bustype = BUS_PARPORT;
drivers/input/joystick/walkera0701.c
249
w->input_dev->id.vendor = 0x0001;
drivers/input/joystick/walkera0701.c
250
w->input_dev->id.product = 0x0001;
drivers/input/joystick/walkera0701.c
251
w->input_dev->id.version = 0x0100;
drivers/input/joystick/walkera0701.c
252
w->input_dev->dev.parent = w->parport->dev;
drivers/input/joystick/walkera0701.c
253
w->input_dev->open = walkera0701_open;
drivers/input/joystick/walkera0701.c
254
w->input_dev->close = walkera0701_close;
drivers/input/joystick/walkera0701.c
256
w->input_dev->evbit[0] = BIT(EV_ABS) | BIT_MASK(EV_KEY);
drivers/input/joystick/walkera0701.c
257
w->input_dev->keybit[BIT_WORD(BTN_GEAR_DOWN)] = BIT_MASK(BTN_GEAR_DOWN);
drivers/input/joystick/walkera0701.c
259
input_set_abs_params(w->input_dev, ABS_X, -512, 512, 0, 0);
drivers/input/joystick/walkera0701.c
260
input_set_abs_params(w->input_dev, ABS_Y, -512, 512, 0, 0);
drivers/input/joystick/walkera0701.c
261
input_set_abs_params(w->input_dev, ABS_Z, -512, 512, 0, 0);
drivers/input/joystick/walkera0701.c
262
input_set_abs_params(w->input_dev, ABS_THROTTLE, -512, 512, 0, 0);
drivers/input/joystick/walkera0701.c
263
input_set_abs_params(w->input_dev, ABS_RUDDER, -512, 512, 0, 0);
drivers/input/joystick/walkera0701.c
264
input_set_abs_params(w->input_dev, ABS_MISC, -512, 512, 0, 0);
drivers/input/joystick/walkera0701.c
266
if (input_register_device(w->input_dev)) {
drivers/input/joystick/walkera0701.c
274
input_free_device(w->input_dev);
drivers/input/joystick/walkera0701.c
276
parport_unregister_device(w->pardevice);
drivers/input/joystick/walkera0701.c
281
struct walkera_dev *w = &w_dev;
drivers/input/joystick/walkera0701.c
283
if (!w->pardevice || w->parport->number != port->number)
drivers/input/joystick/walkera0701.c
286
input_unregister_device(w->input_dev);
drivers/input/joystick/walkera0701.c
287
parport_unregister_device(w->pardevice);
drivers/input/joystick/walkera0701.c
288
w->parport = NULL;
drivers/input/joystick/walkera0701.c
62
static inline void walkera0701_parse_frame(struct walkera_dev *w)
drivers/input/joystick/walkera0701.c
70
crc1 += w->buf[i] & 7;
drivers/input/joystick/walkera0701.c
71
crc2 += (w->buf[i] & 8) >> 3;
drivers/input/joystick/walkera0701.c
73
if ((w->buf[10] & 7) != (crc1 & 7))
drivers/input/joystick/walkera0701.c
75
if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1))
drivers/input/joystick/walkera0701.c
78
crc1 += w->buf[i] & 7;
drivers/input/joystick/walkera0701.c
79
crc2 += (w->buf[i] & 8) >> 3;
drivers/input/joystick/walkera0701.c
81
if ((w->buf[23] & 7) != (crc1 & 7))
drivers/input/joystick/walkera0701.c
83
if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1))
drivers/input/joystick/walkera0701.c
85
val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2;
drivers/input/joystick/walkera0701.c
86
val1 *= ((w->buf[0] >> 2) & 2) - 1; /* sign */
drivers/input/joystick/walkera0701.c
87
val2 = (w->buf[2] & 1) << 8 | (w->buf[3] << 4) | w->buf[4];
drivers/input/joystick/walkera0701.c
88
val2 *= (w->buf[2] & 2) - 1; /* sign */
drivers/input/joystick/walkera0701.c
89
val3 = ((w->buf[5] & 7) * 256 + w->buf[6] * 16 + w->buf[7]) >> 2;
drivers/input/joystick/walkera0701.c
90
val3 *= ((w->buf[5] >> 2) & 2) - 1; /* sign */
drivers/input/joystick/walkera0701.c
91
val4 = (w->buf[7] & 1) << 8 | (w->buf[8] << 4) | w->buf[9];
drivers/input/joystick/walkera0701.c
92
val4 *= (w->buf[7] & 2) - 1; /* sign */
drivers/input/joystick/walkera0701.c
93
val5 = ((w->buf[11] & 7) * 256 + w->buf[12] * 16 + w->buf[13]) >> 2;
drivers/input/joystick/walkera0701.c
94
val5 *= ((w->buf[11] >> 2) & 2) - 1; /* sign */
drivers/input/joystick/walkera0701.c
95
val6 = (w->buf[13] & 1) << 8 | (w->buf[14] << 4) | w->buf[15];
drivers/input/joystick/walkera0701.c
96
val6 *= (w->buf[13] & 2) - 1; /* sign */
drivers/input/joystick/walkera0701.c
97
val7 = ((w->buf[16] & 7) * 256 + w->buf[17] * 16 + w->buf[18]) >> 2;
drivers/input/joystick/walkera0701.c
98
val7 *= ((w->buf[16] >> 2) & 2) - 1; /*sign */
drivers/input/joystick/walkera0701.c
99
val8 = (w->buf[18] & 1) << 8 | (w->buf[19] << 4) | w->buf[20];
drivers/input/keyboard/applespi.c
1226
int x, y, w, h;
drivers/input/keyboard/applespi.c
1228
sts = sscanf(touchpad_dimensions, "%dx%d+%u+%u", &x, &y, &w, &h);
drivers/input/keyboard/applespi.c
1234
applespi->tp_info.x_max = x + w;
drivers/input/keyboard/lm8323.c
154
#define work_to_pwm(w) container_of(w, struct lm8323_pwm, work)
drivers/input/mouse/bcm5974.c
267
struct bcm5974_param w; /* finger width limits */
drivers/input/mouse/bcm5974.c
528
set_abs(input_dev, ABS_MT_TOUCH_MAJOR, &cfg->w);
drivers/input/mouse/bcm5974.c
529
set_abs(input_dev, ABS_MT_TOUCH_MINOR, &cfg->w);
drivers/input/mouse/bcm5974.c
531
set_abs(input_dev, ABS_MT_WIDTH_MAJOR, &cfg->w);
drivers/input/mouse/bcm5974.c
532
set_abs(input_dev, ABS_MT_WIDTH_MINOR, &cfg->w);
drivers/input/mouse/bcm5974.c
595
int w = raw2int(f->tool_major);
drivers/input/mouse/bcm5974.c
598
abs_w = clamp_val(16 * w / cfg->w.max, 0, 15);
drivers/input/mouse/cypress_ps2.h
19
#define CYTP_CMD_SET_HSCROLL_WIDTH(w) ENCODE_CMD(1, 1, 0, (w))
drivers/input/mouse/cypress_ps2.h
21
#define CYTP_CMD_SET_VSCROLL_WIDTH(w) ENCODE_CMD(1, 2, 0, (w))
drivers/input/mouse/hgpk.c
916
struct delayed_work *w = to_delayed_work(work);
drivers/input/mouse/hgpk.c
917
struct hgpk_data *priv = container_of(w, struct hgpk_data, recalib_wq);
drivers/input/mouse/synaptics.c
1074
else if (sgm->w >= 4)
drivers/input/mouse/synaptics.c
1076
else if (sgm->w == 0)
drivers/input/mouse/synaptics.c
1078
else if (sgm->w == 1)
drivers/input/mouse/synaptics.c
1140
switch (hw.w) {
drivers/input/mouse/synaptics.c
1143
num_fingers = hw.w + 2;
drivers/input/mouse/synaptics.c
1154
finger_width = hw.w;
drivers/input/mouse/synaptics.c
783
agm->w = hw->w;
drivers/input/mouse/synaptics.c
818
hw->w = (((buf[0] & 0x30) >> 2) |
drivers/input/mouse/synaptics.c
822
if (synaptics_has_agm(priv) && hw->w == 2) {
drivers/input/mouse/synaptics.c
851
} else if (hw->w >= 4 && ((buf[0] ^ buf[3]) & 0x01)) {
drivers/input/mouse/synaptics.c
884
if (hw->w == 2)
drivers/input/mouse/synaptics.c
902
hw->w = (((buf[1] & 0x80) >> 4) | ((buf[0] & 0x04) >> 1));
drivers/input/mouse/synaptics.h
155
int w;
drivers/input/mouse/synaptics_usb.c
130
unsigned int pressure, w;
drivers/input/mouse/synaptics_usb.c
135
w = synusb->data[0] & 0x0f;
drivers/input/mouse/synaptics_usb.c
140
switch (w) {
drivers/input/mouse/synaptics_usb.c
142
num_fingers = 2 + w;
drivers/input/mouse/synaptics_usb.c
149
tool_width = w;
drivers/input/serio/olpc_apsp.c
104
unsigned int w, tmp;
drivers/input/serio/olpc_apsp.c
117
w = readl(priv->base + COMMAND_RETURN_STATUS);
drivers/input/serio/olpc_apsp.c
118
dev_dbg(priv->dev, "olpc_apsp_rx %x\n", w);
drivers/input/serio/olpc_apsp.c
120
if (w >> PORT_SHIFT == KEYBOARD_PORT)
drivers/input/serio/olpc_apsp.c
125
serio_interrupt(serio, w & DATA_MASK, 0);
drivers/input/tablet/aiptek.c
1536
int err, w;
drivers/input/tablet/aiptek.c
1538
err = kstrtoint(buf, 10, &w);
drivers/input/tablet/aiptek.c
1542
aiptek->newSetting.wheel = w;
drivers/input/touchscreen/cy8ctma140.c
60
u8 w;
drivers/input/touchscreen/cy8ctma140.c
80
w = buf[4];
drivers/input/touchscreen/cy8ctma140.c
83
slot, id, x, y, w);
drivers/input/touchscreen/cy8ctma140.c
88
input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, w);
drivers/input/touchscreen/elants_i2c.c
1007
w = buf[FW_POS_WIDTH + i / 2];
drivers/input/touchscreen/elants_i2c.c
1008
w >>= 4 * (~i & 1);
drivers/input/touchscreen/elants_i2c.c
1009
w |= w << 4;
drivers/input/touchscreen/elants_i2c.c
1010
w |= !w;
drivers/input/touchscreen/elants_i2c.c
1011
p = w;
drivers/input/touchscreen/elants_i2c.c
1014
w = buf[FW_POS_WIDTH + i];
drivers/input/touchscreen/elants_i2c.c
1018
i, x, y, p, w);
drivers/input/touchscreen/elants_i2c.c
1024
input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, w);
drivers/input/touchscreen/elants_i2c.c
992
unsigned int x, y, p, w;
drivers/input/touchscreen/goodix_berlin_core.c
144
__le16 w;
drivers/input/touchscreen/goodix_berlin_core.c
467
__le16_to_cpu(t->w));
drivers/input/touchscreen/hideep.c
719
input_report_abs(input, ABS_MT_TOUCH_MAJOR, event->w);
drivers/input/touchscreen/hideep.c
95
u8 w;
drivers/input/touchscreen/himax_hx83112b.c
232
u8 w = event->majors[point_index];
drivers/input/touchscreen/himax_hx83112b.c
240
input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, w);
drivers/input/touchscreen/himax_hx83112b.c
241
input_report_abs(ts->input_dev, ABS_MT_WIDTH_MAJOR, w);
drivers/input/touchscreen/himax_hx852x.c
270
unsigned int i, x, y, w;
drivers/input/touchscreen/himax_hx852x.c
290
w = width[i];
drivers/input/touchscreen/himax_hx852x.c
295
input_report_abs(hx->input_dev, ABS_MT_TOUCH_MAJOR, w);
drivers/input/touchscreen/hynitron_cstxxx.c
250
u8 id, unsigned int x, unsigned int y, u8 w)
drivers/input/touchscreen/hynitron_cstxxx.c
255
input_report_abs(ts_data->input_dev, ABS_MT_TOUCH_MAJOR, w);
drivers/input/touchscreen/hynitron_cstxxx.c
293
u8 finger_id, sw, w;
drivers/input/touchscreen/hynitron_cstxxx.c
333
w = (buf[idx + 4] >> 3);
drivers/input/touchscreen/hynitron_cstxxx.c
345
cst3xx_report_contact(ts_data, finger_id, x, y, w);
drivers/input/touchscreen/usbtouchscreen.c
1062
int x, y, begin_x, begin_y, end_x, end_y, w, h, ret;
drivers/input/touchscreen/usbtouchscreen.c
1107
w = end_x - begin_x;
drivers/input/touchscreen/usbtouchscreen.c
1112
ABS_MT_TOUCH_MAJOR, max(w,h));
drivers/input/touchscreen/usbtouchscreen.c
1116
ABS_MT_POSITION_X, 2*begin_x+w);
drivers/input/touchscreen/usbtouchscreen.c
1120
ABS_MT_ORIENTATION, w > h);
drivers/input/touchscreen/usbtouchscreen.c
1124
usbtouch->x = 2 * begin_x + w;
drivers/input/touchscreen/wdt87xx_i2c.c
954
u32 x, y, w;
drivers/input/touchscreen/wdt87xx_i2c.c
965
w = buf[FINGER_EV_V1_OFFSET_W];
drivers/input/touchscreen/wdt87xx_i2c.c
966
w *= param->scaling_factor;
drivers/input/touchscreen/wdt87xx_i2c.c
984
input_report_abs(input, ABS_MT_TOUCH_MAJOR, w);
drivers/ipack/devices/ipoctal.c
168
iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
211
iowrite8(value, &channel->regs->w.thr);
drivers/ipack/devices/ipoctal.c
229
iowrite8(CR_CMD_RESET_BREAK_CHANGE, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
232
iowrite8(CR_DISABLE_TX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
236
iowrite8(CR_CMD_NEGATE_RTSN, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
237
iowrite8(CR_ENABLE_RX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
340
&channel->regs->w.mr); /* mr1 */
drivers/ipack/devices/ipoctal.c
341
iowrite8(0, &channel->regs->w.mr); /* mr2 */
drivers/ipack/devices/ipoctal.c
342
iowrite8(TX_CLK_9600 | RX_CLK_9600, &channel->regs->w.csr);
drivers/ipack/devices/ipoctal.c
346
iowrite8(ACR_BRG_SET2, &block_regs[i].w.acr);
drivers/ipack/devices/ipoctal.c
348
&block_regs[i].w.opcr);
drivers/ipack/devices/ipoctal.c
351
&block_regs[i].w.imr);
drivers/ipack/devices/ipoctal.c
469
iowrite8(CR_DISABLE_RX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
471
iowrite8(CR_CMD_ASSERT_RTSN, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
478
iowrite8(CR_ENABLE_TX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
62
iowrite8(CR_DISABLE_RX | CR_DISABLE_TX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
621
iowrite8(mr1, &channel->regs->w.mr);
drivers/ipack/devices/ipoctal.c
622
iowrite8(mr2, &channel->regs->w.mr);
drivers/ipack/devices/ipoctal.c
623
iowrite8(csr, &channel->regs->w.csr);
drivers/ipack/devices/ipoctal.c
627
iowrite8(CR_ENABLE_RX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
64
iowrite8(CR_CMD_RESET_RX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
65
iowrite8(CR_CMD_RESET_TX, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
66
iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
67
iowrite8(CR_CMD_RESET_MR, &channel->regs->w.cr);
drivers/ipack/devices/ipoctal.c
80
iowrite8(CR_ENABLE_RX, &channel->regs->w.cr);
drivers/ipack/devices/scc2698.h
35
} __packed w; /* Write access */
drivers/ipack/devices/scc2698.h
82
} __packed w; /* Write access */
drivers/isdn/hardware/mISDN/mISDNinfineon.c
390
u16 w;
drivers/isdn/hardware/mISDN/mISDNinfineon.c
414
w = inw((u32)hw->cfg.start + SCT_PLX_IRQ_ADDR);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
415
w |= SCT_PLX_IRQ_ENABLE;
drivers/isdn/hardware/mISDN/mISDNinfineon.c
416
outw(w, (u32)hw->cfg.start + SCT_PLX_IRQ_ADDR);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
434
u16 w;
drivers/isdn/hardware/mISDN/mISDNinfineon.c
458
w = inw((u32)hw->cfg.start + SCT_PLX_IRQ_ADDR);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
459
w &= (~SCT_PLX_IRQ_ENABLE);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
460
outw(w, (u32)hw->cfg.start + SCT_PLX_IRQ_ADDR);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
485
u16 w;
drivers/isdn/hardware/mISDN/mISDNinfineon.c
534
w = inw((u32)hw->cfg.start + SCT_PLX_RESET_ADDR);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
535
w &= (~SCT_PLX_RESET_BIT);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
536
outw(w, (u32)hw->cfg.start + SCT_PLX_RESET_ADDR);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
538
w = inw((u32)hw->cfg.start + SCT_PLX_RESET_ADDR);
drivers/isdn/hardware/mISDN/mISDNinfineon.c
539
w |= SCT_PLX_RESET_BIT;
drivers/isdn/hardware/mISDN/mISDNinfineon.c
540
outw(w, (u32)hw->cfg.start + SCT_PLX_RESET_ADDR);
drivers/isdn/mISDN/dsp_cmx.c
1176
int w, i, ii;
drivers/isdn/mISDN/dsp_cmx.c
1278
w = dsp->rx_W;
drivers/isdn/mISDN/dsp_cmx.c
1282
d[w++ & CMX_BUFF_MASK] = *p++;
drivers/isdn/mISDN/dsp_cmx.c
1851
u_int w, ww;
drivers/isdn/mISDN/dsp_cmx.c
1859
w = dsp->tx_W;
drivers/isdn/mISDN/dsp_cmx.c
1863
space = (ww - w - 1) & CMX_BUFF_MASK;
drivers/isdn/mISDN/dsp_cmx.c
1871
skb->len, w, ww);
drivers/isdn/mISDN/dsp_cmx.c
1874
ww = (w + skb->len) & CMX_BUFF_MASK;
drivers/isdn/mISDN/dsp_cmx.c
1880
(u_long)dsp, (ww - w) & CMX_BUFF_MASK, w, ww, dsp->name);
drivers/isdn/mISDN/dsp_cmx.c
1885
sprintf(debugbuf, "TX getting (%04x-%04x)%p: ", w, ww, p);
drivers/isdn/mISDN/dsp_cmx.c
1887
while (w != ww) {
drivers/isdn/mISDN/dsp_cmx.c
1892
p[w] = *d++;
drivers/isdn/mISDN/dsp_cmx.c
1893
w = (w + 1) & CMX_BUFF_MASK;
drivers/md/bcache/alloc.c
378
DEFINE_WAIT(w);
drivers/md/bcache/alloc.c
398
prepare_to_wait(&ca->set->bucket_wait, &w,
drivers/md/bcache/alloc.c
411
finish_wait(&ca->set->bucket_wait, &w);
drivers/md/bcache/btree.c
1780
struct keybuf_key *w, *n;
drivers/md/bcache/btree.c
1787
rbtree_postorder_for_each_entry_safe(w, n,
drivers/md/bcache/btree.c
1789
for (j = 0; j < KEY_PTRS(&w->key); j++)
drivers/md/bcache/btree.c
1790
SET_GC_MARK(PTR_BUCKET(c, &w->key, j),
drivers/md/bcache/btree.c
2657
struct keybuf_key *w;
drivers/md/bcache/btree.c
2661
w = array_alloc(&buf->freelist);
drivers/md/bcache/btree.c
2662
if (!w) {
drivers/md/bcache/btree.c
2667
w->private = NULL;
drivers/md/bcache/btree.c
2668
bkey_copy(&w->key, k);
drivers/md/bcache/btree.c
2670
if (RB_INSERT(&buf->keys, w, node, keybuf_cmp))
drivers/md/bcache/btree.c
2671
array_free(&buf->freelist, w);
drivers/md/bcache/btree.c
2710
struct keybuf_key *w;
drivers/md/bcache/btree.c
2712
w = RB_FIRST(&buf->keys, struct keybuf_key, node);
drivers/md/bcache/btree.c
2713
buf->start = START_KEY(&w->key);
drivers/md/bcache/btree.c
2715
w = RB_LAST(&buf->keys, struct keybuf_key, node);
drivers/md/bcache/btree.c
2716
buf->end = w->key;
drivers/md/bcache/btree.c
2725
static void __bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w)
drivers/md/bcache/btree.c
2727
rb_erase(&w->node, &buf->keys);
drivers/md/bcache/btree.c
2728
array_free(&buf->freelist, w);
drivers/md/bcache/btree.c
2731
void bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w)
drivers/md/bcache/btree.c
2734
__bch_keybuf_del(buf, w);
drivers/md/bcache/btree.c
2742
struct keybuf_key *p, *w, s;
drivers/md/bcache/btree.c
2751
w = RB_GREATER(&buf->keys, s, node, keybuf_nonoverlapping_cmp);
drivers/md/bcache/btree.c
2753
while (w && bkey_cmp(&START_KEY(&w->key), end) < 0) {
drivers/md/bcache/btree.c
2754
p = w;
drivers/md/bcache/btree.c
2755
w = RB_NEXT(w, node);
drivers/md/bcache/btree.c
2769
struct keybuf_key *w;
drivers/md/bcache/btree.c
2773
w = RB_FIRST(&buf->keys, struct keybuf_key, node);
drivers/md/bcache/btree.c
2775
while (w && w->private)
drivers/md/bcache/btree.c
2776
w = RB_NEXT(w, node);
drivers/md/bcache/btree.c
2778
if (w)
drivers/md/bcache/btree.c
2779
w->private = ERR_PTR(-EINTR);
drivers/md/bcache/btree.c
2782
return w;
drivers/md/bcache/btree.c
281
static void btree_complete_write(struct btree *b, struct btree_write *w)
drivers/md/bcache/btree.c
283
if (w->prio_blocked &&
drivers/md/bcache/btree.c
284
!atomic_sub_return(w->prio_blocked, &b->c->prio_blocked))
drivers/md/bcache/btree.c
287
if (w->journal) {
drivers/md/bcache/btree.c
288
atomic_dec_bug(w->journal);
drivers/md/bcache/btree.c
292
w->prio_blocked = 0;
drivers/md/bcache/btree.c
293
w->journal = NULL;
drivers/md/bcache/btree.c
306
struct btree_write *w = btree_prev_write(b);
drivers/md/bcache/btree.c
310
btree_complete_write(b, w);
drivers/md/bcache/btree.c
465
static void btree_node_write_work(struct work_struct *w)
drivers/md/bcache/btree.c
467
struct btree *b = container_of(to_delayed_work(w), struct btree, work);
drivers/md/bcache/btree.c
478
struct btree_write *w = btree_current_write(b);
drivers/md/bcache/btree.c
496
if (w->journal &&
drivers/md/bcache/btree.c
497
journal_pin_cmp(b->c, w->journal, journal_ref)) {
drivers/md/bcache/btree.c
498
atomic_dec_bug(w->journal);
drivers/md/bcache/btree.c
499
w->journal = NULL;
drivers/md/bcache/btree.c
502
if (!w->journal) {
drivers/md/bcache/btree.c
503
w->journal = journal_ref;
drivers/md/bcache/btree.c
504
atomic_inc(w->journal);
drivers/md/bcache/btree.h
248
static inline void rw_lock(bool w, struct btree *b, int level)
drivers/md/bcache/btree.h
250
w ? down_write(&b->lock)
drivers/md/bcache/btree.h
252
if (w)
drivers/md/bcache/btree.h
256
static inline void rw_unlock(bool w, struct btree *b)
drivers/md/bcache/btree.h
258
if (w)
drivers/md/bcache/btree.h
260
(w ? up_write : up_read)(&b->lock);
drivers/md/bcache/btree.h
410
void bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w);
drivers/md/bcache/debug.c
179
struct keybuf_key *w;
drivers/md/bcache/debug.c
194
w = bch_keybuf_next_rescan(i->c, &i->keys, &MAX_KEY, dump_pred);
drivers/md/bcache/debug.c
195
if (!w)
drivers/md/bcache/debug.c
198
bch_extent_to_text(kbuf, sizeof(kbuf), &w->key);
drivers/md/bcache/debug.c
200
bch_keybuf_del(&i->keys, w);
drivers/md/bcache/journal.c
42
struct jset *j, *data = ca->set->journal.w[0].data;
drivers/md/bcache/journal.c
621
j->cur = (j->cur == j->w)
drivers/md/bcache/journal.c
622
? &j->w[1]
drivers/md/bcache/journal.c
623
: &j->w[0];
drivers/md/bcache/journal.c
643
struct journal_write *w = bio->bi_private;
drivers/md/bcache/journal.c
645
cache_set_err_on(bio->bi_status, w->c, "journal io error");
drivers/md/bcache/journal.c
646
closure_put(&w->c->journal.io);
drivers/md/bcache/journal.c
654
struct journal_write *w = (j->cur == j->w)
drivers/md/bcache/journal.c
655
? &j->w[1]
drivers/md/bcache/journal.c
656
: &j->w[0];
drivers/md/bcache/journal.c
658
__closure_wake_up(&w->wait);
drivers/md/bcache/journal.c
676
struct journal_write *w = c->journal.cur;
drivers/md/bcache/journal.c
678
unsigned int i, sectors = set_blocks(w->data, block_bytes(ca)) *
drivers/md/bcache/journal.c
686
if (!w->need_write) {
drivers/md/bcache/journal.c
698
c->journal.blocks_free -= set_blocks(w->data, block_bytes(ca));
drivers/md/bcache/journal.c
700
w->data->btree_level = c->root->level;
drivers/md/bcache/journal.c
702
bkey_copy(&w->data->btree_root, &c->root->key);
drivers/md/bcache/journal.c
703
bkey_copy(&w->data->uuid_bucket, &c->uuid_bucket);
drivers/md/bcache/journal.c
705
w->data->prio_bucket[ca->sb.nr_this_dev] = ca->prio_buckets[0];
drivers/md/bcache/journal.c
706
w->data->magic = jset_magic(&ca->sb);
drivers/md/bcache/journal.c
707
w->data->version = BCACHE_JSET_VERSION;
drivers/md/bcache/journal.c
708
w->data->last_seq = last_seq(&c->journal);
drivers/md/bcache/journal.c
709
w->data->csum = csum_set(w->data);
drivers/md/bcache/journal.c
723
bio->bi_private = w;
drivers/md/bcache/journal.c
724
bch_bio_map(bio, w->data);
drivers/md/bcache/journal.c
726
trace_bcache_journal_write(bio, w->data->keys);
drivers/md/bcache/journal.c
731
ca->journal.seq[ca->journal.cur_idx] = w->data->seq;
drivers/md/bcache/journal.c
761
struct journal_write *w = c->journal.cur;
drivers/md/bcache/journal.c
763
w->need_write = true;
drivers/md/bcache/journal.c
787
struct journal_write *w = c->journal.cur;
drivers/md/bcache/journal.c
789
sectors = __set_blocks(w->data, w->data->keys + nkeys,
drivers/md/bcache/journal.c
795
return w;
drivers/md/bcache/journal.c
810
BUG_ON(!w->data->keys);
drivers/md/bcache/journal.c
851
struct journal_write *w;
drivers/md/bcache/journal.c
861
w = journal_wait_for_write(c, bch_keylist_nkeys(keys));
drivers/md/bcache/journal.c
863
memcpy(bset_bkey_last(w->data), keys->keys, bch_keylist_bytes(keys));
drivers/md/bcache/journal.c
864
w->data->keys += bch_keylist_nkeys(keys);
drivers/md/bcache/journal.c
870
closure_wait(&w->wait, parent);
drivers/md/bcache/journal.c
872
} else if (!w->dirty) {
drivers/md/bcache/journal.c
873
w->dirty = true;
drivers/md/bcache/journal.c
899
free_pages((unsigned long) c->journal.w[1].data, JSET_BITS);
drivers/md/bcache/journal.c
900
free_pages((unsigned long) c->journal.w[0].data, JSET_BITS);
drivers/md/bcache/journal.c
914
j->w[0].c = c;
drivers/md/bcache/journal.c
915
j->w[1].c = c;
drivers/md/bcache/journal.c
918
!(j->w[0].data = (void *) __get_free_pages(GFP_KERNEL|__GFP_COMP, JSET_BITS)) ||
drivers/md/bcache/journal.c
919
!(j->w[1].data = (void *) __get_free_pages(GFP_KERNEL|__GFP_COMP, JSET_BITS)))
drivers/md/bcache/journal.h
122
struct journal_write w[2], *cur;
drivers/md/bcache/movinggc.c
100
io->bio.bio.bi_iter.bi_sector = KEY_START(&io->w->key);
drivers/md/bcache/movinggc.c
104
op->writeback = KEY_DIRTY(&io->w->key);
drivers/md/bcache/movinggc.c
105
op->csum = KEY_CSUM(&io->w->key);
drivers/md/bcache/movinggc.c
107
bkey_copy(&op->replace_key, &io->w->key);
drivers/md/bcache/movinggc.c
121
bch_submit_bbio(bio, io->op.c, &io->w->key, 0);
drivers/md/bcache/movinggc.c
128
struct keybuf_key *w;
drivers/md/bcache/movinggc.c
138
w = bch_keybuf_next_rescan(c, &c->moving_gc_keys,
drivers/md/bcache/movinggc.c
140
if (!w)
drivers/md/bcache/movinggc.c
143
if (ptr_stale(c, &w->key, 0)) {
drivers/md/bcache/movinggc.c
144
bch_keybuf_del(&c->moving_gc_keys, w);
drivers/md/bcache/movinggc.c
149
DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS),
drivers/md/bcache/movinggc.c
154
w->private = io;
drivers/md/bcache/movinggc.c
155
io->w = w;
drivers/md/bcache/movinggc.c
156
io->op.inode = KEY_INODE(&w->key);
drivers/md/bcache/movinggc.c
169
trace_bcache_gc_copy(&w->key);
drivers/md/bcache/movinggc.c
17
struct keybuf_key *w;
drivers/md/bcache/movinggc.c
176
err: if (!IS_ERR_OR_NULL(w->private))
drivers/md/bcache/movinggc.c
177
kfree(w->private);
drivers/md/bcache/movinggc.c
179
bch_keybuf_del(&c->moving_gc_keys, w);
drivers/md/bcache/movinggc.c
53
trace_bcache_gc_copy_collision(&io->w->key);
drivers/md/bcache/movinggc.c
55
bch_keybuf_del(&io->op.c->moving_gc_keys, io->w);
drivers/md/bcache/movinggc.c
83
DIV_ROUND_UP(KEY_SIZE(&io->w->key), PAGE_SECTORS), 0);
drivers/md/bcache/movinggc.c
87
bio->bi_iter.bi_size = KEY_SIZE(&io->w->key) << 9;
drivers/md/bcache/super.c
1141
static void cached_dev_detach_finish(struct work_struct *w)
drivers/md/bcache/super.c
1143
struct cached_dev *dc = container_of(w, struct cached_dev, detach);
drivers/md/bcache/writeback.c
329
static void dirty_init(struct keybuf_key *w)
drivers/md/bcache/writeback.c
331
struct dirty_io *io = w->private;
drivers/md/bcache/writeback.c
335
DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), 0);
drivers/md/bcache/writeback.c
339
bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9;
drivers/md/bcache/writeback.c
340
bio->bi_private = w;
drivers/md/bcache/writeback.c
354
struct keybuf_key *w = io->bio.bi_private;
drivers/md/bcache/writeback.c
360
if (KEY_DIRTY(&w->key)) {
drivers/md/bcache/writeback.c
367
bkey_copy(keys.top, &w->key);
drivers/md/bcache/writeback.c
371
for (i = 0; i < KEY_PTRS(&w->key); i++)
drivers/md/bcache/writeback.c
372
atomic_inc(&PTR_BUCKET(dc->disk.c, &w->key, i)->pin);
drivers/md/bcache/writeback.c
374
ret = bch_btree_insert(dc->disk.c, &keys, NULL, &w->key);
drivers/md/bcache/writeback.c
377
trace_bcache_writeback_collision(&w->key);
drivers/md/bcache/writeback.c
384
bch_keybuf_del(&dc->writeback_keys, w);
drivers/md/bcache/writeback.c
392
struct keybuf_key *w = bio->bi_private;
drivers/md/bcache/writeback.c
393
struct dirty_io *io = w->private;
drivers/md/bcache/writeback.c
396
SET_KEY_DIRTY(&w->key, false);
drivers/md/bcache/writeback.c
406
struct keybuf_key *w = io->bio.bi_private;
drivers/md/bcache/writeback.c
435
if (KEY_DIRTY(&w->key)) {
drivers/md/bcache/writeback.c
436
dirty_init(w);
drivers/md/bcache/writeback.c
438
io->bio.bi_iter.bi_sector = KEY_START(&w->key);
drivers/md/bcache/writeback.c
454
struct keybuf_key *w = bio->bi_private;
drivers/md/bcache/writeback.c
455
struct dirty_io *io = w->private;
drivers/md/bcache/writeback.c
477
struct keybuf_key *next, *keys[MAX_WRITEBACKS_IN_PASS], *w;
drivers/md/bcache/writeback.c
537
w = keys[i];
drivers/md/bcache/writeback.c
540
DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS),
drivers/md/bcache/writeback.c
545
w->private = io;
drivers/md/bcache/writeback.c
549
dirty_init(w);
drivers/md/bcache/writeback.c
551
io->bio.bi_iter.bi_sector = PTR_OFFSET(&w->key, 0);
drivers/md/bcache/writeback.c
558
trace_bcache_writeback(&w->key);
drivers/md/bcache/writeback.c
582
kfree(w->private);
drivers/md/bcache/writeback.c
584
bch_keybuf_del(&dc->writeback_keys, w);
drivers/md/dm-bufio.c
2452
static void shrink_work(struct work_struct *w)
drivers/md/dm-bufio.c
2454
struct dm_bufio_client *c = container_of(w, struct dm_bufio_client, shrink_work);
drivers/md/dm-bufio.c
2817
static void do_global_cleanup(struct work_struct *w)
drivers/md/dm-bufio.c
658
struct evict_wrapper *w = context;
drivers/md/dm-bufio.c
661
lh_next(w->lh, b->block);
drivers/md/dm-bufio.c
666
return w->pred(b, w->context);
drivers/md/dm-bufio.c
673
struct evict_wrapper w = {.lh = lh, .pred = pred, .context = context};
drivers/md/dm-bufio.c
730
struct evict_wrapper w = {.lh = lh, .pred = pred, .context = context};
drivers/md/dm-cache-background-tracker.c
108
struct bt_work *w;
drivers/md/dm-cache-background-tracker.c
112
w = container_of(*new, struct bt_work, node);
drivers/md/dm-cache-background-tracker.c
114
cmp = cmp_oblock(w->work.oblock, oblock);
drivers/md/dm-cache-background-tracker.c
125
return *new ? w : NULL;
drivers/md/dm-cache-background-tracker.c
129
static void update_stats(struct background_tracker *b, struct policy_work *w, int delta)
drivers/md/dm-cache-background-tracker.c
131
switch (w->op) {
drivers/md/dm-cache-background-tracker.c
171
struct bt_work *w;
drivers/md/dm-cache-background-tracker.c
176
w = alloc_work(b);
drivers/md/dm-cache-background-tracker.c
177
if (!w)
drivers/md/dm-cache-background-tracker.c
180
memcpy(&w->work, work, sizeof(*work));
drivers/md/dm-cache-background-tracker.c
182
if (!__insert_pending(b, w)) {
drivers/md/dm-cache-background-tracker.c
187
kmem_cache_free(btracker_work_cache, w);
drivers/md/dm-cache-background-tracker.c
192
*pwork = &w->work;
drivers/md/dm-cache-background-tracker.c
193
list_add(&w->list, &b->issued);
drivers/md/dm-cache-background-tracker.c
195
list_add(&w->list, &b->queued);
drivers/md/dm-cache-background-tracker.c
196
update_stats(b, &w->work, 1);
drivers/md/dm-cache-background-tracker.c
207
struct bt_work *w;
drivers/md/dm-cache-background-tracker.c
212
w = list_first_entry(&b->queued, struct bt_work, list);
drivers/md/dm-cache-background-tracker.c
213
list_move(&w->list, &b->issued);
drivers/md/dm-cache-background-tracker.c
214
*work = &w->work;
drivers/md/dm-cache-background-tracker.c
223
struct bt_work *w = container_of(op, struct bt_work, work);
drivers/md/dm-cache-background-tracker.c
225
update_stats(b, &w->work, -1);
drivers/md/dm-cache-background-tracker.c
226
rb_erase(&w->node, &b->pending);
drivers/md/dm-cache-background-tracker.c
227
list_del(&w->list);
drivers/md/dm-cache-background-tracker.c
228
kmem_cache_free(btracker_work_cache, w);
drivers/md/dm-cache-background-tracker.c
52
struct bt_work *w, *tmp;
drivers/md/dm-cache-background-tracker.c
55
list_for_each_entry_safe (w, tmp, &b->queued, list) {
drivers/md/dm-cache-background-tracker.c
56
list_del(&w->list);
drivers/md/dm-cache-background-tracker.c
57
kmem_cache_free(btracker_work_cache, w);
drivers/md/dm-cache-background-tracker.c
79
struct bt_work *w;
drivers/md/dm-cache-background-tracker.c
83
w = container_of(*new, struct bt_work, node);
drivers/md/dm-cache-background-tracker.c
86
cmp = cmp_oblock(w->work.oblock, nw->work.oblock);
drivers/md/dm-integrity.c
1878
static void integrity_metadata(struct work_struct *w)
drivers/md/dm-integrity.c
1880
struct dm_integrity_io *dio = container_of(w, struct dm_integrity_io, work);
drivers/md/dm-integrity.c
2639
static void dm_integrity_inline_recheck(struct work_struct *w)
drivers/md/dm-integrity.c
2641
struct dm_integrity_io *dio = container_of(w, struct dm_integrity_io, work);
drivers/md/dm-integrity.c
2740
static void dm_integrity_inline_async_check(struct work_struct *w)
drivers/md/dm-integrity.c
2742
struct dm_integrity_io *dio = container_of(w, struct dm_integrity_io, work);
drivers/md/dm-integrity.c
2778
static void integrity_bio_wait(struct work_struct *w)
drivers/md/dm-integrity.c
2780
struct dm_integrity_io *dio = container_of(w, struct dm_integrity_io, work);
drivers/md/dm-integrity.c
2824
static void integrity_commit(struct work_struct *w)
drivers/md/dm-integrity.c
2826
struct dm_integrity_c *ic = container_of(w, struct dm_integrity_c, commit_work);
drivers/md/dm-integrity.c
3070
static void integrity_writer(struct work_struct *w)
drivers/md/dm-integrity.c
3072
struct dm_integrity_c *ic = container_of(w, struct dm_integrity_c, writer_work);
drivers/md/dm-integrity.c
3113
static void integrity_recalc(struct work_struct *w)
drivers/md/dm-integrity.c
3115
struct dm_integrity_c *ic = container_of(w, struct dm_integrity_c, recalc_work);
drivers/md/dm-integrity.c
3280
static void integrity_recalc_inline(struct work_struct *w)
drivers/md/dm-integrity.c
3282
struct dm_integrity_c *ic = container_of(w, struct dm_integrity_c, recalc_work);
drivers/md/dm-integrity.c
3414
static void bitmap_block_work(struct work_struct *w)
drivers/md/dm-integrity.c
3416
struct bitmap_block_status *bbs = container_of(w, struct bitmap_block_status, work);
drivers/md/dm-integrity.c
377
static void integrity_bio_wait(struct work_struct *w);
drivers/md/dm-thin.c
2501
struct noflush_work *w = to_noflush(ws);
drivers/md/dm-thin.c
2503
w->tc->requeue_mode = true;
drivers/md/dm-thin.c
2504
requeue_io(w->tc);
drivers/md/dm-thin.c
2505
pool_work_complete(&w->pw);
drivers/md/dm-thin.c
2510
struct noflush_work *w = to_noflush(ws);
drivers/md/dm-thin.c
2512
w->tc->requeue_mode = false;
drivers/md/dm-thin.c
2513
pool_work_complete(&w->pw);
drivers/md/dm-thin.c
2518
struct noflush_work w;
drivers/md/dm-thin.c
2520
w.tc = tc;
drivers/md/dm-thin.c
2521
pool_work_wait(&w.pw, tc->pool, fn);
drivers/md/dm-verity-target.c
605
static void restart_io_error(struct work_struct *w)
drivers/md/dm-verity-target.c
644
static void verity_work(struct work_struct *w)
drivers/md/dm-verity-target.c
646
struct dm_verity_io *io = container_of(w, struct dm_verity_io, work);
drivers/md/dm-verity-target.c
653
static void verity_bh_work(struct work_struct *w)
drivers/md/dm-verity-target.c
655
struct dm_verity_io *io = container_of(w, struct dm_verity_io, work);
drivers/md/dm.c
401
static void do_deferred_remove(struct work_struct *w)
drivers/md/dm.c
61
static void do_deferred_remove(struct work_struct *w);
drivers/md/persistent-data/dm-block-manager.c
122
static void __wait(struct waiter *w)
drivers/md/persistent-data/dm-block-manager.c
127
if (!w->task)
drivers/md/persistent-data/dm-block-manager.c
136
static void __wake_waiter(struct waiter *w)
drivers/md/persistent-data/dm-block-manager.c
140
list_del(&w->list);
drivers/md/persistent-data/dm-block-manager.c
141
task = w->task;
drivers/md/persistent-data/dm-block-manager.c
143
w->task = NULL;
drivers/md/persistent-data/dm-block-manager.c
152
struct waiter *w, *tmp;
drivers/md/persistent-data/dm-block-manager.c
155
list_for_each_entry_safe(w, tmp, &lock->waiters, list) {
drivers/md/persistent-data/dm-block-manager.c
159
if (w->wants_write) {
drivers/md/persistent-data/dm-block-manager.c
164
__add_holder(lock, w->task);
drivers/md/persistent-data/dm-block-manager.c
165
__wake_waiter(w);
drivers/md/persistent-data/dm-block-manager.c
170
__add_holder(lock, w->task);
drivers/md/persistent-data/dm-block-manager.c
171
__wake_waiter(w);
drivers/md/persistent-data/dm-block-manager.c
196
struct waiter w;
drivers/md/persistent-data/dm-block-manager.c
214
w.task = current;
drivers/md/persistent-data/dm-block-manager.c
215
w.wants_write = 0;
drivers/md/persistent-data/dm-block-manager.c
216
list_add_tail(&w.list, &lock->waiters);
drivers/md/persistent-data/dm-block-manager.c
219
__wait(&w);
drivers/md/persistent-data/dm-block-manager.c
259
struct waiter w;
drivers/md/persistent-data/dm-block-manager.c
276
w.task = current;
drivers/md/persistent-data/dm-block-manager.c
277
w.wants_write = 1;
drivers/md/persistent-data/dm-block-manager.c
283
list_add(&w.list, &lock->waiters);
drivers/md/persistent-data/dm-block-manager.c
286
__wait(&w);
drivers/md/raid1.c
1490
DEFINE_WAIT(w);
drivers/md/raid1.c
1497
&w, TASK_IDLE);
drivers/md/raid1.c
1504
finish_wait(&conf->wait_barrier, &w);
drivers/md/raid10.c
1356
DEFINE_WAIT(w);
drivers/md/raid10.c
1364
&w, TASK_IDLE);
drivers/md/raid10.c
1370
finish_wait(&conf->wait_barrier, &w);
drivers/md/raid5.c
5720
DEFINE_WAIT(w);
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
268
unsigned int w, h;
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
274
w = dtd[2] + ((dtd[4] & 0xf0) << 4);
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
276
if (w != 3840 || h != 2160)
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
279
w += dtd[3] + ((dtd[4] & 0x0f) << 8);
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
283
mhz = div_u64(pclk, w * h);
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
485
static void update_edid_work(struct work_struct *w)
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
487
struct extron *extron = container_of(w, struct extron,
drivers/media/common/cx2341x.c
1052
u16 w = new->width;
drivers/media/common/cx2341x.c
1056
w /= 2;
drivers/media/common/cx2341x.c
1060
h, w);
drivers/media/common/cx2341x.c
1745
int w = cxhdl->width;
drivers/media/common/cx2341x.c
1756
w /= 2;
drivers/media/common/cx2341x.c
1759
err = cx2341x_hdl_api(cxhdl, CX2341X_ENC_SET_FRAME_SIZE, 2, h, w);
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1712
unsigned w = tpg->src_width;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1716
sq_w = (w * 2 / 5) & ~1;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1717
if (((w - sq_w) / 2) & 1)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1724
if (((w - ana_sq_w) / 2) & 1)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1728
tpg->square.left = (w - tpg->square.width) / 2;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1736
tpg->border.width = w;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1743
if (3 * w >= 4 * h) {
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1745
if (((w - tpg->border.width) / 2) & ~1)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1747
tpg->border.left = (w - tpg->border.width) / 2;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1750
tpg->border.height = ((3 * w) / 4) & ~1;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1759
if (9 * w >= 14 * h) {
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1761
if (((w - tpg->border.width) / 2) & ~1)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1763
tpg->border.left = (w - tpg->border.width) / 2;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1766
tpg->border.height = ((9 * w) / 14) & ~1;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1775
if (9 * w >= 16 * h) {
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1777
if (((w - tpg->border.width) / 2) & ~1)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1779
tpg->border.left = (w - tpg->border.width) / 2;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1782
tpg->border.height = ((9 * w) / 16) & ~1;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1864
unsigned w = tpg_hdiv(tpg, p, tpg->scaled_width * 2);
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
1869
for (x = 0; x < w; x++, pos1++, pos2++, dest++)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
89
void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h)
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
92
tpg->scaled_width = tpg->src_width = w;
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
94
tpg->crop.width = tpg->compose.width = w;
drivers/media/dvb-frontends/dib0070.c
640
#define pgm_read_word(w) (*w)
drivers/media/dvb-frontends/dib0090.c
93
#define pgm_read_word(w) (*w)
drivers/media/i2c/adv7604.c
1594
u32 w, h;
drivers/media/i2c/adv7604.c
1596
w = hdmi_read16(sd, 0x07, info->linewidth_mask);
drivers/media/i2c/adv7604.c
1603
bt->width == w && bt->height == h)
drivers/media/i2c/adv7604.c
1608
bt->width = w;
drivers/media/i2c/ccs/ccs-core.c
2294
static int scaling_goodness(struct v4l2_subdev *subdev, int w, int ask_w,
drivers/media/i2c/ccs/ccs-core.c
2301
w &= ~1;
drivers/media/i2c/ccs/ccs-core.c
2307
if (w < ask_w)
drivers/media/i2c/ccs/ccs-core.c
2314
if (w > ask_w)
drivers/media/i2c/ccs/ccs-core.c
2320
val -= abs(w - ask_w);
drivers/media/i2c/ccs/ccs-core.c
2323
if (w < CCS_LIM(sensor, MIN_X_OUTPUT_SIZE))
drivers/media/i2c/ccs/ccs-core.c
2327
w, ask_w, h, ask_h, val);
drivers/media/i2c/cx25840/cx25840-ir.c
636
unsigned u, v, w;
drivers/media/i2c/cx25840/cx25840-ir.c
662
w = 1;
drivers/media/i2c/cx25840/cx25840-ir.c
667
w = 0;
drivers/media/i2c/cx25840/cx25840-ir.c
676
{ .pulse = u, .duration = v, .timeout = w };
drivers/media/i2c/cx25840/cx25840-ir.c
679
v, u ? "mark" : "space", w ? "(timed out)" : "");
drivers/media/i2c/cx25840/cx25840-ir.c
680
if (w)
drivers/media/i2c/gc0308.c
411
#define GC0308_FRAME_SIZE(s, w, h) \
drivers/media/i2c/gc0308.c
412
{ .subsample = s, .width = w, .height = h }
drivers/media/i2c/imx274.c
953
int w, int ask_w,
drivers/media/i2c/imx274.c
961
if (w < ask_w)
drivers/media/i2c/imx274.c
968
if (w > ask_w)
drivers/media/i2c/imx274.c
974
val -= abs(w - ask_w);
drivers/media/i2c/imx274.c
978
__func__, ask_w, ask_h, w, h, val);
drivers/media/i2c/ov2640.c
572
#define OV2640_SIZE(n, w, h, r) \
drivers/media/i2c/ov2640.c
573
{.name = n, .width = w , .height = h, .regs = r }
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1271
unsigned w, h;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1279
w = mf->width;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1285
w = fs->width;
drivers/media/i2c/s5c73m3/s5c73m3-core.c
1288
fse->max_width = fse->min_width = w;
drivers/media/i2c/s5k5baf.c
414
__be16 w, r;
drivers/media/i2c/s5k5baf.c
418
.len = 2, .buf = (u8 *)&w },
drivers/media/i2c/s5k5baf.c
427
w = cpu_to_be16(addr);
drivers/media/pci/cx18/cx18-ioctl.c
114
pixfmt->width = w;
drivers/media/pci/cx18/cx18-ioctl.c
131
int w, h;
drivers/media/pci/cx18/cx18-ioctl.c
136
w = fmt->fmt.pix.width;
drivers/media/pci/cx18/cx18-ioctl.c
139
if (cx->cxhdl.width == w && cx->cxhdl.height == h &&
drivers/media/pci/cx18/cx18-ioctl.c
150
format.format.width = cx->cxhdl.width = w;
drivers/media/pci/cx18/cx18-ioctl.c
82
int w = pixfmt->width;
drivers/media/pci/cx18/cx18-ioctl.c
85
w = min(w, 720);
drivers/media/pci/cx18/cx18-ioctl.c
86
w = max(w, 720 / 16);
drivers/media/pci/cx18/cx18-mailbox.c
591
DEFINE_WAIT(w);
drivers/media/pci/cx18/cx18-mailbox.c
672
prepare_to_wait(waitq, &w, TASK_UNINTERRUPTIBLE);
drivers/media/pci/cx18/cx18-mailbox.c
685
finish_wait(waitq, &w);
drivers/media/pci/cx23885/cx23888-ir.c
638
unsigned u, v, w;
drivers/media/pci/cx23885/cx23888-ir.c
657
w = 1;
drivers/media/pci/cx23885/cx23888-ir.c
662
w = 0;
drivers/media/pci/cx23885/cx23888-ir.c
671
{ .pulse = u, .duration = v, .timeout = w };
drivers/media/pci/cx23885/cx23888-ir.c
674
v, u ? "mark" : "space", w ? "(timed out)" : "");
drivers/media/pci/cx23885/cx23888-ir.c
675
if (w)
drivers/media/pci/cx25821/cx25821-video.c
339
unsigned w;
drivers/media/pci/cx25821/cx25821-video.c
346
w = f->fmt.pix.width;
drivers/media/pci/cx25821/cx25821-video.c
349
if (w < 352) {
drivers/media/pci/cx25821/cx25821-video.c
350
w = 176;
drivers/media/pci/cx25821/cx25821-video.c
352
} else if (w < 720) {
drivers/media/pci/cx25821/cx25821-video.c
353
w = 352;
drivers/media/pci/cx25821/cx25821-video.c
356
w = 720;
drivers/media/pci/cx25821/cx25821-video.c
361
f->fmt.pix.width = w;
drivers/media/pci/ivtv/ivtv-ioctl.c
451
winfmt->w.top = winfmt->w.left = 0;
drivers/media/pci/ivtv/ivtv-ioctl.c
452
winfmt->w.width = itv->osd_rect.width;
drivers/media/pci/ivtv/ivtv-ioctl.c
453
winfmt->w.height = itv->osd_rect.height;
drivers/media/pci/ivtv/ivtv-ioctl.c
466
int w = fmt->fmt.pix.width;
drivers/media/pci/ivtv/ivtv-ioctl.c
470
w = min(w, 720);
drivers/media/pci/ivtv/ivtv-ioctl.c
471
w = max(w, 2);
drivers/media/pci/ivtv/ivtv-ioctl.c
480
fmt->fmt.pix.width = w;
drivers/media/pci/ivtv/ivtv-ioctl.c
514
s32 w = fmt->fmt.pix.width;
drivers/media/pci/ivtv/ivtv-ioctl.c
519
w = min(w, 720);
drivers/media/pci/ivtv/ivtv-ioctl.c
520
w = max(w, 2);
drivers/media/pci/ivtv/ivtv-ioctl.c
540
fmt->fmt.pix.width = w;
drivers/media/pci/ivtv/ivtv-ioctl.c
575
int w = fmt->fmt.pix.width;
drivers/media/pci/ivtv/ivtv-ioctl.c
581
if (itv->cxhdl.width == w && itv->cxhdl.height == h)
drivers/media/pci/ivtv/ivtv-ioctl.c
587
itv->cxhdl.width = w;
drivers/media/pci/saa7164/saa7164-core.c
349
static void saa7164_work_enchandler(struct work_struct *w)
drivers/media/pci/saa7164/saa7164-core.c
352
container_of(w, struct saa7164_port, workenc);
drivers/media/pci/saa7164/saa7164-core.c
425
static void saa7164_work_vbihandler(struct work_struct *w)
drivers/media/pci/saa7164/saa7164-core.c
428
container_of(w, struct saa7164_port, workenc);
drivers/media/pci/saa7164/saa7164-core.c
500
static void saa7164_work_cmdhandler(struct work_struct *w)
drivers/media/pci/saa7164/saa7164-core.c
502
struct saa7164_dev *dev = container_of(w, struct saa7164_dev, workcmd);
drivers/media/platform/amphion/vpu_helpers.c
219
u32 vpu_helper_get_plane_size(u32 fmt, u32 w, u32 h, int plane_no,
drivers/media/platform/amphion/vpu_helpers.c
225
return get_nv12_plane_size(w, h, plane_no, stride, interlaced, pbl);
drivers/media/platform/amphion/vpu_helpers.c
230
return get_tiled_8l128_plane_size(fmt, w, h, plane_no, stride, interlaced, pbl);
drivers/media/platform/amphion/vpu_helpers.c
232
return get_default_plane_size(w, h, plane_no, stride, interlaced, pbl);
drivers/media/platform/arm/mali-c55/mali-c55-registers.h
389
#define MALI_C55_REG_ACTIVE_OUT_SIZE_W(w) ((w) << 0)
drivers/media/platform/chips-media/coda/coda-common.c
349
unsigned int w, h;
drivers/media/platform/chips-media/coda/coda-common.c
353
w = codec->max_w;
drivers/media/platform/chips-media/coda/coda-common.c
356
for (k = 0, w = 0, h = 0; k < num_codecs; k++) {
drivers/media/platform/chips-media/coda/coda-common.c
357
w = max(w, codecs[k].max_w);
drivers/media/platform/chips-media/coda/coda-common.c
363
*max_w = w;
drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h
86
int32_t w;
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
151
static void mtk_mdp_bound_align_image(u32 *w, unsigned int wmin,
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
159
org_w = *w;
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
163
v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0);
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
167
if (*w < org_w && (*w + step_w) <= wmax)
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
168
*w += step_w;
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
264
static void mtk_mdp_check_crop_change(u32 new_w, u32 new_h, u32 *w, u32 *h)
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
266
if (new_w != *w || new_h != *h) {
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
268
*w, *h, new_w, new_h);
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
270
*w = new_w;
drivers/media/platform/mediatek/mdp/mtk_mdp_regs.c
115
config->w = frame->width;
drivers/media/platform/mediatek/mdp/mtk_mdp_regs.c
84
config->w = frame->width;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
75
static void mdp_bound_align_image(u32 *w, u32 *h,
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
81
org_w = *w;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
83
v4l_bound_align_image(w, s->min_width, s->max_width, s->step_width,
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
89
v4l2_apply_frmsize_constraints(w, h, s);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
1796
int w, h, plane, size;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
1800
w = vsi->frame.uh.upscaled_width;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
1802
size = ALIGN(w, VCODEC_DEC_ALIGNED_64) * ALIGN(h, VCODEC_DEC_ALIGNED_64);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
941
u32 max_sb_w, max_sb_h, max_w, max_h, w, h;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
944
w = vsi->frame.uh.frame_width;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
947
if (w > VCODEC_DEC_4K_CODED_WIDTH || h > VCODEC_DEC_4K_CODED_HEIGHT)
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
951
if (w > MTK_VDEC_MAX_W || h > MTK_VDEC_MAX_H) {
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
967
instance->level, level, w, h);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
1670
int w;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
1675
w = vsi->frame.uh.frame_width;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
1677
size = ALIGN(w, 64) * ALIGN(h, 64);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
1696
instance->dpb[vb->index].width = w;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
1707
ref->frame_width = w;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
551
unsigned int w;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
557
w = vsi->frame.uh.frame_width;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
560
if (w > VCODEC_DEC_4K_CODED_WIDTH ||
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
563
} else if (w > MTK_VDEC_MAX_W || h > MTK_VDEC_MAX_H) {
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
579
instance->level, level, w, h);
drivers/media/platform/microchip/microchip-isc-base.c
128
u32 h, w;
drivers/media/platform/microchip/microchip-isc-base.c
131
w = isc->fmt.fmt.pix.width;
drivers/media/platform/microchip/microchip-isc-base.c
1342
static void isc_awb_work(struct work_struct *w)
drivers/media/platform/microchip/microchip-isc-base.c
1345
container_of(w, struct isc_device, awb_work);
drivers/media/platform/microchip/microchip-isc-base.c
141
w <<= 1;
drivers/media/platform/microchip/microchip-isc-base.c
153
(ISC_PFE_CFG1_COLMAX(w - 1) & ISC_PFE_CFG1_COLMAX_MASK));
drivers/media/platform/nuvoton/npcm-video.c
195
static void npcm_video_ece_prepend_rect_header(void *addr, u16 x, u16 y, u16 w, u16 h)
drivers/media/platform/nuvoton/npcm-video.c
199
__be16 width = cpu_to_be16(w);
drivers/media/platform/nuvoton/npcm-video.c
408
unsigned int w, unsigned int h)
drivers/media/platform/nuvoton/npcm-video.c
421
r->width = w;
drivers/media/platform/nxp/dw100/dw100.c
1001
x = min(wframe - w, (unsigned int)max(0, x));
drivers/media/platform/nxp/dw100/dw100.c
1006
sel->r.width = w;
drivers/media/platform/nxp/dw100/dw100.c
947
int x, y, w, h;
drivers/media/platform/nxp/dw100/dw100.c
997
w = (u32)((((u64)wframe << 16) * qscale) >> 32);
drivers/media/platform/nxp/dw100/dw100.c
999
x = x + (sel->r.width - w) / 2;
drivers/media/platform/nxp/dw100/dw100_regs.h
39
#define DW100_MAP_LUT_SIZE_WIDTH(w) (((w) & GENMASK(10, 0)) << 0)
drivers/media/platform/nxp/dw100/dw100_regs.h
46
#define DW100_IMG_SIZE_WIDTH(w) (((w) & GENMASK(12, 0)) << 0)
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c
172
void mxc_jpeg_set_res(struct mxc_jpeg_desc *desc, u16 w, u16 h)
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c
174
desc->imgsize = w << 16 | h;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h
128
void mxc_jpeg_set_res(struct mxc_jpeg_desc *desc, u16 w, u16 h);
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1086
u16 w, u16 h)
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1097
sof->width = w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1185
u16 w, u16 h)
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1226
offset += mxc_jpeg_fixup_sof(sof, fourcc, w, h);
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1337
int w, h;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1362
w = q_data->crop.width;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1364
v4l_bound_align_image(&w, w, MXC_JPEG_MAX_WIDTH, q_data->fmt->h_align,
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1366
mxc_jpeg_set_res(desc, w, h);
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1445
q_data_cap->w != jpeg_src_buf->w ||
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1448
q_data_cap->w, q_data_cap->h,
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1449
jpeg_src_buf->w, jpeg_src_buf->h,
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1459
q_data_cap->w = jpeg_src_buf->w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1462
q_data_cap->w_adjusted = q_data_cap->w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1466
q_data_cap->crop.width = jpeg_src_buf->w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1896
q->sizeimage[0] = 6 * q->w * q->h;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1938
q_data_out->w = header.frame.width;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1972
jpeg_src_buf->w = header.frame.width;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2132
q[i]->w = MXC_JPEG_DEFAULT_WIDTH;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2365
u32 w = (pix_mp->width < MXC_JPEG_MAX_WIDTH) ?
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2391
q_data->w = w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2393
q_data->w_adjusted = w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2396
w, /* adjust upwards*/
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2436
q_data->crop.width = q_data->w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2493
pix_mp->width = q_data_cap->w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2544
if (q_data_cap->w == f->fmt.pix_mp.width && q_data_cap->h == f->fmt.pix_mp.height)
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2571
pix_mp->width = q_data->w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2638
s->r.width = q_data_out->w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
2677
if (s->r.width > q_data_out->w || s->r.height > q_data_out->h)
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
576
int w;
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h
90
int w;
drivers/media/platform/renesas/rcar_jpu.c
1335
unsigned int w, h, bpl;
drivers/media/platform/renesas/rcar_jpu.c
1360
w = q_data->format.width;
drivers/media/platform/renesas/rcar_jpu.c
1377
src_2_addr = src_1_addr + w * h;
drivers/media/platform/renesas/rcar_jpu.c
1404
jpu_write(jpu, (w >> 8) & JCSZ_MASK, JCHSZU);
drivers/media/platform/renesas/rcar_jpu.c
1405
jpu_write(jpu, w & JCSZ_MASK, JCHSZD);
drivers/media/platform/renesas/rcar_jpu.c
1410
jpu_write(jpu, w, JIFESHSZ);
drivers/media/platform/renesas/rcar_jpu.c
1443
dst_2_addr = dst_1_addr + w * h;
drivers/media/platform/renesas/rcar_jpu.c
740
static void jpu_bound_align_image(u32 *w, unsigned int w_min,
drivers/media/platform/renesas/rcar_jpu.c
747
width = *w;
drivers/media/platform/renesas/rcar_jpu.c
752
v4l_bound_align_image(w, w_min, w_max, w_align, h, h_min, h_max,
drivers/media/platform/renesas/rcar_jpu.c
755
if (*w < width && *w + w_step < w_max)
drivers/media/platform/renesas/rcar_jpu.c
756
*w += w_step;
drivers/media/platform/renesas/rcar_jpu.c
766
unsigned int f_type, w, h;
drivers/media/platform/renesas/rcar_jpu.c
794
w = pix->width;
drivers/media/platform/renesas/rcar_jpu.c
801
(JPU_JPEG_MAX_BYTES_PER_PIXEL * w * h);
drivers/media/platform/renesas/rcar_jpu.c
809
bpl = clamp_t(unsigned int, bpl, w, JPU_WIDTH_MAX);
drivers/media/platform/renesas/renesas-ceu.c
114
#define CEU_W_MAX(w) ((w) < CEU_MAX_WIDTH ? (w) : CEU_MAX_WIDTH)
drivers/media/platform/rockchip/rga/rga-hw.c
41
unsigned int x, unsigned int y, unsigned int w, unsigned int h)
drivers/media/platform/rockchip/rga/rga-hw.c
66
rt->y_off = lt->y_off + (w - 1) * pixel_width;
drivers/media/platform/rockchip/rga/rga-hw.c
67
rt->u_off = lt->u_off + w / x_div - 1;
drivers/media/platform/rockchip/rga/rga-hw.c
68
rt->v_off = lt->v_off + w / x_div - 1;
drivers/media/platform/rockchip/rga/rga-hw.c
70
rb->y_off = lb->y_off + (w - 1) * pixel_width;
drivers/media/platform/rockchip/rga/rga-hw.c
71
rb->u_off = lb->u_off + w / x_div - 1;
drivers/media/platform/rockchip/rga/rga-hw.c
72
rb->v_off = lb->v_off + w / x_div - 1;
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
506
void gsc_check_crop_change(u32 tmp_w, u32 tmp_h, u32 *w, u32 *h)
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
508
if (tmp_w != *w || tmp_h != *h) {
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
510
*w, *h, tmp_w, tmp_h);
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
511
*w = tmp_w;
drivers/media/platform/samsung/exynos-gsc/gsc-core.h
400
void gsc_check_crop_change(u32 tmp_w, u32 tmp_h, u32 *w, u32 *h);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
102
w(0x7, CACHECTL_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
105
w(1, INTEN_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
107
w(1, BITBLT_START_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
112
w(1, INTC_PEND_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
20
w(1, SOFT_RESET_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
27
w(0, SRC_SELECT_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
28
w(f->stride & 0xFFFF, SRC_STRIDE_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
33
w(n, SRC_LEFT_TOP_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
38
w(n, SRC_RIGHT_BOTTOM_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
40
w(f->fmt->hw, SRC_COLOR_MODE_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
45
w(a, SRC_BASE_ADDR_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
52
w(0, DST_SELECT_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
53
w(f->stride & 0xFFFF, DST_STRIDE_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
58
w(n, DST_LEFT_TOP_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
63
w(n, DST_RIGHT_BOTTOM_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
65
w(f->fmt->hw, DST_COLOR_MODE_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
70
w(a, DST_BASE_ADDR_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
75
w(r, ROP4_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
80
w(r, SRC_MSK_DIRECT_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
86
w(DEFAULT_SCALE_MODE, SRC_SCALE_CTRL_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
89
w((src->c_width << 16) / dst->c_width, SRC_XSCALE_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
90
w((src->c_height << 16) / dst->c_height, SRC_YSCALE_REG);
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
95
w(c, BITBLT_COMMAND_REG);
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1229
result->w = width;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1345
pix->width = q_data->w;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1351
u32 bpl = q_data->w;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1390
u32 *w, unsigned int wmin, unsigned int wmax,
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1397
width = *w;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1417
v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0);
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1419
if (*w < width && (*w + w_step) < wmax)
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1420
*w += w_step;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1516
(ctx->out_q.w & 1) &&
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1553
int w = pix->width, h = pix->height, wh_align;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1567
jpeg_bound_align_image(ctx, &w, S5P_JPEG_MIN_WIDTH,
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1575
return (w * h * fmt_depth >> 3) + padding;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1607
q_data->w = pix->width;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1623
q_data->size = q_data->w * q_data->h *
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1660
scale_rect.width = ct->out_q.w / 2;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1706
w_ratio = ctx->out_q.w / r->width;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1721
r->width = round_down(ctx->out_q.w / ctx->scale_factor, 2);
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1758
base_rect.width = ctx->out_q.w;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1798
s->r.width = ctx->out_q.w;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2050
s5p_jpeg_x(jpeg->regs, ctx->out_q.w);
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2116
pix_size = ctx->cap_q.w * ctx->cap_q.h;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2121
if (ctx->out_q.w % 2 && fmt->h_align > 0)
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2210
exynos4_jpeg_set_stream_size(jpeg->regs, ctx->cap_q.w,
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2244
exynos4_jpeg_set_stream_size(jpeg->regs, ctx->cap_q.w,
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2274
pix_size = ctx->cap_q.w * ctx->cap_q.h;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2366
ctx->out_q.w);
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2384
ctx->cap_q.w);
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2495
q_data->w = ctx->out_q.w;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2507
jpeg_bound_align_image(ctx, &q_data->w, S5P_JPEG_MIN_WIDTH,
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2512
q_data->size = q_data->w * q_data->h * q_data->fmt->depth >> 3;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2532
ori_w = ctx->out_q.w;
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
2549
if (ctx->out_q.w != ori_w || ctx->out_q.h != ori_h) {
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.h
189
u32 w;
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
378
#define S5P_FIMV_TMV_BUFFER_SIZE_V6(w, h) (((w) + 1) * ((h) + 3) * 8)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
382
#define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V6(w, h) (((w) * 192) + 64)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
383
#define S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V6(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
384
((w) * 144 + 8192 * (h) + 49216 + 1048576)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
385
#define S5P_FIMV_SCRATCH_BUF_SIZE_VC1_DEC_V6(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
386
(2096 * ((w) + (h) + 1))
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
387
#define S5P_FIMV_SCRATCH_BUF_SIZE_H263_DEC_V6(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
388
S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V6(w, h)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
389
#define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V6(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
390
((w) * 32 + (h) * 128 + (((w) + 1) / 2) * 64 + 2112)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
391
#define S5P_FIMV_SCRATCH_BUF_SIZE_H264_ENC_V6(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
392
(((w) * 64) + (((w) + 1) * 16) + (4096 * 16))
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
393
#define S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_ENC_V6(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v6.h
394
(((w) * 16) + (((w) + 1) * 16))
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v7.h
51
#define S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V7(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v7.h
52
(SZ_1M + ((w) * 144) + (8192 * (h)) + 49216)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v7.h
54
#define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V7(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v7.h
55
(((w) * 48) + 8192 + ((((w) + 1) / 2) * 128) + 144 + \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v7.h
56
((((((w) * 16) * ((h) * 16)) * 3) / 2) * 4))
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
102
#define S5P_FIMV_TMV_BUFFER_SIZE_V8(w, h) (((w) + 1) * ((h) + 1) * 8)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
104
#define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V8(w, h) (((w) * 704) + 2176)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
105
#define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V8(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
106
(((w) * 576 + (h) * 128) + 4128)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
108
#define S5P_FIMV_SCRATCH_BUF_SIZE_H264_ENC_V8(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
109
(((w) * 592) + 2336)
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
110
#define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V8(w, h) \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
111
(((w) * 576) + 10512 + \
drivers/media/platform/samsung/s5p-mfc/regs-mfc-v8.h
112
((((((w) * 16) * ((h) * 16)) * 3) / 2) * 4))
drivers/media/platform/st/sti/delta/delta-v4l2.c
235
static inline int estimated_au_size(u32 w, u32 h)
drivers/media/platform/st/sti/delta/delta-v4l2.c
243
return (w * h);
drivers/media/platform/st/sti/delta/delta-v4l2.c
45
static inline int frame_size(u32 w, u32 h, u32 fmt)
drivers/media/platform/st/sti/delta/delta-v4l2.c
49
return (w * h * 3) / 2;
drivers/media/platform/st/sti/delta/delta-v4l2.c
55
static inline int frame_stride(u32 w, u32 fmt)
drivers/media/platform/st/sti/delta/delta-v4l2.c
59
return w;
drivers/media/platform/st/sti/hva/hva-h264.c
20
#define MB_W(w) ((w + 0xF) / 0x10)
drivers/media/platform/st/sti/hva/hva-h264.c
24
#define DATA_SIZE(w, h) (MB_W(w) * MB_H(h) * 16)
drivers/media/platform/st/sti/hva/hva-h264.c
26
#define SEARCH_WINDOW_BUFFER_MAX_SIZE(w) ((4 * MB_W(w) + 42) * 256 * 3 / 2)
drivers/media/platform/st/sti/hva/hva-h264.c
27
#define CABAC_CONTEXT_BUFFER_MAX_SIZE(w) (MB_W(w) * 16)
drivers/media/platform/st/sti/hva/hva-h264.c
28
#define CTX_MB_BUFFER_MAX_SIZE(w) (MB_W(w) * 16 * 8)
drivers/media/platform/st/sti/hva/hva-h264.c
39
#define LOCAL_RECONSTRUCTED_BUFFER_MAX_SIZE(w) (4 * 16 * MB_W(w) * 2)
drivers/media/platform/st/sti/hva/hva-v4l2.c
50
static inline int frame_size(u32 w, u32 h, u32 fmt)
drivers/media/platform/st/sti/hva/hva-v4l2.c
55
return (w * h * 3) / 2;
drivers/media/platform/st/sti/hva/hva-v4l2.c
61
static inline int frame_stride(u32 w, u32 fmt)
drivers/media/platform/st/sti/hva/hva-v4l2.c
66
return w;
drivers/media/platform/st/sti/hva/hva-v4l2.c
84
static inline int estimated_stream_size(u32 w, u32 h)
drivers/media/platform/st/sti/hva/hva-v4l2.c
91
return (w * h * 3) / 4;
drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h
47
#define CSI_WIN_CTRL_W_ACTIVE(w) ((w) << 16)
drivers/media/platform/sunxi/sun8i-di/sun8i-di.h
196
#define DEINTERLACE_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1))
drivers/media/platform/sunxi/sun8i-rotate/sun8i-rotate.h
97
#define ROTATE_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1))
drivers/media/platform/ti/omap/omap_vout.c
376
outw = win->w.width;
drivers/media/platform/ti/omap/omap_vout.c
377
outh = win->w.height;
drivers/media/platform/ti/omap/omap_vout.c
384
posy = (timing->y_res - win->w.width) - win->w.left;
drivers/media/platform/ti/omap/omap_vout.c
385
posx = win->w.top;
drivers/media/platform/ti/omap/omap_vout.c
389
posx = (timing->x_res - win->w.width) - win->w.left;
drivers/media/platform/ti/omap/omap_vout.c
390
posy = (timing->y_res - win->w.height) - win->w.top;
drivers/media/platform/ti/omap/omap_vout.c
395
posy = win->w.left;
drivers/media/platform/ti/omap/omap_vout.c
396
posx = (timing->x_res - win->w.height) - win->w.top;
drivers/media/platform/ti/omap/omap_vout.c
400
posx = win->w.left;
drivers/media/platform/ti/omap/omap_vout.c
401
posy = win->w.top;
drivers/media/platform/ti/omap/omap_vout.c
777
win->w = vout->win.w;
drivers/media/platform/ti/omap/omap_voutlib.c
126
win->w = new_win->w;
drivers/media/platform/ti/omap/omap_voutlib.c
133
if ((crop->height/win->w.height) >= 2)
drivers/media/platform/ti/omap/omap_voutlib.c
134
crop->height = win->w.height * 2;
drivers/media/platform/ti/omap/omap_voutlib.c
136
if ((crop->width/win->w.width) >= 2)
drivers/media/platform/ti/omap/omap_voutlib.c
137
crop->width = win->w.width * 2;
drivers/media/platform/ti/omap/omap_voutlib.c
144
if (crop->height != win->w.height)
drivers/media/platform/ti/omap/omap_voutlib.c
149
if ((crop->height/win->w.height) >= 4)
drivers/media/platform/ti/omap/omap_voutlib.c
150
crop->height = win->w.height * 4;
drivers/media/platform/ti/omap/omap_voutlib.c
152
if ((crop->width/win->w.width) >= 4)
drivers/media/platform/ti/omap/omap_voutlib.c
153
crop->width = win->w.width * 4;
drivers/media/platform/ti/omap/omap_voutlib.c
204
if (try_crop.height != win->w.height) {
drivers/media/platform/ti/omap/omap_voutlib.c
213
vresize = (1024 * try_crop.height) / win->w.height;
drivers/media/platform/ti/omap/omap_voutlib.c
219
win->w.height = ((1024 * try_crop.height) / vresize) & ~1;
drivers/media/platform/ti/omap/omap_voutlib.c
220
if (win->w.height == 0)
drivers/media/platform/ti/omap/omap_voutlib.c
221
win->w.height = 2;
drivers/media/platform/ti/omap/omap_voutlib.c
222
if (win->w.height + win->w.top > fbuf->fmt.height) {
drivers/media/platform/ti/omap/omap_voutlib.c
227
win->w.height = (fbuf->fmt.height - win->w.top) & ~1;
drivers/media/platform/ti/omap/omap_voutlib.c
232
hresize = (1024 * try_crop.width) / win->w.width;
drivers/media/platform/ti/omap/omap_voutlib.c
238
win->w.width = ((1024 * try_crop.width) / hresize) & ~1;
drivers/media/platform/ti/omap/omap_voutlib.c
239
if (win->w.width == 0)
drivers/media/platform/ti/omap/omap_voutlib.c
240
win->w.width = 2;
drivers/media/platform/ti/omap/omap_voutlib.c
241
if (win->w.width + win->w.left > fbuf->fmt.width) {
drivers/media/platform/ti/omap/omap_voutlib.c
246
win->w.width = (fbuf->fmt.width - win->w.left) & ~1;
drivers/media/platform/ti/omap/omap_voutlib.c
251
if ((try_crop.height/win->w.height) >= 2)
drivers/media/platform/ti/omap/omap_voutlib.c
252
try_crop.height = win->w.height * 2;
drivers/media/platform/ti/omap/omap_voutlib.c
254
if ((try_crop.width/win->w.width) >= 2)
drivers/media/platform/ti/omap/omap_voutlib.c
255
try_crop.width = win->w.width * 2;
drivers/media/platform/ti/omap/omap_voutlib.c
262
if (try_crop.height != win->w.height)
drivers/media/platform/ti/omap/omap_voutlib.c
266
if ((try_crop.height/win->w.height) >= 4)
drivers/media/platform/ti/omap/omap_voutlib.c
267
try_crop.height = win->w.height * 4;
drivers/media/platform/ti/omap/omap_voutlib.c
269
if ((try_crop.width/win->w.width) >= 4)
drivers/media/platform/ti/omap/omap_voutlib.c
270
try_crop.width = win->w.width * 4;
drivers/media/platform/ti/omap/omap_voutlib.c
295
win->w.width = crop->width;
drivers/media/platform/ti/omap/omap_voutlib.c
296
win->w.height = crop->height;
drivers/media/platform/ti/omap/omap_voutlib.c
297
win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1;
drivers/media/platform/ti/omap/omap_voutlib.c
298
win->w.top = ((fbuf->fmt.height - win->w.height) >> 1) & ~1;
drivers/media/platform/ti/omap/omap_voutlib.c
69
try_win = new_win->w;
drivers/media/platform/ti/omap/omap_voutlib.c
97
new_win->w = try_win;
drivers/media/platform/ti/omap3isp/ispstat.c
102
u8 *w;
drivers/media/platform/ti/omap3isp/ispstat.c
109
for (w = buf->virt_addr, end = w + MAGIC_SIZE; w < end; w++)
drivers/media/platform/ti/omap3isp/ispstat.c
110
if (likely(*w != MAGIC_NUM))
drivers/media/platform/ti/omap3isp/ispstat.c
121
for (w = buf->virt_addr + buf_size, end = w + MAGIC_SIZE;
drivers/media/platform/ti/omap3isp/ispstat.c
122
w < end; w++) {
drivers/media/platform/ti/omap3isp/ispstat.c
123
if (unlikely(*w != MAGIC_NUM)) {
drivers/media/platform/verisilicon/hantro_h1_regs.h
38
#define H1_REG_ENC_CTRL_WIDTH(w) ((w) << 19)
drivers/media/platform/verisilicon/hantro_hw.h
25
#define MB_WIDTH(w) DIV_ROUND_UP(w, MB_DIM)
drivers/media/platform/verisilicon/hantro_vp9.c
46
u32 w, h;
drivers/media/platform/verisilicon/hantro_vp9.c
49
w = roundup(width, 8);
drivers/media/platform/verisilicon/hantro_vp9.c
51
num_ctbs = ((w + 63) / 64) * ((h + 63) / 64);
drivers/media/test-drivers/vicodec/codec-fwht.c
930
u32 w = width;
drivers/media/test-drivers/vicodec/codec-fwht.c
935
w /= 2;
drivers/media/test-drivers/vicodec/codec-fwht.c
937
if (!decode_plane(cf, &rlco, h, w, ref->cb, ref_chroma_stride,
drivers/media/test-drivers/vicodec/codec-fwht.c
943
if (!decode_plane(cf, &rlco, h, w, ref->cr, ref_chroma_stride,
drivers/media/test-drivers/vicodec/vicodec-core.c
501
unsigned int w = ntohl(p_hdr->width);
drivers/media/test-drivers/vicodec/vicodec-core.c
506
if (w < MIN_WIDTH || w > MAX_WIDTH || h < MIN_HEIGHT || h > MAX_HEIGHT)
drivers/media/test-drivers/vim2m.c
620
static void device_work(struct work_struct *w)
drivers/media/test-drivers/vim2m.c
626
curr_ctx = container_of(w, struct vim2m_ctx, work_run.work);
drivers/media/test-drivers/vivid/vivid-vid-cap.c
561
unsigned w, h;
drivers/media/test-drivers/vivid/vivid-vid-cap.c
580
w = sz->width;
drivers/media/test-drivers/vivid/vivid-vid-cap.c
583
w = 720;
drivers/media/test-drivers/vivid/vivid-vid-cap.c
586
w = dev->src_rect.width;
drivers/media/test-drivers/vivid/vivid-vid-cap.c
593
mp->width = w;
drivers/media/test-drivers/vivid/vivid-vid-cap.c
601
struct v4l2_rect max_r = { 0, 0, MAX_ZOOM * w, MAX_ZOOM * h };
drivers/media/test-drivers/vivid/vivid-vid-common.c
920
unsigned w = r->width;
drivers/media/test-drivers/vivid/vivid-vid-common.c
924
w &= 0xffff;
drivers/media/test-drivers/vivid/vivid-vid-common.c
927
w++;
drivers/media/test-drivers/vivid/vivid-vid-common.c
929
if (w < 2)
drivers/media/test-drivers/vivid/vivid-vid-common.c
930
w = 2;
drivers/media/test-drivers/vivid/vivid-vid-common.c
935
if (w > MAX_WIDTH)
drivers/media/test-drivers/vivid/vivid-vid-common.c
936
w = MAX_WIDTH;
drivers/media/test-drivers/vivid/vivid-vid-common.c
940
w = w & ~1;
drivers/media/test-drivers/vivid/vivid-vid-common.c
942
if (w < 2 || h < 2)
drivers/media/test-drivers/vivid/vivid-vid-common.c
944
if (w > MAX_WIDTH || h > MAX_HEIGHT)
drivers/media/test-drivers/vivid/vivid-vid-common.c
953
if (r->left + w > MAX_WIDTH)
drivers/media/test-drivers/vivid/vivid-vid-common.c
954
r->left = MAX_WIDTH - w;
drivers/media/test-drivers/vivid/vivid-vid-common.c
959
(r->width != w || r->height != h))
drivers/media/test-drivers/vivid/vivid-vid-common.c
961
r->width = w;
drivers/media/test-drivers/vivid/vivid-vid-out.c
353
unsigned w, h;
drivers/media/test-drivers/vivid/vivid-vid-out.c
366
w = 720;
drivers/media/test-drivers/vivid/vivid-vid-out.c
369
w = dev->sink_rect.width;
drivers/media/test-drivers/vivid/vivid-vid-out.c
375
mp->width = w;
drivers/media/test-drivers/vivid/vivid-vid-out.c
383
struct v4l2_rect max_r = { 0, 0, MAX_ZOOM * w, MAX_ZOOM * h };
drivers/media/test-drivers/vivid/vivid-vid-out.c
833
win->w.top = dev->overlay_out_top;
drivers/media/test-drivers/vivid/vivid-vid-out.c
834
win->w.left = dev->overlay_out_left;
drivers/media/test-drivers/vivid/vivid-vid-out.c
835
win->w.width = compose->width;
drivers/media/test-drivers/vivid/vivid-vid-out.c
836
win->w.height = compose->height;
drivers/media/test-drivers/vivid/vivid-vid-out.c
852
win->w.left = clamp_t(int, win->w.left,
drivers/media/test-drivers/vivid/vivid-vid-out.c
854
win->w.top = clamp_t(int, win->w.top,
drivers/media/test-drivers/vivid/vivid-vid-out.c
856
win->w.width = compose->width;
drivers/media/test-drivers/vivid/vivid-vid-out.c
857
win->w.height = compose->height;
drivers/media/test-drivers/vivid/vivid-vid-out.c
876
dev->overlay_out_top = win->w.top;
drivers/media/test-drivers/vivid/vivid-vid-out.c
877
dev->overlay_out_left = win->w.left;
drivers/media/usb/au0828/au0828-video.c
744
int ret, h, w;
drivers/media/usb/au0828/au0828-video.c
763
w = d->width * 2;
drivers/media/usb/au0828/au0828-video.c
770
au0828_writereg(d, 0x114, w & 0xff);
drivers/media/usb/au0828/au0828-video.c
771
au0828_writereg(d, 0x115, w >> 8);
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
572
u8 w[2] = { 1, 0 };
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
576
.flags = 0, .buf = w, .len = 1 },
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
589
w[0] = 1;
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
591
w[1] = r;
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
594
w[1] &= ~(1 << gpio);
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
597
w[1] |= ((val ? 1 : 0) << gpio);
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
607
u8 w[2] = { 1, 0x07 }; /* write protect enabled, signal LEDs off */
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
611
.flags = 0, .buf = w, .len = 2
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
619
w[0] = 3;
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
620
w[1] = 0;
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
646
u8 w = 1;
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
649
{ .flags = 0, .buf = &w, .len = 1 },
drivers/media/usb/gspca/gspca.c
1047
int w, h, mode, mode2;
drivers/media/usb/gspca/gspca.c
1049
w = fmt->fmt.pix.width;
drivers/media/usb/gspca/gspca.c
1053
fmt->fmt.pix.pixelformat, w, h);
drivers/media/usb/gspca/gspca.c
1056
mode = wxh_to_nearest_mode(gspca_dev, w, h, fmt->fmt.pix.pixelformat);
drivers/media/usb/gspca/gspca.c
1071
fmt->fmt.pix.width = w;
drivers/media/usb/gspca/gspca.c
54
__u32 pixfmt, int w, int h)
drivers/media/usb/gspca/gspca.c
63
w, h);
drivers/media/usb/gspca/gspca.c
68
w, h);
drivers/media/usb/gspca/nw80x.c
1694
int w, h;
drivers/media/usb/gspca/nw80x.c
1707
w = (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0]
drivers/media/usb/gspca/nw80x.c
1711
sd->ae_res = h * w;
drivers/media/usb/gspca/spca1528.c
131
int i, w;
drivers/media/usb/gspca/spca1528.c
134
w = 0;
drivers/media/usb/gspca/spca1528.c
139
w += 15;
drivers/media/usb/gspca/spca1528.c
140
msleep(w);
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
182
cp = hdcs->exp.cto + (hdcs->w * ct / 2);
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
195
srowexp = hdcs->w - (cycles + hdcs->exp.er + 13) / ct;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
198
max_srowexp = hdcs->w - mnct;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
318
hdcs->w = width;
drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c
59
int w, h;
drivers/media/usb/gspca/touptek.c
239
unsigned int w = gspca_dev->pixfmt.width;
drivers/media/usb/gspca/touptek.c
241
if (w == 800)
drivers/media/usb/gspca/touptek.c
243
else if (w == 1600)
drivers/media/usb/gspca/touptek.c
245
else if (w == 3264)
drivers/media/usb/gspca/touptek.c
248
gspca_err(gspca_dev, "Invalid width %u\n", w);
drivers/media/usb/gspca/touptek.c
328
unsigned int w = gspca_dev->pixfmt.width;
drivers/media/usb/gspca/touptek.c
332
if (w == 800) {
drivers/media/usb/gspca/touptek.c
343
} else if (w == 1600) {
drivers/media/usb/gspca/touptek.c
354
} else if (w == 3264) {
drivers/media/usb/gspca/touptek.c
366
gspca_err(gspca_dev, "bad width %u\n", w);
drivers/media/usb/gspca/touptek.c
373
reg_w(gspca_dev, w, REG_X_OUTPUT_SIZE);
drivers/media/usb/gspca/touptek.c
376
if (w == 800) {
drivers/media/usb/gspca/touptek.c
379
} else if (w == 1600) {
drivers/media/usb/gspca/touptek.c
382
} else if (w == 3264) {
drivers/media/usb/gspca/touptek.c
386
gspca_err(gspca_dev, "bad width %u\n", w);
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
422
int w = vf->fmt.pix.width;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
430
if (w == -1)
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
431
w = ldef;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
432
else if (w < lmin)
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
433
w = lmin;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
434
else if (w > lmax)
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
435
w = lmax;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
448
vf->fmt.pix.width = w;
drivers/media/usb/s2255/s2255drv.c
661
int w = vc->width;
drivers/media/usb/s2255/s2255drv.c
669
if ((w < norm_minw(vc)) ||
drivers/media/usb/s2255/s2255drv.c
670
(w > norm_maxw(vc)) ||
drivers/media/usb/s2255/s2255drv.c
676
size = w * h * (vc->fmt->depth >> 3);
drivers/media/usb/uvc/uvc_ctrl.c
2015
struct uvc_ctrl_work *w = &dev->async_ctrl;
drivers/media/usb/uvc/uvc_ctrl.c
2018
uvc_ctrl_status_event(w->chain, w->ctrl, w->data);
drivers/media/usb/uvc/uvc_ctrl.c
2025
w->urb->interval = dev->int_ep->desc.bInterval;
drivers/media/usb/uvc/uvc_ctrl.c
2026
ret = usb_submit_urb(w->urb, GFP_KERNEL);
drivers/media/usb/uvc/uvc_ctrl.c
2036
struct uvc_ctrl_work *w = &dev->async_ctrl;
drivers/media/usb/uvc/uvc_ctrl.c
2041
w->data = data;
drivers/media/usb/uvc/uvc_ctrl.c
2042
w->urb = urb;
drivers/media/usb/uvc/uvc_ctrl.c
2043
w->chain = chain;
drivers/media/usb/uvc/uvc_ctrl.c
2044
w->ctrl = ctrl;
drivers/media/usb/uvc/uvc_ctrl.c
2046
schedule_work(&w->work);
drivers/media/usb/uvc/uvc_status.c
324
struct uvc_ctrl_work *w = &dev->async_ctrl;
drivers/media/usb/uvc/uvc_status.c
343
if (cancel_work_sync(&w->work))
drivers/media/usb/uvc/uvc_status.c
344
uvc_ctrl_status_event(w->chain, w->ctrl, w->data);
drivers/media/usb/uvc/uvc_status.c
355
if (cancel_work_sync(&w->work))
drivers/media/usb/uvc/uvc_status.c
356
uvc_ctrl_status_event(w->chain, w->ctrl, w->data);
drivers/media/usb/uvc/uvc_v4l2.c
286
u16 w = format->frames[i].wWidth;
drivers/media/usb/uvc/uvc_v4l2.c
289
d = min(w, rw) * min(h, rh);
drivers/media/usb/uvc/uvc_v4l2.c
290
d = w*h + rw*rh - 2*d;
drivers/media/v4l2-core/v4l2-common.c
122
void v4l_bound_align_image(u32 *w, unsigned int wmin, unsigned int wmax,
drivers/media/v4l2-core/v4l2-common.c
127
*w = clamp_align(*w, wmin, wmax, walign);
drivers/media/v4l2-core/v4l2-common.c
135
walign = __ffs(*w);
drivers/media/v4l2-core/v4l2-common.c
148
*w = clamp_align(*w, wmin, wmax, walign + 1);
drivers/media/v4l2-core/v4l2-common.c
149
walign = __ffs(*w);
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
42
struct v4l2_rect w;
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
60
.w = w32.w,
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
79
.w = p64->w,
drivers/media/v4l2-core/v4l2-ioctl.c
314
win->w.left, win->w.top, win->w.width, win->w.height,
drivers/memory/mvebu-devbus.c
111
struct devbus_write_params *w)
drivers/memory/mvebu-devbus.c
168
&w->sync_enable);
drivers/memory/mvebu-devbus.c
178
&w->ale_wr);
drivers/memory/mvebu-devbus.c
183
&w->wr_low);
drivers/memory/mvebu-devbus.c
188
&w->wr_high);
drivers/memory/mvebu-devbus.c
198
struct devbus_write_params *w)
drivers/memory/mvebu-devbus.c
212
(w->ale_wr & ORION_ALE_WR_MASK) << ORION_ALE_WR_SHIFT |
drivers/memory/mvebu-devbus.c
213
(w->wr_low & ORION_WR_LOW_MASK) << ORION_WR_LOW_SHIFT |
drivers/memory/mvebu-devbus.c
214
(w->wr_high & ORION_WR_HIGH_MASK) << ORION_WR_HIGH_SHIFT |
drivers/memory/mvebu-devbus.c
219
((w->ale_wr & ORION_ALE_WR_EXT_MASK) ? ORION_ALE_WR_EXT_BIT : 0) |
drivers/memory/mvebu-devbus.c
220
((w->wr_low & ORION_WR_LOW_EXT_MASK) ? ORION_WR_LOW_EXT_BIT : 0) |
drivers/memory/mvebu-devbus.c
221
((w->wr_high & ORION_WR_HIGH_EXT_MASK) ? ORION_WR_HIGH_EXT_BIT : 0) |
drivers/memory/mvebu-devbus.c
231
struct devbus_write_params *w)
drivers/memory/mvebu-devbus.c
251
value = w->sync_enable << ARMADA_SYNC_ENABLE_SHIFT |
drivers/memory/mvebu-devbus.c
252
w->wr_low << ARMADA_WR_LOW_SHIFT |
drivers/memory/mvebu-devbus.c
253
w->wr_high << ARMADA_WR_HIGH_SHIFT |
drivers/memory/mvebu-devbus.c
254
w->ale_wr;
drivers/memory/mvebu-devbus.c
268
struct devbus_write_params w;
drivers/memory/mvebu-devbus.c
300
err = devbus_get_timing_params(devbus, node, &r, &w);
drivers/memory/mvebu-devbus.c
306
devbus_orion_set_timing_params(devbus, node, &r, &w);
drivers/memory/mvebu-devbus.c
308
devbus_armada_set_timing_params(devbus, node, &r, &w);
drivers/memory/tegra/tegra210-emc-cc-r21021.c
105
next->ptfv_list[w])) / \
drivers/memory/tegra/tegra210-emc-cc-r21021.c
106
(next->ptfv_list[w] + 1); \
drivers/memory/tegra/tegra210-emc-cc-r21021.c
99
int w = PTFV_MOVAVG_WEIGHT_INDEX; \
drivers/mfd/mc13xxx-spi.c
62
unsigned char w[4] = { *((unsigned char *) reg), 0, 0, 0};
drivers/mfd/mc13xxx-spi.c
68
.tx_buf = w,
drivers/mfd/menelaus.c
940
static int menelaus_read_alarm(struct device *dev, struct rtc_wkalrm *w)
drivers/mfd/menelaus.c
965
menelaus_to_time(regs, &w->time);
drivers/mfd/menelaus.c
967
w->enabled = !!(the_menelaus->rtc_control & RTC_CTRL_AL_EN);
drivers/mfd/menelaus.c
970
w->pending = 0;
drivers/mfd/menelaus.c
975
static int menelaus_set_alarm(struct device *dev, struct rtc_wkalrm *w)
drivers/mfd/menelaus.c
979
if (the_menelaus->client->irq <= 0 && w->enabled)
drivers/mfd/menelaus.c
992
status = time_to_menelaus(&w->time, MENELAUS_RTC_AL_SEC);
drivers/mfd/menelaus.c
997
if (w->enabled) {
drivers/mmc/host/omap.c
1143
u16 w;
drivers/mmc/host/omap.c
1146
w = OMAP_MMC_READ(host, CON);
drivers/mmc/host/omap.c
1147
OMAP_MMC_WRITE(host, CON, w | (1 << 11));
drivers/mmc/host/omap.c
1149
w = OMAP_MMC_READ(host, CON);
drivers/mmc/host/omap.c
1150
OMAP_MMC_WRITE(host, CON, w & ~(1 << 11));
drivers/mmc/host/sunplus-mmc.c
611
int f, w, value;
drivers/mmc/host/sunplus-mmc.c
616
w = hweight8(candidate_dly);
drivers/mmc/host/sunplus-mmc.c
617
value = ((1 << w) - 1) << f;
drivers/mmc/host/sunplus-mmc.c
619
return (f + w / 2);
drivers/most/most_usb.c
126
#define to_mdev_from_work(w) container_of(w, struct most_dev, poll_work_obj)
drivers/most/most_usb.c
82
#define to_clear_hold_work(w) container_of(w, struct clear_hold_work, ws)
drivers/mtd/chips/cfi_cmdset_0020.c
849
int i, w;
drivers/mtd/chips/cfi_cmdset_0020.c
850
for (w=0; w<map_words(map); w++) {
drivers/mtd/chips/cfi_cmdset_0020.c
852
chipstatus |= status.x[w] >> (cfi->device_type * 8);
drivers/mtd/nand/raw/nandsim.c
803
char *w;
drivers/mtd/nand/raw/nandsim.c
810
w = badblocks;
drivers/mtd/nand/raw/nandsim.c
812
zero_ok = (*w == '0' ? 1 : 0);
drivers/mtd/nand/raw/nandsim.c
813
erase_block_no = simple_strtoul(w, &w, 0);
drivers/mtd/nand/raw/nandsim.c
823
if (*w == ',')
drivers/mtd/nand/raw/nandsim.c
824
w += 1;
drivers/mtd/nand/raw/nandsim.c
825
} while (*w);
drivers/mtd/nand/raw/nandsim.c
831
char *w;
drivers/mtd/nand/raw/nandsim.c
839
w = weakblocks;
drivers/mtd/nand/raw/nandsim.c
841
zero_ok = (*w == '0' ? 1 : 0);
drivers/mtd/nand/raw/nandsim.c
842
erase_block_no = simple_strtoul(w, &w, 0);
drivers/mtd/nand/raw/nandsim.c
848
if (*w == ':') {
drivers/mtd/nand/raw/nandsim.c
849
w += 1;
drivers/mtd/nand/raw/nandsim.c
850
max_erases = simple_strtoul(w, &w, 0);
drivers/mtd/nand/raw/nandsim.c
852
if (*w == ',')
drivers/mtd/nand/raw/nandsim.c
853
w += 1;
drivers/mtd/nand/raw/nandsim.c
862
} while (*w);
drivers/mtd/nand/raw/nandsim.c
882
char *w;
drivers/mtd/nand/raw/nandsim.c
890
w = weakpages;
drivers/mtd/nand/raw/nandsim.c
892
zero_ok = (*w == '0' ? 1 : 0);
drivers/mtd/nand/raw/nandsim.c
893
page_no = simple_strtoul(w, &w, 0);
drivers/mtd/nand/raw/nandsim.c
899
if (*w == ':') {
drivers/mtd/nand/raw/nandsim.c
900
w += 1;
drivers/mtd/nand/raw/nandsim.c
901
max_writes = simple_strtoul(w, &w, 0);
drivers/mtd/nand/raw/nandsim.c
903
if (*w == ',')
drivers/mtd/nand/raw/nandsim.c
904
w += 1;
drivers/mtd/nand/raw/nandsim.c
913
} while (*w);
drivers/net/can/rcar/rcar_canfd.c
284
#define RCANFD_GAFLCFG(w) (0x009c + (0x04 * (w)))
drivers/net/can/rcar/rcar_canfd.c
776
unsigned int w = ch / rnc_stride;
drivers/net/can/rcar/rcar_canfd.c
779
rcar_canfd_set_bit(gpriv->base, RCANFD_GAFLCFG(w), rnc);
drivers/net/dsa/microchip/ksz_ptp.c
21
#define work_to_xmit_work(w) \
drivers/net/dsa/microchip/ksz_ptp.c
22
container_of((w), struct ksz_deferred_xmit_work, work)
drivers/net/dsa/ocelot/felix.c
1639
#define work_to_xmit_work(w) \
drivers/net/dsa/ocelot/felix.c
1640
container_of((w), struct felix_deferred_xmit_work, work)
drivers/net/dsa/sja1105/sja1105_main.c
2661
#define work_to_xmit_work(w) \
drivers/net/dsa/sja1105/sja1105_main.c
2662
container_of((w), struct sja1105_deferred_xmit_work, work)
drivers/net/ethernet/8390/mcf8390.c
119
u16 w, *buf;
drivers/net/ethernet/8390/mcf8390.c
124
w = *buf++;
drivers/net/ethernet/8390/mcf8390.c
125
*rp = BSWAP(w);
drivers/net/ethernet/8390/mcf8390.c
93
u16 w, *buf;
drivers/net/ethernet/8390/mcf8390.c
98
w = *rp;
drivers/net/ethernet/8390/mcf8390.c
99
*buf++ = BSWAP(w);
drivers/net/ethernet/airoha/airoha_eth.c
2164
static const u16 w[AIROHA_NUM_QOS_QUEUES] = {};
drivers/net/ethernet/airoha/airoha_eth.c
2166
return airoha_qdma_set_chan_tx_sched(port, channel, TC_SCH_SP, w,
drivers/net/ethernet/airoha/airoha_eth.c
2167
ARRAY_SIZE(w));
drivers/net/ethernet/airoha/airoha_eth.c
2176
u16 w[AIROHA_NUM_QOS_QUEUES] = {};
drivers/net/ethernet/airoha/airoha_eth.c
2204
w[i] = p->weights[nstrict + i];
drivers/net/ethernet/airoha/airoha_eth.c
2212
return airoha_qdma_set_chan_tx_sched(port, channel, mode, w,
drivers/net/ethernet/airoha/airoha_eth.c
2213
ARRAY_SIZE(w));
drivers/net/ethernet/amazon/ena/ena_netdev.c
1337
static void ena_dim_work(struct work_struct *w)
drivers/net/ethernet/amazon/ena/ena_netdev.c
1339
struct dim *dim = container_of(w, struct dim, work);
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
1151
static void aq_ptp_poll_sync_work_cb(struct work_struct *w);
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
1369
static void aq_ptp_poll_sync_work_cb(struct work_struct *w)
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
1371
struct delayed_work *dw = to_delayed_work(w);
drivers/net/ethernet/brocade/bna/bfa_ioc.c
1649
u32 w = readl(pci_bar + FLI_RDDATA_REG);
drivers/net/ethernet/brocade/bna/bfa_ioc.c
1650
*((u32 *)(buf + i)) = swab32(w);
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
405
u64 w:1;
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
476
u64 w:1;
drivers/net/ethernet/cavium/liquidio/octeon_nic.h
202
pki_ih3->w = 1;
drivers/net/ethernet/cavium/liquidio/request_manager.c
604
pki_ih3->w = 1;
drivers/net/ethernet/chelsio/cxgb3/sge.c
1520
static void restart_ctrlq(struct work_struct *w)
drivers/net/ethernet/chelsio/cxgb3/sge.c
1523
struct sge_qset *qs = container_of(w, struct sge_qset,
drivers/net/ethernet/chelsio/cxgb3/sge.c
1740
static void restart_offloadq(struct work_struct *w)
drivers/net/ethernet/chelsio/cxgb3/sge.c
1743
struct sge_qset *qs = container_of(w, struct sge_qset,
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2842
unsigned int i, w;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2853
for (w = 0; w < NCCTRL_WIN; ++w) {
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2856
inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w],
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2860
(w << 16) | (beta[w] << 13) | inc);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
62
#define INIT_TP_WR(w, tid) do { \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
63
(w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_TP_WR) | \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
64
FW_WR_IMMDLEN_V(sizeof(*w) - sizeof(w->wr))); \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
65
(w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
67
(w)->wr.wr_lo = cpu_to_be64(0); \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
70
#define INIT_TP_WR_CPL(w, cpl, tid) do { \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
71
INIT_TP_WR(w, tid); \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
72
OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
75
#define INIT_ULPTX_WR(w, wrlen, atomic, tid) do { \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
76
(w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_ULPTX_WR) | \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
78
(w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
80
(w)->wr.wr_lo = cpu_to_be64(0); \
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5763
unsigned int mtu, w;
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5766
for (w = 0; w < NCCTRL_WIN; ++w) {
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5768
ROWINDEX_V(0xffff) | (mtu << 5) | w);
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5769
incr[mtu][w] = (u16)t4_read_reg(adap,
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5859
unsigned int i, w;
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5870
for (w = 0; w < NCCTRL_WIN; ++w) {
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5873
inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w],
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5877
(w << 16) | (beta[w] << 13) | inc);
drivers/net/ethernet/cortina/gemini.c
1142
unsigned short w = *desc;
drivers/net/ethernet/cortina/gemini.c
1236
txq->skb[w] = skb;
drivers/net/ethernet/cortina/gemini.c
1244
txd = txq->ring + w;
drivers/net/ethernet/cortina/gemini.c
1251
w++;
drivers/net/ethernet/cortina/gemini.c
1252
w &= m;
drivers/net/ethernet/cortina/gemini.c
1256
*desc = w;
drivers/net/ethernet/cortina/gemini.c
1260
while (w != *desc) {
drivers/net/ethernet/cortina/gemini.c
1261
w--;
drivers/net/ethernet/cortina/gemini.c
1262
w &= m;
drivers/net/ethernet/cortina/gemini.c
1264
dma_unmap_page(geth->dev, txq->ring[w].word2.buf_adr,
drivers/net/ethernet/cortina/gemini.c
1265
txq->ring[w].word0.bits.buffer_size,
drivers/net/ethernet/cortina/gemini.c
1277
unsigned short r, w, d;
drivers/net/ethernet/cortina/gemini.c
1294
w = rw.bits.wptr;
drivers/net/ethernet/cortina/gemini.c
1296
d = txq->cptr - w - 1;
drivers/net/ethernet/cortina/gemini.c
1301
d = txq->cptr - w - 1;
drivers/net/ethernet/cortina/gemini.c
1319
if (gmac_map_tx_bufs(netdev, skb, txq, &w)) {
drivers/net/ethernet/cortina/gemini.c
1327
if (gmac_map_tx_bufs(netdev, skb, txq, &w))
drivers/net/ethernet/cortina/gemini.c
1331
writew(w, ptr_reg + 2);
drivers/net/ethernet/cortina/gemini.c
1455
unsigned short r, w;
drivers/net/ethernet/cortina/gemini.c
1468
w = rw.bits.wptr;
drivers/net/ethernet/cortina/gemini.c
1470
while (budget && w != r) {
drivers/net/ethernet/cortina/gemini.c
760
unsigned int r, w;
drivers/net/ethernet/cortina/gemini.c
769
w = rw.bits.wptr;
drivers/net/ethernet/cortina/gemini.c
777
while (r != w) {
drivers/net/ethernet/cortina/gemini.h
59
#define __RWPTR_DISTANCE(r, w, mask) (((unsigned int)(w) - (r)) & (mask))
drivers/net/ethernet/cortina/gemini.h
63
#define RWPTR_DISTANCE(r, w, order) __RWPTR_DISTANCE((r), (w), \
drivers/net/ethernet/davicom/dm9000.c
684
static void dm9000_get_wol(struct net_device *dev, struct ethtool_wolinfo *w)
drivers/net/ethernet/davicom/dm9000.c
688
memset(w, 0, sizeof(struct ethtool_wolinfo));
drivers/net/ethernet/davicom/dm9000.c
691
w->supported = dm->wake_supported ? WAKE_MAGIC : 0;
drivers/net/ethernet/davicom/dm9000.c
692
w->wolopts = dm->wake_state;
drivers/net/ethernet/davicom/dm9000.c
695
static int dm9000_set_wol(struct net_device *dev, struct ethtool_wolinfo *w)
drivers/net/ethernet/davicom/dm9000.c
699
u32 opts = w->wolopts;
drivers/net/ethernet/davicom/dm9000.c
767
dm9000_poll_work(struct work_struct *w)
drivers/net/ethernet/davicom/dm9000.c
769
struct delayed_work *dw = to_delayed_work(w);
drivers/net/ethernet/freescale/enetc/enetc.c
1098
static void enetc_rx_dim_work(struct work_struct *w)
drivers/net/ethernet/freescale/enetc/enetc.c
1100
struct dim *dim = container_of(w, struct dim, work);
drivers/net/ethernet/freescale/enetc/enetc.c
1367
rxbd->w.addr = cpu_to_le64(rx_swbd->dma +
drivers/net/ethernet/freescale/enetc/enetc_hw.h
644
} w;
drivers/net/ethernet/ibm/ibmveth.c
2165
static void ibmveth_reset_kunit(struct work_struct *w)
drivers/net/ethernet/ibm/ibmveth.c
835
static void ibmveth_reset(struct work_struct *w)
drivers/net/ethernet/ibm/ibmveth.c
837
struct ibmveth_adapter *adapter = container_of(w, struct ibmveth_adapter, work);
drivers/net/ethernet/intel/fm10k/fm10k.h
459
} w;
drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c
92
rxd->w.length, rxd->w.vlan, rxd->w.dglort,
drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c
93
rxd->w.sglort, rxd->q.timestamp);
drivers/net/ethernet/intel/fm10k/fm10k_main.c
302
unsigned int size = le16_to_cpu(rx_desc->w.length);
drivers/net/ethernet/intel/fm10k/fm10k_main.c
401
rss_type = le16_to_cpu(rx_desc->w.pkt_info) & FM10K_RXD_RSSTYPE_MASK;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
419
u16 idx = le16_to_cpu(FM10K_CB(skb)->fi.w.dglort) - 1;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
460
FM10K_CB(skb)->fi.w.vlan = rx_desc->w.vlan;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
464
if (rx_desc->w.vlan) {
drivers/net/ethernet/intel/fm10k/fm10k_main.c
465
u16 vid = le16_to_cpu(rx_desc->w.vlan);
drivers/net/ethernet/intel/fm10k/fm10k_main.c
527
((rxd)->w.csum_err & cpu_to_le16(bit))
drivers/net/ethernet/intel/fm10k/fm10k_type.h
721
} w; /* Writeback, 16b words */
drivers/net/ethernet/intel/ice/ice_dpll.c
3204
struct ice_dpll_pin_work *w = container_of(work,
drivers/net/ethernet/intel/ice/ice_dpll.c
3207
struct ice_dpll_pin *pin, *parent = w->pin;
drivers/net/ethernet/intel/ice/ice_dpll.c
3215
switch (w->action) {
drivers/net/ethernet/intel/ice/ice_dpll.c
3262
kfree(w);
drivers/net/ethernet/intel/ice/ice_eswitch_br.h
102
#define ice_work_to_fdb_work(w) \
drivers/net/ethernet/intel/ice/ice_eswitch_br.h
103
container_of(w, \
drivers/net/ethernet/intel/ice/ice_eswitch_br.h
97
#define ice_work_to_br_offloads(w) \
drivers/net/ethernet/intel/ice/ice_eswitch_br.h
98
container_of(w, \
drivers/net/ethernet/jme.h
383
#define JME_NAPI_WEIGHT(w) int w
drivers/net/ethernet/jme.h
384
#define JME_NAPI_WEIGHT_VAL(w) w
drivers/net/ethernet/jme.h
385
#define JME_NAPI_WEIGHT_SET(w, r)
drivers/net/ethernet/marvell/mv643xx_eth.c
64
#define WINDOW_BASE(w) (0x0200 + ((w) << 3))
drivers/net/ethernet/marvell/mv643xx_eth.c
65
#define WINDOW_SIZE(w) (0x0204 + ((w) << 3))
drivers/net/ethernet/marvell/mv643xx_eth.c
66
#define WINDOW_REMAP_HIGH(w) (0x0280 + ((w) << 2))
drivers/net/ethernet/marvell/mv643xx_eth.c
68
#define WINDOW_PROTECT(w) (0x0294 + ((w) << 4))
drivers/net/ethernet/marvell/mvneta.c
75
#define MVNETA_WIN_BASE(w) (0x2200 + ((w) << 3))
drivers/net/ethernet/marvell/mvneta.c
76
#define MVNETA_WIN_SIZE(w) (0x2204 + ((w) << 3))
drivers/net/ethernet/marvell/mvneta.c
77
#define MVNETA_WIN_REMAP(w) (0x2280 + ((w) << 2))
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
224
#define MVPP2_WIN_BASE(w) (0x4000 + ((w) << 2))
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
225
#define MVPP2_WIN_SIZE(w) (0x4020 + ((w) << 2))
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
226
#define MVPP2_WIN_REMAP(w) (0x4040 + ((w) << 2))
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1892
static void otx2_dim_work(struct work_struct *w)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1899
dim = container_of(w, struct dim, work);
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
173
u32 val, w, count;
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
189
for (w = 0; w < IFH_LEN; w++)
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
190
spx5_wr(ifh[w], sparx5, QS_INJ_WR(grp));
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
195
for (w = 0; w < count; w++, buf += 4) {
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
201
while (w < (60 / 4)) {
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
203
w++;
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
214
w++;
drivers/net/ethernet/microsoft/mana/gdma_main.c
519
static void mana_recovery_delayed_func(struct work_struct *w)
drivers/net/ethernet/microsoft/mana/gdma_main.c
525
work = container_of(w, struct mana_dev_recovery_work, work.work);
drivers/net/ethernet/microsoft/mana/gdma_main.c
545
static void mana_serv_func(struct work_struct *w)
drivers/net/ethernet/microsoft/mana/gdma_main.c
550
mns_wk = container_of(w, struct mana_serv_work, serv_work);
drivers/net/ethernet/microsoft/mana/mana_en.c
104
static void mana_link_state_handle(struct work_struct *w)
drivers/net/ethernet/microsoft/mana/mana_en.c
112
ac = container_of(w, struct mana_context, link_change_work);
drivers/net/ethernet/microsoft/mana/mana_en.c
2208
int w;
drivers/net/ethernet/microsoft/mana/mana_en.c
2217
w = cq->work_done;
drivers/net/ethernet/microsoft/mana/mana_en.c
2218
cq->work_done_since_doorbell += w;
drivers/net/ethernet/microsoft/mana/mana_en.c
2220
if (w < cq->budget) {
drivers/net/ethernet/microsoft/mana/mana_en.c
2223
napi_complete_done(&cq->napi, w);
drivers/net/ethernet/microsoft/mana/mana_en.c
2235
return w;
drivers/net/ethernet/microsoft/mana/mana_en.c
2241
int w;
drivers/net/ethernet/microsoft/mana/mana_en.c
2246
w = mana_cq_handler(cq, cq->gdma_cq);
drivers/net/ethernet/microsoft/mana/mana_en.c
2248
return min(w, budget);
drivers/net/ethernet/mscc/ocelot_net.c
659
struct ocelot_mact_work_ctx *w = ocelot_work_to_ctx(work);
drivers/net/ethernet/mscc/ocelot_net.c
660
struct ocelot *ocelot = w->ocelot;
drivers/net/ethernet/mscc/ocelot_net.c
662
switch (w->type) {
drivers/net/ethernet/mscc/ocelot_net.c
664
ocelot_mact_learn(ocelot, w->learn.pgid, w->learn.addr,
drivers/net/ethernet/mscc/ocelot_net.c
665
w->learn.vid, w->learn.entry_type);
drivers/net/ethernet/mscc/ocelot_net.c
668
ocelot_mact_forget(ocelot, w->forget.addr, w->forget.vid);
drivers/net/ethernet/mscc/ocelot_net.c
674
kfree(w);
drivers/net/ethernet/mscc/ocelot_net.c
680
struct ocelot_mact_work_ctx *w = kmemdup(ctx, sizeof(*w), GFP_ATOMIC);
drivers/net/ethernet/mscc/ocelot_net.c
682
if (!w)
drivers/net/ethernet/mscc/ocelot_net.c
685
w->ocelot = ocelot;
drivers/net/ethernet/mscc/ocelot_net.c
686
INIT_WORK(&w->work, ocelot_mact_work);
drivers/net/ethernet/mscc/ocelot_net.c
687
queue_work(ocelot->owq, &w->work);
drivers/net/ethernet/mscc/ocelot_net.c
697
struct ocelot_mact_work_ctx w;
drivers/net/ethernet/mscc/ocelot_net.c
699
ether_addr_copy(w.forget.addr, addr);
drivers/net/ethernet/mscc/ocelot_net.c
700
w.forget.vid = OCELOT_STANDALONE_PVID;
drivers/net/ethernet/mscc/ocelot_net.c
701
w.type = OCELOT_MACT_FORGET;
drivers/net/ethernet/mscc/ocelot_net.c
703
return ocelot_enqueue_mact_action(ocelot, &w);
drivers/net/ethernet/mscc/ocelot_net.c
711
struct ocelot_mact_work_ctx w;
drivers/net/ethernet/mscc/ocelot_net.c
713
ether_addr_copy(w.learn.addr, addr);
drivers/net/ethernet/mscc/ocelot_net.c
714
w.learn.vid = OCELOT_STANDALONE_PVID;
drivers/net/ethernet/mscc/ocelot_net.c
715
w.learn.pgid = PGID_CPU;
drivers/net/ethernet/mscc/ocelot_net.c
716
w.learn.entry_type = ENTRYTYPE_LOCKED;
drivers/net/ethernet/mscc/ocelot_net.c
717
w.type = OCELOT_MACT_LEARN;
drivers/net/ethernet/mscc/ocelot_net.c
719
return ocelot_enqueue_mact_action(ocelot, &w);
drivers/net/ethernet/pensando/ionic/ionic_lif.c
101
if (!w)
drivers/net/ethernet/pensando/ionic/ionic_lif.c
104
switch (w->type) {
drivers/net/ethernet/pensando/ionic/ionic_lif.c
112
if (w->fw_status) {
drivers/net/ethernet/pensando/ionic/ionic_lif.c
127
kfree(w);
drivers/net/ethernet/pensando/ionic/ionic_lif.c
128
w = NULL;
drivers/net/ethernet/pensando/ionic/ionic_lif.c
90
struct ionic_deferred_work *w = NULL;
drivers/net/ethernet/pensando/ionic/ionic_lif.c
95
w = list_first_entry(&def->list,
drivers/net/ethernet/pensando/ionic/ionic_lif.c
97
list_del(&w->list);
drivers/net/ethernet/realtek/r8169_main.c
2153
u16 w = 0, cp01 = 0;
drivers/net/ethernet/realtek/r8169_main.c
2187
w |= FIELD_PREP(RTL_COALESCE_TX_FRAMES, DIV_ROUND_UP(tx_fr, 4));
drivers/net/ethernet/realtek/r8169_main.c
2188
w |= FIELD_PREP(RTL_COALESCE_RX_FRAMES, DIV_ROUND_UP(rx_fr, 4));
drivers/net/ethernet/realtek/r8169_main.c
2191
w |= FIELD_PREP(RTL_COALESCE_TX_USECS, units);
drivers/net/ethernet/realtek/r8169_main.c
2193
w |= FIELD_PREP(RTL_COALESCE_RX_USECS, units);
drivers/net/ethernet/realtek/r8169_main.c
2195
RTL_W16(tp, IntrMitigate, w);
drivers/net/ethernet/realtek/r8169_main.c
2965
u16 w;
drivers/net/ethernet/realtek/r8169_main.c
2968
w = (rtl_ephy_read(tp, e->offset) & ~e->mask) | e->bits;
drivers/net/ethernet/realtek/r8169_main.c
2969
rtl_ephy_write(tp, e->offset, w);
drivers/net/ethernet/sis/sis190.c
1608
u16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
drivers/net/ethernet/sis/sis190.c
1610
addr[i] = cpu_to_le16(w);
drivers/net/ethernet/sis/sis900.c
1097
u32 w = (u32) *((const u16 *)(net_dev->dev_addr)+i);
drivers/net/ethernet/sis/sis900.c
1100
sw32(rfdr, w);
drivers/net/ethernet/smsc/smc91c92_cs.c
1037
u_short i, w, save;
drivers/net/ethernet/smsc/smc91c92_cs.c
1039
for (w = 0; w < 4; w++) {
drivers/net/ethernet/smsc/smc91c92_cs.c
1040
SMC_SELECT_BANK(w);
drivers/net/ethernet/smsc/smc91c92_cs.c
1041
netdev_dbg(dev, "bank %d: ", w);
drivers/net/ethernet/ti/netcp_xgbepcsr.c
26
#define MASK_WID_SH(w, s) (((1 << w) - 1) << s)
drivers/net/ethernet/via/via-velocity.h
1264
u16 w;\
drivers/net/ethernet/via/via-velocity.h
1265
velocity_mii_read((p),(i),&(w));\
drivers/net/ethernet/via/via-velocity.h
1266
(w)|=(x);\
drivers/net/ethernet/via/via-velocity.h
1267
velocity_mii_write((p),(i),(w));\
drivers/net/ethernet/via/via-velocity.h
1271
u16 w;\
drivers/net/ethernet/via/via-velocity.h
1272
velocity_mii_read((p),(i),&(w));\
drivers/net/ethernet/via/via-velocity.h
1273
(w)&=(~(x));\
drivers/net/ethernet/via/via-velocity.h
1274
velocity_mii_write((p),(i),(w));\
drivers/net/ethernet/via/via-velocity.h
1278
u16 w;\
drivers/net/ethernet/via/via-velocity.h
1279
velocity_mii_read((p),(i),&(w));\
drivers/net/ethernet/via/via-velocity.h
1280
((int) ((w) & (x)));})
drivers/net/hyperv/hyperv_net.h
1079
void netvsc_vfns_work(struct work_struct *w);
drivers/net/hyperv/netvsc.c
100
container_of(w, struct netvsc_device, subchan_work);
drivers/net/hyperv/netvsc.c
106
schedule_work(w);
drivers/net/hyperv/netvsc.c
97
static void netvsc_subchan_work(struct work_struct *w)
drivers/net/hyperv/netvsc_drv.c
2001
static void netvsc_link_change(struct work_struct *w)
drivers/net/hyperv/netvsc_drv.c
2004
container_of(w, struct net_device_context, dwork.work);
drivers/net/hyperv/netvsc_drv.c
2217
static void netvsc_vf_setup(struct work_struct *w)
drivers/net/hyperv/netvsc_drv.c
2220
= container_of(w, struct net_device_context, vf_takeover.work);
drivers/net/hyperv/netvsc_drv.c
2801
void netvsc_vfns_work(struct work_struct *w)
drivers/net/hyperv/netvsc_drv.c
2804
container_of(w, struct net_device_context, vfns_work.work);
drivers/net/hyperv/rndis_filter.c
1058
static void rndis_set_multicast(struct work_struct *w)
drivers/net/hyperv/rndis_filter.c
1061
= container_of(w, struct rndis_device, mcast_work);
drivers/net/hyperv/rndis_filter.c
28
static void rndis_set_multicast(struct work_struct *w);
drivers/net/macvlan.c
323
static void macvlan_process_broadcast(struct work_struct *w)
drivers/net/macvlan.c
325
struct macvlan_port *port = container_of(w, struct macvlan_port,
drivers/net/phy/phylink.c
1608
static void phylink_resolve(struct work_struct *w)
drivers/net/phy/phylink.c
1610
struct phylink *pl = container_of(w, struct phylink, resolve);
drivers/net/phy/phylink.c
2765
struct ethtool_wolinfo w = { .cmd = ETHTOOL_GWOL };
drivers/net/phy/phylink.c
2780
phy_ethtool_get_wol(pl->phydev, &w);
drivers/net/phy/phylink.c
2785
wolopts &= ~w.wolopts;
drivers/net/wireless/ath/wil6210/wil6210.h
1069
#define wiphy_to_wil(w) (struct wil6210_priv *)(wiphy_priv(w))
drivers/net/wireless/ath/wil6210/wil6210.h
1070
#define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w))
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
421
static inline struct brcmf_cfg80211_info *wiphy_to_cfg(struct wiphy *w)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
423
struct brcmf_pub *drvr = wiphy_priv(w);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c
543
u32 w;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c
554
w = bcma_read32(cc, regoff);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c
556
return w;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c
694
u32 w = 0;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c
702
pci_read_config_dword(sii->pcibus, PCI_VENDOR_ID, &w);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c
703
if ((w & 0xFFFF) != PCI_VENDOR_ID_BROADCOM)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h
94
} w;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c
385
u32 w;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c
387
w = bcma_read32(di->core, ctrl_offset);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c
389
return (w & D64_XC_AE) == D64_XC_AE;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2737
u32 w, val;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2744
w = bcma_read32(core, D11REGOFFS(objdata));
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2775
bcma_write32(core, D11REGOFFS(objdata), w);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2780
w = bcma_read32(core, D11REGOFFS(maccontrol));
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2781
if ((w != (MCTL_IHR_EN | MCTL_WAKE)) &&
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2782
(w != (MCTL_IHR_EN | MCTL_GMODE | MCTL_WAKE))) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2784
"0x%x, expected 0x%x or 0x%x\n", wlc_hw->unit, w,
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h
1040
#define wlc_nphy_table_data_write(pi, w, v) \
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h
1041
wlc_phy_table_data_write((pi), (w), (v))
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h
1043
void wlc_phy_table_read_nphy(struct brcms_phy *pi, u32, u32 l, u32 o, u32 w,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2650
u32 r, w, i, s;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2657
read_register(priv->net_dev, IPW_MEM_HOST_SHARED_RX_WRITE_INDEX, &w);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2797
u32 r, w, frag_num = 0;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2836
&w);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2837
if (w != txq->next)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2863
if (!((r <= w && (e < r || e >= w)) || (e < r && e >= w))) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4368
u32 r, u32 w)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4378
write_register(priv->net_dev, w, q->next);
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
27
struct iwl_notification_wait *w;
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
30
list_for_each_entry(w, &notif_wait->notif_waits, list) {
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
40
if (w->triggered || w->aborted)
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
43
for (i = 0; i < w->n_cmds; i++) {
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
47
if (w->cmds[i] == rec_id ||
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
48
(!iwl_cmd_groupid(w->cmds[i]) &&
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
49
DEF_ID(w->cmds[i]) == rec_id)) {
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
57
if (!w->fn || w->fn(notif_wait, pkt, w->fn_data)) {
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
58
w->triggered = true;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1065
int w = iwl_txq_get_cmd_index(q, write_ptr);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1067
return w >= r ?
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1068
(index >= r && index < w) :
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1069
!(index < r && index >= w);
drivers/net/wireless/mediatek/mt76/mt76.h
1522
void mt76_tx_worker(struct mt76_worker *w);
drivers/net/wireless/mediatek/mt76/mt7615/main.c
733
void mt7615_tx_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/mt7615/main.c
735
struct mt7615_dev *dev = container_of(w, struct mt7615_dev,
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
504
void mt7615_tx_worker(struct mt76_worker *w);
drivers/net/wireless/mediatek/mt76/mt7615/sdio.c
27
static void mt7663s_txrx_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/mt7615/sdio.c
29
struct mt76_sdio *sdio = container_of(w, struct mt76_sdio,
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c
139
static void mt76x02_tx_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c
143
dev = container_of(w, struct mt76x02_dev, mt76.tx_worker);
drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
25
static void mt7921s_txrx_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
27
struct mt76_sdio *sdio = container_of(w, struct mt76_sdio,
drivers/net/wireless/mediatek/mt76/mt792x.h
392
void mt792x_tx_worker(struct mt76_worker *w);
drivers/net/wireless/mediatek/mt76/mt792x_core.c
291
void mt792x_tx_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/mt792x_core.c
293
struct mt792x_dev *dev = container_of(w, struct mt792x_dev,
drivers/net/wireless/mediatek/mt76/sdio.c
408
static void mt76s_net_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/sdio.c
410
struct mt76_sdio *sdio = container_of(w, struct mt76_sdio,
drivers/net/wireless/mediatek/mt76/sdio.c
461
static void mt76s_status_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/sdio.c
463
struct mt76_sdio *sdio = container_of(w, struct mt76_sdio,
drivers/net/wireless/mediatek/mt76/tx.c
725
void mt76_tx_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/tx.c
727
struct mt76_dev *dev = container_of(w, struct mt76_dev, tx_worker);
drivers/net/wireless/mediatek/mt76/usb.c
628
static void mt76u_rx_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/usb.c
630
struct mt76_usb *usb = container_of(w, struct mt76_usb, rx_worker);
drivers/net/wireless/mediatek/mt76/usb.c
759
static void mt76u_status_worker(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/usb.c
761
struct mt76_usb *usb = container_of(w, struct mt76_usb, status_worker);
drivers/net/wireless/mediatek/mt76/util.c
111
struct mt76_worker *w = ptr;
drivers/net/wireless/mediatek/mt76/util.c
121
if (!test_and_clear_bit(MT76_WORKER_SCHEDULED, &w->state)) {
drivers/net/wireless/mediatek/mt76/util.c
126
set_bit(MT76_WORKER_RUNNING, &w->state);
drivers/net/wireless/mediatek/mt76/util.c
128
w->fn(w);
drivers/net/wireless/mediatek/mt76/util.c
130
clear_bit(MT76_WORKER_RUNNING, &w->state);
drivers/net/wireless/mediatek/mt76/util.h
102
kthread_unpark(w->task);
drivers/net/wireless/mediatek/mt76/util.h
103
mt76_worker_schedule(w);
drivers/net/wireless/mediatek/mt76/util.h
106
static inline void mt76_worker_teardown(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/util.h
108
if (!w->task)
drivers/net/wireless/mediatek/mt76/util.h
111
kthread_stop(w->task);
drivers/net/wireless/mediatek/mt76/util.h
112
w->task = NULL;
drivers/net/wireless/mediatek/mt76/util.h
57
mt76_worker_setup(struct ieee80211_hw *hw, struct mt76_worker *w,
drivers/net/wireless/mediatek/mt76/util.h
65
w->fn = fn;
drivers/net/wireless/mediatek/mt76/util.h
66
w->task = kthread_run(__mt76_worker_fn, w,
drivers/net/wireless/mediatek/mt76/util.h
69
if (IS_ERR(w->task)) {
drivers/net/wireless/mediatek/mt76/util.h
70
ret = PTR_ERR(w->task);
drivers/net/wireless/mediatek/mt76/util.h
71
w->task = NULL;
drivers/net/wireless/mediatek/mt76/util.h
78
static inline void mt76_worker_schedule(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/util.h
80
if (!w->task)
drivers/net/wireless/mediatek/mt76/util.h
83
if (!test_and_set_bit(MT76_WORKER_SCHEDULED, &w->state) &&
drivers/net/wireless/mediatek/mt76/util.h
84
!test_bit(MT76_WORKER_RUNNING, &w->state))
drivers/net/wireless/mediatek/mt76/util.h
85
wake_up_process(w->task);
drivers/net/wireless/mediatek/mt76/util.h
88
static inline void mt76_worker_disable(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/util.h
90
if (!w->task)
drivers/net/wireless/mediatek/mt76/util.h
93
kthread_park(w->task);
drivers/net/wireless/mediatek/mt76/util.h
94
WRITE_ONCE(w->state, 0);
drivers/net/wireless/mediatek/mt76/util.h
97
static inline void mt76_worker_enable(struct mt76_worker *w)
drivers/net/wireless/mediatek/mt76/util.h
99
if (!w->task)
drivers/net/wireless/microchip/wilc1000/netdev.c
276
u32 w;
drivers/net/wireless/microchip/wilc1000/netdev.c
282
w = vif->iftype;
drivers/net/wireless/microchip/wilc1000/netdev.c
283
cpu_to_le32s(&w);
drivers/net/wireless/microchip/wilc1000/netdev.c
284
if (!wilc_wlan_cfg_set(vif, 1, WID_SET_OPERATION_MODE, (u8 *)&w, 4,
drivers/net/wireless/microchip/wilc1000/netdev.c
380
w = 84600;
drivers/net/wireless/microchip/wilc1000/netdev.c
381
cpu_to_le32s(&w);
drivers/net/wireless/microchip/wilc1000/netdev.c
382
if (!wilc_wlan_cfg_set(vif, 0, WID_REKEY_PERIOD, (u8 *)&w, 4, 0, 0))
drivers/net/wireless/microchip/wilc1000/netdev.c
385
w = 500;
drivers/net/wireless/microchip/wilc1000/netdev.c
386
cpu_to_le32s(&w);
drivers/net/wireless/microchip/wilc1000/netdev.c
387
if (!wilc_wlan_cfg_set(vif, 0, WID_REKEY_PACKET_COUNT, (u8 *)&w, 4, 0,
drivers/net/wireless/microchip/wilc1000/netdev.h
34
#define wilc_for_each_vif(w, v) \
drivers/net/wireless/microchip/wilc1000/netdev.h
35
struct wilc *_w = w; \
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
180
while (cfg->w[i].id != WID_NIL && cfg->w[i].id != wid)
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
183
if (cfg->w[i].id == wid)
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
184
cfg->w[i].val = get_unaligned_le32(&info[4]);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
308
while (cfg->w[i].id != WID_NIL && cfg->w[i].id != wid)
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
311
if (cfg->w[i].id == wid) {
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
312
memcpy(buffer, &cfg->w[i].val, 4);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
385
wl->cfg.w = kmemdup(g_cfg_word, sizeof(g_cfg_word), GFP_KERNEL);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
386
if (!wl->cfg.w)
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
418
kfree(wl->cfg.w);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
430
kfree(wl->cfg.w);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.h
40
struct wilc_cfg_word *w;
drivers/net/wireless/realtek/rtw88/tx.c
681
void rtw_tx_work(struct work_struct *w)
drivers/net/wireless/realtek/rtw88/tx.c
683
struct rtw_dev *rtwdev = container_of(w, struct rtw_dev, tx_work);
drivers/net/wireless/realtek/rtw88/tx.h
92
void rtw_tx_work(struct work_struct *w);
drivers/net/wireless/realtek/rtw89/chan.c
3371
struct rtw89_entity_weight w = {};
drivers/net/wireless/realtek/rtw89/chan.c
3387
rtw89_entity_calculate_weight(rtwdev, &w);
drivers/net/wireless/realtek/rtw89/chan.c
3388
if (w.active_chanctxs != 1)
drivers/net/wireless/realtek/rtw89/chan.c
339
struct rtw89_entity_weight *w)
drivers/net/wireless/realtek/rtw89/chan.c
346
w->registered_chanctxs = bitmap_weight(hal->entity_map, NUM_OF_RTW89_CHANCTX);
drivers/net/wireless/realtek/rtw89/chan.c
352
w->active_chanctxs = 1;
drivers/net/wireless/realtek/rtw89/chan.c
357
w->active_chanctxs++;
drivers/net/wireless/realtek/rtw89/chan.c
362
w->active_roles++;
drivers/net/wireless/realtek/rtw89/chan.c
573
struct rtw89_entity_weight w = {};
drivers/net/wireless/realtek/rtw89/chan.c
582
rtw89_entity_calculate_weight(rtwdev, &w);
drivers/net/wireless/realtek/rtw89/chan.c
583
switch (w.active_chanctxs) {
drivers/net/wireless/realtek/rtw89/chan.c
586
w.active_chanctxs);
drivers/net/wireless/realtek/rtw89/chan.c
590
if (!w.registered_chanctxs)
drivers/net/wireless/realtek/rtw89/chan.c
598
if (w.active_roles == 1) {
drivers/net/wireless/realtek/rtw89/chan.c
603
if (w.active_roles != NUM_OF_RTW89_MCC_ROLES) {
drivers/net/wireless/realtek/rtw89/chan.c
606
w.active_chanctxs, w.active_roles);
drivers/net/wireless/realtek/rtw89/core.c
4128
static void rtw89_core_txq_work(struct work_struct *w)
drivers/net/wireless/realtek/rtw89/core.c
4130
struct rtw89_dev *rtwdev = container_of(w, struct rtw89_dev, txq_work);
drivers/net/wireless/realtek/rtw89/core.c
4143
static void rtw89_core_txq_reinvoke_work(struct work_struct *w)
drivers/net/wireless/realtek/rtw89/core.c
4145
struct rtw89_dev *rtwdev = container_of(w, struct rtw89_dev,
drivers/net/wireless/realtek/rtw89/core.c
4151
static void rtw89_forbid_ba_work(struct work_struct *w)
drivers/net/wireless/realtek/rtw89/core.c
4153
struct rtw89_dev *rtwdev = container_of(w, struct rtw89_dev,
drivers/net/wireless/realtek/rtw89/mac80211.c
1536
u8 w = hweight16(links);
drivers/net/wireless/realtek/rtw89/mac80211.c
1539
w > RTW89_MLD_NON_STA_LINK_NUM)
drivers/net/wireless/realtek/rtw89/mac80211.c
1542
return w <= rtwvif->links_inst_valid_num;
drivers/nvme/host/tcp.c
1376
static void nvme_tcp_io_work(struct work_struct *w)
drivers/nvme/host/tcp.c
1379
container_of(w, struct nvme_tcp_queue, io_work);
drivers/nvme/target/io-cmd-file.c
205
static void nvmet_file_buffered_io_work(struct work_struct *w)
drivers/nvme/target/io-cmd-file.c
207
struct nvmet_req *req = container_of(w, struct nvmet_req, f.work);
drivers/nvme/target/io-cmd-file.c
257
static void nvmet_file_flush_work(struct work_struct *w)
drivers/nvme/target/io-cmd-file.c
259
struct nvmet_req *req = container_of(w, struct nvmet_req, f.work);
drivers/nvme/target/io-cmd-file.c
307
static void nvmet_file_dsm_work(struct work_struct *w)
drivers/nvme/target/io-cmd-file.c
309
struct nvmet_req *req = container_of(w, struct nvmet_req, f.work);
drivers/nvme/target/io-cmd-file.c
332
static void nvmet_file_write_zeroes_work(struct work_struct *w)
drivers/nvme/target/io-cmd-file.c
334
struct nvmet_req *req = container_of(w, struct nvmet_req, f.work);
drivers/nvme/target/passthru.c
214
static void nvmet_passthru_execute_cmd_work(struct work_struct *w)
drivers/nvme/target/passthru.c
216
struct nvmet_req *req = container_of(w, struct nvmet_req, p.work);
drivers/nvme/target/pr.c
591
static void nvmet_pr_do_abort(struct work_struct *w)
drivers/nvme/target/pr.c
593
struct nvmet_req *req = container_of(w, struct nvmet_req, r.abort_work);
drivers/nvme/target/rdma.c
1367
static void nvmet_rdma_release_queue_work(struct work_struct *w)
drivers/nvme/target/rdma.c
1370
container_of(w, struct nvmet_rdma_queue, release_work);
drivers/nvme/target/rdma.c
1908
static void nvmet_rdma_repair_port_work(struct work_struct *w)
drivers/nvme/target/rdma.c
1910
struct nvmet_rdma_port *port = container_of(to_delayed_work(w),
drivers/nvme/target/tcp.c
1422
static void nvmet_tcp_io_work(struct work_struct *w)
drivers/nvme/target/tcp.c
1425
container_of(w, struct nvmet_tcp_queue, io_work);
drivers/nvme/target/tcp.c
1589
static void nvmet_tcp_release_queue_work(struct work_struct *w)
drivers/nvme/target/tcp.c
1592
container_of(w, struct nvmet_tcp_queue, release_work);
drivers/nvme/target/tcp.c
1841
static void nvmet_tcp_tls_handshake_timeout(struct work_struct *w)
drivers/nvme/target/tcp.c
1843
struct nvmet_tcp_queue *queue = container_of(to_delayed_work(w),
drivers/nvme/target/tcp.c
1893
static void nvmet_tcp_tls_handshake_timeout(struct work_struct *w) {}
drivers/nvme/target/tcp.c
1999
static void nvmet_tcp_accept_work(struct work_struct *w)
drivers/nvme/target/tcp.c
2002
container_of(w, struct nvmet_tcp_port, accept_work);
drivers/nvme/target/zns.c
267
static void nvmet_bdev_zone_zmgmt_recv_work(struct work_struct *w)
drivers/nvme/target/zns.c
269
struct nvmet_req *req = container_of(w, struct nvmet_req, z.zmgmt_work);
drivers/nvme/target/zns.c
472
static void nvmet_bdev_zmgmt_send_work(struct work_struct *w)
drivers/nvme/target/zns.c
474
struct nvmet_req *req = container_of(w, struct nvmet_req, z.zmgmt_work);
drivers/of/address.c
111
u32 w = be32_to_cpup(addr);
drivers/of/address.c
116
switch((w >> 24) & 0x03) {
drivers/of/address.c
128
if (w & 0x40000000)
drivers/of/address.c
311
u32 w = be32_to_cpup(addr);
drivers/of/address.c
313
if (w & 1)
drivers/parisc/dino.c
268
DINO_PORT_IN(w, 16, 2)
drivers/parisc/dino.c
284
DINO_PORT_OUT(w, 16, 2)
drivers/parport/parport_gsc.c
135
unsigned char r, w;
drivers/parport/parport_gsc.c
146
w = 0xc;
drivers/parport/parport_gsc.c
147
parport_writeb (w, CONTROL (pb));
drivers/parport/parport_gsc.c
155
if ((r & 0xf) == w) {
drivers/parport/parport_gsc.c
156
w = 0xe;
drivers/parport/parport_gsc.c
157
parport_writeb (w, CONTROL (pb));
drivers/parport/parport_gsc.c
160
if ((r & 0xf) == w)
drivers/parport/parport_gsc.c
166
w = 0xaa;
drivers/parport/parport_gsc.c
167
parport_gsc_write_data (pb, w);
drivers/parport/parport_gsc.c
169
if (r == w) {
drivers/parport/parport_gsc.c
170
w = 0x55;
drivers/parport/parport_gsc.c
171
parport_gsc_write_data (pb, w);
drivers/parport/parport_gsc.c
173
if (r == w)
drivers/parport/parport_pc.c
1418
unsigned char r, w;
drivers/parport/parport_pc.c
1429
w = 0xc;
drivers/parport/parport_pc.c
1430
outb(w, CONTROL(pb));
drivers/parport/parport_pc.c
1438
if ((r & 0xf) == w) {
drivers/parport/parport_pc.c
1439
w = 0xe;
drivers/parport/parport_pc.c
1440
outb(w, CONTROL(pb));
drivers/parport/parport_pc.c
1443
if ((r & 0xf) == w)
drivers/parport/parport_pc.c
1451
pb->base, w, r);
drivers/parport/parport_pc.c
1455
w = 0xaa;
drivers/parport/parport_pc.c
1456
parport_pc_write_data(pb, w);
drivers/parport/parport_pc.c
1458
if (r == w) {
drivers/parport/parport_pc.c
1459
w = 0x55;
drivers/parport/parport_pc.c
1460
parport_pc_write_data(pb, w);
drivers/parport/parport_pc.c
1462
if (r == w)
drivers/parport/parport_pc.c
1470
pb->base, w, r);
drivers/pcmcia/cirrus.h
54
#define PD67_IO_OFF(w) (0x36+((w)<<1))
drivers/pcmcia/pcmcia_resource.c
227
unsigned int w;
drivers/pcmcia/pcmcia_resource.c
230
w = ((res->flags & IORESOURCE_BITS & WIN_FLAGS_REQ) >> 2) - 1;
drivers/pcmcia/pcmcia_resource.c
231
if (w >= MAX_WIN)
drivers/pcmcia/pcmcia_resource.c
235
s->win[w].card_start = offset;
drivers/pcmcia/pcmcia_resource.c
236
ret = s->ops->set_mem_map(s, &s->win[w]);
drivers/pcmcia/pcmcia_resource.c
429
unsigned int w;
drivers/pcmcia/pcmcia_resource.c
433
w = ((res->flags & IORESOURCE_BITS & WIN_FLAGS_REQ) >> 2) - 1;
drivers/pcmcia/pcmcia_resource.c
434
if (w >= MAX_WIN)
drivers/pcmcia/pcmcia_resource.c
438
win = &s->win[w];
drivers/pcmcia/pcmcia_resource.c
440
if (!(p_dev->_win & CLIENT_WIN_REQ(w))) {
drivers/pcmcia/pcmcia_resource.c
449
s->state &= ~SOCKET_WIN_REQ(w);
drivers/pcmcia/pcmcia_resource.c
460
p_dev->_win &= ~CLIENT_WIN_REQ(w);
drivers/pcmcia/pcmcia_resource.c
839
int w;
drivers/pcmcia/pcmcia_resource.c
866
for (w = 0; w < MAX_WIN; w++)
drivers/pcmcia/pcmcia_resource.c
867
if (!(s->state & SOCKET_WIN_REQ(w)))
drivers/pcmcia/pcmcia_resource.c
869
if (w == MAX_WIN) {
drivers/pcmcia/pcmcia_resource.c
875
win = &s->win[w];
drivers/pcmcia/pcmcia_resource.c
886
p_dev->_win |= CLIENT_WIN_REQ(w);
drivers/pcmcia/pcmcia_resource.c
889
win->map = w+1;
drivers/pcmcia/pcmcia_resource.c
899
s->state |= SOCKET_WIN_REQ(w);
drivers/pcmcia/ricoh.h
40
#define RF5C_IO_OFF(w) (0x36+((w)<<1))
drivers/phy/freescale/phy-fsl-lynx-28g.c
1061
#define work_to_lynx(w) container_of((w), struct lynx_28g_priv, cdr_check.work)
drivers/pinctrl/pinctrl-ocelot.c
2199
struct ocelot_irq_work *w = container_of(work, struct ocelot_irq_work, irq_work);
drivers/pinctrl/pinctrl-ocelot.c
2200
struct irq_chip *parent_chip = irq_desc_get_chip(w->irq_desc);
drivers/pinctrl/pinctrl-ocelot.c
2201
struct gpio_chip *chip = irq_desc_get_chip_data(w->irq_desc);
drivers/pinctrl/pinctrl-ocelot.c
2202
struct irq_data *data = irq_desc_get_irq_data(w->irq_desc);
drivers/pinctrl/pinctrl-ocelot.c
2206
chained_irq_enter(parent_chip, w->irq_desc);
drivers/pinctrl/pinctrl-ocelot.c
2208
chained_irq_exit(parent_chip, w->irq_desc);
drivers/pinctrl/pinctrl-ocelot.c
2211
kfree(w);
drivers/pinctrl/renesas/pinctrl-rzt2h.c
110
RZT2H_PINCTRL_REG_ACCESS(w, u16)
drivers/platform/olpc/olpc-ec.c
77
static void olpc_ec_worker(struct work_struct *w)
drivers/platform/olpc/olpc-ec.c
79
struct olpc_ec_priv *ec = container_of(w, struct olpc_ec_priv, worker);
drivers/platform/x86/intel/ifs/ifs.h
376
struct work_struct w;
drivers/platform/x86/intel/ifs/load.c
118
struct ifs_work *local_work = container_of(work, struct ifs_work, w);
drivers/platform/x86/intel/ifs/load.c
348
INIT_WORK_ONSTACK(&local_work.w, copy_hashes_authenticate_chunks);
drivers/platform/x86/intel/ifs/load.c
349
schedule_work_on(cpu, &local_work.w);
drivers/platform/x86/nvidia-wmi-ec-backlight.c
32
static int wmi_brightness_notify(struct wmi_device *w, enum wmi_brightness_method id, enum wmi_brightness_mode mode, u32 *val)
drivers/platform/x86/nvidia-wmi-ec-backlight.c
50
status = wmidev_evaluate_method(w, 0, id, &buf, &buf);
drivers/platform/x86/nvidia-wmi-ec-backlight.c
52
dev_err(&w->dev, "EC backlight control failed: %s\n",
drivers/s390/char/raw3270.c
422
short w; /* Width of usable area */
drivers/s390/char/raw3270.c
515
rp->cols = uap->uab.w;
drivers/s390/cio/cio.h
21
u32 w : 1;
drivers/s390/cio/css.c
411
(pmcw->st == SUBCHANNEL_TYPE_MSG && pmcw->w))
drivers/s390/cio/css.c
499
if ((schib->pmcw.st == SUBCHANNEL_TYPE_MSG) && !schib->pmcw.w)
drivers/s390/cio/fcx.c
172
if (tcw->w && (tcw->flags & TCW_FLAGS_OUTPUT_TIDA))
drivers/s390/cio/fcx.c
176
else if (tcw->w)
drivers/s390/cio/fcx.c
215
} else if (tcw->w) {
drivers/s390/cio/fcx.c
45
if (tcw->w)
drivers/s390/cio/fcx.c
84
void tcw_init(struct tcw *tcw, int r, int w)
drivers/s390/cio/fcx.c
91
if (w)
drivers/s390/cio/fcx.c
92
tcw->w = 1;
drivers/s390/net/qeth_l3_main.c
2095
#define to_ip_work(w) container_of((w), struct qeth_l3_ip_event_work, work)
drivers/scsi/advansys.c
2772
ushort w, num;
drivers/scsi/advansys.c
2780
w = serialnum[0];
drivers/scsi/advansys.c
2783
if ((*cp = 'A' + ((w & 0xE000) >> 13)) == 'H') {
drivers/scsi/advansys.c
2790
*cp++ = 'A' + ((w & 0x1C00) >> 10);
drivers/scsi/advansys.c
2793
num = w & 0x3FF;
drivers/scsi/advansys.c
2804
w = serialnum[1];
drivers/scsi/advansys.c
2813
*cp++ = '8' + ((w & 0x1C0) >> 6);
drivers/scsi/advansys.c
2815
*cp++ = '0' + ((w & 0x1C0) >> 6);
drivers/scsi/advansys.c
2819
num = w & 0x003F;
drivers/scsi/advansys.c
2827
w = serialnum[2] & 0x7FFF;
drivers/scsi/advansys.c
2830
*cp++ = 'A' + (w / 1000);
drivers/scsi/advansys.c
2833
num = w % 1000;
drivers/scsi/aic94xx/aic94xx_reg.h
70
ASD_READ_OCM(u16,word, w);
drivers/scsi/aic94xx/aic94xx_reg.h
83
ASD_WRITE_OCM(u16,word, w);
drivers/scsi/atp870u.c
716
unsigned short int w;
drivers/scsi/atp870u.c
800
w = 1;
drivers/scsi/atp870u.c
801
w = w << target_id;
drivers/scsi/atp870u.c
802
if ((w & dev->wide_id[c]) != 0) {
drivers/scsi/bfa/bfa_cs.h
282
} w;
drivers/scsi/bfa/bfa_cs.h
284
w.wwn = wwn;
drivers/scsi/bfa/bfa_cs.h
285
sprintf(wwn_str, "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", w.byte[0],
drivers/scsi/bfa/bfa_cs.h
286
w.byte[1], w.byte[2], w.byte[3], w.byte[4], w.byte[5],
drivers/scsi/bfa/bfa_cs.h
287
w.byte[6], w.byte[7]);
drivers/scsi/bfa/bfa_ioc.c
6901
u32 w = readl(pci_bar + FLI_RDDATA_REG);
drivers/scsi/bfa/bfa_ioc.c
6902
*((u32 *) (buf + i)) = swab32(w);
drivers/scsi/esas2r/esas2r.h
125
#define LOBYTE(w) ((u8)(u16)(w))
drivers/scsi/esas2r/esas2r.h
126
#define HIBYTE(w) ((u8)(((u16)(w)) >> 8))
drivers/scsi/lpfc/lpfc_bsg.c
211
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_bsg.c
2647
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_bsg.c
2866
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_ct.c
1989
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_ct.c
202
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_ct.c
534
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_debugfs.c
333
le32_to_cpu(hbqe->bde.tus.w),
drivers/scsi/lpfc/lpfc_els.c
7249
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_hw4.h
271
uint32_t w;
drivers/scsi/lpfc/lpfc_nvme.c
1478
bde->tus.w = cpu_to_le32(bde->tus.w);
drivers/scsi/lpfc/lpfc_nvme.c
438
bde.tus.w = bpl[i].tus.w;
drivers/scsi/lpfc/lpfc_nvme.c
616
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_nvme.c
623
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_nvmet.c
3035
bde->tus.w = cpu_to_le32(bde->tus.w);
drivers/scsi/lpfc/lpfc_nvmet.c
910
bpl.tus.w = le32_to_cpu(bpl.tus.w);
drivers/scsi/lpfc/lpfc_scsi.c
1630
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_scsi.c
1852
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_scsi.c
317
bpl[0].tus.w = le32_to_cpu(bpl[0].tus.w);
drivers/scsi/lpfc/lpfc_scsi.c
3204
bde->tus.w = cpu_to_le32(bde->tus.w);
drivers/scsi/lpfc/lpfc_scsi.c
324
bpl[1].tus.w = le32_to_cpu(bpl[1].tus.w);
drivers/scsi/lpfc/lpfc_scsi.c
880
bpl->tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_sli.c
10669
wqe->generic.bde.tus.w = type_size;
drivers/scsi/lpfc/lpfc_sli.c
11133
wqe->xmit_sequence.bde.tus.w = bpl->tus.w;
drivers/scsi/lpfc/lpfc_sli.c
21362
bde.tus.w = le32_to_cpu(bpl->tus.w);
drivers/scsi/lpfc/lpfc_sli.c
2464
hbqe->bde.tus.w = le32_to_cpu(hbqe->bde.tus.w);
drivers/scsi/megaraid/megaraid_sas.h
1920
__le32 w[3];
drivers/scsi/megaraid/megaraid_sas.h
2200
__le32 w[24];
drivers/scsi/megaraid/megaraid_sas.h
508
u32 w;
drivers/scsi/megaraid/megaraid_sas_base.c
6687
le32_to_cpu(instance->aen_cmd->frame->dcmd.mbox.w[1]);
drivers/scsi/megaraid/megaraid_sas_base.c
6756
dcmd->mbox.w[0] = cpu_to_le32(seq_num);
drivers/scsi/megaraid/megaraid_sas_base.c
6758
dcmd->mbox.w[1] = cpu_to_le32(curr_aen.word);
drivers/scsi/megaraid/megaraid_sas_base.c
8203
crash_support = cmd->frame->dcmd.mbox.w[0];
drivers/scsi/mpt3sas/mpt3sas_base.h
1677
U16 w[4];
drivers/scsi/mvsas/mv_sas.h
61
#define MV_INIT_DELAYED_WORK(w, f, d) INIT_DELAYED_WORK(w, f)
drivers/scsi/qla1280.c
640
nv->firmware_feature.w = cpu_to_le16(nv->firmware_feature.w);
drivers/scsi/qla1280.h
393
uint16_t w;
drivers/scsi/qla2xxx/qla_init.c
2899
uint16_t w;
drivers/scsi/qla2xxx/qla_init.c
2907
pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
drivers/scsi/qla2xxx/qla_init.c
2908
w |= (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
drivers/scsi/qla2xxx/qla_init.c
2909
pci_write_config_word(ha->pdev, PCI_COMMAND, w);
drivers/scsi/qla2xxx/qla_init.c
2930
uint16_t w;
drivers/scsi/qla2xxx/qla_init.c
2939
pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
drivers/scsi/qla2xxx/qla_init.c
2940
w |= (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
drivers/scsi/qla2xxx/qla_init.c
2943
w &= ~PCI_COMMAND_INTX_DISABLE;
drivers/scsi/qla2xxx/qla_init.c
2944
pci_write_config_word(ha->pdev, PCI_COMMAND, w);
drivers/scsi/qla2xxx/qla_init.c
3012
uint16_t w;
drivers/scsi/qla2xxx/qla_init.c
3020
pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
drivers/scsi/qla2xxx/qla_init.c
3021
w |= (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
drivers/scsi/qla2xxx/qla_init.c
3022
w &= ~PCI_COMMAND_INTX_DISABLE;
drivers/scsi/qla2xxx/qla_init.c
3023
pci_write_config_word(ha->pdev, PCI_COMMAND, w);
drivers/scsi/qla2xxx/qla_init.c
3056
uint16_t w;
drivers/scsi/qla2xxx/qla_init.c
3062
pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
drivers/scsi/qla2xxx/qla_init.c
3063
w |= (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
drivers/scsi/qla2xxx/qla_init.c
3064
w &= ~PCI_COMMAND_INTX_DISABLE;
drivers/scsi/qla2xxx/qla_init.c
3065
pci_write_config_word(ha->pdev, PCI_COMMAND, w);
drivers/scsi/qla2xxx/qla_mbx.c
423
uint16_t w;
drivers/scsi/qla2xxx/qla_mbx.c
454
pci_read_config_word(ha->pdev, PCI_VENDOR_ID, &w);
drivers/scsi/qla2xxx/qla_mbx.c
455
if (w == 0xffff || ictrl == 0xffffffff ||
drivers/scsi/qla2xxx/qla_mr.c
498
uint16_t w;
drivers/scsi/qla2xxx/qla_mr.c
504
pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
drivers/scsi/qla2xxx/qla_mr.c
505
w |= (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
drivers/scsi/qla2xxx/qla_mr.c
506
w &= ~PCI_COMMAND_INTX_DISABLE;
drivers/scsi/qla2xxx/qla_mr.c
507
pci_write_config_word(ha->pdev, PCI_COMMAND, w);
drivers/scsi/qla2xxx/qla_os.c
7392
uint16_t w;
drivers/scsi/qla2xxx/qla_os.c
7413
pci_read_config_word(ha->pdev, PCI_VENDOR_ID, &w);
drivers/scsi/qla2xxx/qla_os.c
7414
qla2x00_check_reg16_for_disconnect(vha, w);
drivers/scsi/qla2xxx/qla_os.c
7568
w = 0;
drivers/scsi/qla2xxx/qla_os.c
7597
w = 1;
drivers/scsi/qla2xxx/qla_os.c
7600
qla_heart_beat(vha, w);
drivers/scsi/qla4xxx/ql4_init.c
660
uint16_t w;
drivers/scsi/qla4xxx/ql4_init.c
675
pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
drivers/scsi/qla4xxx/ql4_init.c
676
w |= PCI_COMMAND_PARITY | PCI_COMMAND_SERR;
drivers/scsi/qla4xxx/ql4_init.c
677
w &= ~PCI_COMMAND_INTX_DISABLE;
drivers/scsi/qla4xxx/ql4_init.c
678
pci_write_config_word(ha->pdev, PCI_COMMAND, w);
drivers/scsi/qla4xxx/ql4_os.c
4560
uint16_t w;
drivers/scsi/qla4xxx/ql4_os.c
4574
pci_read_config_word(ha->pdev, PCI_VENDOR_ID, &w);
drivers/soc/fsl/dpio/dpio-service.c
112
static void dpaa2_io_dim_work(struct work_struct *w)
drivers/soc/fsl/dpio/dpio-service.c
114
struct dim *dim = container_of(w, struct dim, work);
drivers/soc/qcom/pmic_glink_altmode.c
125
#define work_to_altmode(w) container_of((w), struct pmic_glink_altmode, enable_work)
drivers/soc/qcom/pmic_glink_altmode.c
97
#define work_to_altmode_port(w) container_of((w), struct pmic_glink_altmode_port, work)
drivers/spi/spi-omap-uwire.c
117
u16 w, val = 0;
drivers/spi/spi-omap-uwire.c
132
w = uwire_read_reg(reg);
drivers/spi/spi-omap-uwire.c
133
w &= ~(0x3f << shift);
drivers/spi/spi-omap-uwire.c
134
w |= val << shift;
drivers/spi/spi-omap-uwire.c
135
uwire_write_reg(reg, w);
drivers/spi/spi-omap-uwire.c
140
u16 w;
drivers/spi/spi-omap-uwire.c
145
w = uwire_read_reg(UWIRE_CSR);
drivers/spi/spi-omap-uwire.c
146
if ((w & mask) == val)
drivers/spi/spi-omap-uwire.c
151
__func__, w, mask, val);
drivers/spi/spi-omap-uwire.c
163
u16 w;
drivers/spi/spi-omap-uwire.c
165
w = uwire_read_reg(UWIRE_SR3);
drivers/spi/spi-omap-uwire.c
166
w &= ~(0x03 << 1);
drivers/spi/spi-omap-uwire.c
167
w |= div1_idx << 1;
drivers/spi/spi-omap-uwire.c
168
uwire_write_reg(UWIRE_SR3, w);
drivers/spi/spi-omap-uwire.c
174
u16 w;
drivers/spi/spi-omap-uwire.c
180
w = uwire_read_reg(UWIRE_CSR);
drivers/spi/spi-omap-uwire.c
181
old_cs = (w >> 10) & 0x03;
drivers/spi/spi-omap-uwire.c
184
w &= ~CS_CMD;
drivers/spi/spi-omap-uwire.c
185
uwire_write_reg(UWIRE_CSR, w);
drivers/spi/spi-omap-uwire.c
196
w = spi_get_chipselect(spi, 0) << 10;
drivers/spi/spi-omap-uwire.c
197
w |= CS_CMD;
drivers/spi/spi-omap-uwire.c
198
uwire_write_reg(UWIRE_CSR, w);
drivers/spi/spi-omap-uwire.c
207
u16 val, w;
drivers/spi/spi-omap-uwire.c
213
w = spi_get_chipselect(spi, 0) << 10;
drivers/spi/spi-omap-uwire.c
214
w |= CS_CMD;
drivers/spi/spi-omap-uwire.c
244
val = START | w | (bits << 5);
drivers/spi/spi-omap-uwire.c
274
val = START | w | (bits << 0);
drivers/spi/spi-omap2-mcspi.c
557
u32 w;
drivers/spi/spi-omap2-mcspi.c
559
w = mcspi_read_cs_reg(spi, OMAP2_MCSPI_RX0);
drivers/spi/spi-omap2-mcspi.c
561
((u8 *)xfer->rx_buf)[elements++] = w;
drivers/spi/spi-omap2-mcspi.c
563
((u16 *)xfer->rx_buf)[elements++] = w;
drivers/spi/spi-omap2-mcspi.c
565
((u32 *)xfer->rx_buf)[elements++] = w;
drivers/spi/spi-omap2-mcspi.c
575
u32 w;
drivers/spi/spi-omap2-mcspi.c
577
w = mcspi_read_cs_reg(spi, OMAP2_MCSPI_RX0);
drivers/spi/spi-omap2-mcspi.c
579
((u8 *)xfer->rx_buf)[elements] = w;
drivers/spi/spi-omap2-mcspi.c
581
((u16 *)xfer->rx_buf)[elements] = w;
drivers/spi/spi-omap2-mcspi.c
583
((u32 *)xfer->rx_buf)[elements] = w;
drivers/spi/spi-pic32.c
216
BUILD_SPI_FIFO_RW(word, u16, w);
drivers/staging/greybus/audio_codec.c
299
struct snd_soc_dapm_widget *w,
drivers/staging/greybus/audio_codec.c
305
dev_dbg(module->dev, "%s:Module update %s sequence\n", w->name,
drivers/staging/greybus/audio_codec.c
308
if ((w->id != snd_soc_dapm_aif_in) && (w->id != snd_soc_dapm_aif_out)) {
drivers/staging/greybus/audio_codec.c
309
dev_dbg(codec->dev, "No action required for %s\n", w->name);
drivers/staging/greybus/audio_codec.c
314
ret = sscanf(w->sname, "%s %d %s", intf_name, &dai_id, dir);
drivers/staging/greybus/audio_codec.c
316
dev_err(codec->dev, "Error while parsing dai_id for %s\n", w->name);
drivers/staging/greybus/audio_codec.c
321
if (w->id == snd_soc_dapm_aif_in) {
drivers/staging/greybus/audio_codec.c
326
} else if (w->id == snd_soc_dapm_aif_out) {
drivers/staging/greybus/audio_codec.h
174
struct snd_soc_dapm_widget *w,
drivers/staging/greybus/audio_helper.c
102
snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p)
drivers/staging/greybus/audio_helper.c
106
kfree(w->kcontrols);
drivers/staging/greybus/audio_helper.c
107
kfree_const(w->name);
drivers/staging/greybus/audio_helper.c
108
kfree_const(w->sname);
drivers/staging/greybus/audio_helper.c
109
kfree(w);
drivers/staging/greybus/audio_helper.c
117
struct snd_soc_dapm_widget *w, *tmp_w;
drivers/staging/greybus/audio_helper.c
123
w = NULL;
drivers/staging/greybus/audio_helper.c
127
w = tmp_w;
drivers/staging/greybus/audio_helper.c
131
if (!w) {
drivers/staging/greybus/audio_helper.c
138
gbaudio_dapm_free_widget(w);
drivers/staging/greybus/audio_helper.c
18
struct snd_soc_dapm_widget *w;
drivers/staging/greybus/audio_helper.c
23
list_for_each_entry(w, &card->widgets, list) {
drivers/staging/greybus/audio_helper.c
24
if (w->dapm != dai_w->dapm)
drivers/staging/greybus/audio_helper.c
27
switch (w->id) {
drivers/staging/greybus/audio_helper.c
35
if (!w->sname || !strstr(w->sname, dai_w->sname))
drivers/staging/greybus/audio_helper.c
46
sink = w;
drivers/staging/greybus/audio_helper.c
48
src = w;
drivers/staging/greybus/audio_helper.c
90
static void gbaudio_dapm_free_widget(struct snd_soc_dapm_widget *w)
drivers/staging/greybus/audio_helper.c
95
list_del(&w->list);
drivers/staging/greybus/audio_topology.c
1014
struct gb_audio_widget *w, int *w_size)
drivers/staging/greybus/audio_topology.c
1023
ret = gbaudio_validate_kcontrol_count(w);
drivers/staging/greybus/audio_topology.c
1026
w->ncontrols, w->name);
drivers/staging/greybus/audio_topology.c
1031
if (w->ncontrols) {
drivers/staging/greybus/audio_topology.c
1032
size = sizeof(struct snd_kcontrol_new) * w->ncontrols;
drivers/staging/greybus/audio_topology.c
1041
curr = w->ctl;
drivers/staging/greybus/audio_topology.c
1042
for (i = 0; i < w->ncontrols; i++) {
drivers/staging/greybus/audio_topology.c
1060
control->wname = w->name;
drivers/staging/greybus/audio_topology.c
1089
strscpy(temp_name, w->name, sizeof(temp_name));
drivers/staging/greybus/audio_topology.c
1090
snprintf(w->name, sizeof(w->name), "GB %d %s", module->dev_id, temp_name);
drivers/staging/greybus/audio_topology.c
1092
switch (w->type) {
drivers/staging/greybus/audio_topology.c
1094
*dw = gbaudio_widgets[w->type];
drivers/staging/greybus/audio_topology.c
1098
*dw = gbaudio_widgets[w->type];
drivers/staging/greybus/audio_topology.c
1104
*dw = gbaudio_widgets[w->type];
drivers/staging/greybus/audio_topology.c
1113
*dw = gbaudio_widgets[w->type];
drivers/staging/greybus/audio_topology.c
1117
*dw = gbaudio_widgets[w->type];
drivers/staging/greybus/audio_topology.c
1118
dw->sname = w->sname;
drivers/staging/greybus/audio_topology.c
1124
dw->name = w->name;
drivers/staging/greybus/audio_topology.c
493
static int gbcodec_event_spk(struct snd_soc_dapm_widget *w,
drivers/staging/greybus/audio_topology.c
501
static int gbcodec_event_hp(struct snd_soc_dapm_widget *w,
drivers/staging/greybus/audio_topology.c
509
static int gbcodec_event_int_mic(struct snd_soc_dapm_widget *w,
drivers/staging/greybus/audio_topology.c
517
static int gbaudio_validate_kcontrol_count(struct gb_audio_widget *w)
drivers/staging/greybus/audio_topology.c
521
switch (w->type) {
drivers/staging/greybus/audio_topology.c
527
if (w->ncontrols)
drivers/staging/greybus/audio_topology.c
532
if (w->ncontrols != 1)
drivers/staging/greybus/audio_topology.c
922
static int gbaudio_widget_event(struct snd_soc_dapm_widget *w,
drivers/staging/greybus/audio_topology.c
927
struct device *codec_dev = snd_soc_dapm_to_dev(w->dapm);
drivers/staging/greybus/audio_topology.c
932
dev_dbg(codec_dev, "%s %s %d\n", __func__, w->name, event);
drivers/staging/greybus/audio_topology.c
935
module = find_gb_module(gbcodec, w->name);
drivers/staging/greybus/audio_topology.c
940
wid = gbaudio_map_widgetname(module, w->name);
drivers/staging/greybus/audio_topology.c
942
dev_err(codec_dev, "Invalid widget name:%s\n", w->name);
drivers/staging/greybus/audio_topology.c
956
ret = gbaudio_module_update(gbcodec, w, module, 1);
drivers/staging/greybus/audio_topology.c
961
ret = gbaudio_module_update(gbcodec, w, module, 0);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
1893
unsigned int w, h;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
1902
w = dz_config->zoom_region.origin.x +
drivers/staging/media/atomisp/pci/atomisp_cmd.c
1907
if ((w <= config.width) && (h <= config.height) && w > 0 && h > 0)
drivers/staging/media/atomisp/pci/bits.h
83
#define _hrt_get_bits(w, b, n) \
drivers/staging/media/atomisp/pci/bits.h
84
(((w) >> (b)) & _hrt_ones(n))
drivers/staging/media/atomisp/pci/bits.h
85
#define _hrt_set_bits(w, b, n, v) \
drivers/staging/media/atomisp/pci/bits.h
86
(((w) & ~_hrt_mask(b, n)) | (((v) & _hrt_ones(n)) << (b)))
drivers/staging/media/atomisp/pci/bits.h
87
#define _hrt_get_bit(w, b) \
drivers/staging/media/atomisp/pci/bits.h
88
(((w) >> (b)) & 1)
drivers/staging/media/atomisp/pci/bits.h
89
#define _hrt_set_bit(w, b, v) \
drivers/staging/media/atomisp/pci/bits.h
90
(((w) & (~(1 << (b)))) | (((v) & 1) << (b)))
drivers/staging/media/atomisp/pci/bits.h
91
#define _hrt_set_lower_half(w, v) \
drivers/staging/media/atomisp/pci/bits.h
92
_hrt_set_bits(w, 0, 16, v)
drivers/staging/media/atomisp/pci/bits.h
93
#define _hrt_set_upper_half(w, v) \
drivers/staging/media/atomisp/pci/bits.h
94
_hrt_set_bits(w, 16, 16, v)
drivers/staging/media/atomisp/pci/hive_isp_css_common/dma_global.h
68
#define DMA_PACK_WIDTH_A(w) DMA_PACK(w, SPEC_DEV_A_XB)
drivers/staging/media/atomisp/pci/hive_isp_css_common/dma_global.h
69
#define DMA_PACK_WIDTH_B(w) DMA_PACK(w, SPEC_DEV_B_XB)
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c
23
subword(hive_uedge w, unsigned int start, unsigned int end)
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c
25
return (w & (((1ULL << (end - 1)) - 1) << 1 | 1)) >> start;
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c
30
inv_subword(hive_uedge w, unsigned int start, unsigned int end)
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c
32
return w & (~(((1ULL << (end - 1)) - 1) << 1 | 1) | ((1ULL << start) - 1));
drivers/staging/media/atomisp/pci/sh_css_params.c
2884
unsigned int i, j, padding, w;
drivers/staging/media/atomisp/pci/sh_css_params.c
2896
w = aligned_width;
drivers/staging/media/atomisp/pci/sh_css_params.c
2899
w = width;
drivers/staging/media/atomisp/pci/sh_css_params.c
2901
isp_data_size = height * (w + padding) * sizeof(uint16_t);
drivers/staging/media/atomisp/pci/sh_css_params.c
2915
for (j = 0; j < w; j++)
drivers/staging/media/av7110/av7110.c
489
av7110->video_size.w = irdebi(av7110, DEBINOSWAP, STATUS_MPEG_WIDTH, 0, 2);
drivers/staging/media/av7110/av7110.c
498
event.u.size.w = av7110->video_size.w;
drivers/staging/media/av7110/av7110.c
518
av7110->video_size.w, av7110->video_size.h,
drivers/staging/media/av7110/av7110_hw.c
1007
rc = LoadBitmap(av7110, w, lpb, inc, data);
drivers/staging/media/av7110/av7110_hw.c
1016
rc = LoadBitmap(av7110, w, brest / bpl, inc, data);
drivers/staging/media/av7110/av7110_hw.c
976
uint w, h, bpp, bpl, size, lpb, bnum, brest;
drivers/staging/media/av7110/av7110_hw.c
980
w = x1 - x0 + 1;
drivers/staging/media/av7110/av7110_hw.c
983
inc = w;
drivers/staging/media/av7110/av7110_hw.c
984
if (w <= 0 || w > 720 || h <= 0 || h > 576)
drivers/staging/media/av7110/av7110_hw.c
987
bpl = ((w * bpp + 7) & ~7) / 8;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
138
u32 h, w;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1394
static void isc_awb_work(struct work_struct *w)
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1397
container_of(w, struct isc_device, awb_work);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
141
w = isc->fmt.fmt.pix.width;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
151
w <<= 1;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
163
(ISC_PFE_CFG1_COLMAX(w - 1) & ISC_PFE_CFG1_COLMAX_MASK));
drivers/staging/media/ipu3/ipu3-css-params.c
513
u32 w = reso.pin_width[IMGU_ABI_OSYS_PIN_VF] -
drivers/staging/media/ipu3/ipu3-css-params.c
519
roundclosest_down(w / 2, IMGU_OSYS_DMA_CROP_W_LIMIT);
drivers/staging/media/ipu3/ipu3-css.c
1222
unsigned int w, h;
drivers/staging/media/ipu3/ipu3-css.c
1245
w = ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].width,
drivers/staging/media/ipu3/ipu3-css.c
1248
css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_REF].bytesperpixel * w;
drivers/staging/media/ipu3/ipu3-css.c
1249
size = w * h * BYPC + (w / 2) * (h / 2) * BYPC * 2;
drivers/staging/media/ipu3/ipu3-css.c
1267
w = css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_TNR].width;
drivers/staging/media/ipu3/ipu3-css.c
1268
css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_TNR].bytesperline = w;
drivers/staging/media/ipu3/ipu3-css.c
1270
size = w * ALIGN(h * 3 / 2 + 3, 2); /* +3 for vf_pp prefetch */
drivers/staging/media/ipu3/ipu3-css.h
57
u32 w;
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
123
#define VE_DEC_MPEG_PICCODEDSIZE_WIDTH(w) \
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
124
SHIFT_AND_MASK_BITS(DIV_ROUND_UP(w, 16), 15, 8)
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
130
#define VE_DEC_MPEG_PICBOUNDSIZE_WIDTH(w) SHIFT_AND_MASK_BITS(w, 27, 16)
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
135
#define VE_DEC_MPEG_MBADDR_X(w) SHIFT_AND_MASK_BITS(w, 15, 8)
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
297
#define VE_DEC_H265_DEC_PIC_SIZE_WIDTH(w) (((w) << 0) & GENMASK(13, 0))
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
656
#define VE_VP8_FSIZE_WIDTH(w) \
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
657
SHIFT_AND_MASK_BITS(DIV_ROUND_UP(w, 16), 15, 8)
drivers/staging/media/sunxi/cedrus/cedrus_regs.h
662
#define VE_VP8_PICSIZE_WIDTH(w) SHIFT_AND_MASK_BITS(w, 27, 16)
drivers/staging/rtl8723bs/include/ioctl_cfg80211.h
87
#define wdev_to_ndev(w) ((w)->netdev)
drivers/staging/sm750fb/sm750.h
121
int w;
drivers/staging/sm750fb/sm750_cursor.c
143
pitch = cursor->w >> 3;
drivers/staging/sm750fb/sm750_cursor.c
60
void sm750_hw_cursor_set_size(struct lynx_cursor *cursor, int w, int h)
drivers/staging/sm750fb/sm750_cursor.c
62
cursor->w = w;
drivers/staging/sm750fb/sm750_cursor.c
93
pitch = cursor->w >> 3;
drivers/staging/sm750fb/sm750_cursor.h
8
void sm750_hw_cursor_set_size(struct lynx_cursor *cursor, int w, int h);
drivers/tee/optee/call.c
100
optee_cq_wait_for_completion(cq, w);
drivers/tee/optee/call.c
118
struct optee_call_waiter *w)
drivers/tee/optee/call.c
120
wait_for_completion(&w->c);
drivers/tee/optee/call.c
125
list_del(&w->list_node);
drivers/tee/optee/call.c
126
reinit_completion(&w->c);
drivers/tee/optee/call.c
127
list_add_tail(&w->list_node, &cq->waiters);
drivers/tee/optee/call.c
134
struct optee_call_waiter *w;
drivers/tee/optee/call.c
137
list_for_each_entry(w, &cq->waiters, list_node) {
drivers/tee/optee/call.c
138
if (w->sys_thread && !completion_done(&w->c)) {
drivers/tee/optee/call.c
139
complete(&w->c);
drivers/tee/optee/call.c
144
list_for_each_entry(w, &cq->waiters, list_node) {
drivers/tee/optee/call.c
145
if (!completion_done(&w->c)) {
drivers/tee/optee/call.c
146
complete(&w->c);
drivers/tee/optee/call.c
153
struct optee_call_waiter *w)
drivers/tee/optee/call.c
163
list_del(&w->list_node);
drivers/tee/optee/call.c
176
if (completion_done(&w->c))
drivers/tee/optee/call.c
58
struct optee_call_waiter *w, bool sys_thread)
drivers/tee/optee/call.c
63
memset(w, 0, sizeof(*w));
drivers/tee/optee/call.c
81
init_completion(&w->c);
drivers/tee/optee/call.c
82
list_add_tail(&w->list_node, &cq->waiters);
drivers/tee/optee/call.c
83
w->sys_thread = sys_thread;
drivers/tee/optee/ffa_abi.c
538
struct optee_call_waiter w;
drivers/tee/optee/ffa_abi.c
546
optee_cq_wait_init(&optee->call_queue, &w, system_thread);
drivers/tee/optee/ffa_abi.c
565
optee_cq_wait_for_completion(&optee->call_queue, &w);
drivers/tee/optee/ffa_abi.c
599
optee_cq_wait_final(&optee->call_queue, &w);
drivers/tee/optee/optee_private.h
374
struct optee_call_waiter *w, bool sys_thread);
drivers/tee/optee/optee_private.h
376
struct optee_call_waiter *w);
drivers/tee/optee/optee_private.h
378
struct optee_call_waiter *w);
drivers/tee/optee/smc_abi.c
284
struct optee_call_waiter w;
drivers/tee/optee/smc_abi.c
287
optee_cq_wait_init(&optee->call_queue, &w, false);
drivers/tee/optee/smc_abi.c
295
optee_cq_wait_for_completion(&optee->call_queue, &w);
drivers/tee/optee/smc_abi.c
297
optee_cq_wait_final(&optee->call_queue, &w);
drivers/tee/optee/smc_abi.c
309
struct optee_call_waiter w;
drivers/tee/optee/smc_abi.c
312
optee_cq_wait_init(&optee->call_queue, &w, false);
drivers/tee/optee/smc_abi.c
337
optee_cq_wait_for_completion(&optee->call_queue, &w);
drivers/tee/optee/smc_abi.c
340
optee_cq_wait_final(&optee->call_queue, &w);
drivers/tee/optee/smc_abi.c
891
struct optee_call_waiter w;
drivers/tee/optee/smc_abi.c
929
optee_cq_wait_init(&optee->call_queue, &w, system_thread);
drivers/tee/optee/smc_abi.c
944
optee_cq_wait_for_completion(&optee->call_queue, &w);
drivers/tee/optee/smc_abi.c
963
optee_cq_wait_final(&optee->call_queue, &w);
drivers/tty/serial/8250/8250_lpss.c
78
unsigned long w = BIT(15) - 1;
drivers/tty/serial/8250/8250_lpss.c
94
rational_best_approximation(fuart, fref, w, w, &m, &n);
drivers/tty/serial/8250/8250_mid.c
214
unsigned long w = BIT(24) - 1;
drivers/tty/serial/8250/8250_mid.c
232
rational_best_approximation(fuart, mid->board->freq, w, w, &mul, &div);
drivers/tty/serial/max3100.c
234
static void max3100_work(struct work_struct *w)
drivers/tty/serial/max3100.c
236
struct max3100_port *s = container_of(w, struct max3100_port, work);
drivers/tty/serial/serial_core.c
3447
static void uart_sysrq_on(struct work_struct *w)
drivers/tty/serial/sh-sci.c
2187
int i, j, w, ret = 0;
drivers/tty/serial/sh-sci.c
2194
for (w = 0; w < i; w++)
drivers/tty/serial/sh-sci.c
2195
if (port->irqs[w] == port->irqs[i])
drivers/tty/serial/sh-sci.c
2196
w = i + 1;
drivers/tty/serial/sh-sci.c
2197
if (w > i)
drivers/tty/serial/sunsab.c
1002
writeb(up->cached_pvr, &up->regs->w.pvr);
drivers/tty/serial/sunsab.c
136
writeb(SAB82532_CMDR_RFRD, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
150
writeb(SAB82532_CMDR_RMC, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
240
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
257
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
262
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
273
writeb(ch, &up->regs->w.xfifo[i]);
drivers/tty/serial/sunsab.c
278
writeb(SAB82532_CMDR_XF, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
412
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
424
writeb(up->cached_dafo, &up->regs->w.dafo);
drivers/tty/serial/sunsab.c
426
writeb(up->cached_ebrg & 0xff, &up->regs->w.bgr);
drivers/tty/serial/sunsab.c
446
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
460
writeb(ch, &up->regs->w.xfifo[i]);
drivers/tty/serial/sunsab.c
465
writeb(SAB82532_CMDR_XF, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
481
writeb(ch, &up->regs->w.tic);
drivers/tty/serial/sunsab.c
493
writeb(up->interrupt_mask1, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
543
writeb(SAB82532_CMDR_RRES, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
545
writeb(SAB82532_CMDR_XRES, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
556
writeb(0, &up->regs->w.ccr0); /* power-down */
drivers/tty/serial/sunsab.c
558
SAB82532_CCR0_SM_ASYNC, &up->regs->w.ccr0);
drivers/tty/serial/sunsab.c
559
writeb(SAB82532_CCR1_ODS | SAB82532_CCR1_BCR | 7, &up->regs->w.ccr1);
drivers/tty/serial/sunsab.c
561
SAB82532_CCR2_TOE, &up->regs->w.ccr2);
drivers/tty/serial/sunsab.c
562
writeb(0, &up->regs->w.ccr3);
drivers/tty/serial/sunsab.c
563
writeb(SAB82532_CCR4_MCK4 | SAB82532_CCR4_EBRG, &up->regs->w.ccr4);
drivers/tty/serial/sunsab.c
566
writeb(up->cached_mode, &up->regs->w.mode);
drivers/tty/serial/sunsab.c
567
writeb(SAB82532_RFC_DPS|SAB82532_RFC_RFTH_32, &up->regs->w.rfc);
drivers/tty/serial/sunsab.c
578
writeb(up->interrupt_mask0, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
583
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
603
writeb(up->interrupt_mask0, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
605
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
852
writeb(c, &up->regs->w.tic);
drivers/tty/serial/sunsab.c
926
writeb(up->interrupt_mask0, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
931
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
983
writeb(SAB82532_IPC_IC_ACT_LOW, &up->regs->w.ipc);
drivers/tty/serial/sunsab.c
990
writeb(~((1 << 1) | (1 << 2) | (1 << 4)), &up->regs->w.pcr);
drivers/tty/serial/sunsab.c
991
writeb(0xff, &up->regs->w.pim);
drivers/tty/serial/sunsab.h
115
__volatile__ struct sab82532_async_wr_regs w;
drivers/tty/synclink_gt.c
2248
struct cond_wait *w, *prev;
drivers/tty/synclink_gt.c
2251
for (w = info->gpio_wait_q, prev = NULL ; w != NULL ; w = w->next) {
drivers/tty/synclink_gt.c
2252
if (w->data & changed) {
drivers/tty/synclink_gt.c
2253
w->data = state;
drivers/tty/synclink_gt.c
2254
wake_up_interruptible(&w->q);
drivers/tty/synclink_gt.c
2256
prev->next = w->next;
drivers/tty/synclink_gt.c
2258
info->gpio_wait_q = w->next;
drivers/tty/synclink_gt.c
2260
prev = w;
drivers/tty/synclink_gt.c
2918
static void init_cond_wait(struct cond_wait *w, unsigned int data)
drivers/tty/synclink_gt.c
2920
init_waitqueue_head(&w->q);
drivers/tty/synclink_gt.c
2921
init_waitqueue_entry(&w->wait, current);
drivers/tty/synclink_gt.c
2922
w->data = data;
drivers/tty/synclink_gt.c
2925
static void add_cond_wait(struct cond_wait **head, struct cond_wait *w)
drivers/tty/synclink_gt.c
2928
add_wait_queue(&w->q, &w->wait);
drivers/tty/synclink_gt.c
2929
w->next = *head;
drivers/tty/synclink_gt.c
2930
*head = w;
drivers/tty/synclink_gt.c
2935
struct cond_wait *w, *prev;
drivers/tty/synclink_gt.c
2938
for (w = *head, prev = NULL ; w != NULL ; prev = w, w = w->next) {
drivers/tty/synclink_gt.c
2939
if (w == cw) {
drivers/tty/synclink_gt.c
2941
prev->next = w->next;
drivers/tty/synclink_gt.c
2943
*head = w->next;
drivers/tty/vt/vc_screen.c
560
unsigned short w;
drivers/tty/vt/vc_screen.c
562
w = get_unaligned(((unsigned short *)con_buf));
drivers/tty/vt/vc_screen.c
563
vcs_scr_writew(vc, w, org++);
drivers/tty/vt/vt.c
4978
u16 w = scr_readw(screenpos(vc, offset, true));
drivers/tty/vt/vt.c
4979
u16 c = w & 0xff;
drivers/tty/vt/vt.c
4981
if (w & vc->vc_hi_font_mask)
drivers/usb/core/driver.c
1592
int w;
drivers/usb/core/driver.c
1599
w = 0;
drivers/usb/core/driver.c
1606
w = device_may_wakeup(&udev->dev);
drivers/usb/core/driver.c
1613
if (udev->state == USB_STATE_SUSPENDED && w != udev->do_remote_wakeup)
drivers/usb/core/driver.c
1615
udev->do_remote_wakeup = w;
drivers/usb/core/driver.c
1929
int w, i;
drivers/usb/core/driver.c
1938
w = 0;
drivers/usb/core/driver.c
1952
w |= intf->needs_remote_wakeup;
drivers/usb/core/driver.c
1968
if (w && !device_can_wakeup(&udev->dev)) {
drivers/usb/core/driver.c
1978
if (w && udev->parent == udev->bus->root_hub &&
drivers/usb/core/driver.c
1984
udev->do_remote_wakeup = w;
drivers/usb/dwc3/core.h
1425
#define work_to_dwc(w) (container_of((w), struct dwc3, drd_work))
drivers/usb/dwc3/gadget.c
3325
#define nostream_work_to_dep(w) (container_of(to_delayed_work(w), struct dwc3_ep, nostream_work))
drivers/usb/gadget/function/u_serial.c
366
struct delayed_work *w = to_delayed_work(work);
drivers/usb/gadget/function/u_serial.c
367
struct gs_port *port = container_of(w, struct gs_port, push);
drivers/usb/gadget/function/uvc_v4l2.c
166
u16 w, h;
drivers/usb/gadget/function/uvc_v4l2.c
168
w = frame->frm->frame.w_width;
drivers/usb/gadget/function/uvc_v4l2.c
171
d = min(w, rw) * min(h, rh);
drivers/usb/gadget/function/uvc_v4l2.c
172
d = w*h + rw*rh - 2*d;
drivers/usb/gadget/udc/bcm63xx_udc.c
1730
static void bcm63xx_ep0_process(struct work_struct *w)
drivers/usb/gadget/udc/bcm63xx_udc.c
1732
struct bcm63xx_udc *udc = container_of(w, struct bcm63xx_udc, ep0_wq);
drivers/usb/gadget/udc/omap_udc.c
1195
u16 w;
drivers/usb/gadget/udc/omap_udc.c
1197
w = omap_readw(UDC_SYSCON1);
drivers/usb/gadget/udc/omap_udc.c
1198
w |= UDC_PULLUP_EN;
drivers/usb/gadget/udc/omap_udc.c
1199
omap_writew(w, UDC_SYSCON1);
drivers/usb/gadget/udc/omap_udc.c
1212
u16 w;
drivers/usb/gadget/udc/omap_udc.c
1222
w = omap_readw(UDC_SYSCON1);
drivers/usb/gadget/udc/omap_udc.c
1223
w &= ~UDC_PULLUP_EN;
drivers/usb/gadget/udc/omap_udc.c
1224
omap_writew(w, UDC_SYSCON1);
drivers/usb/gadget/udc/omap_udc.c
132
u16 w;
drivers/usb/gadget/udc/omap_udc.c
134
w = omap_readw(UDC_EP_NUM);
drivers/usb/gadget/udc/omap_udc.c
135
w &= ~UDC_EP_SEL;
drivers/usb/gadget/udc/omap_udc.c
136
omap_writew(w, UDC_EP_NUM);
drivers/usb/gadget/udc/omap_udc.c
2021
u16 w;
drivers/usb/gadget/udc/omap_udc.c
2023
w = omap_readw(UDC_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
2024
w &= ~UDC_SOF_IE;
drivers/usb/gadget/udc/omap_udc.c
2025
omap_writew(w, UDC_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
517
u16 txdma_ctrl, w;
drivers/usb/gadget/udc/omap_udc.c
545
w = omap_readw(UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
546
w |= UDC_TX_DONE_IE(ep->dma_channel);
drivers/usb/gadget/udc/omap_udc.c
547
omap_writew(w, UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
554
u16 w;
drivers/usb/gadget/udc/omap_udc.c
572
w = omap_readw(UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
573
w &= ~UDC_TX_DONE_IE(ep->dma_channel);
drivers/usb/gadget/udc/omap_udc.c
574
omap_writew(w, UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
582
u16 w;
drivers/usb/gadget/udc/omap_udc.c
598
w = omap_readw(UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
599
w |= UDC_RX_EOT_IE(ep->dma_channel);
drivers/usb/gadget/udc/omap_udc.c
600
omap_writew(w, UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
610
u16 count, w;
drivers/usb/gadget/udc/omap_udc.c
629
w = omap_readw(UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
630
w &= ~UDC_RX_EOT_IE(ep->dma_channel);
drivers/usb/gadget/udc/omap_udc.c
631
omap_writew(w, UDC_DMA_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
919
u16 w;
drivers/usb/gadget/udc/omap_udc.c
921
w = omap_readw(UDC_IRQ_EN);
drivers/usb/gadget/udc/omap_udc.c
922
w |= UDC_SOF_IE;
drivers/usb/gadget/udc/omap_udc.c
923
omap_writew(w, UDC_IRQ_EN);
drivers/usb/host/isp116x-hcd.c
104
w = *dp++;
drivers/usb/host/isp116x-hcd.c
105
w |= *dp++ << 8;
drivers/usb/host/isp116x-hcd.c
106
isp116x_raw_write_data16(isp116x, w);
drivers/usb/host/isp116x-hcd.c
131
u16 w;
drivers/usb/host/isp116x-hcd.c
141
w = isp116x_raw_read_data16(isp116x);
drivers/usb/host/isp116x-hcd.c
142
*dp++ = w & 0xff;
drivers/usb/host/isp116x-hcd.c
143
*dp++ = (w >> 8) & 0xff;
drivers/usb/host/isp116x-hcd.c
94
u16 w;
drivers/usb/host/xhci-mvebu.c
19
#define USB3_WIN_CTRL(w) (0x0 + ((w) * 8))
drivers/usb/host/xhci-mvebu.c
20
#define USB3_WIN_BASE(w) (0x4 + ((w) * 8))
drivers/usb/musb/musb_core.c
2213
struct musb_pending_work *w, *_w;
drivers/usb/musb/musb_core.c
2218
list_for_each_entry_safe(w, _w, &musb->pending_list, node) {
drivers/usb/musb/musb_core.c
2219
if (w->callback) {
drivers/usb/musb/musb_core.c
2220
error = w->callback(musb, w->data);
drivers/usb/musb/musb_core.c
2224
w->callback, error);
drivers/usb/musb/musb_core.c
2227
list_del(&w->node);
drivers/usb/musb/musb_core.c
2228
devm_kfree(musb->controller, w);
drivers/usb/musb/musb_core.c
2248
struct musb_pending_work *w;
drivers/usb/musb/musb_core.c
2260
w = devm_kzalloc(musb->controller, sizeof(*w), GFP_ATOMIC);
drivers/usb/musb/musb_core.c
2261
if (!w) {
drivers/usb/musb/musb_core.c
2266
w->callback = callback;
drivers/usb/musb/musb_core.c
2267
w->data = data;
drivers/usb/musb/musb_core.c
2269
list_add_tail(&w->node, &musb->pending_list);
drivers/usb/phy/phy-tahvo.c
179
u16 w;
drivers/usb/phy/phy-tahvo.c
183
w = retu_read(rdev, TAHVO_REG_USBR);
drivers/usb/phy/phy-tahvo.c
185
w &= ~USBR_NSUSPEND;
drivers/usb/phy/phy-tahvo.c
187
w |= USBR_NSUSPEND;
drivers/usb/phy/phy-tahvo.c
188
retu_write(rdev, TAHVO_REG_USBR, w);
drivers/usb/typec/anx7411.c
110
#define LOBYTE(w) ((u8)((w) & 0xFF))
drivers/usb/typec/anx7411.c
111
#define HIBYTE(w) ((u8)(((u16)(w) >> 8) & 0xFF))
drivers/video/console/newport_con.c
502
int w = op->width;
drivers/video/console/newport_con.c
510
if ((w != 8) || (h != 16) || (vpitch != 32)
drivers/video/console/sticon.c
162
int w = op->width;
drivers/video/console/sticon.c
169
if ((w < 6) || (h < 6) || (w > 32) || (h > 32) || (vpitch != 32)
drivers/video/console/sticon.c
172
pitch = ALIGN(w, 8) / 8;
drivers/video/console/sticon.c
182
new_font->width = w;
drivers/video/console/sticon.c
196
cooked_font->width = w;
drivers/video/fbdev/amifb.c
2093
copl[cop_spr0ptrh].w[1] = highw(pl);
drivers/video/fbdev/amifb.c
2094
copl[cop_spr0ptrl].w[1] = loww(pl);
drivers/video/fbdev/amifb.c
2096
cops[cop_spr0ptrh].w[1] = highw(ps);
drivers/video/fbdev/amifb.c
2097
cops[cop_spr0ptrl].w[1] = loww(ps);
drivers/video/fbdev/amifb.c
2138
copdisplay.init[cip_bplcon0].w[1] = ~(BPC0_BPU3 | BPC0_BPU2 | BPC0_BPU1 | BPC0_BPU0) & par->bplcon0;
drivers/video/fbdev/amifb.c
651
u_short w[2];
drivers/video/fbdev/arcfb.c
345
unsigned int dy, unsigned int w, unsigned int h)
drivers/video/fbdev/arcfb.c
354
distance = w;
drivers/video/fbdev/arcfb.c
356
right = min(left + w - 1, ceil64(left));
drivers/video/fbdev/atafb_iplan2p2.c
107
int i, j, w, f;
drivers/video/fbdev/atafb_iplan2p2.c
114
w = width;
drivers/video/fbdev/atafb_iplan2p2.c
117
w += 8;
drivers/video/fbdev/atafb_iplan2p2.c
121
w >>= 4;
drivers/video/fbdev/atafb_iplan2p2.c
132
for (j = w; j > 0; j--) {
drivers/video/fbdev/atafb_iplan2p2.c
149
int i, j, w, f;
drivers/video/fbdev/atafb_iplan2p2.c
156
w = width;
drivers/video/fbdev/atafb_iplan2p2.c
161
w += 8;
drivers/video/fbdev/atafb_iplan2p2.c
163
w >>= 4;
drivers/video/fbdev/atafb_iplan2p2.c
174
for (j = w; j > 0; j--) {
drivers/video/fbdev/atafb_iplan2p2.c
41
int w, l , i, j;
drivers/video/fbdev/atafb_iplan2p2.c
58
w = width >> 4;
drivers/video/fbdev/atafb_iplan2p2.c
59
if (w) {
drivers/video/fbdev/atafb_iplan2p2.c
62
w *= BPL / 2;
drivers/video/fbdev/atafb_iplan2p2.c
63
l = next_line - w * 4;
drivers/video/fbdev/atafb_iplan2p2.c
65
for (i = w; i > 0; i--)
drivers/video/fbdev/atafb_iplan2p2.c
84
w = width >> 4;
drivers/video/fbdev/atafb_iplan2p2.c
85
if (w) {
drivers/video/fbdev/atafb_iplan2p2.c
88
w *= BPL / 2;
drivers/video/fbdev/atafb_iplan2p2.c
89
l = next_line - w * 4;
drivers/video/fbdev/atafb_iplan2p2.c
91
for (i = w; i > 0; i--)
drivers/video/fbdev/atafb_iplan2p4.c
107
int i, j, w, f;
drivers/video/fbdev/atafb_iplan2p4.c
114
w = width;
drivers/video/fbdev/atafb_iplan2p4.c
117
w += 8;
drivers/video/fbdev/atafb_iplan2p4.c
121
w >>= 4;
drivers/video/fbdev/atafb_iplan2p4.c
134
for (j = w; j > 0; j--) {
drivers/video/fbdev/atafb_iplan2p4.c
156
int i, j, w, f;
drivers/video/fbdev/atafb_iplan2p4.c
163
w = width;
drivers/video/fbdev/atafb_iplan2p4.c
168
w += 8;
drivers/video/fbdev/atafb_iplan2p4.c
170
w >>= 4;
drivers/video/fbdev/atafb_iplan2p4.c
183
for (j = w; j > 0; j--) {
drivers/video/fbdev/atafb_iplan2p4.c
41
int w, l , i, j;
drivers/video/fbdev/atafb_iplan2p4.c
58
w = width >> 4;
drivers/video/fbdev/atafb_iplan2p4.c
59
if (w) {
drivers/video/fbdev/atafb_iplan2p4.c
62
w *= BPL / 2;
drivers/video/fbdev/atafb_iplan2p4.c
63
l = next_line - w * 4;
drivers/video/fbdev/atafb_iplan2p4.c
65
for (i = w; i > 0; i--)
drivers/video/fbdev/atafb_iplan2p4.c
84
w = width >> 4;
drivers/video/fbdev/atafb_iplan2p4.c
85
if (w) {
drivers/video/fbdev/atafb_iplan2p4.c
88
w *= BPL / 2;
drivers/video/fbdev/atafb_iplan2p4.c
89
l = next_line - w * 4;
drivers/video/fbdev/atafb_iplan2p4.c
91
for (i = w; i > 0; i--)
drivers/video/fbdev/atafb_iplan2p8.c
114
int i, j, w, f;
drivers/video/fbdev/atafb_iplan2p8.c
121
w = width;
drivers/video/fbdev/atafb_iplan2p8.c
124
w += 8;
drivers/video/fbdev/atafb_iplan2p8.c
128
w >>= 4;
drivers/video/fbdev/atafb_iplan2p8.c
145
for (j = w; j > 0; j--) {
drivers/video/fbdev/atafb_iplan2p8.c
177
int i, j, w, f;
drivers/video/fbdev/atafb_iplan2p8.c
184
w = width;
drivers/video/fbdev/atafb_iplan2p8.c
189
w += 8;
drivers/video/fbdev/atafb_iplan2p8.c
191
w >>= 4;
drivers/video/fbdev/atafb_iplan2p8.c
208
for (j = w; j > 0; j--) {
drivers/video/fbdev/atafb_iplan2p8.c
48
int w, l , i, j;
drivers/video/fbdev/atafb_iplan2p8.c
65
w = width >> 4;
drivers/video/fbdev/atafb_iplan2p8.c
66
if (w) {
drivers/video/fbdev/atafb_iplan2p8.c
69
w *= BPL / 2;
drivers/video/fbdev/atafb_iplan2p8.c
70
l = next_line - w * 4;
drivers/video/fbdev/atafb_iplan2p8.c
72
for (i = w; i > 0; i--)
drivers/video/fbdev/atafb_iplan2p8.c
91
w = width >> 4;
drivers/video/fbdev/atafb_iplan2p8.c
92
if (w) {
drivers/video/fbdev/atafb_iplan2p8.c
95
w *= BPL / 2;
drivers/video/fbdev/atafb_iplan2p8.c
96
l = next_line - w * 4;
drivers/video/fbdev/atafb_iplan2p8.c
98
for (i = w; i > 0; i--)
drivers/video/fbdev/aty/radeon_accel.c
102
u32 sx, sy, dx, dy, w, h;
drivers/video/fbdev/aty/radeon_accel.c
104
w = area->width; h = area->height;
drivers/video/fbdev/aty/radeon_accel.c
110
if ( xdir < 0 ) { sx += w-1; dx += w-1; }
drivers/video/fbdev/aty/radeon_accel.c
131
OUTREG(DST_HEIGHT_WIDTH, (h << 16) | w);
drivers/video/fbdev/au1200fb.c
1050
var->xres = win->w[plane].xres;
drivers/video/fbdev/au1200fb.c
1051
var->yres = win->w[plane].yres;
drivers/video/fbdev/au1200fb.c
1057
var->bits_per_pixel = winbpp(win->w[plane].mode_winctrl1);
drivers/video/fbdev/au1200fb.c
1100
idx = (win->w[0].mode_winctrl1 & LCD_WINCTRL1_FRM) >> 25;
drivers/video/fbdev/au1200fb.c
1113
idx = (win->w[0].mode_winctrl1 & LCD_WINCTRL1_FRM) >> 25;
drivers/video/fbdev/au1200fb.c
1526
bpp = winbpp(win->w[fbdev->plane].mode_winctrl1);
drivers/video/fbdev/au1200fb.c
1673
bpp = winbpp(win->w[plane].mode_winctrl1);
drivers/video/fbdev/au1200fb.c
1674
if (win->w[plane].xres == 0)
drivers/video/fbdev/au1200fb.c
1675
win->w[plane].xres = panel->Xres;
drivers/video/fbdev/au1200fb.c
1676
if (win->w[plane].yres == 0)
drivers/video/fbdev/au1200fb.c
1677
win->w[plane].yres = panel->Yres;
drivers/video/fbdev/au1200fb.c
1695
fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8;
drivers/video/fbdev/au1200fb.c
200
} w[4];
drivers/video/fbdev/au1200fb.c
716
xsz = win->w[plane].xres;
drivers/video/fbdev/au1200fb.c
717
ysz = win->w[plane].yres;
drivers/video/fbdev/au1200fb.c
718
if ((xpos + win->w[plane].xres) > panel->Xres) {
drivers/video/fbdev/au1200fb.c
724
if ((ypos + win->w[plane].yres) > panel->Yres) {
drivers/video/fbdev/au1200fb.c
732
xsz = win->w[plane].xres + xpos;
drivers/video/fbdev/au1200fb.c
740
ysz = win->w[plane].yres + ypos;
drivers/video/fbdev/au1200fb.c
747
win->w[plane].xpos = xpos;
drivers/video/fbdev/au1200fb.c
748
win->w[plane].ypos = ypos;
drivers/video/fbdev/au1200fb.c
852
au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos);
drivers/video/fbdev/au1200fb.c
853
au1200_setlocation(fbdev, 1, win->w[1].xpos, win->w[1].ypos);
drivers/video/fbdev/au1200fb.c
854
au1200_setlocation(fbdev, 2, win->w[2].xpos, win->w[2].ypos);
drivers/video/fbdev/au1200fb.c
855
au1200_setlocation(fbdev, 3, win->w[3].xpos, win->w[3].ypos);
drivers/video/fbdev/au1200fb.c
943
| win->w[plane].mode_winctrl1 /* FRM,CCO,PO,PIPE */
drivers/video/fbdev/au1200fb.c
946
au1200_setlocation(fbdev, plane, win->w[plane].xpos, win->w[plane].ypos);
drivers/video/fbdev/au1200fb.c
955
lcd->winenable |= win->w[plane].mode_winenable;
drivers/video/fbdev/broadsheetfb.c
1041
dpyw = panel_table[panel_index].w;
drivers/video/fbdev/broadsheetfb.c
39
int w;
drivers/video/fbdev/broadsheetfb.c
54
.w = 800,
drivers/video/fbdev/broadsheetfb.c
66
.w = 320,
drivers/video/fbdev/broadsheetfb.c
78
.w = 1200,
drivers/video/fbdev/broadsheetfb.c
787
args[0] = panel_table[par->panel_index].w;
drivers/video/fbdev/broadsheetfb.c
825
broadsheet_burst_write(par, (panel_table[par->panel_index].w *
drivers/video/fbdev/broadsheetfb.c
914
broadsheet_burst_write(par, (panel_table[par->panel_index].w *
drivers/video/fbdev/c2p_iplan2.c
106
w = width;
drivers/video/fbdev/c2p_iplan2.c
118
w = width;
drivers/video/fbdev/c2p_iplan2.c
121
w = 16 - dst_idx;
drivers/video/fbdev/c2p_iplan2.c
123
memcpy(d.pixels+dst_idx, c, w);
drivers/video/fbdev/c2p_iplan2.c
124
c += w;
drivers/video/fbdev/c2p_iplan2.c
128
w = width-w;
drivers/video/fbdev/c2p_iplan2.c
131
while (w >= 16) {
drivers/video/fbdev/c2p_iplan2.c
137
w -= 16;
drivers/video/fbdev/c2p_iplan2.c
140
w %= 16;
drivers/video/fbdev/c2p_iplan2.c
141
if (w > 0) {
drivers/video/fbdev/c2p_iplan2.c
142
memcpy(d.pixels, c, w);
drivers/video/fbdev/c2p_iplan2.c
143
memset(d.pixels+w, 0, 16-w);
drivers/video/fbdev/c2p_iplan2.c
93
u32 dst_idx, first, last, w;
drivers/video/fbdev/c2p_planar.c
106
w = width;
drivers/video/fbdev/c2p_planar.c
119
w = width;
drivers/video/fbdev/c2p_planar.c
122
w = 32 - dst_idx;
drivers/video/fbdev/c2p_planar.c
124
memcpy(d.pixels+dst_idx, c, w);
drivers/video/fbdev/c2p_planar.c
125
c += w;
drivers/video/fbdev/c2p_planar.c
130
w = width-w;
drivers/video/fbdev/c2p_planar.c
133
while (w >= 32) {
drivers/video/fbdev/c2p_planar.c
139
w -= 32;
drivers/video/fbdev/c2p_planar.c
142
w %= 32;
drivers/video/fbdev/c2p_planar.c
143
if (w > 0) {
drivers/video/fbdev/c2p_planar.c
144
memcpy(d.pixels, c, w);
drivers/video/fbdev/c2p_planar.c
145
memset(d.pixels+w, 0, 32-w);
drivers/video/fbdev/c2p_planar.c
95
u32 dst_idx, first, last, w;
drivers/video/fbdev/core/bitblit.c
266
int w = DIV_ROUND_UP(vc->vc_font.width, 8), c;
drivers/video/fbdev/core/bitblit.c
279
src = vc->vc_font.data + ((c & charmask) * (w * vc->vc_font.height));
drivers/video/fbdev/core/bitblit.c
290
dst = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC);
drivers/video/fbdev/core/bitblit.c
333
char *mask = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC);
drivers/video/fbdev/core/bitblit.c
367
size = (vc->vc_font.height - cur_height) * w;
drivers/video/fbdev/core/bitblit.c
370
size = cur_height * w;
drivers/video/fbdev/core/fb_logo.c
203
int i, j, w = width - 1;
drivers/video/fbdev/core/fb_logo.c
207
out[height * (w - j) + i] = *in++;
drivers/video/fbdev/core/fbcon.c
2039
#define PITCH(w) (((w) + 7) >> 3)
drivers/video/fbdev/core/fbcon.c
2413
static int fbcon_do_set_font(struct vc_data *vc, int w, int h, int charcount,
drivers/video/fbdev/core/fbcon.c
2422
resize = (w != vc->vc_font.width) || (h != vc->vc_font.height);
drivers/video/fbdev/core/fbcon.c
2432
vc->vc_font.width = w;
drivers/video/fbdev/core/fbcon.c
2445
cols /= w;
drivers/video/fbdev/core/fbcon.c
2487
int w = font->width;
drivers/video/fbdev/core/fbcon.c
2500
if (w > FBCON_SWAP(info->var.rotate, info->var.xres, info->var.yres) ||
drivers/video/fbdev/core/fbcon.c
2552
tmp->vc_font.width == w &&
drivers/video/fbdev/core/fbcon_ccw.c
226
int w = (vc->vc_font.height + 7) >> 3, c;
drivers/video/fbdev/core/fbcon_ccw.c
240
src = par->fontbuffer + ((c & charmask) * (w * vc->vc_font.width));
drivers/video/fbdev/core/fbcon_ccw.c
251
dst = kmalloc_array(w, vc->vc_font.width, GFP_ATOMIC);
drivers/video/fbdev/core/fbcon_ccw.c
297
char *tmp, *mask = kmalloc_array(w, vc->vc_font.width,
drivers/video/fbdev/core/fbcon_ccw.c
346
memset(mask, 0, w * vc->vc_font.width);
drivers/video/fbdev/core/fbcon_cw.c
209
int w = (vc->vc_font.height + 7) >> 3, c;
drivers/video/fbdev/core/fbcon_cw.c
223
src = par->fontbuffer + ((c & charmask) * (w * vc->vc_font.width));
drivers/video/fbdev/core/fbcon_cw.c
234
dst = kmalloc_array(w, vc->vc_font.width, GFP_ATOMIC);
drivers/video/fbdev/core/fbcon_cw.c
280
char *tmp, *mask = kmalloc_array(w, vc->vc_font.width,
drivers/video/fbdev/core/fbcon_cw.c
329
memset(mask, 0, w * vc->vc_font.width);
drivers/video/fbdev/core/fbcon_rotate.h
60
int i, j, h = height, w = width;
drivers/video/fbdev/core/fbcon_rotate.h
67
for (j = 0; j < w; j++) {
drivers/video/fbdev/core/fbcon_rotate.h
78
int i, j, h = height, w = width;
drivers/video/fbdev/core/fbcon_rotate.h
85
for (j = 0; j < w; j++) {
drivers/video/fbdev/core/fbcon_ud.c
256
int w = (vc->vc_font.width + 7) >> 3, c;
drivers/video/fbdev/core/fbcon_ud.c
271
src = par->fontbuffer + ((c & charmask) * (w * vc->vc_font.height));
drivers/video/fbdev/core/fbcon_ud.c
282
dst = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC);
drivers/video/fbdev/core/fbcon_ud.c
328
char *mask = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC);
drivers/video/fbdev/core/fbcon_ud.c
363
size = cur_height * w;
drivers/video/fbdev/core/fbcon_ud.c
368
size = (vc->vc_font.height - cur_height) * w;
drivers/video/fbdev/fsl-diu-fb.c
1003
unsigned int h, w;
drivers/video/fbdev/fsl-diu-fb.c
1009
for (w = 0; w < width; w++) {
drivers/video/fbdev/fsl-diu-fb.c
1010
cursor[w] = (line & mask) ? _fg : _bg;
drivers/video/fbdev/hpfb.c
126
static void topcat_blit(int x0, int y0, int x1, int y1, int w, int h, int rr)
drivers/video/fbdev/hpfb.c
141
out_be16(fb_regs + WWIDTH, w);
drivers/video/fbdev/i810/i810_main.c
802
int i, j, w = width/8;
drivers/video/fbdev/i810/i810_main.c
808
for (j = 0; j < w; j++) {
drivers/video/fbdev/neofb.c
1768
int w;
drivers/video/fbdev/neofb.c
1789
w = vga_rgfx(NULL, 0x20);
drivers/video/fbdev/neofb.c
1791
switch ((w & 0x18) >> 3) {
drivers/video/fbdev/neofb.c
1857
for (int w = 0; w < 0x85; w++)
drivers/video/fbdev/neofb.c
1858
printk(KERN_DEBUG "CR %p: %p\n", (void *) w,
drivers/video/fbdev/neofb.c
1859
(void *) vga_rcrt(NULL, w));
drivers/video/fbdev/neofb.c
1860
for (int w = 0; w < 0xC7; w++)
drivers/video/fbdev/neofb.c
1861
printk(KERN_DEBUG "GR %p: %p\n", (void *) w,
drivers/video/fbdev/neofb.c
1862
(void *) vga_rgfx(NULL, w));
drivers/video/fbdev/nvidia/nv_accel.c
194
int w = x2 - x1 + 1;
drivers/video/fbdev/nvidia/nv_accel.c
198
NVDmaNext(par, (h << 16) | w);
drivers/video/fbdev/nvidia/nvidia.c
113
u16 bg, u16 fg, u32 w, u32 h)
drivers/video/fbdev/nvidia/nvidia.c
119
w = (w + 1) & ~1;
drivers/video/fbdev/nvidia/nvidia.c
125
for (j = 0; j < w / 2; j++) {
drivers/video/fbdev/nvidia/nvidia.c
140
k += (MAX_CURS - w) / 2;
drivers/video/fbdev/omap/hwa742.c
340
int w = par->width;
drivers/video/fbdev/omap/hwa742.c
353
x, y, w, h, scr_width, color_mode, flags);
drivers/video/fbdev/omap/hwa742.c
389
set_window_regs(x, y, x + w, y + h);
drivers/video/fbdev/omap/hwa742.c
394
OMAPFB_CHANNEL_OUT_LCD, offset, scr_width, 0, 0, w, h,
drivers/video/fbdev/omap/hwa742.c
400
hwa742.extif->transfer_area(w, h, request_complete, req);
drivers/video/fbdev/omap/lcd_dma.c
138
u16 w;
drivers/video/fbdev/omap/lcd_dma.c
257
w = omap_readw(OMAP1610_DMA_LCD_CSDP);
drivers/video/fbdev/omap/lcd_dma.c
258
w &= ~0x03;
drivers/video/fbdev/omap/lcd_dma.c
259
w |= lcd_dma.data_type;
drivers/video/fbdev/omap/lcd_dma.c
260
omap_writew(w, OMAP1610_DMA_LCD_CSDP);
drivers/video/fbdev/omap/lcd_dma.c
262
w = omap_readw(OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
264
w &= ~(0x03 << 6);
drivers/video/fbdev/omap/lcd_dma.c
266
w |= 1 << 1; /* Block interrupt enable */
drivers/video/fbdev/omap/lcd_dma.c
268
w &= ~(1 << 1);
drivers/video/fbdev/omap/lcd_dma.c
269
omap_writew(w, OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
275
w = omap_readw(OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
277
w |= (0x03 << 12);
drivers/video/fbdev/omap/lcd_dma.c
278
omap_writew(w, OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
287
u16 w;
drivers/video/fbdev/omap/lcd_dma.c
289
w = omap_readw(OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
290
if (unlikely(!(w & (1 << 3)))) {
drivers/video/fbdev/omap/lcd_dma.c
295
w |= (1 << 3);
drivers/video/fbdev/omap/lcd_dma.c
296
omap_writew(w, OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
299
lcd_dma.callback(w, lcd_dma.cb_data);
drivers/video/fbdev/omap/lcd_dma.c
351
u16 w;
drivers/video/fbdev/omap/lcd_dma.c
361
w = omap_readw(OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
362
w |= 1 << 8;
drivers/video/fbdev/omap/lcd_dma.c
363
omap_writew(w, OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
367
w = omap_readw(OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
368
w |= 1 << 7;
drivers/video/fbdev/omap/lcd_dma.c
369
omap_writew(w, OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
384
u16 w;
drivers/video/fbdev/omap/lcd_dma.c
386
w = omap_readw(OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
392
w |= 1 << 11; /* End_prog */
drivers/video/fbdev/omap/lcd_dma.c
394
w |= (3 << 8); /* Auto_init, repeat */
drivers/video/fbdev/omap/lcd_dma.c
395
omap_writew(w, OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
402
u16 w;
drivers/video/fbdev/omap/lcd_dma.c
408
w = omap_readw(OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
409
w &= ~(1 << 7);
drivers/video/fbdev/omap/lcd_dma.c
410
omap_writew(w, OMAP1610_DMA_LCD_CCR);
drivers/video/fbdev/omap/lcd_dma.c
412
w = omap_readw(OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
413
w &= ~(1 << 8);
drivers/video/fbdev/omap/lcd_dma.c
414
omap_writew(w, OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
426
u16 w;
drivers/video/fbdev/omap/lcd_dma.c
429
w = omap_readw(OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_dma.c
430
w &= ~(1 << 8);
drivers/video/fbdev/omap/lcd_dma.c
431
omap_writew(w, OMAP1610_DMA_LCD_CTRL);
drivers/video/fbdev/omap/lcd_mipid.c
110
rbuf[0] = w & 0xff;
drivers/video/fbdev/omap/lcd_mipid.c
61
u16 w;
drivers/video/fbdev/omap/lcd_mipid.c
87
x->rx_buf = &w;
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
1008
size = min(w * h * 3,
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
1026
dsicm_set_update_window(ddata, x, y, w, h);
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
192
u16 x, u16 y, u16 w, u16 h)
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
197
u16 x2 = x + w - 1;
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
855
u16 x, u16 y, u16 w, u16 h)
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
861
dev_dbg(&ddata->pdev->dev, "update %d, %d, %d x %d\n", x, y, w, h);
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
989
u16 x, u16 y, u16 w, u16 h)
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
998
if (size < w * h * 3)
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c
104
w = ((u16)addr << 10) | (1 << 8) | data;
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c
105
xfer.tx_buf = &w;
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c
97
u16 w;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3000
int w;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3013
for (w = 0; w < len + 2;) {
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3025
if (w < len)
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3026
buf[w] = (val >> (b * 8)) & 0xff;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3028
++w;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3917
u16 w = dsi->timings.x_res;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3920
DSSDBG("dsi_update_screen_dispc(%dx%d)\n", w, h);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3925
bytespl = w * bytespp;
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
278
u32 x, u32 y, u32 w, u32 h)
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
286
if (w == 0 || h == 0)
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
291
if (x + w > dw || y + h > dh)
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
294
return display->driver->update(display, x, y, w, h);
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
484
if (mr->w > 4096 || mr->h > 4096)
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
487
if (mr->w * mr->h * 3 > mr->buffer_size)
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
497
mr->x, mr->y, mr->w, mr->h);
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
889
u32 w, h;
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
890
display->driver->get_dimensions(display, &w, &h);
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
891
p.display_info.width = w;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
100
DBG("fill_fb %dx%d, line_len %d bytes\n", w, h, fbi->fix.line_length);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
103
for (x = 0; x < w; x++) {
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
108
else if (y < 20 && (x > 20 && x < w - 20))
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
110
else if (x > w - 20 && (y > 20 && y < h - 20))
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
112
else if (y > h - 20 && (x > 20 && x < w - 20))
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
114
else if (x == 20 || x == w - 20 ||
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
117
else if (x == y || w - x == h - y)
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
119
else if (w - x == y || x == h - y)
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
121
else if (x > 20 && y > 20 && x < w - 20 && y < h - 20) {
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
122
int t = x * 3 / w;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1443
u16 w, h;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1445
display->driver->get_resolution(display, &w, &h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1448
size = max(omap_vrfb_min_phys_size(w, h, bytespp),
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1449
omap_vrfb_min_phys_size(h, w, bytespp));
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1452
w * h * bytespp, size);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1454
size = w * h * bytespp;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1660
u16 w, h;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1677
dssdrv->get_resolution(dssdev, &w, &h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1678
dssdrv->update(dssdev, 0, 0, w, h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1749
u16 w, h;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1752
display->driver->get_resolution(display, &w, &h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1757
var->yres = w;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1759
var->xres = w;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2321
u16 w, h;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2338
dssdrv->get_resolution(dssdev, &w, &h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2339
r = dssdrv->update(dssdev, 0, 0, w, h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2584
u16 w, h;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2586
def_display->driver->get_resolution(def_display, &w, &h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2589
def_display->name, w, h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
699
u32 w, h;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
700
display->driver->get_dimensions(display, &w, &h);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
701
var->width = DIV_ROUND_CLOSEST(w, 1000);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
92
const short w = var->xres_virtual;
drivers/video/fbdev/riva/fbdev.c
479
u16 bg, u16 fg, u32 w, u32 h)
drivers/video/fbdev/riva/fbdev.c
487
w = (w + 1) & ~1;
drivers/video/fbdev/riva/fbdev.c
493
for (j = 0; j < w/2; j++) {
drivers/video/fbdev/riva/fbdev.c
508
k += (MAX_CURS - w)/2;
drivers/video/fbdev/sa1100fb.c
961
static void sa1100fb_task(struct work_struct *w)
drivers/video/fbdev/sa1100fb.c
963
struct sa1100fb_info *fbi = container_of(w, struct sa1100fb_info, task);
drivers/video/fbdev/savage/savagefb.h
118
#define BCI_W_H(w, h) (((h) << 16) | ((w) & 0xFFF))
drivers/video/fbdev/sis/sis_accel.c
146
SiS300SubsequentSolidFillRect(struct sis_video_info *ivideo, int x, int y, int w, int h)
drivers/video/fbdev/sis/sis_accel.c
156
SiS300SetupRect(w,h)
drivers/video/fbdev/sis/sis_accel.c
248
SiS310SubsequentSolidFillRect(struct sis_video_info *ivideo, int x, int y, int w, int h)
drivers/video/fbdev/sis/sis_accel.c
259
SiS310SetupRect(w,h)
drivers/video/fbdev/sis/sis_accel.h
185
#define SiS300SetupRect(w,h) \
drivers/video/fbdev/sis/sis_accel.h
187
MMIO_OUT32(ivideo->mmio_vbase, BR(6), (h)<<16 | (w) );\
drivers/video/fbdev/sis/sis_accel.h
315
#define SiS310SetupRect(w,h) \
drivers/video/fbdev/sis/sis_accel.h
317
MMIO_OUT32(ivideo->mmio_vbase, RECT_WIDTH, (h)<<16 | (w) );\
drivers/video/fbdev/smscufx.c
73
int w, h;
drivers/video/fbdev/smscufx.c
977
ufx_handle_damage(dev, area->x, area->y, area->w, area->h);
drivers/video/fbdev/tridentfb.c
329
u32 x, u32 y, u32 w, u32 h, u32 c, u32 rop)
drivers/video/fbdev/tridentfb.c
336
writemmr(par, DST2, point(x + w - 1, y + h - 1));
drivers/video/fbdev/tridentfb.c
340
u32 x, u32 y, u32 w, u32 h, u32 c, u32 b)
drivers/video/fbdev/tridentfb.c
342
unsigned size = ((w + 31) >> 5) * h;
drivers/video/fbdev/tridentfb.c
349
writemmr(par, DST2, point(x + w - 1, y + h - 1));
drivers/video/fbdev/tridentfb.c
355
u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h)
drivers/video/fbdev/tridentfb.c
359
u32 s2 = point(x1 + w - 1, y1 + h - 1);
drivers/video/fbdev/tridentfb.c
361
u32 d2 = point(x2 + w - 1, y2 + h - 1);
drivers/video/fbdev/tridentfb.c
431
u32 x, u32 y, u32 w, u32 h, u32 c, u32 rop)
drivers/video/fbdev/tridentfb.c
436
writemmr(par, OLDDIM, point(h, w));
drivers/video/fbdev/tridentfb.c
443
u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h)
drivers/video/fbdev/tridentfb.c
450
x1_tmp = x1 + w - 1;
drivers/video/fbdev/tridentfb.c
451
x2_tmp = x2 + w - 1;
drivers/video/fbdev/tridentfb.c
470
writemmr(par, OLDDIM, point(h, w));
drivers/video/fbdev/tridentfb.c
503
u32 x, u32 y, u32 w, u32 h, u32 c, u32 rop)
drivers/video/fbdev/tridentfb.c
511
writemmr(par, DST2, point(x + w - 1, y + h - 1));
drivers/video/fbdev/tridentfb.c
517
u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h)
drivers/video/fbdev/tridentfb.c
521
u32 s2 = point(x1 + w - 1, y1 + h - 1);
drivers/video/fbdev/tridentfb.c
523
u32 d2 = point(x2 + w - 1, y2 + h - 1);
drivers/video/fbdev/tridentfb.c
571
u32 x, u32 y, u32 w, u32 h, u32 c, u32 rop)
drivers/video/fbdev/tridentfb.c
576
writemmr(par, OLDDIM, point(w - 1, h - 1));
drivers/video/fbdev/tridentfb.c
582
u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h)
drivers/video/fbdev/tridentfb.c
589
x1_tmp = x1 + w - 1;
drivers/video/fbdev/tridentfb.c
590
x2_tmp = x2 + w - 1;
drivers/video/fbdev/tridentfb.c
609
writemmr(par, OLDDIM, point(w - 1, h - 1));
drivers/video/fbdev/udlfb.c
684
static void dlfb_damage_work(struct work_struct *w)
drivers/video/fbdev/udlfb.c
686
struct dlfb_data *dlfb = container_of(w, struct dlfb_data, damage_work);
drivers/video/fbdev/udlfb.c
860
dlfb_handle_damage(dlfb, area.x, area.y, area.w, area.h);
drivers/video/fbdev/xen-fbfront.c
141
int x1, int y1, int w, int h)
drivers/video/fbdev/xen-fbfront.c
144
int x2 = x1 + w - 1;
drivers/video/fbdev/xen-fbfront.c
91
int x, int y, int w, int h)
drivers/video/fbdev/xen-fbfront.c
99
event.update.width = w;
drivers/virtio/virtio_mmio.c
140
__le16 w;
drivers/virtio/virtio_mmio.c
158
w = cpu_to_le16(readw(base + offset));
drivers/virtio/virtio_mmio.c
159
memcpy(buf, &w, sizeof w);
drivers/virtio/virtio_mmio.c
182
__le16 w;
drivers/virtio/virtio_mmio.c
201
memcpy(&w, buf, sizeof w);
drivers/virtio/virtio_mmio.c
202
writew(le16_to_cpu(w), base + offset);
drivers/virtio/virtio_pci_modern.c
453
__le16 w;
drivers/virtio/virtio_pci_modern.c
464
w = cpu_to_le16(ioread16(device + offset));
drivers/virtio/virtio_pci_modern.c
465
memcpy(buf, &w, sizeof w);
drivers/virtio/virtio_pci_modern.c
491
__le16 w;
drivers/virtio/virtio_pci_modern.c
502
memcpy(&w, buf, sizeof w);
drivers/virtio/virtio_pci_modern.c
503
iowrite16(le16_to_cpu(w), device + offset);
drivers/watchdog/bcm_kona_wdt.c
32
#define SECS_TO_TICKS(x, w) ((x) << (w)->resolution)
drivers/watchdog/bcm_kona_wdt.c
33
#define TICKS_TO_SECS(x, w) ((x) >> (w)->resolution)
drivers/watchdog/bd96801_wdt.c
166
static int bd96801_set_wdt_mode(struct wdtbd96801 *w, unsigned int hw_margin,
drivers/watchdog/bd96801_wdt.c
170
struct device *dev = w->dev;
drivers/watchdog/bd96801_wdt.c
211
w->wdt.min_hw_heartbeat_ms = min / 10;
drivers/watchdog/bd96801_wdt.c
220
w->wdt.max_hw_heartbeat_ms = hw_margin / 10;
drivers/watchdog/bd96801_wdt.c
226
ret = regmap_update_bits(w->regmap, BD96801_REG_WD_TMO,
drivers/watchdog/bd96801_wdt.c
231
ret = regmap_update_bits(w->regmap, BD96801_REG_WD_CONF,
drivers/watchdog/bd96801_wdt.c
237
static int bd96801_set_heartbeat_from_hw(struct wdtbd96801 *w,
drivers/watchdog/bd96801_wdt.c
249
dev_err(w->dev, "watchdog set to Q&A mode - exiting\n");
drivers/watchdog/bd96801_wdt.c
253
ret = regmap_read(w->regmap, BD96801_REG_WD_TMO, &val);
drivers/watchdog/bd96801_wdt.c
261
w->wdt.max_hw_heartbeat_ms = (fast << sel) / USEC_PER_MSEC;
drivers/watchdog/bd96801_wdt.c
264
w->wdt.min_hw_heartbeat_ms = fast / USEC_PER_MSEC;
drivers/watchdog/bd96801_wdt.c
269
static int init_wdg_hw(struct wdtbd96801 *w)
drivers/watchdog/bd96801_wdt.c
275
count = device_property_count_u32(w->dev->parent, "rohm,hw-timeout-ms");
drivers/watchdog/bd96801_wdt.c
283
ret = device_property_read_u32_array(w->dev->parent,
drivers/watchdog/bd96801_wdt.c
303
ret = bd96801_set_wdt_mode(w, hw_margin_max, hw_margin_min);
drivers/watchdog/bd96801_wdt.c
307
ret = device_property_match_string(w->dev->parent, "rohm,wdg-action",
drivers/watchdog/bd96801_wdt.c
310
ret = regmap_update_bits(w->regmap, BD96801_REG_WD_CONF,
drivers/watchdog/bd96801_wdt.c
316
ret = device_property_match_string(w->dev->parent, "rohm,wdg-action",
drivers/watchdog/bd96801_wdt.c
319
ret = regmap_update_bits(w->regmap, BD96801_REG_WD_CONF,
drivers/watchdog/bd96801_wdt.c
337
struct wdtbd96801 *w;
drivers/watchdog/bd96801_wdt.c
341
w = devm_kzalloc(&pdev->dev, sizeof(*w), GFP_KERNEL);
drivers/watchdog/bd96801_wdt.c
342
if (!w)
drivers/watchdog/bd96801_wdt.c
345
w->regmap = dev_get_regmap(pdev->dev.parent, NULL);
drivers/watchdog/bd96801_wdt.c
346
w->dev = &pdev->dev;
drivers/watchdog/bd96801_wdt.c
348
w->wdt.info = &bd96801_wdt_info;
drivers/watchdog/bd96801_wdt.c
349
w->wdt.ops = &bd96801_wdt_ops;
drivers/watchdog/bd96801_wdt.c
350
w->wdt.parent = pdev->dev.parent;
drivers/watchdog/bd96801_wdt.c
351
w->wdt.timeout = DEFAULT_TIMEOUT;
drivers/watchdog/bd96801_wdt.c
352
watchdog_set_drvdata(&w->wdt, w);
drivers/watchdog/bd96801_wdt.c
354
ret = regmap_read(w->regmap, BD96801_REG_WD_CONF, &val);
drivers/watchdog/bd96801_wdt.c
367
ret = bd96801_set_heartbeat_from_hw(w, val);
drivers/watchdog/bd96801_wdt.c
371
set_bit(WDOG_HW_RUNNING, &w->wdt.status);
drivers/watchdog/bd96801_wdt.c
374
ret = init_wdg_hw(w);
drivers/watchdog/bd96801_wdt.c
379
dev_dbg(w->dev, "heartbeat set to %u - %u\n",
drivers/watchdog/bd96801_wdt.c
380
w->wdt.min_hw_heartbeat_ms, w->wdt.max_hw_heartbeat_ms);
drivers/watchdog/bd96801_wdt.c
382
watchdog_init_timeout(&w->wdt, 0, pdev->dev.parent);
drivers/watchdog/bd96801_wdt.c
383
watchdog_set_nowayout(&w->wdt, nowayout);
drivers/watchdog/bd96801_wdt.c
384
watchdog_stop_on_reboot(&w->wdt);
drivers/watchdog/bd96801_wdt.c
397
return devm_watchdog_register_device(&pdev->dev, &w->wdt);
drivers/watchdog/bd96801_wdt.c
68
struct wdtbd96801 *w = watchdog_get_drvdata(wdt);
drivers/watchdog/bd96801_wdt.c
70
return regmap_update_bits(w->regmap, BD96801_REG_WD_FEED,
drivers/watchdog/bd96801_wdt.c
76
struct wdtbd96801 *w = watchdog_get_drvdata(wdt);
drivers/watchdog/bd96801_wdt.c
78
return regmap_update_bits(w->regmap, BD96801_REG_WD_CONF,
drivers/watchdog/bd96801_wdt.c
84
struct wdtbd96801 *w = watchdog_get_drvdata(wdt);
drivers/watchdog/bd96801_wdt.c
86
return regmap_update_bits(w->regmap, BD96801_REG_WD_CONF,
drivers/watchdog/i6300esb.c
49
#define ESB_TIMER1_REG(w) ((w)->base + 0x00)/* Timer1 value after each reset */
drivers/watchdog/i6300esb.c
50
#define ESB_TIMER2_REG(w) ((w)->base + 0x04)/* Timer2 value after each reset */
drivers/watchdog/i6300esb.c
51
#define ESB_GINTSR_REG(w) ((w)->base + 0x08)/* General Interrupt Status Reg */
drivers/watchdog/i6300esb.c
52
#define ESB_RELOAD_REG(w) ((w)->base + 0x0c)/* Reload register */
drivers/watchdog/mpc8xxx_wdt.c
108
static int mpc8xxx_wdt_ping(struct watchdog_device *w)
drivers/watchdog/mpc8xxx_wdt.c
111
container_of(w, struct mpc8xxx_wdt_ddata, wdd);
drivers/watchdog/mpc8xxx_wdt.c
81
static int mpc8xxx_wdt_start(struct watchdog_device *w)
drivers/watchdog/mpc8xxx_wdt.c
84
container_of(w, struct mpc8xxx_wdt_ddata, wdd);
drivers/watchdog/mt7621_wdt.c
119
static int mt7621_wdt_is_running(struct watchdog_device *w)
drivers/watchdog/mt7621_wdt.c
121
struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/mt7621_wdt.c
57
static int mt7621_wdt_ping(struct watchdog_device *w)
drivers/watchdog/mt7621_wdt.c
59
struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/mt7621_wdt.c
66
static int mt7621_wdt_set_timeout(struct watchdog_device *w, unsigned int t)
drivers/watchdog/mt7621_wdt.c
68
struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/mt7621_wdt.c
70
w->timeout = t;
drivers/watchdog/mt7621_wdt.c
72
mt7621_wdt_ping(w);
drivers/watchdog/mt7621_wdt.c
77
static int mt7621_wdt_start(struct watchdog_device *w)
drivers/watchdog/mt7621_wdt.c
79
struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/mt7621_wdt.c
85
mt7621_wdt_set_timeout(w, w->timeout);
drivers/watchdog/mt7621_wdt.c
94
static int mt7621_wdt_stop(struct watchdog_device *w)
drivers/watchdog/mt7621_wdt.c
96
struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/mt7621_wdt.c
99
mt7621_wdt_ping(w);
drivers/watchdog/rt2880_wdt.c
102
rt288x_wdt_ping(w);
drivers/watchdog/rt2880_wdt.c
111
static int rt288x_wdt_set_timeout(struct watchdog_device *w, unsigned int t)
drivers/watchdog/rt2880_wdt.c
113
w->timeout = t;
drivers/watchdog/rt2880_wdt.c
114
rt288x_wdt_ping(w);
drivers/watchdog/rt2880_wdt.c
67
static int rt288x_wdt_ping(struct watchdog_device *w)
drivers/watchdog/rt2880_wdt.c
69
struct rt2880_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/rt2880_wdt.c
71
rt_wdt_w32(drvdata->base, TIMER_REG_TMR1LOAD, w->timeout * drvdata->freq);
drivers/watchdog/rt2880_wdt.c
76
static int rt288x_wdt_start(struct watchdog_device *w)
drivers/watchdog/rt2880_wdt.c
78
struct rt2880_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/rt2880_wdt.c
88
rt288x_wdt_ping(w);
drivers/watchdog/rt2880_wdt.c
97
static int rt288x_wdt_stop(struct watchdog_device *w)
drivers/watchdog/rt2880_wdt.c
99
struct rt2880_wdt_data *drvdata = watchdog_get_drvdata(w);
drivers/watchdog/rzn1_wdt.c
51
static int rzn1_wdt_ping(struct watchdog_device *w)
drivers/watchdog/rzn1_wdt.c
53
struct rzn1_watchdog *wdt = watchdog_get_drvdata(w);
drivers/watchdog/rzn1_wdt.c
61
static int rzn1_wdt_start(struct watchdog_device *w)
drivers/watchdog/rzn1_wdt.c
63
struct rzn1_watchdog *wdt = watchdog_get_drvdata(w);
drivers/watchdog/rzn1_wdt.c
76
val |= compute_reload_value(w->max_hw_heartbeat_ms, wdt->clk_rate_khz);
drivers/watchdog/softdog.c
133
static int softdog_ping(struct watchdog_device *w)
drivers/watchdog/softdog.c
137
hrtimer_start(&softdog_ticktock, ktime_set(w->timeout, 0),
drivers/watchdog/softdog.c
141
if (w->pretimeout)
drivers/watchdog/softdog.c
143
ktime_set(w->timeout - w->pretimeout, 0),
drivers/watchdog/softdog.c
152
static int softdog_stop(struct watchdog_device *w)
drivers/watchdog/uniphier_wdt.c
124
static int uniphier_watchdog_start(struct watchdog_device *w)
drivers/watchdog/uniphier_wdt.c
126
struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w);
drivers/watchdog/uniphier_wdt.c
129
tmp_timeout = roundup_pow_of_two(w->timeout);
drivers/watchdog/uniphier_wdt.c
134
static int uniphier_watchdog_stop(struct watchdog_device *w)
drivers/watchdog/uniphier_wdt.c
136
struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w);
drivers/watchdog/uniphier_wdt.c
141
static int uniphier_watchdog_set_timeout(struct watchdog_device *w,
drivers/watchdog/uniphier_wdt.c
144
struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w);
drivers/watchdog/uniphier_wdt.c
149
if (tmp_timeout == w->timeout)
drivers/watchdog/uniphier_wdt.c
152
if (watchdog_active(w)) {
drivers/watchdog/uniphier_wdt.c
158
w->timeout = tmp_timeout;
drivers/watchdog/uniphier_wdt.c
55
static int uniphier_watchdog_ping(struct watchdog_device *w)
drivers/watchdog/uniphier_wdt.c
57
struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w);
drivers/xen/events/events_2l.c
145
#define MASK_LSBS(w, i) (w & ((~((xen_ulong_t)0UL)) << i))
drivers/xen/events/events_2l.c
39
#define EVTCHN_FIRST_BIT(w) find_first_bit(BM(&(w)), BITS_PER_EVTCHN_WORD)
drivers/xen/events/events_fifo.c
74
#define BM(w) (unsigned long *)((unsigned long)w & ~0x7UL)
drivers/xen/events/events_fifo.c
75
#define EVTCHN_FIFO_BIT(b, w) \
drivers/xen/events/events_fifo.c
76
(((unsigned long)w & 0x4UL) ? (EVTCHN_FIFO_ ##b + 32) : EVTCHN_FIFO_ ##b)
drivers/xen/events/events_fifo.c
80
#define BM(w) ((unsigned long *)(w))
drivers/xen/events/events_fifo.c
81
#define EVTCHN_FIFO_BIT(b, w) EVTCHN_FIFO_ ##b
drivers/xen/xen-pciback/conf_space.c
58
if (field->u.w.read)
drivers/xen/xen-pciback/conf_space.c
59
ret = field->u.w.read(dev, offset, (u16 *) value,
drivers/xen/xen-pciback/conf_space.c
84
if (field->u.w.write)
drivers/xen/xen-pciback/conf_space.c
85
ret = field->u.w.write(dev, offset, (u16) value,
drivers/xen/xen-pciback/conf_space.h
52
} w;
drivers/xen/xen-pciback/conf_space_capability.c
170
.u.w.read = pm_caps_read,
drivers/xen/xen-pciback/conf_space_capability.c
176
.u.w.read = xen_pcibk_read_config_word,
drivers/xen/xen-pciback/conf_space_capability.c
177
.u.w.write = pm_ctrl_write,
drivers/xen/xen-pciback/conf_space_capability.c
263
.u.w.read = xen_pcibk_read_config_word,
drivers/xen/xen-pciback/conf_space_capability.c
264
.u.w.write = msi_msix_flags_write,
drivers/xen/xen-pciback/conf_space_capability.c
274
.u.w.read = xen_pcibk_read_config_word,
drivers/xen/xen-pciback/conf_space_capability.c
275
.u.w.write = msi_msix_flags_write,
drivers/xen/xen-pciback/conf_space_capability.c
28
.u.w.read = xen_pcibk_read_config_word,
drivers/xen/xen-pciback/conf_space_capability.c
29
.u.w.write = NULL,
drivers/xen/xen-pciback/conf_space_capability.c
82
.u.w.read = xen_pcibk_read_config_word,
drivers/xen/xen-pciback/conf_space_capability.c
83
.u.w.write = vpd_address_write,
drivers/xen/xen-pciback/conf_space_header.c
304
.u.w.read = xen_pcibk_read_vendor,
drivers/xen/xen-pciback/conf_space_header.c
309
.u.w.read = xen_pcibk_read_device,
drivers/xen/xen-pciback/conf_space_header.c
316
.u.w.read = command_read,
drivers/xen/xen-pciback/conf_space_header.c
317
.u.w.write = command_write,
drivers/xen/xen-pciback/conf_space_quirks.c
77
field->u.w.read = xen_pcibk_read_config_word;
drivers/xen/xen-pciback/conf_space_quirks.c
78
field->u.w.write = xen_pcibk_write_config_word;
drivers/xen/xenbus/xenbus_probe.c
843
DEFINE_WAIT(w);
drivers/xen/xenbus/xenbus_probe.c
849
prepare_to_wait(&xb_waitq, &w, TASK_INTERRUPTIBLE);
drivers/xen/xenbus/xenbus_probe.c
851
finish_wait(&xb_waitq, &w);
drivers/xen/xenbus/xenbus_probe_frontend.c
346
static void xenbus_reset_backend_state_changed(struct xenbus_watch *w,
drivers/xen/xenbus/xenbus_probe_frontend.c
94
static void xenbus_frontend_delayed_restore(struct work_struct *w)
drivers/xen/xenbus/xenbus_probe_frontend.c
96
struct xenbus_device *xdev = container_of(w, struct xenbus_device, work);
fs/aio.c
1113
struct wait_queue_entry w;
fs/aio.c
1196
list_for_each_entry_safe(curr, next, &ctx->wait.head, w.entry)
fs/aio.c
1198
wake_up_process(curr->w.private);
fs/aio.c
1199
list_del_init_careful(&curr->w.entry);
fs/aio.c
1316
struct aio_waiter w;
fs/aio.c
1343
init_wait(&w.w);
fs/aio.c
1348
w.min_nr = min_nr - ret;
fs/aio.c
1350
ret2 = prepare_to_wait_event(&ctx->wait, &w.w, TASK_INTERRUPTIBLE);
fs/aio.c
1361
finish_wait(&ctx->wait, &w.w);
fs/ceph/caps.c
1070
int w = __ceph_caps_file_wanted(ci) | __ceph_caps_used(ci);
fs/ceph/caps.c
1073
if (w & CEPH_CAP_ANY_DIR_OPS)
fs/ceph/caps.c
1074
w |= CEPH_CAP_FILE_EXCL;
fs/ceph/caps.c
1077
if (w & CEPH_CAP_FILE_BUFFER)
fs/ceph/caps.c
1078
w |= CEPH_CAP_FILE_EXCL;
fs/ceph/caps.c
1080
return w;
fs/ceph/mdsmap.h
52
ceph_mdsmap_get_addr(struct ceph_mdsmap *m, int w)
fs/ceph/mdsmap.h
54
if (w >= m->possible_max_rank)
fs/ceph/mdsmap.h
56
return &m->m_info[w].addr;
fs/ceph/mdsmap.h
59
static inline int ceph_mdsmap_get_state(struct ceph_mdsmap *m, int w)
fs/ceph/mdsmap.h
61
BUG_ON(w < 0);
fs/ceph/mdsmap.h
62
if (w >= m->possible_max_rank)
fs/ceph/mdsmap.h
64
return m->m_info[w].state;
fs/ceph/mdsmap.h
67
static inline bool ceph_mdsmap_is_laggy(struct ceph_mdsmap *m, int w)
fs/ceph/mdsmap.h
69
if (w >= 0 && w < m->possible_max_rank)
fs/ceph/mdsmap.h
70
return m->m_info[w].laggy;
fs/dlm/member.c
408
int i, w, x = 0, total = 0, all_zero = 0, *array;
fs/dlm/member.c
435
w = 1;
fs/dlm/member.c
437
w = memb->weight;
fs/dlm/member.c
441
for (i = 0; i < w; i++)
fs/fat/namei_vfat.c
201
static inline bool vfat_bad_char(wchar_t w)
fs/fat/namei_vfat.c
203
return (w < 0x0020)
fs/fat/namei_vfat.c
204
|| (w == '*') || (w == '?') || (w == '<') || (w == '>')
fs/fat/namei_vfat.c
205
|| (w == '|') || (w == '"') || (w == ':') || (w == '/')
fs/fat/namei_vfat.c
206
|| (w == '\\');
fs/fat/namei_vfat.c
209
static inline bool vfat_replace_char(wchar_t w)
fs/fat/namei_vfat.c
211
return (w == '[') || (w == ']') || (w == ';') || (w == ',')
fs/fat/namei_vfat.c
212
|| (w == '+') || (w == '=');
fs/fat/namei_vfat.c
215
static wchar_t vfat_skip_char(wchar_t w)
fs/fat/namei_vfat.c
217
return (w == '.') || (w == ' ');
fs/fs-writeback.c
2502
static void wakeup_dirtytime_writeback(struct work_struct *w);
fs/fs-writeback.c
2505
static void wakeup_dirtytime_writeback(struct work_struct *w)
fs/fuse/virtio_fs.c
803
struct virtio_fs_req_work *w =
fs/fuse/virtio_fs.c
804
container_of(work, typeof(*w), done_work);
fs/fuse/virtio_fs.c
806
virtio_fs_request_complete(w->req, w->fsvq);
fs/fuse/virtio_fs.c
807
kfree(w);
fs/fuse/virtio_fs.c
840
struct virtio_fs_req_work *w;
fs/fuse/virtio_fs.c
842
w = kzalloc_obj(*w, GFP_NOFS | __GFP_NOFAIL);
fs/fuse/virtio_fs.c
843
INIT_WORK(&w->done_work, virtio_fs_complete_req_work);
fs/fuse/virtio_fs.c
844
w->fsvq = fsvq;
fs/fuse/virtio_fs.c
845
w->req = req;
fs/fuse/virtio_fs.c
846
schedule_work(&w->done_work);
fs/hostfs/hostfs.h
41
extern int access_file(char *path, int r, int w, int x);
fs/hostfs/hostfs.h
42
extern int open_file(char *path, int r, int w, int append);
fs/hostfs/hostfs_kern.c
301
int r, w, fd;
fs/hostfs/hostfs_kern.c
310
r = w = 0;
fs/hostfs/hostfs_kern.c
315
r = w = 1;
fs/hostfs/hostfs_kern.c
321
fd = open_file(name, r, w, append);
fs/hostfs/hostfs_kern.c
781
int r = 0, w = 0, x = 0, err;
fs/hostfs/hostfs_kern.c
787
if (desired & MAY_WRITE) w = 1;
fs/hostfs/hostfs_kern.c
797
err = access_file(name, r, w, x);
fs/hostfs/hostfs_user.c
66
int access_file(char *path, int r, int w, int x)
fs/hostfs/hostfs_user.c
72
if (w)
fs/hostfs/hostfs_user.c
81
int open_file(char *path, int r, int w, int append)
fs/hostfs/hostfs_user.c
85
if (r && !w)
fs/hostfs/hostfs_user.c
87
else if (!r && w)
fs/hostfs/hostfs_user.c
89
else if (r && w)
fs/jfs/jfs_dmap.c
2693
int budsz, bud, w, bsz, size;
fs/jfs/jfs_dmap.c
2724
for (w = leafno, bsz = budsz;; bsz <<= 1,
fs/jfs/jfs_dmap.c
2725
w = (w < bud) ? w : bud) {
fs/jfs/jfs_dmap.c
2733
bud = w ^ bsz;
fs/jfs/jfs_dmap.c
3732
int blkno, w, b, r, nw, nb, i;
fs/jfs/jfs_dmap.c
3752
w = blkno >> L2DBWORD;
fs/jfs/jfs_dmap.c
3768
dp->wmap[w] &= cpu_to_le32(~(ONES << (DBWORD - nb)
fs/jfs/jfs_dmap.c
3770
dp->pmap[w] &= cpu_to_le32(~(ONES << (DBWORD - nb)
fs/jfs/jfs_dmap.c
3774
w++;
fs/jfs/jfs_dmap.c
3778
memset(&dp->wmap[w], 0, nw * 4);
fs/jfs/jfs_dmap.c
3779
memset(&dp->pmap[w], 0, nw * 4);
fs/jfs/jfs_dmap.c
3783
w += nw;
fs/jfs/jfs_dmap.c
3796
w = blkno >> L2DBWORD;
fs/jfs/jfs_dmap.c
3802
dp->wmap[w] = dp->pmap[w] = cpu_to_le32(ONES >> b);
fs/jfs/jfs_dmap.c
3803
w++;
fs/jfs/jfs_dmap.c
3807
for (i = w; i < LPERDMAP; i++)
fs/nfsd/nfs4xdr.c
1192
u32 w;
fs/nfsd/nfs4xdr.c
1194
if (xdr_stream_decode_u32(argp->xdr, &w) < 0)
fs/nfsd/nfs4xdr.c
1196
*share_access = w & NFS4_SHARE_ACCESS_MASK;
fs/nfsd/nfs4xdr.c
1197
*deleg_want = w & NFS4_SHARE_WANT_MASK;
fs/nfsd/nfs4xdr.c
1199
*deleg_when = w & NFS4_SHARE_WHEN_MASK;
fs/nfsd/nfs4xdr.c
1201
switch (w & NFS4_SHARE_ACCESS_MASK) {
fs/nfsd/nfs4xdr.c
1209
w &= ~NFS4_SHARE_ACCESS_MASK;
fs/nfsd/nfs4xdr.c
1210
if (!w)
fs/nfsd/nfs4xdr.c
1214
switch (w & NFS4_SHARE_WANT_TYPE_MASK) {
fs/nfsd/nfs4xdr.c
1225
w &= ~NFS4_SHARE_WANT_MASK;
fs/nfsd/nfs4xdr.c
1226
if (!w)
fs/nfsd/nfs4xdr.c
1231
switch (w) {
fs/ntfs3/bitmap.c
1553
unsigned int w = 0;
fs/ntfs3/bitmap.c
1556
w += hweight_long(bmp[k]);
fs/ntfs3/bitmap.c
1559
w += hweight_long(ul_to_cpu(((bitmap_ulong *)bitmap)[k]) &
fs/ntfs3/bitmap.c
1563
return w;
fs/ntfs3/ntfs_fs.h
598
#define _ni_write_inode(i, w) ni_write_inode(i, w, __func__)
fs/smb/client/dfs.h
34
#define ref_walk_start(w) ((w)->refs)
fs/smb/client/dfs.h
35
#define ref_walk_end(w) (&(w)->refs[ARRAY_SIZE((w)->refs) - 1])
fs/smb/client/dfs.h
36
#define ref_walk_cur(w) ((w)->ref)
fs/smb/client/dfs.h
37
#define ref_walk_descend(w) (--ref_walk_cur(w) >= ref_walk_start(w))
fs/smb/client/dfs.h
39
#define ref_walk_tit(w) (ref_walk_cur(w)->tit)
fs/smb/client/dfs.h
40
#define ref_walk_path(w) (ref_walk_cur(w)->path)
fs/smb/client/dfs.h
41
#define ref_walk_fpath(w) (ref_walk_cur(w)->full_path)
fs/smb/client/dfs.h
42
#define ref_walk_tl(w) (&ref_walk_cur(w)->tl)
fs/smb/client/dfs.h
43
#define ref_walk_ses(w) (ref_walk_cur(w)->ses)
fs/smb/server/smb2pdu.c
57
#define WORK_BUFFERS(w, rq, rs) __wbuf((w), (void **)&(rq), (void **)&(rs))
fs/smb/server/transport_ipc.c
951
static void ipc_timer_heartbeat(struct work_struct *w)
fs/xfs/libxfs/xfs_bit.h
50
uint32_t w = (uint32_t)v;
fs/xfs/libxfs/xfs_bit.h
53
if (w) { /* lower bits */
fs/xfs/libxfs/xfs_bit.h
54
n = ffs(w);
fs/xfs/libxfs/xfs_bit.h
56
w = (uint32_t)(v >> 32);
fs/xfs/libxfs/xfs_bit.h
57
if (w) {
fs/xfs/libxfs/xfs_bit.h
58
n = ffs(w);
fs/xfs/libxfs/xfs_bmap.h
108
static inline int xfs_bmapi_aflag(int w)
fs/xfs/libxfs/xfs_bmap.h
110
return (w == XFS_ATTR_FORK ? XFS_BMAPI_ATTRFORK :
fs/xfs/libxfs/xfs_bmap.h
111
(w == XFS_COW_FORK ? XFS_BMAPI_COWFORK : 0));
fs/xfs/libxfs/xfs_bmap_btree.h
19
#define XFS_BM_MAXLEVELS(mp,w) ((mp)->m_bm_maxlevels[(w)])
fs/xfs/libxfs/xfs_da_btree.c
2330
int w = args->whichfork;
fs/xfs/libxfs/xfs_da_btree.c
2338
error = xfs_bmap_first_unused(tp, dp, count, bno, w);
fs/xfs/libxfs/xfs_da_btree.c
2347
xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA|XFS_BMAPI_CONTIG,
fs/xfs/libxfs/xfs_da_btree.c
2363
xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA,
fs/xfs/libxfs/xfs_da_btree.c
2453
int w;
fs/xfs/libxfs/xfs_da_btree.c
2464
w = args->whichfork;
fs/xfs/libxfs/xfs_da_btree.c
2465
ASSERT(w == XFS_DATA_FORK);
fs/xfs/libxfs/xfs_da_btree.c
2468
error = xfs_bmap_last_before(tp, dp, &lastoff, w);
fs/xfs/libxfs/xfs_da_btree.c
2479
error = xfs_da3_node_read(tp, dp, last_blkno, &last_buf, w);
fs/xfs/libxfs/xfs_da_btree.c
2525
error = xfs_da3_node_read(tp, dp, sib_blkno, &sib_buf, w);
fs/xfs/libxfs/xfs_da_btree.c
2553
error = xfs_da3_node_read(tp, dp, sib_blkno, &sib_buf, w);
fs/xfs/libxfs/xfs_da_btree.c
2583
error = xfs_da3_node_read(tp, dp, par_blkno, &par_buf, w);
fs/xfs/libxfs/xfs_da_btree.c
2639
error = xfs_da3_node_read(tp, dp, par_blkno, &par_buf, w);
fs/xfs/libxfs/xfs_da_btree.c
2688
int done, error, w, count;
fs/xfs/libxfs/xfs_da_btree.c
2694
w = args->whichfork;
fs/xfs/libxfs/xfs_da_btree.c
2703
xfs_bmapi_aflag(w), 0, &done);
fs/xfs/libxfs/xfs_da_btree.c
2705
if (w != XFS_DATA_FORK)
fs/xfs/libxfs/xfs_format.h
1105
#define XFS_DFORK_SIZE(dip,mp,w) \
fs/xfs/libxfs/xfs_format.h
1106
((w) == XFS_DATA_FORK ? \
fs/xfs/libxfs/xfs_format.h
1110
#define XFS_DFORK_MAXEXT(dip, mp, w) \
fs/xfs/libxfs/xfs_format.h
1111
(XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
fs/xfs/libxfs/xfs_format.h
1120
#define XFS_DFORK_PTR(dip,w) \
fs/xfs/libxfs/xfs_format.h
1121
((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip))
fs/xfs/libxfs/xfs_format.h
1123
#define XFS_DFORK_FORMAT(dip,w) \
fs/xfs/libxfs/xfs_format.h
1124
((w) == XFS_DATA_FORK ? \
fs/xfs/libxfs/xfs_inode_fork.h
79
#define XFS_IFORK_MAXEXT(ip, w) \
fs/xfs/libxfs/xfs_inode_fork.h
80
(xfs_inode_fork_size(ip, w) / sizeof(xfs_bmbt_rec_t))
fs/xfs/libxfs/xfs_log_format.h
357
static inline int xfs_ilog_fbroot(int w)
fs/xfs/libxfs/xfs_log_format.h
359
return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT);
fs/xfs/libxfs/xfs_log_format.h
362
static inline int xfs_ilog_fext(int w)
fs/xfs/libxfs/xfs_log_format.h
364
return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT);
fs/xfs/libxfs/xfs_log_format.h
367
static inline int xfs_ilog_fdata(int w)
fs/xfs/libxfs/xfs_log_format.h
369
return (w == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA);
fs/xfs/libxfs/xfs_trans_space.h
52
#define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1)
fs/xfs/libxfs/xfs_trans_space.h
53
#define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\
fs/xfs/libxfs/xfs_trans_space.h
56
XFS_EXTENTADD_SPACE_RES(mp,w))
fs/xfs/libxfs/xfs_trans_space.h
59
#define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\
fs/xfs/libxfs/xfs_trans_space.h
60
(XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
fs/xfs/libxfs/xfs_trans_space.h
63
#define XFS_DAENTER_1B(mp,w) \
fs/xfs/libxfs/xfs_trans_space.h
64
((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1)
fs/xfs/libxfs/xfs_trans_space.h
65
#define XFS_DAENTER_DBS(mp,w) \
fs/xfs/libxfs/xfs_trans_space.h
66
(XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0))
fs/xfs/libxfs/xfs_trans_space.h
67
#define XFS_DAENTER_BLOCKS(mp,w) \
fs/xfs/libxfs/xfs_trans_space.h
68
(XFS_DAENTER_1B(mp,w) * XFS_DAENTER_DBS(mp,w))
fs/xfs/libxfs/xfs_trans_space.h
69
#define XFS_DAENTER_BMAP1B(mp,w) \
fs/xfs/libxfs/xfs_trans_space.h
70
XFS_NEXTENTADD_SPACE_RES(mp, XFS_DAENTER_1B(mp, w), w)
fs/xfs/libxfs/xfs_trans_space.h
71
#define XFS_DAENTER_BMAPS(mp,w) \
fs/xfs/libxfs/xfs_trans_space.h
72
(XFS_DAENTER_DBS(mp,w) * XFS_DAENTER_BMAP1B(mp,w))
fs/xfs/libxfs/xfs_trans_space.h
73
#define XFS_DAENTER_SPACE_RES(mp,w) \
fs/xfs/libxfs/xfs_trans_space.h
74
(XFS_DAENTER_BLOCKS(mp,w) + XFS_DAENTER_BMAPS(mp,w))
fs/xfs/libxfs/xfs_trans_space.h
75
#define XFS_DAREMOVE_SPACE_RES(mp,w) XFS_DAENTER_BMAPS(mp,w)
fs/xfs/xfs_bmap_util.c
1583
int w = XFS_DATA_FORK;
fs/xfs/xfs_bmap_util.c
1592
resblks = XFS_SWAP_RMAP_SPACE_RES(mp, ipnext, w);
fs/xfs/xfs_bmap_util.c
1593
resblks += XFS_SWAP_RMAP_SPACE_RES(mp, tipnext, w);
fs/xfs/xfs_healthmon.c
860
size_t w = 0;
fs/xfs/xfs_healthmon.c
866
w = copy_to_iter(hm->buffer + hm->buftail, to_copy, to);
fs/xfs/xfs_healthmon.c
867
if (!w)
fs/xfs/xfs_healthmon.c
870
hm->buftail += w;
fs/xfs/xfs_healthmon.c
879
return w;
include/asm-generic/bitops/arch_hweight.h
12
static inline unsigned int __arch_hweight16(unsigned int w)
include/asm-generic/bitops/arch_hweight.h
14
return __sw_hweight16(w);
include/asm-generic/bitops/arch_hweight.h
17
static inline unsigned int __arch_hweight8(unsigned int w)
include/asm-generic/bitops/arch_hweight.h
19
return __sw_hweight8(w);
include/asm-generic/bitops/arch_hweight.h
22
static inline unsigned long __arch_hweight64(__u64 w)
include/asm-generic/bitops/arch_hweight.h
24
return __sw_hweight64(w);
include/asm-generic/bitops/arch_hweight.h
7
static inline unsigned int __arch_hweight32(unsigned int w)
include/asm-generic/bitops/arch_hweight.h
9
return __sw_hweight32(w);
include/asm-generic/bitops/const_hweight.h
10
((!!((w) & (1ULL << 0))) + \
include/asm-generic/bitops/const_hweight.h
11
(!!((w) & (1ULL << 1))) + \
include/asm-generic/bitops/const_hweight.h
12
(!!((w) & (1ULL << 2))) + \
include/asm-generic/bitops/const_hweight.h
13
(!!((w) & (1ULL << 3))) + \
include/asm-generic/bitops/const_hweight.h
14
(!!((w) & (1ULL << 4))) + \
include/asm-generic/bitops/const_hweight.h
15
(!!((w) & (1ULL << 5))) + \
include/asm-generic/bitops/const_hweight.h
16
(!!((w) & (1ULL << 6))) + \
include/asm-generic/bitops/const_hweight.h
17
(!!((w) & (1ULL << 7)))))
include/asm-generic/bitops/const_hweight.h
19
#define __const_hweight16(w) (__const_hweight8(w) + __const_hweight8((w) >> 8 ))
include/asm-generic/bitops/const_hweight.h
20
#define __const_hweight32(w) (__const_hweight16(w) + __const_hweight16((w) >> 16))
include/asm-generic/bitops/const_hweight.h
21
#define __const_hweight64(w) (__const_hweight32(w) + __const_hweight32((w) >> 32))
include/asm-generic/bitops/const_hweight.h
26
#define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w))
include/asm-generic/bitops/const_hweight.h
27
#define hweight16(w) (__builtin_constant_p(w) ? __const_hweight16(w) : __arch_hweight16(w))
include/asm-generic/bitops/const_hweight.h
28
#define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
include/asm-generic/bitops/const_hweight.h
29
#define hweight64(w) (__builtin_constant_p(w) ? __const_hweight64(w) : __arch_hweight64(w))
include/asm-generic/bitops/const_hweight.h
34
#define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
include/asm-generic/bitops/const_hweight.h
35
#define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
include/asm-generic/bitops/const_hweight.h
36
#define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
include/asm-generic/bitops/const_hweight.h
37
#define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
include/asm-generic/bitops/const_hweight.h
42
#define HWEIGHT(w) HWEIGHT64((u64)w)
include/asm-generic/bitops/const_hweight.h
8
#define __const_hweight8(w) \
include/crypto/twofish.h
18
u32 s[4][256], w[8], k[32];
include/drm/drm_rect.h
60
#define DRM_RECT_INIT(x, y, w, h) ((struct drm_rect){ \
include/drm/drm_rect.h
63
.x2 = (x) + (w), \
include/linux/bitops.h
18
extern unsigned int __sw_hweight8(unsigned int w);
include/linux/bitops.h
19
extern unsigned int __sw_hweight16(unsigned int w);
include/linux/bitops.h
20
extern unsigned int __sw_hweight32(unsigned int w);
include/linux/bitops.h
21
extern unsigned long __sw_hweight64(__u64 w);
include/linux/bitops.h
94
static __always_inline unsigned long hweight_long(unsigned long w)
include/linux/bitops.h
96
return sizeof(w) == 4 ? hweight32(w) : hweight64((__u64)w);
include/linux/devm-helpers.h
47
struct delayed_work *w,
include/linux/devm-helpers.h
50
INIT_DELAYED_WORK(w, worker);
include/linux/devm-helpers.h
51
return devm_add_action(dev, devm_delayed_work_drop, w);
include/linux/devm-helpers.h
72
struct work_struct *w,
include/linux/devm-helpers.h
75
INIT_WORK(w, worker);
include/linux/devm-helpers.h
76
return devm_add_action(dev, devm_work_drop, w);
include/linux/irqchip/arm-gic-v3.h
173
#define GIC_ENCODE_SZ(n, w) (((unsigned long)(n) - 1) & GENMASK_ULL(((w) - 1), 0))
include/linux/mempolicy.h
57
} w;
include/linux/mfd/macsmc.h
243
type w, type *r) \
include/linux/mfd/macsmc.h
245
int ret = apple_smc_rw(smc, key, &w, sizeof(w), r, sizeof(*r)); \
include/linux/mfd/si476x-core.h
150
#define SI476X_WORK_TO_CORE(w) container_of(to_delayed_work(w), \
include/linux/mmap_lock.h
6
extern int rcuwait_wake_up(struct rcuwait *w);
include/linux/mmzone.h
1078
enum zone_watermarks w)
include/linux/mmzone.h
1080
return z->_watermark[w] + z->watermark_boost;
include/linux/mpi.h
72
int mpi_sub_ui(MPI w, MPI u, unsigned long vval);
include/linux/mpi.h
82
int mpi_add(MPI w, MPI u, MPI v);
include/linux/mpi.h
83
int mpi_sub(MPI w, MPI u, MPI v);
include/linux/mpi.h
84
int mpi_addm(MPI w, MPI u, MPI v, MPI m);
include/linux/mpi.h
85
int mpi_subm(MPI w, MPI u, MPI v, MPI m);
include/linux/mpi.h
88
int mpi_mul(MPI w, MPI u, MPI v);
include/linux/mpi.h
89
int mpi_mulm(MPI w, MPI u, MPI v, MPI m);
include/linux/mtd/cfi_endian.h
36
#define _cpu_to_cfi(w, s, x) (cfi_host(s)?(x):_swap_to_cfi(w, s, x))
include/linux/mtd/cfi_endian.h
37
#define _cfi_to_cpu(w, s, x) (cfi_host(s)?(x):_swap_to_cpu(w, s, x))
include/linux/mtd/cfi_endian.h
38
#define _swap_to_cfi(w, s, x) (cfi_be(s)?cpu_to_be##w(x):cpu_to_le##w(x))
include/linux/mtd/cfi_endian.h
39
#define _swap_to_cpu(w, s, x) (cfi_be(s)?be##w##_to_cpu(x):le##w##_to_cpu(x))
include/linux/mtd/map.h
140
static inline int map_bankwidth_supported(int w)
include/linux/mtd/map.h
142
switch (w) {
include/linux/nfsacl.h
28
unsigned int w = 16;
include/linux/nfsacl.h
29
w += max(acl_access ? (int)acl_access->a_count : 3, 4) * 12;
include/linux/nfsacl.h
31
w += max((int)acl_default->a_count, 4) * 12;
include/linux/nfsacl.h
32
return w;
include/linux/rcuwait.h
12
static inline void rcuwait_init(struct rcuwait *w)
include/linux/rcuwait.h
14
w->task = NULL;
include/linux/rcuwait.h
21
static inline int rcuwait_active(struct rcuwait *w)
include/linux/rcuwait.h
23
return !!rcu_access_pointer(w->task);
include/linux/rcuwait.h
26
extern int rcuwait_wake_up(struct rcuwait *w);
include/linux/rcuwait.h
34
static inline void prepare_to_rcuwait(struct rcuwait *w)
include/linux/rcuwait.h
36
rcu_assign_pointer(w->task, current);
include/linux/rcuwait.h
39
extern void finish_rcuwait(struct rcuwait *w);
include/linux/rcuwait.h
41
#define ___rcuwait_wait_event(w, condition, state, ret, cmd) \
include/linux/rcuwait.h
44
prepare_to_rcuwait(w); \
include/linux/rcuwait.h
61
finish_rcuwait(w); \
include/linux/rcuwait.h
65
#define rcuwait_wait_event(w, condition, state) \
include/linux/rcuwait.h
66
___rcuwait_wait_event(w, condition, state, 0, schedule())
include/linux/rcuwait.h
68
#define __rcuwait_wait_event_timeout(w, condition, state, timeout) \
include/linux/rcuwait.h
69
___rcuwait_wait_event(w, ___wait_cond_timeout(condition), \
include/linux/rcuwait.h
73
#define rcuwait_wait_event_timeout(w, condition, state, timeout) \
include/linux/rcuwait.h
77
__ret = __rcuwait_wait_event_timeout(w, condition, \
include/linux/soc/ti/omap1-usb.h
24
# define USB2_TRX_MODE(w) (((w)>>24)&0x07)
include/linux/soc/ti/omap1-usb.h
25
# define USB1_TRX_MODE(w) (((w)>>20)&0x07)
include/linux/soc/ti/omap1-usb.h
26
# define USB0_TRX_MODE(w) (((w)>>16)&0x07)
include/linux/soc/ti/omap1-usb.h
38
# define SRP_GPUVBUS(w) (((w)>>24)&0x07)
include/linux/soc/ti/omap1-usb.h
39
# define A_WAIT_VRISE(w) (((w)>>20)&0x07)
include/linux/soc/ti/omap1-usb.h
40
# define B_ASE_BRST(w) (((w)>>16)&0x07)
include/linux/soc/ti/omap1-usb.h
49
# define OTG_HMC(w) (((w)>>0)&0x3f)
include/linux/usb/gadget.h
489
#define work_to_gadget(w) (container_of((w), struct usb_gadget, work))
include/linux/workqueue.h
363
#define delayed_work_pending(w) \
include/linux/workqueue.h
364
work_pending(&(w)->work)
include/math-emu/op-1.h
33
#define _FP_FRAC_WORD_1(X,w) (X##_f)
include/math-emu/op-2.h
33
#define _FP_FRAC_WORD_2(X,w) (X##_f##w)
include/math-emu/op-4.h
35
#define _FP_FRAC_WORD_4(X,w) (X##_f[w])
include/math-emu/op-8.h
32
#define _FP_FRAC_WORD_8(X,w) (X##_f[w])
include/media/tpg/v4l2-tpg.h
236
void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h);
include/media/tpg/v4l2-tpg.h
483
unsigned w = 0;
include/media/tpg/v4l2-tpg.h
491
w += plane_w / tpg->vdownsampling[p];
include/media/tpg/v4l2-tpg.h
493
return w;
include/media/tpg/v4l2-tpg.h
499
unsigned w = 0;
include/media/tpg/v4l2-tpg.h
508
w += plane_w / tpg->vdownsampling[p];
include/media/tpg/v4l2-tpg.h
510
return w;
include/net/dsa.h
925
struct ethtool_wolinfo *w);
include/net/dsa.h
927
struct ethtool_wolinfo *w);
include/net/ip6_fib.h
234
#define for_each_fib6_walker_rt(w) \
include/net/ip6_fib.h
235
for (rt = (w)->leaf; rt; \
include/net/ip6_fib.h
569
struct fib6_walker w;
include/net/tcp.h
1353
void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked);
include/net/tipc.h
44
__be32 w[4];
include/net/tipc.h
49
u32 w0 = ntohl(hdr->w[0]);
include/net/tipc.h
55
return hdr->w[3];
include/rdma/rdmavt_qp.h
858
struct ib_wc w = {
include/rdma/rdmavt_qp.h
865
rvt_send_cq(qp, &w, status != IB_WC_SUCCESS);
include/sound/soc-dapm.h
546
int (*power_check)(struct snd_soc_dapm_widget *w);
include/sound/soc-dapm.h
612
int snd_soc_dapm_regulator_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
include/sound/soc-dapm.h
613
int snd_soc_dapm_clock_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
include/sound/soc-dapm.h
614
int snd_soc_dapm_pinctrl_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
include/sound/soc-dapm.h
635
void snd_soc_dapm_free_widget(struct snd_soc_dapm_widget *w);
include/sound/soc-dapm.h
658
void snd_soc_dapm_free_widget(struct snd_soc_dapm_widget *w);
include/sound/soc-dapm.h
717
#define snd_soc_dapm_widget_for_each_path(w, dir, p) \
include/sound/soc-dapm.h
718
list_for_each_entry(p, &w->edges[dir], list_node[dir])
include/sound/soc-dapm.h
732
#define snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p) \
include/sound/soc-dapm.h
733
list_for_each_entry_safe(p, next_p, &w->edges[dir], list_node[dir])
include/sound/soc-dapm.h
741
#define snd_soc_dapm_widget_for_each_sink_path(w, p) \
include/sound/soc-dapm.h
742
snd_soc_dapm_widget_for_each_path(w, SND_SOC_DAPM_DIR_IN, p)
include/sound/soc-dapm.h
750
#define snd_soc_dapm_widget_for_each_source_path(w, p) \
include/sound/soc-dapm.h
751
snd_soc_dapm_widget_for_each_path(w, SND_SOC_DAPM_DIR_OUT, p)
include/sound/soc-topology.h
100
int (*event_handler)(struct snd_soc_dapm_widget *w,
include/sound/soc-topology.h
185
int snd_soc_tplg_widget_bind_event(struct snd_soc_dapm_widget *w,
include/sound/soc.h
1126
#define for_each_card_widgets(card, w)\
include/sound/soc.h
1127
list_for_each_entry(w, &card->widgets, list)
include/sound/soc.h
1128
#define for_each_card_widgets_safe(card, w, _w) \
include/sound/soc.h
1129
list_for_each_entry_safe(w, _w, &card->widgets, list)
include/trace/events/asoc.h
100
TP_ARGS(w, val),
include/trace/events/asoc.h
103
__string( name, w->name )
include/trace/events/asoc.h
118
TP_PROTO(struct snd_soc_dapm_widget *w, int val),
include/trace/events/asoc.h
120
TP_ARGS(w, val)
include/trace/events/asoc.h
126
TP_PROTO(struct snd_soc_dapm_widget *w, int val),
include/trace/events/asoc.h
128
TP_ARGS(w, val)
include/trace/events/asoc.h
134
TP_PROTO(struct snd_soc_dapm_widget *w, int val),
include/trace/events/asoc.h
136
TP_ARGS(w, val)
include/trace/events/asoc.h
98
TP_PROTO(struct snd_soc_dapm_widget *w, int val),
include/uapi/drm/exynos_drm.h
293
__u32 w;
include/uapi/drm/i915_drm.h
328
unsigned int w;
include/uapi/drm/virtgpu_drm.h
137
__u32 w;
include/uapi/drm/vmwgfx_drm.h
473
__u32 w;
include/uapi/linux/dvb/video.h
34
int w;
include/uapi/linux/omapfb.h
183
__u16 w;
include/uapi/linux/ppp-comp.h
74
#define DEFLATE_MAKE_OPT(w) ((((w) - 8) << 4) + DEFLATE_METHOD_VAL)
include/uapi/linux/videodev2.h
1336
struct v4l2_rect w;
include/uapi/linux/virtio_gpu.h
250
__le32 w, h, d;
include/video/imx-ipu-v3.h
362
void ipu_csi_set_window(struct ipu_csi *csi, struct v4l2_rect *w);
include/video/omapfb_dss.h
701
u16 x, u16 y, u16 w, u16 h);
include/video/omapfb_dss.h
715
u16 x, u16 y, u16 w, u16 h);
include/video/pm3fb.h
226
#define PM3VideoOverlayWidth_WIDTH(w) (((w) & 0xfff) << 0)
include/video/pm3fb.h
555
#define PM3FBDestReadBufferWidth_Width(w) ((w) & 0x0fff)
include/video/pm3fb.h
612
#define PM3FBSourceReadBufferWidth_Width(w) ((w) & 0x0fff)
include/video/pm3fb.h
626
#define PM3FBSourceReadMode_WrapX(w) (((w) & 0xf) << 16)
include/video/pm3fb.h
627
#define PM3FBSourceReadMode_WrapY(w) (((w) & 0xf) << 20)
include/video/pm3fb.h
645
#define PM3FBWriteBufferWidth_Width(w) ((w) & 0x0fff)
include/video/pm3fb.h
690
#define PM3LBDestReadMode_Width(w) (((w) & 0xfff) << 12)
include/video/pm3fb.h
692
#define PM3LBReadFormat_DepthWidth(w) (((w) & 0x3) << 0)
include/video/pm3fb.h
693
#define PM3LBReadFormat_StencilWidth(w) (((w) & 0xf) << 2)
include/video/pm3fb.h
695
#define PM3LBReadFormat_FCPWidth(w) (((w) & 0xf) << 11)
include/video/pm3fb.h
697
#define PM3LBReadFormat_GIDWidth(w) (((w) & 0x7) << 20)
include/video/pm3fb.h
710
#define PM3LBSourceReadMode_Width(w) (((w) & 0xfff) << 11)
include/video/pm3fb.h
715
#define PM3LBWriteFormat_DepthWidth(w) (((w) & 0x3) << 0)
include/video/pm3fb.h
716
#define PM3LBWriteFormat_StencilWidth(w) (((w) & 0xf) << 2)
include/video/pm3fb.h
718
#define PM3LBWriteFormat_GIDWidth(w) (((w) & 0x7) << 20)
include/video/pm3fb.h
730
#define PM3LBWriteMode_Width(w) (((w) & 0xfff) << 12)
include/video/pm3fb.h
898
#define PM3TextureMapWidth_Width(w) (((w) & 0xfff) << 0)
include/video/pm3fb.h
967
#define PM3Render2D_Width(w) ((w) & 0x0fff)
include/video/pm3fb.h
980
#define PM3Render2DGlyph_Width(w) ((w) & 0x7f)
include/video/udlfb.h
16
int w, h;
io_uring/io_uring.c
2487
struct io_uring_reg_wait *w;
io_uring/io_uring.c
2491
w = io_get_ext_arg_reg(ctx, argp);
io_uring/io_uring.c
2492
if (IS_ERR(w))
io_uring/io_uring.c
2493
return PTR_ERR(w);
io_uring/io_uring.c
2495
if (w->flags & ~IORING_REG_WAIT_TS)
io_uring/io_uring.c
2497
ext_arg->min_time = READ_ONCE(w->min_wait_usec) * NSEC_PER_USEC;
io_uring/io_uring.c
2498
ext_arg->sig = u64_to_user_ptr(READ_ONCE(w->sigmask));
io_uring/io_uring.c
2499
ext_arg->argsz = READ_ONCE(w->sigmask_sz);
io_uring/io_uring.c
2500
if (w->flags & IORING_REG_WAIT_TS) {
io_uring/io_uring.c
2501
ext_arg->ts.tv_sec = READ_ONCE(w->ts.tv_sec);
io_uring/io_uring.c
2502
ext_arg->ts.tv_nsec = READ_ONCE(w->ts.tv_nsec);
kernel/audit.h
313
#define audit_put_watch(w) do { } while (0)
kernel/audit.h
314
#define audit_get_watch(w) do { } while (0)
kernel/audit.h
318
#define audit_watch_path(w) ""
kernel/audit.h
319
#define audit_watch_compare(w, i, d) 0
kernel/audit_watch.c
227
static void audit_watch_log_rule_change(struct audit_krule *r, struct audit_watch *w, char *op)
kernel/audit_watch.c
238
audit_log_untrustedstring(ab, w->path);
kernel/audit_watch.c
324
struct audit_watch *w, *nextw;
kernel/audit_watch.c
329
list_for_each_entry_safe(w, nextw, &parent->watches, wlist) {
kernel/audit_watch.c
330
list_for_each_entry_safe(r, nextr, &w->rules, rlist) {
kernel/audit_watch.c
332
audit_watch_log_rule_change(r, w, "remove_rule");
kernel/audit_watch.c
340
audit_remove_watch(w);
kernel/audit_watch.c
371
struct audit_watch *w, *watch = krule->watch;
kernel/audit_watch.c
376
list_for_each_entry(w, &parent->watches, wlist) {
kernel/audit_watch.c
377
if (strcmp(watch->path, w->path))
kernel/audit_watch.c
385
audit_get_watch(w);
kernel/audit_watch.c
386
krule->watch = watch = w;
kernel/bpf/helpers.c
1202
struct bpf_work *w = container_of(work, struct bpf_work, work);
kernel/bpf/helpers.c
1203
struct bpf_async_cb *cb = &w->cb;
kernel/bpf/helpers.c
1246
struct bpf_work *w = container_of(cb, struct bpf_work, cb);
kernel/bpf/helpers.c
1260
if (!cancel_work(&w->work) && work_busy(&w->work))
kernel/bpf/helpers.c
1307
struct bpf_work *w;
kernel/bpf/helpers.c
1340
w = (struct bpf_work *)cb;
kernel/bpf/helpers.c
1342
INIT_WORK(&w->work, bpf_wq_work);
kernel/bpf/helpers.c
1631
struct bpf_work *w = container_of(cb, struct bpf_work, cb);
kernel/bpf/helpers.c
1635
schedule_work(&w->work);
kernel/bpf/helpers.c
1638
cancel_work(&w->work);
kernel/bpf/helpers.c
3180
struct bpf_work *w;
kernel/bpf/helpers.c
3185
w = READ_ONCE(async->work);
kernel/bpf/helpers.c
3186
if (!w || !READ_ONCE(w->cb.prog))
kernel/bpf/helpers.c
3189
if (!refcount_inc_not_zero(&w->cb.refcnt))
kernel/bpf/helpers.c
3193
schedule_work(&w->work);
kernel/bpf/helpers.c
3194
bpf_async_refcount_put(&w->cb);
kernel/bpf/helpers.c
3197
return bpf_async_schedule_op(&w->cb, BPF_ASYNC_START, 0, 0);
kernel/bpf/tnum.c
289
u64 tmax, j, p, q, r, s, v, u, w, res;
kernel/bpf/tnum.c
323
w = (u & t.mask) | t.value;
kernel/bpf/tnum.c
324
res = w;
kernel/bpf/verifier.c
18158
static void merge_callee_effects(struct bpf_verifier_env *env, int t, int w)
kernel/bpf/verifier.c
18163
callee = bpf_find_containing_subprog(env, w);
kernel/bpf/verifier.c
18248
static int push_insn(int t, int w, int e, struct bpf_verifier_env *env)
kernel/bpf/verifier.c
18259
if (w < 0 || w >= env->prog->len) {
kernel/bpf/verifier.c
18261
verbose(env, "jump out of range from insn %d to %d\n", t, w);
kernel/bpf/verifier.c
18267
mark_prune_point(env, w);
kernel/bpf/verifier.c
18268
mark_jmp_point(env, w);
kernel/bpf/verifier.c
18271
if (insn_state[w] == 0) {
kernel/bpf/verifier.c
18274
insn_state[w] = DISCOVERED;
kernel/bpf/verifier.c
18277
insn_stack[env->cfg.cur_stack++] = w;
kernel/bpf/verifier.c
18279
} else if ((insn_state[w] & 0xF0) == DISCOVERED) {
kernel/bpf/verifier.c
18283
verbose_linfo(env, w, "%d: ", w);
kernel/bpf/verifier.c
18284
verbose(env, "back-edge from insn %d to %d\n", t, w);
kernel/bpf/verifier.c
18286
} else if (insn_state[w] == EXPLORED) {
kernel/bpf/verifier.c
18301
int w;
kernel/bpf/verifier.c
18313
w = t + insns[t].imm + 1;
kernel/bpf/verifier.c
18315
merge_callee_effects(env, t, w);
kernel/bpf/verifier.c
18316
ret = push_insn(t, w, BRANCH, env);
kernel/bpf/verifier.c
18769
int i, w;
kernel/bpf/verifier.c
18782
w = jt->items[i];
kernel/bpf/verifier.c
18783
if (w < 0 || w >= env->prog->len) {
kernel/bpf/verifier.c
18784
verbose(env, "indirect jump out of range from insn %d to %d\n", t, w);
kernel/bpf/verifier.c
18788
mark_jmp_point(env, w);
kernel/bpf/verifier.c
18791
if (insn_state[w])
kernel/bpf/verifier.c
18797
insn_stack[env->cfg.cur_stack++] = w;
kernel/bpf/verifier.c
18798
insn_state[w] |= DISCOVERED;
kernel/bpf/verifier.c
25785
u32 i, j, t, w;
kernel/bpf/verifier.c
25888
w = dfs[dfs_sz - 1];
kernel/bpf/verifier.c
25889
if (pre[w] == 0) {
kernel/bpf/verifier.c
25890
low[w] = next_preorder_num;
kernel/bpf/verifier.c
25891
pre[w] = next_preorder_num;
kernel/bpf/verifier.c
25893
stack[stack_sz++] = w;
kernel/bpf/verifier.c
25896
succ = bpf_insn_successors(env, w);
kernel/bpf/verifier.c
25899
low[w] = min(low[w], low[succ->items[j]]);
kernel/bpf/verifier.c
25909
if (low[w] < pre[w]) {
kernel/bpf/verifier.c
25918
assign_scc = stack[stack_sz - 1] != w; /* two or more elements? */
kernel/bpf/verifier.c
25920
if (succ->items[j] == w) {
kernel/bpf/verifier.c
25925
if (bpf_calls_callback(env, w)) /* implicit loop? */
kernel/bpf/verifier.c
25933
} while (t != w);
kernel/events/core.c
630
static void perf_duration_warn(struct irq_work *w)
kernel/exit.c
314
int rcuwait_wake_up(struct rcuwait *w)
kernel/exit.c
334
task = rcu_dereference(w->task);
kernel/futex/futex.h
424
struct futex_waitv w;
kernel/futex/syscalls.c
244
futexv[i].w.flags = flags;
kernel/futex/syscalls.c
245
futexv[i].w.val = aux.val;
kernel/futex/syscalls.c
246
futexv[i].w.uaddr = aux.uaddr;
kernel/futex/syscalls.c
467
if (futexes[0].w.flags != futexes[1].w.flags)
kernel/futex/syscalls.c
470
cmpval = futexes[0].w.val;
kernel/futex/syscalls.c
472
return futex_requeue(u64_to_user_ptr(futexes[0].w.uaddr), futexes[0].w.flags,
kernel/futex/syscalls.c
473
u64_to_user_ptr(futexes[1].w.uaddr), futexes[1].w.flags,
kernel/futex/waitwake.c
430
if (!(vs[i].w.flags & FLAGS_SHARED) && retry)
kernel/futex/waitwake.c
433
ret = get_futex_key(u64_to_user_ptr(vs[i].w.uaddr),
kernel/futex/waitwake.c
434
vs[i].w.flags,
kernel/futex/waitwake.c
444
u32 __user *uaddr = (u32 __user *)(unsigned long)vs[i].w.uaddr;
kernel/futex/waitwake.c
446
u32 val = vs[i].w.val;
kernel/locking/rtmutex.c
1660
struct rt_mutex_waiter *w)
kernel/locking/rtmutex.c
1669
if (build_ww_mutex() && w->ww_ctx)
kernel/locking/rtmutex.c
558
struct rt_mutex_waiter *w)
kernel/locking/rtmutex.c
560
rt_mutex_wake_q_add_task(wqh, w->task, w->wake_state);
kernel/locking/rtmutex_common.h
132
struct rt_mutex_waiter *w = NULL;
kernel/locking/rtmutex_common.h
137
w = rb_entry(leftmost, struct rt_mutex_waiter, tree.entry);
kernel/locking/rtmutex_common.h
138
BUG_ON(w->lock != lock);
kernel/locking/rtmutex_common.h
140
return w;
kernel/locking/ww_mutex.h
103
__ww_waiter_next(struct rt_mutex *lock, struct rt_mutex_waiter *w)
kernel/locking/ww_mutex.h
105
struct rb_node *n = rb_next(&w->tree.entry);
kernel/locking/ww_mutex.h
11
struct mutex_waiter *w;
kernel/locking/ww_mutex.h
112
__ww_waiter_prev(struct rt_mutex *lock, struct rt_mutex_waiter *w)
kernel/locking/ww_mutex.h
114
struct rb_node *n = rb_prev(&w->tree.entry);
kernel/locking/ww_mutex.h
13
w = list_first_entry(&lock->wait_list, struct mutex_waiter, list);
kernel/locking/ww_mutex.h
14
if (list_entry_is_head(w, &lock->wait_list, list))
kernel/locking/ww_mutex.h
17
return w;
kernel/locking/ww_mutex.h
21
__ww_waiter_next(struct mutex *lock, struct mutex_waiter *w)
kernel/locking/ww_mutex.h
23
w = list_next_entry(w, list);
kernel/locking/ww_mutex.h
24
if (list_entry_is_head(w, &lock->wait_list, list))
kernel/locking/ww_mutex.h
27
return w;
kernel/locking/ww_mutex.h
31
__ww_waiter_prev(struct mutex *lock, struct mutex_waiter *w)
kernel/locking/ww_mutex.h
33
w = list_prev_entry(w, list);
kernel/locking/ww_mutex.h
34
if (list_entry_is_head(w, &lock->wait_list, list))
kernel/locking/ww_mutex.h
37
return w;
kernel/locking/ww_mutex.h
43
struct mutex_waiter *w;
kernel/locking/ww_mutex.h
45
w = list_last_entry(&lock->wait_list, struct mutex_waiter, list);
kernel/locking/ww_mutex.h
46
if (list_entry_is_head(w, &lock->wait_list, list))
kernel/locking/ww_mutex.h
49
return w;
kernel/module/main.c
2982
static void do_free_init(struct work_struct *w)
kernel/module/main.c
79
static void do_free_init(struct work_struct *w);
kernel/padata.c
404
static void __init padata_mt_helper(struct work_struct *w)
kernel/padata.c
406
struct padata_work *pw = container_of(w, struct padata_work, pw_work);
kernel/printk/nbcon.c
1293
static inline bool rcuwait_has_sleeper(struct rcuwait *w)
kernel/printk/nbcon.c
1307
return rcuwait_active(w);
kernel/rcu/update.c
450
void finish_rcuwait(struct rcuwait *w)
kernel/rcu/update.c
452
rcu_assign_pointer(w->task, NULL);
kernel/scftorture.c
259
unsigned long w;
kernel/scftorture.c
263
w = (scfsp->scfs_weight - oldw) * 100000 / scf_sel_totweight;
kernel/scftorture.c
264
pr_info("%s: %3lu.%03lu %s(%s)\n", __func__, w / 1000, w % 1000,
kernel/scftorture.c
275
unsigned long w = torture_random(trsp) % (scf_sel_totweight + 1);
kernel/scftorture.c
278
if (scf_sel_array[i].scfs_weight >= w)
kernel/sched/ext.c
5338
struct kthread_worker *w =
kernel/sched/ext.c
5340
if (IS_ERR_OR_NULL(w)) {
kernel/sched/ext.c
5344
sched_set_fifo(w->task);
kernel/sched/ext.c
5345
WRITE_ONCE(helper, w);
kernel/sched/fair.c
11034
unsigned int w = cpumask_weight_and(p->cpus_ptr,
kernel/sched/fair.c
11036
imb_numa_nr = min(w, sd->imb_numa_nr);
kernel/sched/fair.c
177
static inline void update_load_set(struct load_weight *lw, unsigned long w)
kernel/sched/fair.c
179
lw->weight = w;
kernel/sched/fair.c
233
unsigned long w;
kernel/sched/fair.c
238
w = scale_load_down(lw->weight);
kernel/sched/fair.c
240
if (BITS_PER_LONG > 32 && unlikely(w >= WMULT_CONST))
kernel/sched/fair.c
242
else if (unlikely(!w))
kernel/sched/fair.c
245
lw->inv_weight = WMULT_CONST / w;
kernel/sched/fair.c
728
unsigned long w = scale_load_down(curr->load.weight);
kernel/sched/fair.c
730
runtime += entity_key(cfs_rq, curr) * w;
kernel/sched/fair.c
731
weight += w;
kernel/sched/psi.c
1274
int w;
kernel/sched/psi.c
1278
for (w = 0; w < 3; w++)
kernel/sched/psi.c
1279
avg[w] = group->avg[res * 2 + full][w];
kernel/sched/sched.h
151
# define scale_load(w) ((w) << SCHED_FIXEDPOINT_SHIFT)
kernel/sched/sched.h
152
# define scale_load_down(w) \
kernel/sched/sched.h
154
unsigned long __w = (w); \
kernel/sched/sched.h
162
# define scale_load(w) (w)
kernel/sched/sched.h
163
# define scale_load_down(w) (w)
kernel/sched/topology.c
2262
int w;
kernel/sched/topology.c
2274
k->w = 0;
kernel/sched/topology.c
2279
k->w = cpumask_weight_and(k->cpus, prev_hop[k->node]);
kernel/sched/topology.c
2280
if (k->w <= k->cpu)
kernel/sched/topology.c
2321
cpumask_nth_and_andnot(cpu - k.w, cpus, k.masks[hop][node], k.masks[hop-1][node]) :
kernel/trace/ring_buffer.c
4468
unsigned long tail, write, w;
kernel/trace/ring_buffer.c
4473
/*A*/ w = local_read(&tail_page->write) & RB_WRITE_MASK;
kernel/trace/ring_buffer.c
4488
if (!w) {
kernel/trace/ring_buffer.c
4518
if (likely(tail == w)) {
kernel/watch_queue.c
465
struct watch *w;
kernel/watch_queue.c
467
hlist_for_each_entry(w, &wlist->watchers, list_node) {
kernel/watch_queue.c
468
struct watch_queue *wq = rcu_access_pointer(w->queue);
kernel/watch_queue.c
469
if (wqueue == wq && watch->id == w->id)
lib/ashldi3.c
11
DWunion uu, w;
lib/ashldi3.c
21
w.s.low = 0;
lib/ashldi3.c
22
w.s.high = (unsigned int) uu.s.low << -bm;
lib/ashldi3.c
26
w.s.low = (unsigned int) uu.s.low << b;
lib/ashldi3.c
27
w.s.high = ((unsigned int) uu.s.high << b) | carries;
lib/ashldi3.c
30
return w.ll;
lib/ashrdi3.c
11
DWunion uu, w;
lib/ashrdi3.c
22
w.s.high =
lib/ashrdi3.c
24
w.s.low = uu.s.high >> -bm;
lib/ashrdi3.c
28
w.s.high = uu.s.high >> b;
lib/ashrdi3.c
29
w.s.low = ((unsigned int) uu.s.low >> b) | carries;
lib/ashrdi3.c
32
return w.ll;
lib/bch.c
213
uint32_t w, r[BCH_ECC_MAX_WORDS];
lib/bch.c
260
w = cpu_to_be32(*pdata++);
lib/bch.c
262
w = (u32)swap_bits(bch, w) |
lib/bch.c
263
((u32)swap_bits(bch, w >> 8) << 8) |
lib/bch.c
264
((u32)swap_bits(bch, w >> 16) << 16) |
lib/bch.c
265
((u32)swap_bits(bch, w >> 24) << 24);
lib/bch.c
266
w ^= r[0];
lib/bch.c
267
p0 = tab0 + (l+1)*((w >> 0) & 0xff);
lib/bch.c
268
p1 = tab1 + (l+1)*((w >> 8) & 0xff);
lib/bch.c
269
p2 = tab2 + (l+1)*((w >> 16) & 0xff);
lib/bch.c
270
p3 = tab3 + (l+1)*((w >> 24) & 0xff);
lib/bitmap.c
327
unsigned int __bits = (bits), idx, w = 0; \
lib/bitmap.c
330
w += hweight_long(FETCH); \
lib/bitmap.c
333
w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \
lib/bitmap.c
335
w; \
lib/bitmap.c
507
unsigned int oldbit, w;
lib/bitmap.c
513
w = bitmap_weight(new, nbits);
lib/bitmap.c
517
if (n < 0 || w == 0)
lib/bitmap.c
520
set_bit(find_nth_bit(new, nbits, n % w), dst);
lib/bitmap.c
554
int w = bitmap_weight(new, bits);
lib/bitmap.c
556
if (n < 0 || w == 0)
lib/bitmap.c
559
return find_nth_bit(new, bits, n % w);
lib/checksum.c
64
unsigned int w = *(unsigned int *) buff;
lib/checksum.c
67
result += w;
lib/checksum.c
68
carry = (w > result);
lib/cmpxchg-emu.c
21
u32 w;
lib/cmpxchg-emu.c
35
old32.w = ret;
lib/cmpxchg-emu.c
38
new32.w = old32.w;
lib/cmpxchg-emu.c
41
ret = data_race(cmpxchg(p32, old32.w, new32.w)); // Overridden above.
lib/cmpxchg-emu.c
42
} while (ret != old32.w);
lib/crc/loongarch/crc32.h
45
CRC32(crc, value, w);
lib/crc/loongarch/crc32.h
81
CRC32C(crc, value, w);
lib/crc/mips/crc32.h
121
CRC32C(crc, value, w);
lib/crc/mips/crc32.h
128
CRC32C(crc, value, w);
lib/crc/mips/crc32.h
78
CRC32(crc, value, w);
lib/crc/mips/crc32.h
85
CRC32(crc, value, w);
lib/crypto/aes.c
194
static u32 mul_by_x(u32 w)
lib/crypto/aes.c
196
u32 x = w & 0x7f7f7f7f;
lib/crypto/aes.c
197
u32 y = w & 0x80808080;
lib/crypto/aes.c
203
static u32 mul_by_x2(u32 w)
lib/crypto/aes.c
205
u32 x = w & 0x3f3f3f3f;
lib/crypto/aes.c
206
u32 y = w & 0x80808080;
lib/crypto/aes.c
207
u32 z = w & 0x40404040;
lib/crypto/aes.c
328
static __always_inline u32 enc_quarterround(const u32 w[4], int i, u32 rk)
lib/crypto/aes.c
330
return rk ^ aes_enc_tab[(u8)w[i]] ^
lib/crypto/aes.c
331
rol32(aes_enc_tab[(u8)(w[(i + 1) % 4] >> 8)], 8) ^
lib/crypto/aes.c
332
rol32(aes_enc_tab[(u8)(w[(i + 2) % 4] >> 16)], 16) ^
lib/crypto/aes.c
333
rol32(aes_enc_tab[(u8)(w[(i + 3) % 4] >> 24)], 24);
lib/crypto/aes.c
336
static __always_inline u32 enclast_quarterround(const u32 w[4], int i, u32 rk)
lib/crypto/aes.c
338
return rk ^ ((aes_enc_tab[(u8)w[i]] & 0x0000ff00) >> 8) ^
lib/crypto/aes.c
339
(aes_enc_tab[(u8)(w[(i + 1) % 4] >> 8)] & 0x0000ff00) ^
lib/crypto/aes.c
340
((aes_enc_tab[(u8)(w[(i + 2) % 4] >> 16)] & 0x0000ff00) << 8) ^
lib/crypto/aes.c
341
((aes_enc_tab[(u8)(w[(i + 3) % 4] >> 24)] & 0x0000ff00) << 16);
lib/crypto/aes.c
350
u32 w[4];
lib/crypto/aes.c
352
w[0] = get_unaligned_le32(&in[0]) ^ *rkp++;
lib/crypto/aes.c
353
w[1] = get_unaligned_le32(&in[4]) ^ *rkp++;
lib/crypto/aes.c
354
w[2] = get_unaligned_le32(&in[8]) ^ *rkp++;
lib/crypto/aes.c
355
w[3] = get_unaligned_le32(&in[12]) ^ *rkp++;
lib/crypto/aes.c
368
u32 w0 = enc_quarterround(w, 0, *rkp++);
lib/crypto/aes.c
369
u32 w1 = enc_quarterround(w, 1, *rkp++);
lib/crypto/aes.c
370
u32 w2 = enc_quarterround(w, 2, *rkp++);
lib/crypto/aes.c
371
u32 w3 = enc_quarterround(w, 3, *rkp++);
lib/crypto/aes.c
373
w[0] = w0;
lib/crypto/aes.c
374
w[1] = w1;
lib/crypto/aes.c
375
w[2] = w2;
lib/crypto/aes.c
376
w[3] = w3;
lib/crypto/aes.c
379
put_unaligned_le32(enclast_quarterround(w, 0, *rkp++), &out[0]);
lib/crypto/aes.c
380
put_unaligned_le32(enclast_quarterround(w, 1, *rkp++), &out[4]);
lib/crypto/aes.c
381
put_unaligned_le32(enclast_quarterround(w, 2, *rkp++), &out[8]);
lib/crypto/aes.c
382
put_unaligned_le32(enclast_quarterround(w, 3, *rkp++), &out[12]);
lib/crypto/aes.c
385
static __always_inline u32 dec_quarterround(const u32 w[4], int i, u32 rk)
lib/crypto/aes.c
387
return rk ^ aes_dec_tab[(u8)w[i]] ^
lib/crypto/aes.c
388
rol32(aes_dec_tab[(u8)(w[(i + 3) % 4] >> 8)], 8) ^
lib/crypto/aes.c
389
rol32(aes_dec_tab[(u8)(w[(i + 2) % 4] >> 16)], 16) ^
lib/crypto/aes.c
390
rol32(aes_dec_tab[(u8)(w[(i + 1) % 4] >> 24)], 24);
lib/crypto/aes.c
393
static __always_inline u32 declast_quarterround(const u32 w[4], int i, u32 rk)
lib/crypto/aes.c
395
return rk ^ aes_inv_sbox[(u8)w[i]] ^
lib/crypto/aes.c
396
((u32)aes_inv_sbox[(u8)(w[(i + 3) % 4] >> 8)] << 8) ^
lib/crypto/aes.c
397
((u32)aes_inv_sbox[(u8)(w[(i + 2) % 4] >> 16)] << 16) ^
lib/crypto/aes.c
398
((u32)aes_inv_sbox[(u8)(w[(i + 1) % 4] >> 24)] << 24);
lib/crypto/aes.c
408
u32 w[4];
lib/crypto/aes.c
410
w[0] = get_unaligned_le32(&in[0]) ^ *rkp++;
lib/crypto/aes.c
411
w[1] = get_unaligned_le32(&in[4]) ^ *rkp++;
lib/crypto/aes.c
412
w[2] = get_unaligned_le32(&in[8]) ^ *rkp++;
lib/crypto/aes.c
413
w[3] = get_unaligned_le32(&in[12]) ^ *rkp++;
lib/crypto/aes.c
418
u32 w0 = dec_quarterround(w, 0, *rkp++);
lib/crypto/aes.c
419
u32 w1 = dec_quarterround(w, 1, *rkp++);
lib/crypto/aes.c
420
u32 w2 = dec_quarterround(w, 2, *rkp++);
lib/crypto/aes.c
421
u32 w3 = dec_quarterround(w, 3, *rkp++);
lib/crypto/aes.c
423
w[0] = w0;
lib/crypto/aes.c
424
w[1] = w1;
lib/crypto/aes.c
425
w[2] = w2;
lib/crypto/aes.c
426
w[3] = w3;
lib/crypto/aes.c
430
put_unaligned_le32(declast_quarterround(w, 0, *rkp++), &out[0]);
lib/crypto/aes.c
431
put_unaligned_le32(declast_quarterround(w, 1, *rkp++), &out[4]);
lib/crypto/aes.c
432
put_unaligned_le32(declast_quarterround(w, 2, *rkp++), &out[8]);
lib/crypto/aes.c
433
put_unaligned_le32(declast_quarterround(w, 3, *rkp++), &out[12]);
lib/crypto/des.c
625
unsigned long a, b, c, d, w;
lib/crypto/des.c
651
w = (a ^ c) | (b ^ d) | (rs[a] ^ c) | (b ^ rs[d]);
lib/crypto/des.c
662
w |= (a ^ c) | (b ^ d) | (rs[a] ^ c) | (b ^ rs[d]);
lib/crypto/des.c
695
return w;
lib/crypto/md5.c
219
unsigned long w[MD5_BLOCK_SIZE / sizeof(unsigned long)];
lib/crypto/md5.c
227
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/md5.c
228
derived_key.w[i] ^= REPEAT_BYTE(HMAC_IPAD_VALUE);
lib/crypto/md5.c
232
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/md5.c
233
derived_key.w[i] ^= REPEAT_BYTE(HMAC_OPAD_VALUE ^
lib/crypto/md5.c
31
#define MD5STEP(f, w, x, y, z, in, s) \
lib/crypto/md5.c
32
(w += f(x, y, z) + in, w = rol32(w, s) + x)
lib/crypto/mldsa.c
224
static void ntt(struct mldsa_ring_elem *w)
lib/crypto/mldsa.c
233
s32 t = Zq_mult(z, w->x[j + len]);
lib/crypto/mldsa.c
235
w->x[j + len] = w->x[j] - t;
lib/crypto/mldsa.c
236
w->x[j] += t;
lib/crypto/mldsa.c
249
static void invntt_and_mul_2_32(struct mldsa_ring_elem *w)
lib/crypto/mldsa.c
255
w->x[j] %= Q;
lib/crypto/mldsa.c
262
s32 t = w->x[j];
lib/crypto/mldsa.c
264
w->x[j] = t + w->x[j + len];
lib/crypto/mldsa.c
265
w->x[j + len] = Zq_mult(z, t - w->x[j + len]);
lib/crypto/mldsa.c
278
w->x[j] = Zq_mult(w->x[j], 41978);
lib/crypto/mldsa.c
279
w->x[j] += (w->x[j] >> 31) & Q;
lib/crypto/mldsa.c
484
static __always_inline void use_hint_elem(struct mldsa_ring_elem *w,
lib/crypto/mldsa.c
488
w->x[j] = use_hint(h[j], w->x[j], gamma2);
lib/crypto/mpi/mpi-add.c
101
err = mpi_add(w, u, vv);
lib/crypto/mpi/mpi-add.c
108
int mpi_addm(MPI w, MPI u, MPI v, MPI m)
lib/crypto/mpi/mpi-add.c
110
return mpi_add(w, u, v) ?:
lib/crypto/mpi/mpi-add.c
111
mpi_mod(w, w, m);
lib/crypto/mpi/mpi-add.c
115
int mpi_subm(MPI w, MPI u, MPI v, MPI m)
lib/crypto/mpi/mpi-add.c
117
return mpi_sub(w, u, v) ?:
lib/crypto/mpi/mpi-add.c
118
mpi_mod(w, w, m);
lib/crypto/mpi/mpi-add.c
18
int mpi_add(MPI w, MPI u, MPI v)
lib/crypto/mpi/mpi-add.c
31
err = RESIZE_IF_NEEDED(w, wsize);
lib/crypto/mpi/mpi-add.c
43
err = RESIZE_IF_NEEDED(w, wsize);
lib/crypto/mpi/mpi-add.c
50
wp = w->d;
lib/crypto/mpi/mpi-add.c
85
w->nlimbs = wsize;
lib/crypto/mpi/mpi-add.c
86
w->sign = wsign;
lib/crypto/mpi/mpi-add.c
91
int mpi_sub(MPI w, MPI u, MPI v)
lib/crypto/mpi/mpi-mul.c
106
int mpi_mulm(MPI w, MPI u, MPI v, MPI m)
lib/crypto/mpi/mpi-mul.c
108
return mpi_mul(w, u, v) ?:
lib/crypto/mpi/mpi-mul.c
109
mpi_tdiv_r(w, w, m);
lib/crypto/mpi/mpi-mul.c
18
int mpi_mul(MPI w, MPI u, MPI v)
lib/crypto/mpi/mpi-mul.c
45
wp = w->d;
lib/crypto/mpi/mpi-mul.c
49
if (w->alloced < wsize) {
lib/crypto/mpi/mpi-mul.c
56
err = mpi_resize(w, wsize);
lib/crypto/mpi/mpi-mul.c
59
wp = w->d;
lib/crypto/mpi/mpi-mul.c
95
mpi_assign_limb_space(w, wp, wsize);
lib/crypto/mpi/mpi-mul.c
96
w->nlimbs = wsize;
lib/crypto/mpi/mpi-mul.c
97
w->sign = sign_product;
lib/crypto/mpi/mpi-sub-ui.c
39
int mpi_sub_ui(MPI w, MPI u, unsigned long vval)
lib/crypto/mpi/mpi-sub-ui.c
42
if (mpi_resize(w, 1) < 0)
lib/crypto/mpi/mpi-sub-ui.c
44
w->d[0] = vval;
lib/crypto/mpi/mpi-sub-ui.c
45
w->nlimbs = (vval != 0);
lib/crypto/mpi/mpi-sub-ui.c
46
w->sign = (vval != 0);
lib/crypto/mpi/mpi-sub-ui.c
51
if (mpi_resize(w, u->nlimbs + 1))
lib/crypto/mpi/mpi-sub-ui.c
57
cy = mpihelp_add_1(w->d, u->d, u->nlimbs, (mpi_limb_t) vval);
lib/crypto/mpi/mpi-sub-ui.c
58
w->d[u->nlimbs] = cy;
lib/crypto/mpi/mpi-sub-ui.c
59
w->nlimbs = u->nlimbs + cy;
lib/crypto/mpi/mpi-sub-ui.c
60
w->sign = 1;
lib/crypto/mpi/mpi-sub-ui.c
66
w->d[0] = vval - u->d[0];
lib/crypto/mpi/mpi-sub-ui.c
67
w->nlimbs = 1;
lib/crypto/mpi/mpi-sub-ui.c
68
w->sign = 1;
lib/crypto/mpi/mpi-sub-ui.c
70
mpihelp_sub_1(w->d, u->d, u->nlimbs, (mpi_limb_t) vval);
lib/crypto/mpi/mpi-sub-ui.c
72
w->nlimbs = (u->nlimbs - (w->d[u->nlimbs - 1] == 0));
lib/crypto/mpi/mpi-sub-ui.c
73
w->sign = 0;
lib/crypto/mpi/mpi-sub-ui.c
77
mpi_normalize(w);
lib/crypto/sha1.c
216
unsigned long w[SHA1_BLOCK_SIZE / sizeof(unsigned long)];
lib/crypto/sha1.c
224
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/sha1.c
225
derived_key.w[i] ^= REPEAT_BYTE(HMAC_IPAD_VALUE);
lib/crypto/sha1.c
229
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/sha1.c
230
derived_key.w[i] ^= REPEAT_BYTE(HMAC_OPAD_VALUE ^
lib/crypto/sha256.c
335
unsigned long w[SHA256_BLOCK_SIZE / sizeof(unsigned long)];
lib/crypto/sha256.c
347
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/sha256.c
348
derived_key.w[i] ^= REPEAT_BYTE(HMAC_IPAD_VALUE);
lib/crypto/sha256.c
352
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/sha256.c
353
derived_key.w[i] ^= REPEAT_BYTE(HMAC_OPAD_VALUE ^
lib/crypto/sha512.c
260
unsigned long w[SHA512_BLOCK_SIZE / sizeof(unsigned long)];
lib/crypto/sha512.c
272
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/sha512.c
273
derived_key.w[i] ^= REPEAT_BYTE(HMAC_IPAD_VALUE);
lib/crypto/sha512.c
277
for (size_t i = 0; i < ARRAY_SIZE(derived_key.w); i++)
lib/crypto/sha512.c
278
derived_key.w[i] ^= REPEAT_BYTE(HMAC_OPAD_VALUE ^
lib/find_bit.c
305
int w = bitmap_weight(addr, size);
lib/find_bit.c
307
switch (w) {
lib/find_bit.c
314
return find_nth_bit(addr, size, get_random_u32_below(w));
lib/find_bit.c
74
unsigned long sz = (size), nr = (num), idx, w, tmp = 0; \
lib/find_bit.c
81
w = hweight_long(tmp); \
lib/find_bit.c
82
if (w > nr) \
lib/find_bit.c
85
nr -= w; \
lib/find_bit_benchmark.c
120
unsigned long l, n, w = bitmap_weight(bitmap, len);
lib/find_bit_benchmark.c
124
for (n = 0; n < w; n++) {
lib/find_bit_benchmark.c
129
pr_err("find_nth_bit: %18llu ns, %6ld iterations\n", time, w);
lib/hweight.c
13
unsigned int __sw_hweight32(unsigned int w)
lib/hweight.c
16
w -= (w >> 1) & 0x55555555;
lib/hweight.c
17
w = (w & 0x33333333) + ((w >> 2) & 0x33333333);
lib/hweight.c
18
w = (w + (w >> 4)) & 0x0f0f0f0f;
lib/hweight.c
19
return (w * 0x01010101) >> 24;
lib/hweight.c
21
unsigned int res = w - ((w >> 1) & 0x55555555);
lib/hweight.c
30
unsigned int __sw_hweight16(unsigned int w)
lib/hweight.c
32
unsigned int res = w - ((w >> 1) & 0x5555);
lib/hweight.c
39
unsigned int __sw_hweight8(unsigned int w)
lib/hweight.c
41
unsigned int res = w - ((w >> 1) & 0x55);
lib/hweight.c
47
unsigned long __sw_hweight64(__u64 w)
lib/hweight.c
50
return __sw_hweight32((unsigned int)(w >> 32)) +
lib/hweight.c
51
__sw_hweight32((unsigned int)w);
lib/hweight.c
54
w -= (w >> 1) & 0x5555555555555555ul;
lib/hweight.c
55
w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul);
lib/hweight.c
56
w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful;
lib/hweight.c
57
return (w * 0x0101010101010101ul) >> 56;
lib/hweight.c
59
__u64 res = w - ((w >> 1) & 0x5555555555555555ul);
lib/inflate.c
171
#define flush_output(w) (wp=(w),flush_window())
lib/inflate.c
348
register int w; /* bits before this table == (l * h) */
lib/inflate.c
447
w = -l; /* bits decoded == (l * h) */
lib/inflate.c
463
while (k > w + l)
lib/inflate.c
467
w += l; /* previous table always l bits */
lib/inflate.c
470
z = (z = g - w) > (unsigned)l ? l : z; /* upper limit on table size */
lib/inflate.c
471
if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */
lib/inflate.c
510
j = i >> (w - l); /* (get around Turbo C bug) */
lib/inflate.c
518
r.b = (uch)(k - w);
lib/inflate.c
535
f = 1 << (k - w);
lib/inflate.c
536
for (j = i >> w; j < z; j += f)
lib/inflate.c
545
while ((i & ((1 << w) - 1)) != x[h])
lib/inflate.c
548
w -= l;
lib/inflate.c
600
unsigned w; /* current window position */
lib/inflate.c
610
w = wp; /* initialize window position */
lib/inflate.c
629
slide[w++] = (uch)t->v.n;
lib/inflate.c
630
Tracevv((stderr, "%c", slide[w-1]));
lib/inflate.c
631
if (w == WSIZE)
lib/inflate.c
633
flush_output(w);
lib/inflate.c
634
w = 0;
lib/inflate.c
660
d = w - t->v.n - ((unsigned)b & mask_bits[e]);
lib/inflate.c
662
Tracevv((stderr,"\\[%d,%d]", w-d, n));
lib/inflate.c
666
n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e);
lib/inflate.c
668
if (w - d >= e) /* (this test assumes unsigned comparison) */
lib/inflate.c
670
memcpy(slide + w, slide + d, e);
lib/inflate.c
671
w += e;
lib/inflate.c
677
slide[w++] = slide[d++];
lib/inflate.c
678
Tracevv((stderr, "%c", slide[w-1]));
lib/inflate.c
680
if (w == WSIZE)
lib/inflate.c
682
flush_output(w);
lib/inflate.c
683
w = 0;
lib/inflate.c
691
wp = w; /* restore global window pointer */
lib/inflate.c
708
unsigned w; /* current window position */
lib/inflate.c
717
w = wp; /* initialize window position */
lib/inflate.c
739
slide[w++] = (uch)b;
lib/inflate.c
740
if (w == WSIZE)
lib/inflate.c
742
flush_output(w);
lib/inflate.c
743
w = 0;
lib/inflate.c
750
wp = w; /* restore global window pointer */
lib/logic_iomem.c
189
MAKE_FALLBACK(w, 16);
lib/logic_iomem.c
248
MAKE_OP(w, 16);
lib/logic_pio.c
305
BUILD_LOGIC_IO(w, u16)
lib/lshrdi3.c
11
DWunion uu, w;
lib/lshrdi3.c
21
w.s.high = 0;
lib/lshrdi3.c
22
w.s.low = (unsigned int) uu.s.high >> -bm;
lib/lshrdi3.c
26
w.s.high = (unsigned int) uu.s.high >> b;
lib/lshrdi3.c
27
w.s.low = ((unsigned int) uu.s.low >> b) | carries;
lib/lshrdi3.c
30
return w.ll;
lib/muldi3.c
53
DWunion w = {.ll = __umulsidi3(uu.s.low, vv.s.low)};
lib/muldi3.c
55
w.s.high += ((unsigned long) uu.s.low * (unsigned long) vv.s.high
lib/muldi3.c
58
return w.ll;
lib/once.c
14
static void once_deferred(struct work_struct *w)
lib/once.c
18
work = container_of(w, struct once_work, work);
lib/once.c
27
struct once_work *w;
lib/once.c
29
w = kmalloc_obj(*w, GFP_ATOMIC);
lib/once.c
30
if (!w)
lib/once.c
33
INIT_WORK(&w->work, once_deferred);
lib/once.c
34
w->key = key;
lib/once.c
35
w->module = mod;
lib/once.c
37
schedule_work(&w->work);
lib/sort.c
337
struct wrapper w = {
lib/sort.c
342
return __sort_r(base, num, size, _CMP_WRAPPER, SWAP_WRAPPER, &w, false);
lib/sort.c
350
struct wrapper w = {
lib/sort.c
355
return __sort_r(base, num, size, _CMP_WRAPPER, SWAP_WRAPPER, &w, true);
lib/test_bitmap.c
1277
unsigned long w, r, bit;
lib/test_bitmap.c
1310
w = IS_ENABLED(CONFIG_64BIT) ? 0xdeadbeefdeadbeefUL
lib/test_bitmap.c
1312
w >>= (BITS_PER_LONG - nbits);
lib/test_bitmap.c
1317
__assign_bit(i + n, exp_bitmap, w & BIT(n));
lib/test_bitmap.c
1318
bitmap_write(bitmap, w, i, nbits);
lib/test_bitmap.c
1321
expect_eq_ulong(r, w);
lib/tests/slub_kunit.c
190
static void cache_destroy_workfn(struct work_struct *w)
lib/tests/slub_kunit.c
194
cdw = container_of(w, struct cache_destroy_work, work);
lib/tests/test_bits.c
122
int z, w;
lib/tests/test_bits.c
131
KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(z, w));
lib/zlib_deflate/defutil.h
288
#define put_short(s, w) { \
lib/zlib_deflate/defutil.h
289
put_byte(s, (uch)((w) & 0xff)); \
lib/zlib_deflate/defutil.h
290
put_byte(s, (uch)((ush)(w) >> 8)); \
lib/zstd/compress/huf_compress.c
320
const U32 w = huffWeight[n];
lib/zstd/compress/huf_compress.c
321
HUF_setNbBits(ct + n, (BYTE)(tableLog + 1 - w) & -(w != 0));
lib/zstd/compress/zstd_compress.c
2005
static int ZSTD_indexTooCloseToMax(ZSTD_window_t w)
lib/zstd/compress/zstd_compress.c
2007
return (size_t)(w.nextSrc - w.base) > (ZSTD_CURRENT_MAX - ZSTD_INDEXOVERFLOW_MARGIN);
lib/zstd/decompress/huf_decompress.c
1106
int w;
lib/zstd/decompress/huf_decompress.c
1107
for (w = minWeight; w < maxWeight1; ++w) {
lib/zstd/decompress/huf_decompress.c
1108
int const begin = rankStart[w];
lib/zstd/decompress/huf_decompress.c
1109
int const end = rankStart[w+1];
lib/zstd/decompress/huf_decompress.c
1110
U32 const nbBits = nbBitsBaseline - w;
lib/zstd/decompress/huf_decompress.c
1113
DTable + rankVal[w],
lib/zstd/decompress/huf_decompress.c
1129
int w;
lib/zstd/decompress/huf_decompress.c
1133
for (w = 1; w < wEnd; ++w) {
lib/zstd/decompress/huf_decompress.c
1134
int const begin = (int)rankStart[w];
lib/zstd/decompress/huf_decompress.c
1135
int const end = (int)rankStart[w+1];
lib/zstd/decompress/huf_decompress.c
1136
U32 const nbBits = nbBitsBaseline - w;
lib/zstd/decompress/huf_decompress.c
1140
int start = rankVal[w];
lib/zstd/decompress/huf_decompress.c
1159
DTable + rankVal[w],
lib/zstd/decompress/huf_decompress.c
1211
{ U32 w, nextRankStart = 0;
lib/zstd/decompress/huf_decompress.c
1212
for (w=1; w<maxW+1; w++) {
lib/zstd/decompress/huf_decompress.c
1214
nextRankStart += wksp->rankStats[w];
lib/zstd/decompress/huf_decompress.c
1215
rankStart[w] = curr;
lib/zstd/decompress/huf_decompress.c
1224
U32 const w = wksp->weightList[s];
lib/zstd/decompress/huf_decompress.c
1225
U32 const r = rankStart[w]++;
lib/zstd/decompress/huf_decompress.c
1235
U32 w;
lib/zstd/decompress/huf_decompress.c
1236
for (w=1; w<maxW+1; w++) {
lib/zstd/decompress/huf_decompress.c
1238
nextRankVal += wksp->rankStats[w] << (w+rescale);
lib/zstd/decompress/huf_decompress.c
1239
rankVal0[w] = curr;
lib/zstd/decompress/huf_decompress.c
1245
U32 w;
lib/zstd/decompress/huf_decompress.c
1246
for (w = 1; w < maxW+1; w++) {
lib/zstd/decompress/huf_decompress.c
1247
rankValPtr[w] = rankVal0[w] >> consumed;
lib/zstd/decompress/huf_decompress.c
436
size_t const w = wksp->huffWeight[n+u];
lib/zstd/decompress/huf_decompress.c
437
wksp->symbols[wksp->rankStart[w]++] = (BYTE)(n+u);
lib/zstd/decompress/huf_decompress.c
441
size_t const w = wksp->huffWeight[n];
lib/zstd/decompress/huf_decompress.c
442
wksp->symbols[wksp->rankStart[w]++] = (BYTE)n;
lib/zstd/decompress/huf_decompress.c
452
{ U32 w;
lib/zstd/decompress/huf_decompress.c
455
for (w=1; w<tableLog+1; ++w) {
lib/zstd/decompress/huf_decompress.c
456
int const symbolCount = wksp->rankVal[w];
lib/zstd/decompress/huf_decompress.c
457
int const length = (1 << w) >> 1;
lib/zstd/decompress/huf_decompress.c
459
BYTE const nbBits = (BYTE)(tableLog + 1 - w);
mm/memcontrol.c
555
static void flush_memcg_stats_dwork(struct work_struct *w);
mm/memcontrol.c
642
static void flush_memcg_stats_dwork(struct work_struct *w)
mm/mempolicy.c
1231
*nmask = pol->w.user_nodemask;
mm/mempolicy.c
2859
if (!nodes_equal(a->w.user_nodemask, b->w.user_nodemask))
mm/mempolicy.c
2908
struct sp_node *w = NULL;
mm/mempolicy.c
2912
w = rb_entry(prev, struct sp_node, nd);
mm/mempolicy.c
2913
if (w->end <= start)
mm/mempolicy.c
3226
npol = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask);
mm/mempolicy.c
3231
ret = mpol_set_nodemask(npol, &mpol->w.user_nodemask, scratch);
mm/mempolicy.c
3528
new->w.user_nodemask = nodes;
mm/mempolicy.c
429
pol->w.user_nodemask = *nodes;
mm/mempolicy.c
431
pol->w.cpuset_mems_allowed = cpuset_current_mems_allowed;
mm/mempolicy.c
509
nodes_and(tmp, pol->w.user_nodemask, *nodes);
mm/mempolicy.c
511
mpol_relative_nodemask(&tmp, &pol->w.user_nodemask, nodes);
mm/mempolicy.c
513
nodes_remap(tmp, pol->nodes, pol->w.cpuset_mems_allowed,
mm/mempolicy.c
515
pol->w.cpuset_mems_allowed = *nodes;
mm/mempolicy.c
527
pol->w.cpuset_mems_allowed = *nodes;
mm/mempolicy.c
542
nodes_equal(pol->w.cpuset_mems_allowed, *newmask))
mm/slub.c
3962
static void flush_cpu_sheaves(struct work_struct *w)
mm/slub.c
3967
sfw = container_of(w, struct slub_flush_work, work);
mm/slub.c
4012
static void flush_rcu_sheaf(struct work_struct *w)
mm/slub.c
4019
sfw = container_of(w, struct slub_flush_work, work);
mm/vmalloc.c
3392
static void delayed_vfree_work(struct work_struct *w)
mm/vmalloc.c
3394
struct vfree_deferred *p = container_of(w, struct vfree_deferred, wq);
mm/vmstat.c
2034
static void vmstat_update(struct work_struct *w)
mm/vmstat.c
2108
static void vmstat_shepherd(struct work_struct *w);
mm/vmstat.c
2117
static void vmstat_shepherd(struct work_struct *w)
mm/zswap.c
1318
static void shrink_worker(struct work_struct *w)
net/batman-adv/bat_iv_ogm.c
759
u8 *w;
net/batman-adv/bat_iv_ogm.c
775
w = &orig_ifinfo->bat_iv.bcast_own_sum;
net/batman-adv/bat_iv_ogm.c
776
*w = bitmap_weight(word,
net/bluetooth/smp.c
232
static int smp_f5(struct crypto_shash *tfm_cmac, const u8 w[32],
net/bluetooth/smp.c
249
SMP_DBG("w %32phN", w);
net/bluetooth/smp.c
253
err = aes_cmac(tfm_cmac, salt, w, 32, t);
net/bluetooth/smp.c
285
static int smp_f6(struct crypto_shash *tfm_cmac, const u8 w[16],
net/bluetooth/smp.c
293
SMP_DBG("w %16phN", w);
net/bluetooth/smp.c
304
err = aes_cmac(tfm_cmac, w, m, sizeof(m), res);
net/bluetooth/smp.c
339
static int smp_h6(struct crypto_shash *tfm_cmac, const u8 w[16],
net/bluetooth/smp.c
344
SMP_DBG("w %16phN key_id %4phN", w, key_id);
net/bluetooth/smp.c
346
err = aes_cmac(tfm_cmac, w, key_id, 4, res);
net/bluetooth/smp.c
355
static int smp_h7(struct crypto_shash *tfm_cmac, const u8 w[16],
net/bluetooth/smp.c
360
SMP_DBG("w %16phN salt %16phN", w, salt);
net/bluetooth/smp.c
3602
const u8 w[32] = {
net/bluetooth/smp.c
362
err = aes_cmac(tfm_cmac, salt, w, 16, res);
net/bluetooth/smp.c
3624
err = smp_f5(tfm_cmac, w, n1, n2, a1, a2, mackey, ltk);
net/bluetooth/smp.c
3639
const u8 w[16] = {
net/bluetooth/smp.c
3660
err = smp_f6(tfm_cmac, w, n1, n2, r, io_cap, a1, a2, res);
net/bluetooth/smp.c
3704
const u8 w[16] = {
net/bluetooth/smp.c
3714
err = smp_h6(tfm_cmac, w, key_id, res);
net/bridge/netfilter/ebt_among.c
176
static bool poolsize_invalid(const struct ebt_mac_wormhash *w)
net/bridge/netfilter/ebt_among.c
178
return w && w->poolsize >= (INT_MAX / sizeof(struct ebt_mac_wormhash_tuple));
net/bridge/netfilter/ebtables.c
1469
static inline int ebt_watcher_to_user(const struct ebt_entry_watcher *w,
net/bridge/netfilter/ebtables.c
1472
return ebt_obj_to_user(ubase + ((char *)w - base),
net/bridge/netfilter/ebtables.c
1473
w->u.watcher->name, w->data, sizeof(*w),
net/bridge/netfilter/ebtables.c
1474
w->u.watcher->usersize, w->watcher_size,
net/bridge/netfilter/ebtables.c
1475
w->u.watcher->revision);
net/bridge/netfilter/ebtables.c
1703
static int compat_watcher_to_user(struct ebt_entry_watcher *w,
net/bridge/netfilter/ebtables.c
1707
return compat_target_to_user((struct ebt_entry_target *)w,
net/bridge/netfilter/ebtables.c
1774
static int compat_calc_watcher(struct ebt_entry_watcher *w, int *off)
net/bridge/netfilter/ebtables.c
1776
*off += xt_compat_target_offset(w->u.watcher);
net/bridge/netfilter/ebtables.c
430
ebt_check_watcher(struct ebt_entry_watcher *w, struct xt_tgchk_param *par,
net/bridge/netfilter/ebtables.c
435
size_t left = ((char *)e + e->target_offset) - (char *)w;
net/bridge/netfilter/ebtables.c
439
left - sizeof(struct ebt_entry_watcher) < w->watcher_size)
net/bridge/netfilter/ebtables.c
442
watcher = xt_request_find_target(NFPROTO_BRIDGE, w->u.name, 0);
net/bridge/netfilter/ebtables.c
451
w->u.watcher = watcher;
net/bridge/netfilter/ebtables.c
454
par->targinfo = w->data;
net/bridge/netfilter/ebtables.c
455
ret = xt_check_target(par, w->watcher_size,
net/bridge/netfilter/ebtables.c
638
ebt_cleanup_watcher(struct ebt_entry_watcher *w, struct net *net, unsigned int *i)
net/bridge/netfilter/ebtables.c
646
par.target = w->u.watcher;
net/bridge/netfilter/ebtables.c
647
par.targinfo = w->data;
net/bridge/netfilter/ebtables.c
93
ebt_do_watcher(const struct ebt_entry_watcher *w, struct sk_buff *skb,
net/bridge/netfilter/ebtables.c
96
par->target = w->u.watcher;
net/bridge/netfilter/ebtables.c
97
par->targinfo = w->data;
net/bridge/netfilter/ebtables.c
98
w->u.watcher->target(skb, par);
net/ceph/crush/mapper.c
1017
bno = -1 - w[i];
net/ceph/crush/mapper.c
1020
dprintk(" bad w[i] %d\n", w[i]);
net/ceph/crush/mapper.c
1078
swap(o, w);
net/ceph/crush/mapper.c
1085
result[result_len] = w[i];
net/ceph/crush/mapper.c
148
__u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i],
net/ceph/crush/mapper.c
150
w &= 0xffff;
net/ceph/crush/mapper.c
154
bucket->sum_weights[i], w);
net/ceph/crush/mapper.c
155
w *= bucket->sum_weights[i];
net/ceph/crush/mapper.c
156
w = w >> 16;
net/ceph/crush/mapper.c
158
if (w < bucket->item_weights[i]) {
net/ceph/crush/mapper.c
200
__u32 w;
net/ceph/crush/mapper.c
209
w = bucket->node_weights[n];
net/ceph/crush/mapper.c
211
bucket->h.id) * (__u64)w;
net/ceph/crush/mapper.c
853
struct crush_work *w = v;
net/ceph/crush/mapper.c
865
w->work = v;
net/ceph/crush/mapper.c
871
w->work[b] = v;
net/ceph/crush/mapper.c
877
w->work[b]->perm_x = 0;
net/ceph/crush/mapper.c
878
w->work[b]->perm_n = 0;
net/ceph/crush/mapper.c
879
w->work[b]->perm = v;
net/ceph/crush/mapper.c
882
BUG_ON(v - (void *)w != map->working_size);
net/ceph/crush/mapper.c
907
int *w = a;
net/ceph/crush/mapper.c
952
w[0] = curstep->arg1;
net/ceph/osd_client.c
2986
static void do_watch_notify(struct work_struct *w)
net/ceph/osd_client.c
2988
struct linger_work *lwork = container_of(w, struct linger_work, work);
net/ceph/osd_client.c
3009
static void do_watch_error(struct work_struct *w)
net/ceph/osd_client.c
3011
struct linger_work *lwork = container_of(w, struct linger_work, work);
net/ceph/osdmap.c
1866
u32 w;
net/ceph/osdmap.c
1870
w = ceph_decode_32(p);
net/ceph/osdmap.c
1874
osdmap_info(map, "osd%d weight 0x%x %s\n", osd, w,
net/ceph/osdmap.c
1875
w == CEPH_OSD_IN ? "(in)" :
net/ceph/osdmap.c
1876
(w == CEPH_OSD_OUT ? "(out)" : ""));
net/ceph/osdmap.c
1877
map->osd_weight[osd] = w;
net/ceph/osdmap.c
1883
if (w) {
net/ceph/osdmap.c
329
struct crush_weight_set *w = &arg->weight_set[i];
net/ceph/osdmap.c
331
w->weights = decode_array_32_alloc(p, end, &w->size);
net/ceph/osdmap.c
332
if (IS_ERR(w->weights)) {
net/ceph/osdmap.c
333
ret = PTR_ERR(w->weights);
net/ceph/osdmap.c
334
w->weights = NULL;
net/core/dev.c
6533
struct work_struct w[];
net/core/dev.c
6538
return kmalloc_flex(struct flush_backlogs, w, nr_cpu_ids);
net/core/dev.c
6559
INIT_WORK(&ptr->w[cpu], flush_backlog);
net/core/dev.c
6560
queue_work_on(cpu, system_highpri_wq, &ptr->w[cpu]);
net/core/dev.c
6570
flush_work(&ptr->w[cpu]);
net/core/utils.c
128
int w = 0;
net/core/utils.c
142
if (w == 0)
net/core/utils.c
144
*d++ = w & 0xff;
net/core/utils.c
145
w = 0;
net/core/utils.c
154
w = (w * 10) + c;
net/core/utils.c
155
if ((w & 0xffff) > 255) {
net/core/utils.c
195
int w = 0;
net/core/utils.c
213
*d++ = (w >> 8) & 0xff;
net/core/utils.c
214
*d++ = w & 0xff;
net/core/utils.c
216
w = 0;
net/core/utils.c
258
w = (w << 4) | (0xff & c);
net/core/utils.c
260
if (!(w & 0xf000)) {
net/dsa/user.c
1197
static void dsa_user_get_wol(struct net_device *dev, struct ethtool_wolinfo *w)
net/dsa/user.c
1202
phylink_ethtool_get_wol(dp->pl, w);
net/dsa/user.c
1205
ds->ops->get_wol(ds, dp->index, w);
net/dsa/user.c
1208
static int dsa_user_set_wol(struct net_device *dev, struct ethtool_wolinfo *w)
net/dsa/user.c
1214
phylink_ethtool_set_wol(dp->pl, w);
net/dsa/user.c
1217
ret = ds->ops->set_wol(ds, dp->index, w);
net/ipv4/fib_semantics.c
828
int w;
net/ipv4/fib_semantics.c
845
w = 0;
net/ipv4/fib_semantics.c
855
w += nexthop_nh->fib_nh_weight;
net/ipv4/fib_semantics.c
856
upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31,
net/ipv4/nexthop.c
1921
u32 w = 0;
net/ipv4/nexthop.c
1934
w += nhge->weight;
net/ipv4/nexthop.c
1935
btw = ((u64)res_table->num_nh_buckets) * w;
net/ipv4/nexthop.c
2003
u32 w = 0;
net/ipv4/nexthop.c
2013
w += nhge->weight;
net/ipv4/nexthop.c
2014
upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31, total) - 1;
net/ipv4/tcp_bbr.c
364
u64 w;
net/ipv4/tcp_bbr.c
375
w = (u64)bw * bbr->min_rtt_us;
net/ipv4/tcp_bbr.c
380
bdp = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT;
net/ipv4/tcp_cong.c
470
__bpf_kfunc void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked)
net/ipv4/tcp_cong.c
473
if (tp->snd_cwnd_cnt >= w) {
net/ipv4/tcp_cong.c
479
if (tp->snd_cwnd_cnt >= w) {
net/ipv4/tcp_cong.c
480
u32 delta = tp->snd_cwnd_cnt / w;
net/ipv4/tcp_cong.c
482
tp->snd_cwnd_cnt -= delta * w;
net/ipv4/tcp_westwood.c
106
struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
109
w->rtt = usecs_to_jiffies(sample->rtt_us);
net/ipv4/tcp_westwood.c
119
struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
120
s32 delta = tcp_jiffies32 - w->rtt_win_sx;
net/ipv4/tcp_westwood.c
126
if (w->first_ack) {
net/ipv4/tcp_westwood.c
127
w->snd_una = tcp_sk(sk)->snd_una;
net/ipv4/tcp_westwood.c
128
w->first_ack = 0;
net/ipv4/tcp_westwood.c
140
if (w->rtt && delta > max_t(u32, w->rtt, TCP_WESTWOOD_RTT_MIN)) {
net/ipv4/tcp_westwood.c
141
westwood_filter(w, delta);
net/ipv4/tcp_westwood.c
143
w->bk = 0;
net/ipv4/tcp_westwood.c
144
w->rtt_win_sx = tcp_jiffies32;
net/ipv4/tcp_westwood.c
148
static inline void update_rtt_min(struct westwood *w)
net/ipv4/tcp_westwood.c
150
if (w->reset_rtt_min) {
net/ipv4/tcp_westwood.c
151
w->rtt_min = w->rtt;
net/ipv4/tcp_westwood.c
152
w->reset_rtt_min = 0;
net/ipv4/tcp_westwood.c
154
w->rtt_min = min(w->rtt, w->rtt_min);
net/ipv4/tcp_westwood.c
166
struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
170
w->bk += tp->snd_una - w->snd_una;
net/ipv4/tcp_westwood.c
171
w->snd_una = tp->snd_una;
net/ipv4/tcp_westwood.c
172
update_rtt_min(w);
net/ipv4/tcp_westwood.c
183
struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
185
w->cumul_ack = tp->snd_una - w->snd_una;
net/ipv4/tcp_westwood.c
190
if (!w->cumul_ack) {
net/ipv4/tcp_westwood.c
191
w->accounted += tp->mss_cache;
net/ipv4/tcp_westwood.c
192
w->cumul_ack = tp->mss_cache;
net/ipv4/tcp_westwood.c
195
if (w->cumul_ack > tp->mss_cache) {
net/ipv4/tcp_westwood.c
197
if (w->accounted >= w->cumul_ack) {
net/ipv4/tcp_westwood.c
198
w->accounted -= w->cumul_ack;
net/ipv4/tcp_westwood.c
199
w->cumul_ack = tp->mss_cache;
net/ipv4/tcp_westwood.c
201
w->cumul_ack -= w->accounted;
net/ipv4/tcp_westwood.c
202
w->accounted = 0;
net/ipv4/tcp_westwood.c
206
w->snd_una = tp->snd_una;
net/ipv4/tcp_westwood.c
208
return w->cumul_ack;
net/ipv4/tcp_westwood.c
220
const struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
222
return max_t(u32, (w->bw_est * w->rtt_min) / tp->mss_cache, 2);
net/ipv4/tcp_westwood.c
228
struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
231
w->bk += westwood_acked_count(sk);
net/ipv4/tcp_westwood.c
233
update_rtt_min(w);
net/ipv4/tcp_westwood.c
243
struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
253
w->reset_rtt_min = 1;
net/ipv4/tcp_westwood.c
63
struct westwood *w = inet_csk_ca(sk);
net/ipv4/tcp_westwood.c
65
w->bk = 0;
net/ipv4/tcp_westwood.c
66
w->bw_ns_est = 0;
net/ipv4/tcp_westwood.c
67
w->bw_est = 0;
net/ipv4/tcp_westwood.c
68
w->accounted = 0;
net/ipv4/tcp_westwood.c
69
w->cumul_ack = 0;
net/ipv4/tcp_westwood.c
70
w->reset_rtt_min = 1;
net/ipv4/tcp_westwood.c
71
w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT;
net/ipv4/tcp_westwood.c
72
w->rtt_win_sx = tcp_jiffies32;
net/ipv4/tcp_westwood.c
73
w->snd_una = tcp_sk(sk)->snd_una;
net/ipv4/tcp_westwood.c
74
w->first_ack = 1;
net/ipv4/tcp_westwood.c
86
static void westwood_filter(struct westwood *w, u32 delta)
net/ipv4/tcp_westwood.c
89
if (w->bw_ns_est == 0 && w->bw_est == 0) {
net/ipv4/tcp_westwood.c
90
w->bw_ns_est = w->bk / delta;
net/ipv4/tcp_westwood.c
91
w->bw_est = w->bw_ns_est;
net/ipv4/tcp_westwood.c
93
w->bw_ns_est = westwood_do_filter(w->bw_ns_est, w->bk / delta);
net/ipv4/tcp_westwood.c
94
w->bw_est = westwood_do_filter(w->bw_est, w->bw_ns_est);
net/ipv6/addrconf.c
169
static void addrconf_dad_work(struct work_struct *w);
net/ipv6/addrconf.c
4180
static void addrconf_dad_work(struct work_struct *w)
net/ipv6/addrconf.c
4182
struct inet6_ifaddr *ifp = container_of(to_delayed_work(w),
net/ipv6/addrconf.c
4733
static void addrconf_verify_work(struct work_struct *w)
net/ipv6/addrconf.c
4735
struct net *net = container_of(to_delayed_work(w), struct net,
net/ipv6/ip6_fib.c
1854
struct fib6_walker *w;
net/ipv6/ip6_fib.c
1940
FOR_WALKERS(net, w) {
net/ipv6/ip6_fib.c
1942
if (w->node == fn) {
net/ipv6/ip6_fib.c
1944
w, w->state, nstate);
net/ipv6/ip6_fib.c
1945
w->node = pn;
net/ipv6/ip6_fib.c
1946
w->state = nstate;
net/ipv6/ip6_fib.c
1949
if (w->node == fn) {
net/ipv6/ip6_fib.c
1950
w->node = child;
net/ipv6/ip6_fib.c
1953
w, w->state);
net/ipv6/ip6_fib.c
1954
w->state = w->state >= FWS_R ? FWS_U : FWS_INIT;
net/ipv6/ip6_fib.c
1957
w, w->state);
net/ipv6/ip6_fib.c
1958
w->state = w->state >= FWS_C ? FWS_U : FWS_INIT;
net/ipv6/ip6_fib.c
1979
struct fib6_walker *w;
net/ipv6/ip6_fib.c
2032
FOR_WALKERS(net, w) {
net/ipv6/ip6_fib.c
2033
if (w->state == FWS_C && w->leaf == rt) {
net/ipv6/ip6_fib.c
2034
pr_debug("walker %p adjusted by delroute\n", w);
net/ipv6/ip6_fib.c
2035
w->leaf = rcu_dereference_protected(rt->fib6_next,
net/ipv6/ip6_fib.c
2037
if (!w->leaf)
net/ipv6/ip6_fib.c
2038
w->state = FWS_U;
net/ipv6/ip6_fib.c
2134
static int fib6_walk_continue(struct fib6_walker *w)
net/ipv6/ip6_fib.c
2139
WARN_ON_ONCE(!(w->root->fn_flags & RTN_TL_ROOT));
net/ipv6/ip6_fib.c
2142
fn = w->node;
net/ipv6/ip6_fib.c
2146
switch (w->state) {
net/ipv6/ip6_fib.c
2150
w->node = FIB6_SUBTREE(fn);
net/ipv6/ip6_fib.c
2153
w->state = FWS_L;
net/ipv6/ip6_fib.c
2159
w->node = left;
net/ipv6/ip6_fib.c
2160
w->state = FWS_INIT;
net/ipv6/ip6_fib.c
2163
w->state = FWS_R;
net/ipv6/ip6_fib.c
2168
w->node = right;
net/ipv6/ip6_fib.c
2169
w->state = FWS_INIT;
net/ipv6/ip6_fib.c
2172
w->state = FWS_C;
net/ipv6/ip6_fib.c
2173
w->leaf = rcu_dereference_protected(fn->leaf, 1);
net/ipv6/ip6_fib.c
2176
if (w->leaf && fn->fn_flags & RTN_RTINFO) {
net/ipv6/ip6_fib.c
2179
if (w->skip) {
net/ipv6/ip6_fib.c
2180
w->skip--;
net/ipv6/ip6_fib.c
2184
err = w->func(w);
net/ipv6/ip6_fib.c
2188
w->count++;
net/ipv6/ip6_fib.c
2192
w->state = FWS_U;
net/ipv6/ip6_fib.c
2195
if (fn == w->root)
net/ipv6/ip6_fib.c
2200
w->node = pn;
net/ipv6/ip6_fib.c
2204
w->state = FWS_L;
net/ipv6/ip6_fib.c
2209
w->state = FWS_R;
net/ipv6/ip6_fib.c
2213
w->state = FWS_C;
net/ipv6/ip6_fib.c
2214
w->leaf = rcu_dereference_protected(w->node->leaf, 1);
net/ipv6/ip6_fib.c
2224
static int fib6_walk(struct net *net, struct fib6_walker *w)
net/ipv6/ip6_fib.c
2228
w->state = FWS_INIT;
net/ipv6/ip6_fib.c
2229
w->node = w->root;
net/ipv6/ip6_fib.c
2231
fib6_walker_link(net, w);
net/ipv6/ip6_fib.c
2232
res = fib6_walk_continue(w);
net/ipv6/ip6_fib.c
2234
fib6_walker_unlink(net, w);
net/ipv6/ip6_fib.c
2238
static int fib6_clean_node(struct fib6_walker *w)
net/ipv6/ip6_fib.c
2242
struct fib6_cleaner *c = container_of(w, struct fib6_cleaner, w);
net/ipv6/ip6_fib.c
2249
READ_ONCE(w->node->fn_sernum) != c->sernum)
net/ipv6/ip6_fib.c
2250
WRITE_ONCE(w->node->fn_sernum, c->sernum);
net/ipv6/ip6_fib.c
2254
w->leaf = NULL;
net/ipv6/ip6_fib.c
2258
for_each_fib6_walker_rt(w) {
net/ipv6/ip6_fib.c
2261
w->leaf = rt;
net/ipv6/ip6_fib.c
2282
w->leaf = rt;
net/ipv6/ip6_fib.c
2301
c.w.root = root;
net/ipv6/ip6_fib.c
2302
c.w.func = fib6_clean_node;
net/ipv6/ip6_fib.c
2303
c.w.count = 0;
net/ipv6/ip6_fib.c
2304
c.w.skip = 0;
net/ipv6/ip6_fib.c
2305
c.w.skip_in_node = 0;
net/ipv6/ip6_fib.c
2312
fib6_walk(net, &c.w);
net/ipv6/ip6_fib.c
2637
iter->w.leaf = NULL;
net/ipv6/ip6_fib.c
2641
static int ipv6_route_yield(struct fib6_walker *w)
net/ipv6/ip6_fib.c
2643
struct ipv6_route_iter *iter = w->args;
net/ipv6/ip6_fib.c
2649
iter->w.leaf = rcu_dereference_protected(
net/ipv6/ip6_fib.c
2650
iter->w.leaf->fib6_next,
net/ipv6/ip6_fib.c
2653
if (!iter->skip && iter->w.leaf)
net/ipv6/ip6_fib.c
2655
} while (iter->w.leaf);
net/ipv6/ip6_fib.c
2663
memset(&iter->w, 0, sizeof(iter->w));
net/ipv6/ip6_fib.c
2664
iter->w.func = ipv6_route_yield;
net/ipv6/ip6_fib.c
2665
iter->w.root = &iter->tbl->tb6_root;
net/ipv6/ip6_fib.c
2666
iter->w.state = FWS_INIT;
net/ipv6/ip6_fib.c
2667
iter->w.node = iter->w.root;
net/ipv6/ip6_fib.c
2668
iter->w.args = iter;
net/ipv6/ip6_fib.c
2669
iter->sernum = READ_ONCE(iter->w.root->fn_sernum);
net/ipv6/ip6_fib.c
2670
INIT_LIST_HEAD(&iter->w.lh);
net/ipv6/ip6_fib.c
2671
fib6_walker_link(net, &iter->w);
net/ipv6/ip6_fib.c
2697
int sernum = READ_ONCE(iter->w.root->fn_sernum);
net/ipv6/ip6_fib.c
2701
iter->w.state = FWS_INIT;
net/ipv6/ip6_fib.c
2702
iter->w.node = iter->w.root;
net/ipv6/ip6_fib.c
2703
WARN_ON(iter->w.skip);
net/ipv6/ip6_fib.c
2704
iter->w.skip = iter->w.count;
net/ipv6/ip6_fib.c
2726
r = fib6_walk_continue(&iter->w);
net/ipv6/ip6_fib.c
2729
return iter->w.leaf;
net/ipv6/ip6_fib.c
2731
fib6_walker_unlink(net, &iter->w);
net/ipv6/ip6_fib.c
2734
fib6_walker_unlink(net, &iter->w);
net/ipv6/ip6_fib.c
2766
struct fib6_walker *w = &iter->w;
net/ipv6/ip6_fib.c
2767
return w->node && !(w->state == FWS_U && w->node == w->root);
net/ipv6/ip6_fib.c
2777
fib6_walker_unlink(net, &iter->w);
net/ipv6/ip6_fib.c
2807
iter->w.leaf = NULL;
net/ipv6/ip6_fib.c
43
struct fib6_walker w;
net/ipv6/ip6_fib.c
467
static int fib6_node_dump(struct fib6_walker *w)
net/ipv6/ip6_fib.c
471
err = fib6_rt_dump(w->leaf, w->args);
net/ipv6/ip6_fib.c
472
w->leaf = NULL;
net/ipv6/ip6_fib.c
477
struct fib6_walker *w)
net/ipv6/ip6_fib.c
481
w->root = &tb->tb6_root;
net/ipv6/ip6_fib.c
483
err = fib6_walk(net, w);
net/ipv6/ip6_fib.c
493
struct fib6_walker *w;
net/ipv6/ip6_fib.c
497
w = kzalloc_obj(*w, GFP_ATOMIC);
net/ipv6/ip6_fib.c
498
if (!w)
net/ipv6/ip6_fib.c
501
w->func = fib6_node_dump;
net/ipv6/ip6_fib.c
505
w->args = &arg;
net/ipv6/ip6_fib.c
512
err = fib6_table_dump(net, tb, w);
net/ipv6/ip6_fib.c
519
kfree(w);
net/ipv6/ip6_fib.c
525
static int fib6_dump_node(struct fib6_walker *w)
net/ipv6/ip6_fib.c
530
for_each_fib6_walker_rt(w) {
net/ipv6/ip6_fib.c
531
res = rt6_dump_route(rt, w->args, w->skip_in_node);
net/ipv6/ip6_fib.c
534
w->leaf = rt;
net/ipv6/ip6_fib.c
539
w->skip_in_node += res;
net/ipv6/ip6_fib.c
543
w->skip_in_node = 0;
net/ipv6/ip6_fib.c
555
w->leaf = NULL;
net/ipv6/ip6_fib.c
562
struct fib6_walker *w = (void *)cb->args[2];
net/ipv6/ip6_fib.c
564
if (w) {
net/ipv6/ip6_fib.c
567
fib6_walker_unlink(net, w);
net/ipv6/ip6_fib.c
570
kfree(w);
net/ipv6/ip6_fib.c
586
struct fib6_walker *w;
net/ipv6/ip6_fib.c
589
w = (void *)cb->args[2];
net/ipv6/ip6_fib.c
590
w->root = &table->tb6_root;
net/ipv6/ip6_fib.c
593
w->count = 0;
net/ipv6/ip6_fib.c
594
w->skip = 0;
net/ipv6/ip6_fib.c
595
w->skip_in_node = 0;
net/ipv6/ip6_fib.c
598
res = fib6_walk(net, w);
net/ipv6/ip6_fib.c
602
cb->args[5] = READ_ONCE(w->root->fn_sernum);
net/ipv6/ip6_fib.c
605
int sernum = READ_ONCE(w->root->fn_sernum);
net/ipv6/ip6_fib.c
609
w->state = FWS_INIT;
net/ipv6/ip6_fib.c
610
w->node = w->root;
net/ipv6/ip6_fib.c
611
w->skip = w->count;
net/ipv6/ip6_fib.c
612
w->skip_in_node = 0;
net/ipv6/ip6_fib.c
614
w->skip = 0;
net/ipv6/ip6_fib.c
617
res = fib6_walk_continue(w);
net/ipv6/ip6_fib.c
620
fib6_walker_unlink(net, w);
net/ipv6/ip6_fib.c
63
static int fib6_walk(struct net *net, struct fib6_walker *w);
net/ipv6/ip6_fib.c
639
struct fib6_walker *w;
net/ipv6/ip6_fib.c
64
static int fib6_walk_continue(struct fib6_walker *w);
net/ipv6/ip6_fib.c
656
w = (void *)cb->args[2];
net/ipv6/ip6_fib.c
657
if (!w) {
net/ipv6/ip6_fib.c
662
w = kzalloc_obj(*w, GFP_ATOMIC);
net/ipv6/ip6_fib.c
663
if (!w) {
net/ipv6/ip6_fib.c
667
w->func = fib6_dump_node;
net/ipv6/ip6_fib.c
668
cb->args[2] = (long)w;
net/ipv6/ip6_fib.c
680
w->args = &arg;
net/ipv6/ip6_fib.c
75
#define FOR_WALKERS(net, w) \
net/ipv6/ip6_fib.c
76
list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh)
net/ipv6/ip6_fib.c
78
static void fib6_walker_link(struct net *net, struct fib6_walker *w)
net/ipv6/ip6_fib.c
81
list_add(&w->lh, &net->ipv6.fib6_walkers);
net/ipv6/ip6_fib.c
85
static void fib6_walker_unlink(struct net *net, struct fib6_walker *w)
net/ipv6/ip6_fib.c
88
list_del(&w->lh);
net/ipv6/route.c
6000
struct fib6_nh_exception_dump_walker *w = arg;
net/ipv6/route.c
6001
struct rt6_rtnl_dump_arg *dump = w->dump;
net/ipv6/route.c
6012
if (w->skip) {
net/ipv6/route.c
6013
w->skip--;
net/ipv6/route.c
6029
w->count++;
net/ipv6/route.c
6033
err = rt6_fill_node(dump->net, dump->skb, w->rt,
net/ipv6/route.c
6037
dump->cb->nlh->nlmsg_seq, w->flags);
net/ipv6/route.c
6041
w->count++;
net/ipv6/route.c
6093
struct fib6_nh_exception_dump_walker w = { .dump = arg,
net/ipv6/route.c
6104
&w);
net/ipv6/route.c
6106
err = rt6_nh_dump_exceptions(rt->fib6_nh, &w);
net/ipv6/route.c
6111
return count + w.count;
net/ipv6/route.c
638
static void rt6_probe_deferred(struct work_struct *w)
net/ipv6/route.c
642
container_of(w, struct __rt6_probe_work, work);
net/kcm/kcmsock.c
301
static void kcm_done_work(struct work_struct *w)
net/kcm/kcmsock.c
303
kcm_done(container_of(w, struct kcm_sock, done_work));
net/kcm/kcmsock.c
712
static void kcm_tx_work(struct work_struct *w)
net/kcm/kcmsock.c
714
struct kcm_sock *kcm = container_of(w, struct kcm_sock, tx_work);
net/netfilter/ipvs/ip_vs_ovf.c
28
int hw = 0, w;
net/netfilter/ipvs/ip_vs_ovf.c
35
w = atomic_read(&dest->weight);
net/netfilter/ipvs/ip_vs_ovf.c
37
atomic_read(&dest->activeconns) > w ||
net/netfilter/ipvs/ip_vs_ovf.c
38
w == 0)
net/netfilter/ipvs/ip_vs_ovf.c
40
if (!h || w > hw) {
net/netfilter/ipvs/ip_vs_ovf.c
42
hw = w;
net/netfilter/nf_nat_masquerade.c
106
struct masq_dev_work *w;
net/netfilter/nf_nat_masquerade.c
118
w = kzalloc_obj(*w, gfp_flags);
net/netfilter/nf_nat_masquerade.c
119
if (w) {
net/netfilter/nf_nat_masquerade.c
123
INIT_WORK(&w->work, iterate_cleanup_work);
net/netfilter/nf_nat_masquerade.c
124
w->ifindex = ifindex;
net/netfilter/nf_nat_masquerade.c
125
w->net = net;
net/netfilter/nf_nat_masquerade.c
126
netns_tracker_alloc(net, &w->ns_tracker, gfp_flags);
net/netfilter/nf_nat_masquerade.c
127
w->iter = iter;
net/netfilter/nf_nat_masquerade.c
129
w->addr = *addr;
net/netfilter/nf_nat_masquerade.c
130
schedule_work(&w->work);
net/netfilter/nf_nat_masquerade.c
142
const struct masq_dev_work *w = arg;
net/netfilter/nf_nat_masquerade.c
146
return nat->masq_index == w->ifindex;
net/netfilter/nf_nat_masquerade.c
172
struct masq_dev_work *w = ptr;
net/netfilter/nf_nat_masquerade.c
179
return nf_inet_addr_cmp(&w->addr, &tuple->dst.u3);
net/netfilter/nf_nat_masquerade.c
81
struct masq_dev_work *w;
net/netfilter/nf_nat_masquerade.c
83
w = container_of(work, struct masq_dev_work, work);
net/netfilter/nf_nat_masquerade.c
85
iter_data.net = w->net;
net/netfilter/nf_nat_masquerade.c
86
iter_data.data = (void *)w;
net/netfilter/nf_nat_masquerade.c
87
nf_ct_iterate_cleanup_net(w->iter, &iter_data);
net/netfilter/nf_nat_masquerade.c
89
put_net_track(w->net, &w->ns_tracker);
net/netfilter/nf_nat_masquerade.c
90
kfree(w);
net/netfilter/nf_tables_api.c
10150
static void nf_tables_trans_destroy_work(struct work_struct *w)
net/netfilter/nf_tables_api.c
10152
struct nftables_pernet *nft_net = container_of(w, struct nftables_pernet, destroy_work);
net/netfilter/nf_tables_api.c
150
static void nf_tables_trans_destroy_work(struct work_struct *w);
net/netfilter/xt_time.c
106
unsigned int year, i, w = r->dse;
net/netfilter/xt_time.c
116
for (i = 0, year = DSE_FIRST; days_since_epoch[i] > w;
net/netfilter/xt_time.c
120
w -= days_since_epoch[i];
net/netfilter/xt_time.c
140
i > 0 && days_since_leapyear[i] > w; --i)
net/netfilter/xt_time.c
142
r->monthday = w - days_since_leapyear[i] + 1;
net/netfilter/xt_time.c
145
i > 0 && days_since_year[i] > w; --i)
net/netfilter/xt_time.c
147
r->monthday = w - days_since_year[i] + 1;
net/netfilter/xt_time.c
78
unsigned int v, w;
net/netfilter/xt_time.c
83
w = v / 60;
net/netfilter/xt_time.c
84
r->minute = w % 60;
net/netfilter/xt_time.c
85
r->hour = w / 60;
net/nfc/hci/llc_shdlc.c
240
msecs_to_jiffies(SHDLC_T1_VALUE_MS(shdlc->w)));
net/nfc/hci/llc_shdlc.c
391
u8 w = SHDLC_MAX_WINDOW;
net/nfc/hci/llc_shdlc.c
40
u8 w; /* window size */
net/nfc/hci/llc_shdlc.c
407
w = skb->data[0];
net/nfc/hci/llc_shdlc.c
413
if ((w <= SHDLC_MAX_WINDOW) &&
net/nfc/hci/llc_shdlc.c
415
shdlc->w = w;
net/nfc/hci/llc_shdlc.c
522
shdlc->w - llc_shdlc_w_used(shdlc->ns, shdlc->dnr),
net/nfc/hci/llc_shdlc.c
525
while (shdlc->send_q.qlen && shdlc->ack_pending_q.qlen < shdlc->w &&
net/nfc/hci/llc_shdlc.c
742
shdlc->w = SHDLC_MAX_WINDOW;
net/nfc/hci/llc_shdlc.c
98
#define SHDLC_T1_VALUE_MS(w) ((5 * w) / 4)
net/nfc/netlink.c
1830
struct work_struct w;
net/nfc/netlink.c
1836
struct urelease_work *w = container_of(work, struct urelease_work, w);
net/nfc/netlink.c
1840
pr_debug("portid %d\n", w->portid);
net/nfc/netlink.c
1850
if (dev->genl_data.poll_req_portid == w->portid) {
net/nfc/netlink.c
1864
kfree(w);
net/nfc/netlink.c
1871
struct urelease_work *w;
net/nfc/netlink.c
1878
w = kmalloc_obj(*w, GFP_ATOMIC);
net/nfc/netlink.c
1879
if (w) {
net/nfc/netlink.c
1880
INIT_WORK(&w->w, nfc_urelease_event_work);
net/nfc/netlink.c
1881
w->portid = n->portid;
net/nfc/netlink.c
1882
schedule_work(&w->w);
net/sched/cls_api.c
2757
struct tcf_walker w;
net/sched/cls_api.c
2814
arg.w.fn = tcf_node_dump;
net/sched/cls_api.c
2820
arg.w.stop = 0;
net/sched/cls_api.c
2821
arg.w.skip = cb->args[1] - 1;
net/sched/cls_api.c
2822
arg.w.count = 0;
net/sched/cls_api.c
2823
arg.w.cookie = cb->args[2];
net/sched/cls_api.c
2825
tp->ops->walk(tp, &arg.w, true);
net/sched/cls_api.c
2826
cb->args[2] = arg.w.cookie;
net/sched/cls_api.c
2827
cb->args[1] = arg.w.count + 1;
net/sched/cls_api.c
2828
if (arg.w.stop)
net/sched/sch_api.c
1413
struct qdisc_walker w;
net/sched/sch_api.c
1419
struct qdisc_walker *w);
net/sched/sch_api.c
1428
arg.w.stop = arg.w.skip = arg.w.count = 0;
net/sched/sch_api.c
1429
arg.w.fn = check_loop_fn;
net/sched/sch_api.c
1432
q->ops->cl_ops->walk(q, &arg.w);
net/sched/sch_api.c
1433
return arg.w.stop ? -ELOOP : 0;
net/sched/sch_api.c
1437
check_loop_fn(struct Qdisc *q, unsigned long cl, struct qdisc_walker *w)
net/sched/sch_api.c
1441
struct check_loop_arg *arg = (struct check_loop_arg *)w;
net/sched/sch_api.c
2078
struct tcf_walker w;
net/sched/sch_api.c
2099
struct qdisc_walker w;
net/sched/sch_api.c
2106
struct qdisc_walker *w)
net/sched/sch_api.c
2108
struct tc_bind_class_args *a = (struct tc_bind_class_args *)w;
net/sched/sch_api.c
2125
arg.w.fn = tcf_node_bind;
net/sched/sch_api.c
2129
tp->ops->walk(tp, &arg.w, true);
net/sched/sch_api.c
2147
args.w.fn = tc_bind_class_walker;
net/sched/sch_api.c
2148
q->ops->cl_ops->walk(q, &args.w);
net/sched/sch_api.c
2316
struct qdisc_walker w;
net/sched/sch_api.c
2346
arg.w.fn = qdisc_class_dump;
net/sched/sch_api.c
2349
arg.w.stop = 0;
net/sched/sch_api.c
2350
arg.w.skip = cb->args[1];
net/sched/sch_api.c
2351
arg.w.count = 0;
net/sched/sch_api.c
2352
q->ops->cl_ops->walk(q, &arg.w);
net/sched/sch_api.c
2353
cb->args[1] = arg.w.count;
net/sched/sch_api.c
2354
if (arg.w.stop)
net/strparser/strparser.c
419
static void strp_work(struct work_struct *w)
net/strparser/strparser.c
421
do_strp_work(container_of(w, struct strparser, work));
net/strparser/strparser.c
424
static void strp_msg_timeout(struct work_struct *w)
net/strparser/strparser.c
426
struct strparser *strp = container_of(w, struct strparser,
net/tipc/msg.h
210
static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val)
net/tipc/msg.h
212
m->hdr[w] = htonl(val);
net/tipc/msg.h
215
static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask)
net/tipc/msg.h
217
return (msg_word(m, w) >> pos) & mask;
net/tipc/msg.h
220
static inline void msg_set_bits(struct tipc_msg *m, u32 w,
net/tipc/msg.h
225
m->hdr[w] &= ~htonl(mask);
net/tipc/msg.h
226
m->hdr[w] |= htonl(val);
net/tls/tls_strp.c
574
static void tls_strp_work(struct work_struct *w)
net/tls/tls_strp.c
577
container_of(w, struct tls_strparser, work);
net/wireless/debugfs.c
166
struct debugfs_read_work *w = container_of(work, typeof(*w), work);
net/wireless/debugfs.c
168
w->ret = w->handler(w->wiphy, w->file, w->buf, w->bufsize, w->data);
net/wireless/debugfs.c
169
complete(&w->completion);
net/wireless/debugfs.c
175
struct debugfs_read_work *w = data;
net/wireless/debugfs.c
177
wiphy_work_cancel(w->wiphy, &w->work);
net/wireless/debugfs.c
178
complete(&w->completion);
net/wireless/debugfs.c
246
struct debugfs_write_work *w = container_of(work, typeof(*w), work);
net/wireless/debugfs.c
248
w->ret = w->handler(w->wiphy, w->file, w->buf, w->count, w->data);
net/wireless/debugfs.c
249
complete(&w->completion);
net/wireless/debugfs.c
255
struct debugfs_write_work *w = data;
net/wireless/debugfs.c
257
wiphy_work_cancel(w->wiphy, &w->work);
net/wireless/debugfs.c
258
complete(&w->completion);
net/xfrm/xfrm_state.c
1683
struct xfrm_state_walk *w;
net/xfrm/xfrm_state.c
1686
list_for_each_entry(w, &net->xfrm.state_all, all) {
net/xfrm/xfrm_state.c
1687
x = container_of(w, struct xfrm_state, km);
scripts/elf-parse.c
65
elf_parser.w = wle;
scripts/elf-parse.c
72
elf_parser.w = wbe;
scripts/elf-parse.h
247
elf_parser.w(val, (uint32_t *)&rela->e32.r_addend);
scripts/elf-parse.h
54
void (*w)(uint32_t, uint32_t *);
scripts/gcc-plugins/latent_entropy_plugin.c
100
w ^= w << 17;
scripts/gcc-plugins/latent_entropy_plugin.c
101
deterministic_seed = w;
scripts/gcc-plugins/latent_entropy_plugin.c
97
unsigned HOST_WIDE_INT w = deterministic_seed;
scripts/gcc-plugins/latent_entropy_plugin.c
98
w ^= w << 13;
scripts/gcc-plugins/latent_entropy_plugin.c
99
w ^= w >> 7;
scripts/insert-sys-cert.c
120
w = strchr(l, ' ');
scripts/insert-sys-cert.c
121
if (!w)
scripts/insert-sys-cert.c
124
*w = '\0';
scripts/insert-sys-cert.c
97
char *w, *p, *n;
scripts/kconfig/gconf.c
288
gint w;
scripts/kconfig/gconf.c
291
gtk_window_get_default_size(GTK_WINDOW(main_wnd), &w, NULL);
scripts/kconfig/gconf.c
292
gtk_paned_set_position(GTK_PANED(hpaned), w / 2);
scripts/recordmcount.c
415
static uint32_t (*w)(uint32_t);
scripts/recordmcount.c
441
switch (ELF32_R_TYPE(w(rp->r_info))) {
scripts/recordmcount.c
458
switch (ELF64_R_TYPE(w(rp->r_info))) {
scripts/recordmcount.c
469
switch (ELF64_R_TYPE(w(rp->r_info))) {
scripts/recordmcount.c
501
return w(((union mips_r_info){ .r_info = rp->r_info }).r_mips.r_sym);
scripts/recordmcount.c
507
.r_mips = { .r_sym = w(sym), .r_type = type }
scripts/recordmcount.c
521
w = w4nat;
scripts/recordmcount.c
533
w = w4rev;
scripts/recordmcount.c
546
w = w4rev;
scripts/recordmcount.h
131
# define _w w
scripts/recordmcount.h
205
return w(symtab_shndx[index]);
scripts/recordmcount.h
214
return w(shdr0->sh_size);
scripts/recordmcount.h
223
shdr0->sh_size = w(new_shnum);
scripts/recordmcount.h
233
return w(shdr0->sh_link);
scripts/recordmcount.h
307
mcsec.sh_name = w((sizeof(Elf_Rela) == rel_entsize) + strlen(".rel")
scripts/recordmcount.h
309
mcsec.sh_type = w(SHT_PROGBITS);
scripts/recordmcount.h
321
mcsec.sh_name = w(old_shstr_sh_size);
scripts/recordmcount.h
323
? w(SHT_RELA)
scripts/recordmcount.h
324
: w(SHT_REL);
scripts/recordmcount.h
329
mcsec.sh_link = w(symsec_sh_link);
scripts/recordmcount.h
330
mcsec.sh_info = w(old_shnum);
scripts/recordmcount.h
358
char const *symname = &str0[w(symp->st_name)];
scripts/recordmcount.h
380
unsigned const symsec_sh_link = w(relhdr->sh_link);
scripts/recordmcount.h
382
Elf_Shdr const *const strsec = &shdr0[w(symsec->sh_link)];
scripts/recordmcount.h
460
Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)];
scripts/recordmcount.h
559
Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)];
scripts/recordmcount.h
560
char const *const txtname = &shstrtab[w(txthdr->sh_name)];
scripts/recordmcount.h
567
if (w(txthdr->sh_type) != SHT_PROGBITS ||
scripts/recordmcount.h
578
if (w(relhdr->sh_type) != SHT_REL && w(relhdr->sh_type) != SHT_RELA)
scripts/recordmcount.h
666
symsec_sh_link = w(relhdr->sh_link);
scripts/recordmcount.h
667
result = find_secsym_ndx(w(relhdr->sh_info), txtname,
scripts/sign-file.c
69
static int pem_pw_cb(char *buf, int len, int w, void *v)
scripts/sorttable.c
475
elf_parser.w(*(uint32_t *)ptr, addrs);
scripts/sorttable.c
781
elf_parser.w(0, sort_needed_loc);
scripts/sorttable.c
845
elf_parser.w(elf_parser.r(loc) + i, loc);
scripts/sorttable.c
855
elf_parser.w(elf_parser.r(loc) - i, loc);
scripts/sorttable.c
867
elf_parser.w(elf_parser.r(loc) + i, loc);
scripts/sorttable.c
868
elf_parser.w(elf_parser.r(loc + 1) + i + 4, loc + 1);
scripts/sorttable.c
880
elf_parser.w(elf_parser.r(loc) - i, loc);
scripts/sorttable.c
881
elf_parser.w(elf_parser.r(loc + 1) - (i + 4), loc + 1);
security/keys/trusted-keys/trusted_tpm2.c
50
unsigned char bool[3], *w = bool;
security/keys/trusted-keys/trusted_tpm2.c
52
w = asn1_encode_boolean(w, w + sizeof(bool), true);
security/keys/trusted-keys/trusted_tpm2.c
53
if (WARN(IS_ERR(w), "BUG: Boolean failed to encode")) {
security/keys/trusted-keys/trusted_tpm2.c
54
ret = PTR_ERR(w);
security/keys/trusted-keys/trusted_tpm2.c
57
work = asn1_encode_tag(work, end_work, 0, bool, w - bool);
security/selinux/selinuxfs.c
959
char *r, *w;
security/selinux/selinuxfs.c
962
r = w = namebuf;
security/selinux/selinuxfs.c
976
*w++ = c1;
security/tomoyo/audit.c
458
head->r.w[head->r.w_pos++] = head->read_buf;
security/tomoyo/common.c
1024
head->w.domain = domain;
security/tomoyo/common.c
1186
struct tomoyo_domain_info *domain = head->w.domain;
security/tomoyo/common.c
1187
const bool is_delete = head->w.is_delete;
security/tomoyo/common.c
1201
head->w.domain = domain;
security/tomoyo/common.c
1778
const bool is_delete = head->w.is_delete;
security/tomoyo/common.c
1780
.ns = head->w.ns,
security/tomoyo/common.c
1801
(head->w.ns, &head->w.ns->acl_group[group],
security/tomoyo/common.c
208
const char *w = head->r.w[0];
security/tomoyo/common.c
209
size_t len = strlen(w);
security/tomoyo/common.c
216
if (copy_to_user(head->read_user_buf, w, len))
security/tomoyo/common.c
220
w += len;
security/tomoyo/common.c
222
head->r.w[0] = w;
security/tomoyo/common.c
223
if (*w)
security/tomoyo/common.c
235
head->r.w[len] = head->r.w[len + 1];
security/tomoyo/common.c
2385
head->r.w[head->r.w_pos++] = buf;
security/tomoyo/common.c
254
head->r.w[head->r.w_pos++] = string;
security/tomoyo/common.c
2763
head->w.is_delete = !strncmp(line, "delete ", 7);
security/tomoyo/common.c
2764
if (head->w.is_delete)
security/tomoyo/common.c
2774
head->w.ns = tomoyo_assign_namespace(line);
security/tomoyo/common.c
2777
head->w.ns = NULL;
security/tomoyo/common.c
2779
head->w.ns = &tomoyo_kernel_namespace;
security/tomoyo/common.c
2781
if (!head->w.ns)
security/tomoyo/common.c
2816
if (head->w.avail >= head->writebuf_size - 1) {
security/tomoyo/common.c
2824
memmove(cp, cp0, head->w.avail);
security/tomoyo/common.c
2836
cp0[head->w.avail++] = c;
security/tomoyo/common.c
2839
cp0[head->w.avail - 1] = '\0';
security/tomoyo/common.c
2840
head->w.avail = 0;
security/tomoyo/common.c
2843
head->w.ns = &tomoyo_kernel_namespace;
security/tomoyo/common.c
2844
head->w.domain = NULL;
security/tomoyo/common.c
677
if (sscanf(data, "PROFILE_VERSION=%u", &head->w.ns->profile_version)
security/tomoyo/common.c
684
profile = tomoyo_assign_profile(head->w.ns, i);
security/tomoyo/common.c
899
tomoyo_manage_by_non_root = !head->w.is_delete;
security/tomoyo/common.c
902
return tomoyo_update_manager_entry(data, head->w.is_delete);
security/tomoyo/common.h
819
const char *w[TOMOYO_MAX_IO_READ_QUEUE];
security/tomoyo/common.h
828
} w;
security/tomoyo/gc.c
50
head->r.acl == element || &head->w.domain->list == element)
security/tomoyo/gc.c
84
const char *w = head->r.w[i];
security/tomoyo/gc.c
86
if (w < string || w > string + size)
sound/core/oss/pcm_plugin.c
322
unsigned int w;
sound/core/oss/pcm_plugin.c
325
w = snd_pcm_format_width(f);
sound/core/oss/pcm_plugin.c
326
if (w >= width)
sound/core/oss/pcm_plugin.c
327
badness = w - width;
sound/core/oss/pcm_plugin.c
329
badness = width - w + 32;
sound/drivers/vx/vx_mixer.c
41
} w;
sound/drivers/vx/vx_mixer.c
52
} w;
sound/isa/msnd/msnd.h
171
#define HIBYTE(w) ((u8)(((u16)(w) >> 8) & 0xFF))
sound/isa/msnd/msnd.h
172
#define LOBYTE(w) ((u8)(w))
sound/isa/msnd/msnd.h
176
#define PCTODSP_OFFSET(w) (u16)((w)/2)
sound/isa/msnd/msnd.h
177
#define PCTODSP_BASED(w) (u16)(((w)/2) + DSP_BASE_ADDR)
sound/isa/msnd/msnd.h
178
#define DSPTOPC_BASED(w) (((w) - DSP_BASE_ADDR) * 2)
sound/isa/sb/emu8000.c
576
unsigned short w;
sound/isa/sb/emu8000.c
592
w = bass_parm[bass][2] + treble_parm[treble][8];
sound/isa/sb/emu8000.c
593
EMU8000_INIT4_WRITE(emu, 0x15, (unsigned short)(w + 0x0262));
sound/isa/sb/emu8000.c
594
EMU8000_INIT4_WRITE(emu, 0x1d, (unsigned short)(w + 0x8362));
sound/mips/ad1843.c
175
int w;
sound/mips/ad1843.c
177
w = ad1843->read(ad1843->chip, field->reg);
sound/mips/ad1843.c
178
return w >> field->lo_bit & ((1 << field->nbits) - 1);
sound/mips/ad1843.c
189
int w, mask, oldval, newbits;
sound/mips/ad1843.c
191
w = ad1843->read(ad1843->chip, field->reg);
sound/mips/ad1843.c
193
oldval = (w & mask) >> field->lo_bit;
sound/mips/ad1843.c
195
w = (w & ~mask) | newbits;
sound/mips/ad1843.c
196
ad1843->write(ad1843->chip, field->reg, w);
sound/mips/ad1843.c
218
int w = 0, mask, *value, reg = -1;
sound/mips/ad1843.c
226
w = ad1843->read(ad1843->chip, reg);
sound/mips/ad1843.c
230
*value = w >> fp->lo_bit & mask;
sound/mips/ad1843.c
252
int w, m, mask, bits;
sound/mips/ad1843.c
273
w = ad1843->read(ad1843->chip, reg);
sound/mips/ad1843.c
275
w = 0;
sound/mips/ad1843.c
276
w = (w & ~mask) | bits;
sound/mips/ad1843.c
277
ad1843->write(ad1843->chip, reg, w);
sound/pci/asihpi/hpi_internal.h
1018
struct hpi_watchdog_msg w;
sound/pci/asihpi/hpi_internal.h
1079
struct hpi_watchdog_res w;
sound/pci/asihpi/hpi_internal.h
1187
struct hpi_watchdog_msg w;
sound/pci/asihpi/hpi_internal.h
1206
struct hpi_watchdog_res w;
sound/pci/asihpi/hpifunc.c
18
u32 w;
sound/pci/asihpi/hpifunc.c
31
return handle.w;
sound/pci/asihpi/hpifunc.c
40
uhandle.w = h;
sound/pci/asihpi/hpifunc.c
58
uhandle.w = handle;
sound/pci/es1968.c
1996
unsigned short w;
sound/pci/es1968.c
2010
pci_read_config_word(chip->pci, 0x58, &w); /* something magical with gpio and bus arb. */
sound/pci/es1968.c
2012
if (w & 1)
sound/pci/es1968.c
2044
for (w = 0;; w++) {
sound/pci/es1968.c
2059
if (w > 10000) {
sound/pci/es1968.c
2066
for (w = 0; w < 10000; w++) {
sound/pci/es1968.c
2113
u16 w;
sound/pci/es1968.c
2128
pci_read_config_word(pci, ESM_CONFIG_A, &w);
sound/pci/es1968.c
2130
w &= ~DMA_CLEAR; /* Clear DMA bits */
sound/pci/es1968.c
2131
w &= ~(PIC_SNOOP1 | PIC_SNOOP2); /* Clear Pic Snoop Mode Bits */
sound/pci/es1968.c
2132
w &= ~SAFEGUARD; /* Safeguard off */
sound/pci/es1968.c
2133
w |= POST_WRITE; /* Posted write */
sound/pci/es1968.c
2134
w |= PCI_TIMING; /* PCI timing on */
sound/pci/es1968.c
2136
w &= ~SWAP_LR; /* swap left/right
sound/pci/es1968.c
2139
w &= ~SUBTR_DECODE; /* Subtractive decode off */
sound/pci/es1968.c
2141
pci_write_config_word(pci, ESM_CONFIG_A, w);
sound/pci/es1968.c
2145
pci_read_config_word(pci, ESM_CONFIG_B, &w);
sound/pci/es1968.c
2147
w &= ~(1 << 15); /* Turn off internal clock multiplier */
sound/pci/es1968.c
2149
w &= ~(1 << 14); /* External clock */
sound/pci/es1968.c
2151
w &= ~SPDIF_CONFB; /* disable S/PDIF output */
sound/pci/es1968.c
2152
w |= HWV_CONFB; /* HWV on */
sound/pci/es1968.c
2153
w |= DEBOUNCE; /* Debounce off: easier to push the HW buttons */
sound/pci/es1968.c
2154
w &= ~GPIO_CONFB; /* GPIO 4:5 */
sound/pci/es1968.c
2155
w |= CHI_CONFB; /* Disconnect from the CHI. Enabling this made a dell 7500 work. */
sound/pci/es1968.c
2156
w &= ~IDMA_CONFB; /* IDMA off (undocumented) */
sound/pci/es1968.c
2157
w &= ~MIDI_FIX; /* MIDI fix off (undoc) */
sound/pci/es1968.c
2158
w &= ~(1 << 1); /* reserved, always write 0 */
sound/pci/es1968.c
2159
w &= ~IRQ_TO_ISA; /* IRQ to ISA off (undoc) */
sound/pci/es1968.c
2161
pci_write_config_word(pci, ESM_CONFIG_B, w);
sound/pci/es1968.c
2165
pci_read_config_word(pci, ESM_DDMA, &w);
sound/pci/es1968.c
2166
w &= ~(1 << 0);
sound/pci/es1968.c
2167
pci_write_config_word(pci, ESM_DDMA, w);
sound/pci/es1968.c
2173
pci_read_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, &w);
sound/pci/es1968.c
2175
w |= ESS_DISABLE_AUDIO; /* Disable Legacy Audio */
sound/pci/es1968.c
2176
w &= ~ESS_ENABLE_SERIAL_IRQ; /* Disable SIRQ */
sound/pci/es1968.c
2177
w &= ~(0x1f); /* disable mpu irq/io, game port, fm, SB */
sound/pci/es1968.c
2179
pci_write_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, w);
sound/pci/es1968.c
2182
pci_read_config_word(pci, 0x58, &w);
sound/pci/es1968.c
2183
w|=1<<2; /* Enable 978. */
sound/pci/es1968.c
2184
w|=1<<3; /* Turn on 978 hardware volume control. */
sound/pci/es1968.c
2185
w&=~(1<<11); /* Turn on 978 mixer volume control. */
sound/pci/es1968.c
2186
pci_write_config_word(pci, 0x58, w);
sound/pci/es1968.c
2273
w = inw(iobase + WC_CONTROL);
sound/pci/es1968.c
2275
w &= ~0xFA00; /* Seems to be reserved? I don't know */
sound/pci/es1968.c
2276
w |= 0xA000; /* reserved... I don't know */
sound/pci/es1968.c
2277
w &= ~0x0200; /* Channels 56,57,58,59 as Extra Play,Rec Channel enable
sound/pci/es1968.c
2279
w |= 0x0100; /* Wave Cache Operation Enabled */
sound/pci/es1968.c
2280
w |= 0x0080; /* Channels 60/61 as Placback/Record enabled */
sound/pci/es1968.c
2281
w &= ~0x0060; /* Clear Wavtable Size */
sound/pci/es1968.c
2282
w |= 0x0020; /* Wavetable Size : 1MB */
sound/pci/es1968.c
2284
w &= ~0x000C; /* DMA Stuff? I don't understand what the datasheet means */
sound/pci/es1968.c
2286
w &= ~0x0001; /* Test Mode off */
sound/pci/es1968.c
2288
outw(w, iobase + WC_CONTROL);
sound/pci/es1968.c
2292
for (w = 0; w < NR_APU_REGS; w++)
sound/pci/es1968.c
2293
apu_set_register(chip, i, w, 0);
sound/pci/es1968.c
2301
unsigned short w;
sound/pci/es1968.c
2302
w = ESM_HIRQ_DSIE | ESM_HIRQ_HW_VOLUME;
sound/pci/es1968.c
2304
w |= ESM_HIRQ_MPU401;
sound/pci/es1968.c
2305
outb(w, chip->io_port + 0x1A);
sound/pci/es1968.c
2306
outw(w, chip->io_port + ESM_PORT_HOST_IRQ);
sound/pci/intel8x0.c
3083
const struct snd_pci_quirk *w;
sound/pci/intel8x0.c
3085
w = snd_pci_quirk_lookup(pci, spdif_aclink_defaults);
sound/pci/intel8x0.c
3086
if (w) {
sound/pci/intel8x0.c
3087
if (w->value)
sound/pci/intel8x0.c
3090
snd_pci_quirk_name(w));
sound/pci/intel8x0.c
3094
snd_pci_quirk_name(w));
sound/pci/intel8x0.c
3095
return w->value;
sound/pci/maestro3.c
2254
u16 w;
sound/pci/maestro3.c
2257
pci_read_config_word(pcidev, PCI_LEGACY_AUDIO_CTRL, &w);
sound/pci/maestro3.c
2258
w &= ~(SOUND_BLASTER_ENABLE|FM_SYNTHESIS_ENABLE|
sound/pci/maestro3.c
2261
pci_write_config_word(pcidev, PCI_LEGACY_AUDIO_CTRL, w);
sound/pci/riptide/riptide.c
1006
unsigned char w, ch, sig, order;
sound/pci/riptide/riptide.c
1012
w = snd_pcm_format_width(format) == 8;
sound/pci/riptide/riptide.c
1016
if (SEND_SETF(cif, mixer, w, ch, order, sig, id) &&
sound/pci/riptide/riptide.c
1017
SEND_SETF(cif, mixer, w, ch, order, sig, id)) {
sound/pci/via82xx.c
2415
const struct snd_pci_quirk *w;
sound/pci/via82xx.c
2417
w = snd_pci_quirk_lookup(pci, dxs_allowlist);
sound/pci/via82xx.c
2418
if (w) {
sound/pci/via82xx.c
2420
snd_pci_quirk_name(w));
sound/pci/via82xx.c
2421
return w->value;
sound/soc/amd/acp-es8336.c
37
static int sof_es8316_speaker_power_event(struct snd_soc_dapm_widget *w,
sound/soc/amd/acp/acp-mach-common.c
1118
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/amd/acp/acp-mach-common.c
1121
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
159
static int acp3x_es83xx_headphone_power_event(struct snd_soc_dapm_widget *w,
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
162
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
177
static int acp3x_es83xx_speaker_power_event(struct snd_soc_dapm_widget *w,
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
180
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
58
static int acp3x_es83xx_headphone_power_event(struct snd_soc_dapm_widget *w,
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
60
static int acp3x_es83xx_speaker_power_event(struct snd_soc_dapm_widget *w,
sound/soc/amd/vangogh/acp5x-mach.c
61
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/amd/vangogh/acp5x-mach.c
64
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/codecs/88pm860x-codec.c
379
static int pm860x_rsync_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/88pm860x-codec.c
382
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/88pm860x-codec.c
396
static int pm860x_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/88pm860x-codec.c
399
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/88pm860x-codec.c
403
if (!snd_soc_dapm_widget_name_cmp(w, "Left DAC"))
sound/soc/codecs/88pm860x-codec.c
405
if (!snd_soc_dapm_widget_name_cmp(w, "Right DAC"))
sound/soc/codecs/adau1373.c
567
static int adau1373_pll_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/adau1373.c
570
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/adau1373.c
572
unsigned int pll_id = w->name[3] - '1';
sound/soc/codecs/adau1761.c
379
static int adau1761_dejitter_fixup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/adau1761.c
382
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/adau1781.c
173
static int adau1781_dejitter_fixup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/adau1781.c
176
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/adau17x1.c
101
static int adau17x1_adc_fixup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/adau17x1.c
104
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/adau17x1.c
71
static int adau17x1_pll_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/adau17x1.c
74
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/adau7002.c
22
static int adau7002_aif_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/adau7002.c
26
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/ak4375.c
191
static int ak4375_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/ak4375.c
194
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/ak4642.c
174
static int ak4642_lout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/ak4642.c
177
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/ak4671.c
158
static int ak4671_out2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/ak4671.c
161
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/alc5623.c
50
static int amp_mixer_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/alc5623.c
53
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/alc5632.c
113
static int amp_mixer_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/alc5632.c
116
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
100
1 << w->shift, 1 << w->shift);
sound/soc/codecs/arizona.c
1010
switch (w->shift) {
sound/soc/codecs/arizona.c
1041
switch (w->shift) {
sound/soc/codecs/arizona.c
105
1 << w->shift, 0);
sound/soc/codecs/arizona.c
1070
int arizona_hp_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/arizona.c
1073
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
1076
unsigned int mask = 1 << w->shift;
sound/soc/codecs/arizona.c
1088
return arizona_out_ev(w, kcontrol, event);
sound/soc/codecs/arizona.c
1104
return arizona_out_ev(w, kcontrol, event);
sound/soc/codecs/arizona.c
111
return arizona_out_ev(w, kcontrol, event);
sound/soc/codecs/arizona.c
1195
int arizona_dvfs_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/arizona.c
1198
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
1236
int arizona_anc_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/arizona.c
1240
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
1245
val = 1 << w->shift;
sound/soc/codecs/arizona.c
1248
val = 1 << (w->shift + 1);
sound/soc/codecs/arizona.c
1323
int arizona_clk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/arizona.c
1326
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
1332
ret = regmap_read(arizona->regmap, w->reg, &val);
sound/soc/codecs/arizona.c
80
static int arizona_spk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/arizona.c
84
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
904
int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/arizona.c
907
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
911
if (w->shift % 2)
sound/soc/codecs/arizona.c
912
reg = ARIZONA_ADC_DIGITAL_VOLUME_1L + ((w->shift / 2) * 8);
sound/soc/codecs/arizona.c
914
reg = ARIZONA_ADC_DIGITAL_VOLUME_1R + ((w->shift / 2) * 8);
sound/soc/codecs/arizona.c
950
int arizona_out_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/arizona.c
954
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/arizona.c
960
switch (w->shift) {
sound/soc/codecs/arizona.c
987
switch (w->shift) {
sound/soc/codecs/arizona.h
295
int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/arizona.h
297
int arizona_out_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/arizona.h
299
int arizona_hp_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/arizona.h
301
int arizona_anc_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/arizona.h
309
int arizona_clk_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/arizona.h
337
int arizona_dvfs_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw8738.c
13
static int aw8738_drv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw8738.c
16
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/aw87390.c
294
static int aw87390_drv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw87390.c
297
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/aw87390.c
317
static int aw87391_rgds_drv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw87390.c
320
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/aw88081.c
1171
static int aw88081_playback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw88081.c
1174
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/aw88166.c
1632
static int aw88166_playback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw88166.c
1635
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/aw88261.c
974
static int aw88261_playback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw88261.c
977
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/aw88395/aw88395.c
363
static int aw88395_playback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw88395/aw88395.c
366
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/aw88399.c
1972
static int aw88399_playback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/aw88399.c
1975
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cpcap.c
279
static int cpcap_st_workaround(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cpcap.c
282
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cros_ec_codec.c
328
static int i2s_rx_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cros_ec_codec.c
332
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cros_ec_codec.c
605
static void wov_copy_work(struct work_struct *w)
sound/soc/codecs/cros_ec_codec.c
608
container_of(w, struct cros_ec_codec_priv, wov_copy_work.work);
sound/soc/codecs/cs35l33.c
194
static int cs35l33_spkrdrv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l33.c
197
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l33.c
222
static int cs35l33_sdin_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l33.c
225
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l33.c
263
static int cs35l33_sdout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l33.c
266
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l34.c
232
static int cs35l34_sdin_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l34.c
235
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l34.c
337
static int cs35l34_main_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l34.c
340
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l34.c
377
static int cs35l34_mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l34.c
380
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l35.c
187
static int cs35l35_sdin_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l35.c
190
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l35.c
233
static int cs35l35_main_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l35.c
236
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l36.c
500
static int cs35l36_main_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l36.c
504
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l36.c
552
static int cs35l36_boost_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l36.c
556
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l41.c
184
static int cs35l41_dsp_preload_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l41.c
187
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l41.c
196
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs35l41.c
202
ret = wm_adsp_event(w, kcontrol, event);
sound/soc/codecs/cs35l41.c
207
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs35l41.c
213
static int cs35l41_dsp_audio_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l41.c
216
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l41.c
224
return wm_adsp_event(w, kcontrol, event);
sound/soc/codecs/cs35l41.c
508
static int cs35l41_main_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l41.c
511
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l45.c
115
static int cs35l45_dsp_preload_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l45.c
118
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l45.c
127
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs35l45.c
135
return wm_adsp_event(w, kcontrol, event);
sound/soc/codecs/cs35l45.c
141
ret = wm_adsp_event(w, kcontrol, event);
sound/soc/codecs/cs35l45.c
146
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs35l45.c
152
static int cs35l45_dsp_audio_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l45.c
155
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l45.c
88
static int cs35l45_global_en_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l45.c
91
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l56.c
199
static int cs35l56_play_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l56.c
202
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l56.c
340
static int cs35l56_dsp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs35l56.c
343
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs35l56.c
348
return wm_adsp_event(w, kcontrol, event);
sound/soc/codecs/cs35l56.c
40
static int cs35l56_dsp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs40l50-codec.c
115
static int cs40l50_clk_en(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs40l50-codec.c
119
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l42.c
476
static int cs42l42_hp_adc_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l42.c
479
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1263
static int cs42l43_eq_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l43.c
1266
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1460
static int cs42l43_pll_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l43.c
1463
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1526
static int cs42l43_spkr_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l43.c
1529
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1537
static int cs42l43_spkl_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l43.c
1540
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1548
static int cs42l43_hp_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l43.c
1551
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1554
unsigned int mask = 1 << w->shift;
sound/soc/codecs/cs42l43.c
1594
static int cs42l43_mic_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l43.c
1597
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1604
switch (w->shift) {
sound/soc/codecs/cs42l43.c
1632
dev_err(priv->dev, "Invalid microphone shift: %d\n", w->shift);
sound/soc/codecs/cs42l43.c
1658
static int cs42l43_adc_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l43.c
1661
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l43.c
1664
unsigned int mask = 1 << w->shift;
sound/soc/codecs/cs42l43.c
1668
ret = cs42l43_mic_ev(w, kcontrol, event);
sound/soc/codecs/cs42l51.c
168
static int cs42l51_pdn_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l51.c
171
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l51.c
254
static int mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l51.c
257
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l73.c
488
static int cs42l73_spklo_spk_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l73.c
491
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l73.c
504
static int cs42l73_ear_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l73.c
507
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs42l73.c
522
static int cs42l73_hp_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs42l73.c
525
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs43130.c
1183
static int cs43130_dsd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs43130.c
1186
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs43130.c
1240
static int cs43130_pcm_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs43130.c
1243
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs43130.c
1309
static int cs43130_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs43130.c
1312
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs43130.c
1389
static int cs43130_hpin_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs43130.c
1392
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l15.c
67
static int cs47l15_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l15.c
72
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l15.c
88
ret = madera_set_adsp_clk(&cs47l15->core, w->shift, freq);
sound/soc/codecs/cs47l15.c
96
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs47l24.c
59
static int cs47l24_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l24.c
62
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l24.c
75
wm_adsp2_set_dspclk(w, v);
sound/soc/codecs/cs47l24.c
77
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs47l35.c
109
ret = madera_set_adsp_clk(&cs47l35->core, w->shift, freq);
sound/soc/codecs/cs47l35.c
117
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs47l35.c
127
static void cs47l35_hp_post_enable(struct snd_soc_dapm_widget *w)
sound/soc/codecs/cs47l35.c
130
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l35.c
133
switch (w->shift) {
sound/soc/codecs/cs47l35.c
151
static void cs47l35_hp_post_disable(struct snd_soc_dapm_widget *w)
sound/soc/codecs/cs47l35.c
154
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l35.c
156
switch (w->shift) {
sound/soc/codecs/cs47l35.c
175
static int cs47l35_hp_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l35.c
183
return madera_hp_ev(w, kcontrol, event);
sound/soc/codecs/cs47l35.c
185
ret = madera_hp_ev(w, kcontrol, event);
sound/soc/codecs/cs47l35.c
189
cs47l35_hp_post_enable(w);
sound/soc/codecs/cs47l35.c
192
ret = madera_hp_ev(w, kcontrol, event);
sound/soc/codecs/cs47l35.c
193
cs47l35_hp_post_disable(w);
sound/soc/codecs/cs47l35.c
85
static int cs47l35_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l35.c
90
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l85.c
109
static int cs47l85_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l85.c
114
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l85.c
133
ret = madera_set_adsp_clk(&cs47l85->core, w->shift, freq);
sound/soc/codecs/cs47l85.c
141
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs47l85.c
189
static void cs47l85_hp_post_enable(struct snd_soc_dapm_widget *w)
sound/soc/codecs/cs47l85.c
192
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l85.c
195
switch (w->shift) {
sound/soc/codecs/cs47l85.c
213
static void cs47l85_hp_post_disable(struct snd_soc_dapm_widget *w)
sound/soc/codecs/cs47l85.c
216
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l85.c
218
switch (w->shift) {
sound/soc/codecs/cs47l85.c
237
static int cs47l85_hp_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l85.c
245
return madera_hp_ev(w, kcontrol, event);
sound/soc/codecs/cs47l85.c
247
ret = madera_hp_ev(w, kcontrol, event);
sound/soc/codecs/cs47l85.c
251
cs47l85_hp_post_enable(w);
sound/soc/codecs/cs47l85.c
254
ret = madera_hp_ev(w, kcontrol, event);
sound/soc/codecs/cs47l85.c
255
cs47l85_hp_post_disable(w);
sound/soc/codecs/cs47l90.c
109
static int cs47l90_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l90.c
114
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l90.c
130
ret = madera_set_adsp_clk(&cs47l90->core, w->shift, freq);
sound/soc/codecs/cs47l90.c
138
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs47l92.c
138
static int cs47l92_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l92.c
143
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l92.c
159
ret = madera_set_adsp_clk(&cs47l92->core, w->shift, freq);
sound/soc/codecs/cs47l92.c
167
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/cs47l92.c
170
static int cs47l92_outclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs47l92.c
175
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs47l92.c
213
return madera_domain_clk_ev(w, kcontrol, event);
sound/soc/codecs/cs48l32.c
1272
static int cs48l32_dsp_freq_update(struct snd_soc_dapm_widget *w, unsigned int freq_reg,
sound/soc/codecs/cs48l32.c
1275
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs48l32.c
1321
static int cs48l32_dsp_freq_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs48l32.c
1326
return cs48l32_dsp_freq_update(w, CS48L32_SYSTEM_CLOCK2, CS48L32_SYSTEM_CLOCK1);
sound/soc/codecs/cs48l32.c
2379
static int cs48l32_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs48l32.c
2382
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs48l32.c
2390
static int cs48l32_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event)
sound/soc/codecs/cs48l32.c
2392
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs48l32.c
2396
if (w->shift % 2)
sound/soc/codecs/cs48l32.c
2401
reg += (w->shift / 2) * (CS48L32_IN2L_CONTROL2 - CS48L32_IN1L_CONTROL2);
sound/soc/codecs/cs48l32.c
2405
switch (w->shift) {
sound/soc/codecs/cs48l32.c
2426
switch (w->shift) {
sound/soc/codecs/cs48l32.c
2502
static int cs48l32_eq_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs48l32.c
2505
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs48l32.c
2508
unsigned int mode = cs48l32_codec->eq_mode[w->shift];
sound/soc/codecs/cs48l32.c
2510
__be16 *data = &cs48l32_codec->eq_coefficients[w->shift][0];
sound/soc/codecs/cs48l32.c
2514
reg += w->shift * (CS48L32_EQ2_BAND1_COEFF1 - CS48L32_EQ1_BAND1_COEFF1);
sound/soc/codecs/cs48l32.c
2535
w->mask,
sound/soc/codecs/cs48l32.c
2536
mode << w->shift);
sound/soc/codecs/cs48l32.c
2815
static int cs48l32_dsp_mem_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs48l32.c
2818
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs530x.c
269
static int cs530x_adc_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs530x.c
272
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs530x.c
282
(w->shift * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cs530x.c
284
((w->shift + 1) * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cs530x.c
295
(w->shift * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cs530x.c
297
((w->shift + 1) * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cs530x.c
355
static int cs530x_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cs530x.c
358
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/cs530x.c
368
(w->shift * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cs530x.c
370
((w->shift + 1) * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cs530x.c
381
(w->shift * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cs530x.c
383
((w->shift + 1) * 2), CS530X_INOUT_MUTE);
sound/soc/codecs/cx2072x.c
857
static int afg_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/cx2072x.c
860
struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7213.c
898
static int da7213_dai_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7213.c
901
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7218.c
1345
static int da7218_in_filter_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7218.c
1348
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7218.c
1352
switch (w->reg) {
sound/soc/codecs/da7218.c
1394
static int da7218_dai_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7218.c
1397
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7218.c
1477
static int da7218_cp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7218.c
1480
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7218.c
1504
static int da7218_hp_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7218.c
1507
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7218.c
1512
snd_soc_component_update_bits(component, w->reg, DA7218_HP_AMP_OE_MASK,
sound/soc/codecs/da7218.c
1517
snd_soc_component_update_bits(component, w->reg, DA7218_HP_AMP_OE_MASK, 0);
sound/soc/codecs/da7219.c
773
static int da7219_mic_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7219.c
776
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7219.c
797
static int da7219_dai_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7219.c
800
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7219.c
873
static int da7219_settling_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7219.c
888
static int da7219_mixout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7219.c
891
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da7219.c
894
switch (w->reg) {
sound/soc/codecs/da7219.c
926
static int da7219_gain_ramp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da7219.c
929
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da732x.c
601
static int da732x_adc_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da732x.c
604
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da732x.c
608
switch (w->reg) {
sound/soc/codecs/da732x.c
623
snd_soc_component_update_bits(component, w->reg, DA732X_ADC_RST_MASK,
sound/soc/codecs/da732x.c
625
snd_soc_component_update_bits(component, w->reg, DA732X_ADC_PD_MASK,
sound/soc/codecs/da732x.c
629
snd_soc_component_update_bits(component, w->reg, DA732X_ADC_PD_MASK,
sound/soc/codecs/da732x.c
631
snd_soc_component_update_bits(component, w->reg, DA732X_ADC_RST_MASK,
sound/soc/codecs/da732x.c
634
switch (w->reg) {
sound/soc/codecs/da732x.c
655
static int da732x_out_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/da732x.c
658
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/da732x.c
662
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/da732x.c
663
(1 << w->shift) | DA732X_OUT_HIZ_EN,
sound/soc/codecs/da732x.c
664
(1 << w->shift) | DA732X_OUT_HIZ_EN);
sound/soc/codecs/da732x.c
667
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/da732x.c
668
(1 << w->shift) | DA732X_OUT_HIZ_EN,
sound/soc/codecs/da732x.c
669
(1 << w->shift) | DA732X_OUT_HIZ_DIS);
sound/soc/codecs/dmic.c
56
static int dmic_aif_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/dmic.c
58
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/fs210x.c
1057
static int fs210x_playback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/fs210x.c
1060
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/hdac_hdmi.c
684
struct snd_soc_dapm_widget *w, enum snd_soc_dapm_type id,
sound/soc/codecs/hdac_hdmi.c
690
w->id = id;
sound/soc/codecs/hdac_hdmi.c
691
w->name = devm_kstrdup(dev, wname, GFP_KERNEL);
sound/soc/codecs/hdac_hdmi.c
692
if (!w->name)
sound/soc/codecs/hdac_hdmi.c
695
w->sname = stream;
sound/soc/codecs/hdac_hdmi.c
696
w->reg = SND_SOC_NOPM;
sound/soc/codecs/hdac_hdmi.c
697
w->shift = 0;
sound/soc/codecs/hdac_hdmi.c
698
w->kcontrol_news = wc;
sound/soc/codecs/hdac_hdmi.c
699
w->num_kcontrols = numkc;
sound/soc/codecs/hdac_hdmi.c
700
w->priv = priv;
sound/soc/codecs/hdac_hdmi.c
701
w->event = event;
sound/soc/codecs/hdac_hdmi.c
702
w->event_flags = event_flags;
sound/soc/codecs/hdac_hdmi.c
768
static int hdac_hdmi_pin_output_widget_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/hdac_hdmi.c
771
struct hdac_hdmi_port *port = w->priv;
sound/soc/codecs/hdac_hdmi.c
772
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/codecs/hdac_hdmi.c
777
__func__, w->name, event);
sound/soc/codecs/hdac_hdmi.c
814
static int hdac_hdmi_cvt_output_widget_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/hdac_hdmi.c
817
struct hdac_hdmi_cvt *cvt = w->priv;
sound/soc/codecs/hdac_hdmi.c
818
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/codecs/hdac_hdmi.c
824
__func__, w->name, event);
sound/soc/codecs/hdac_hdmi.c
870
static int hdac_hdmi_pin_mux_widget_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/hdac_hdmi.c
873
struct hdac_hdmi_port *port = w->priv;
sound/soc/codecs/hdac_hdmi.c
874
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/codecs/hdac_hdmi.c
879
__func__, w->name, event);
sound/soc/codecs/hdac_hdmi.c
882
kc = w->kcontrols[0];
sound/soc/codecs/hdac_hdmi.c
907
struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_to_widget(kcontrol);
sound/soc/codecs/hdac_hdmi.c
908
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/codecs/hdac_hdmi.c
910
struct hdac_hdmi_port *port = w->priv;
sound/soc/codecs/idt821034.c
619
static int idt821034_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/idt821034.c
622
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/idt821034.c
624
unsigned int id = w->shift;
sound/soc/codecs/jz4725b.c
262
static int jz4725b_out_stage_enable(struct snd_soc_dapm_widget *w,
sound/soc/codecs/jz4725b.c
266
struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/jz4760.c
327
static int hpout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/jz4760.c
330
struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/jz4770.c
345
static int hpout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/jz4770.c
348
struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/jz4770.c
401
static int adc_poweron_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-rx-macro.c
2073
static int rx_macro_mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-rx-macro.c
2076
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-rx-macro.c
2133
static int rx_macro_enable_main_path(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-rx-macro.c
2137
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-rx-macro.c
2141
reg = CDC_RX_RXn_RX_PATH_CTL(rx, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2142
gain_reg = CDC_RX_RXn_RX_VOL_CTL(rx, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2146
rx_macro_enable_interp_clk(component, event, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2147
if (rx_macro_adie_lb(component, w->shift))
sound/soc/codecs/lpass-rx-macro.c
2157
rx_macro_enable_interp_clk(component, event, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2770
static int rx_macro_enable_mix_path(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-rx-macro.c
2773
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-rx-macro.c
2777
gain_reg = CDC_RX_RXn_RX_VOL_MIX_CTL(rx, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2778
mix_reg = CDC_RX_RXn_RX_PATH_MIX_CTL(rx, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2782
rx_macro_enable_interp_clk(component, event, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2792
rx_macro_enable_interp_clk(component, event, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2805
static int rx_macro_enable_rx_path_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-rx-macro.c
2808
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-rx-macro.c
2813
rx_macro_enable_interp_clk(component, event, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2814
snd_soc_component_write_field(component, CDC_RX_RXn_RX_PATH_CFG1(rx, w->shift),
sound/soc/codecs/lpass-rx-macro.c
2816
snd_soc_component_write_field(component, CDC_RX_RXn_RX_PATH_CTL(rx, w->shift),
sound/soc/codecs/lpass-rx-macro.c
2820
snd_soc_component_write_field(component, CDC_RX_RXn_RX_PATH_CFG1(rx, w->shift),
sound/soc/codecs/lpass-rx-macro.c
2822
rx_macro_enable_interp_clk(component, event, w->shift);
sound/soc/codecs/lpass-rx-macro.c
2830
static int rx_macro_set_iir_gain(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-rx-macro.c
2833
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-rx-macro.c
2838
if (strnstr(w->name, "IIR0", sizeof("IIR0"))) {
sound/soc/codecs/lpass-rx-macro.c
3097
static int rx_macro_enable_echo(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-rx-macro.c
3101
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-rx-macro.c
3107
if (!(snd_soc_dapm_widget_name_cmp(w, "RX MIX TX0 MUX")))
sound/soc/codecs/lpass-rx-macro.c
3109
else if (!(snd_soc_dapm_widget_name_cmp(w, "RX MIX TX1 MUX")))
sound/soc/codecs/lpass-rx-macro.c
3114
if (!(snd_soc_dapm_widget_name_cmp(w, "RX MIX TX2 MUX")))
sound/soc/codecs/lpass-tx-macro.c
734
static int tx_macro_mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-tx-macro.c
737
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-tx-macro.c
909
static int tx_macro_enable_dec(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-tx-macro.c
912
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-tx-macro.c
922
decimator = w->shift;
sound/soc/codecs/lpass-va-macro.c
508
static int va_macro_mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-va-macro.c
511
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-va-macro.c
721
static int va_macro_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-va-macro.c
724
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-va-macro.c
725
unsigned int dmic = w->shift;
sound/soc/codecs/lpass-va-macro.c
739
static int va_macro_enable_dec(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-va-macro.c
742
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-va-macro.c
750
decimator = w->shift;
sound/soc/codecs/lpass-wsa-macro.c
1512
static int wsa_macro_mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-wsa-macro.c
1515
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-wsa-macro.c
1522
static int wsa_macro_enable_vi_feedback(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-wsa-macro.c
1526
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-wsa-macro.c
1838
static int wsa_macro_enable_interpolator(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-wsa-macro.c
1842
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-wsa-macro.c
1847
if (w->shift == WSA_MACRO_COMP1) {
sound/soc/codecs/lpass-wsa-macro.c
1850
} else if (w->shift == WSA_MACRO_COMP2) {
sound/soc/codecs/lpass-wsa-macro.c
1861
wsa_macro_config_compander(component, w->shift, event);
sound/soc/codecs/lpass-wsa-macro.c
1862
wsa_macro_config_softclip(component, w->shift, event);
sound/soc/codecs/lpass-wsa-macro.c
1888
wsa_macro_config_compander(component, w->shift, event);
sound/soc/codecs/lpass-wsa-macro.c
1889
wsa_macro_config_softclip(component, w->shift, event);
sound/soc/codecs/lpass-wsa-macro.c
1919
static int wsa_macro_spk_boost_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-wsa-macro.c
1923
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-wsa-macro.c
1927
if (!snd_soc_dapm_widget_name_cmp(w, "WSA_RX INT0 CHAIN")) {
sound/soc/codecs/lpass-wsa-macro.c
1932
} else if (!snd_soc_dapm_widget_name_cmp(w, "WSA_RX INT1 CHAIN")) {
sound/soc/codecs/lpass-wsa-macro.c
1970
static int wsa_macro_enable_echo(struct snd_soc_dapm_widget *w,
sound/soc/codecs/lpass-wsa-macro.c
1974
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/lpass-wsa-macro.c
1980
switch (w->shift) {
sound/soc/codecs/lpass-wsa-macro.c
1991
__func__, w->shift);
sound/soc/codecs/madera.c
167
int madera_clk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.c
170
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
177
ret = regmap_read(madera->regmap, w->reg, &val);
sound/soc/codecs/madera.c
2253
int madera_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/madera.c
2256
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
2260
if (w->shift % 2)
sound/soc/codecs/madera.c
2261
reg = MADERA_ADC_DIGITAL_VOLUME_1L + ((w->shift / 2) * 8);
sound/soc/codecs/madera.c
2263
reg = MADERA_ADC_DIGITAL_VOLUME_1R + ((w->shift / 2) * 8);
sound/soc/codecs/madera.c
2299
int madera_out_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.c
2302
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
2322
switch (w->shift) {
sound/soc/codecs/madera.c
233
int madera_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.c
2338
switch (w->shift) {
sound/soc/codecs/madera.c
2358
switch (w->shift) {
sound/soc/codecs/madera.c
236
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
2374
switch (w->shift) {
sound/soc/codecs/madera.c
2399
int madera_hp_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.c
2402
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
2405
unsigned int mask = 1 << w->shift;
sound/soc/codecs/madera.c
2406
unsigned int out_num = w->shift / 2;
sound/soc/codecs/madera.c
2419
return madera_out_ev(w, kcontrol, event);
sound/soc/codecs/madera.c
2447
return madera_out_ev(w, kcontrol, event);
sound/soc/codecs/madera.c
2451
int madera_anc_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/madera.c
2454
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
2459
val = 1 << w->shift;
sound/soc/codecs/madera.c
2462
val = 1 << (w->shift + 1);
sound/soc/codecs/madera.c
248
return madera_clk_ev(w, kcontrol, event);
sound/soc/codecs/madera.c
271
int madera_spk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.c
274
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
293
1 << w->shift, 1 << w->shift);
sound/soc/codecs/madera.c
297
1 << w->shift, 0);
sound/soc/codecs/madera.c
499
int madera_domain_clk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.c
503
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/madera.c
505
int dom_grp = w->shift;
sound/soc/codecs/madera.h
386
int madera_clk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.h
388
int madera_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.h
390
int madera_spk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.h
392
int madera_in_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.h
394
int madera_out_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.h
396
int madera_hp_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.h
398
int madera_anc_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/madera.h
400
int madera_domain_clk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max9759.c
25
static int pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max9759.c
28
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98088.c
614
static int max98088_mic_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98088.c
617
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98088.c
622
if (w->reg == M98088_REG_35_LVL_MIC1) {
sound/soc/codecs/max98088.c
623
snd_soc_component_update_bits(component, w->reg, M98088_MICPRE_MASK,
sound/soc/codecs/max98088.c
626
snd_soc_component_update_bits(component, w->reg, M98088_MICPRE_MASK,
sound/soc/codecs/max98088.c
631
snd_soc_component_update_bits(component, w->reg, M98088_MICPRE_MASK, 0);
sound/soc/codecs/max98088.c
644
static int max98088_line_pga(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98088.c
647
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98088.c
668
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/max98088.c
669
(1 << w->shift), (1 << w->shift));
sound/soc/codecs/max98088.c
674
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/max98088.c
675
(1 << w->shift), 0);
sound/soc/codecs/max98088.c
685
static int max98088_pga_ina1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98088.c
688
return max98088_line_pga(w, event, LINE_INA, 1);
sound/soc/codecs/max98088.c
691
static int max98088_pga_ina2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98088.c
694
return max98088_line_pga(w, event, LINE_INA, 2);
sound/soc/codecs/max98088.c
697
static int max98088_pga_inb1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98088.c
700
return max98088_line_pga(w, event, LINE_INB, 1);
sound/soc/codecs/max98088.c
703
static int max98088_pga_inb2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98088.c
706
return max98088_line_pga(w, event, LINE_INB, 2);
sound/soc/codecs/max98088.h
200
#define M98088_BYTE1(w) ((w >> 8) & 0xff)
sound/soc/codecs/max98088.h
201
#define M98088_BYTE0(w) (w & 0xff)
sound/soc/codecs/max98090.c
733
static int max98090_micinput_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98090.c
736
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98090.c
739
unsigned int val = snd_soc_component_read(component, w->reg);
sound/soc/codecs/max98090.c
741
if (w->reg == M98090_REG_MIC1_INPUT_LEVEL)
sound/soc/codecs/max98090.c
747
if (w->reg == M98090_REG_MIC1_INPUT_LEVEL) {
sound/soc/codecs/max98090.c
757
if (w->reg == M98090_REG_MIC1_INPUT_LEVEL)
sound/soc/codecs/max98090.c
770
if (w->reg == M98090_REG_MIC1_INPUT_LEVEL)
sound/soc/codecs/max98090.c
771
snd_soc_component_update_bits(component, w->reg, M98090_MIC_PA1EN_MASK,
sound/soc/codecs/max98090.c
774
snd_soc_component_update_bits(component, w->reg, M98090_MIC_PA2EN_MASK,
sound/soc/codecs/max98090.c
780
static int max98090_shdn_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98090.c
783
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98095.c
595
static int max98095_mic_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98095.c
598
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98095.c
603
if (w->reg == M98095_05F_LVL_MIC1) {
sound/soc/codecs/max98095.c
604
snd_soc_component_update_bits(component, w->reg, M98095_MICPRE_MASK,
sound/soc/codecs/max98095.c
607
snd_soc_component_update_bits(component, w->reg, M98095_MICPRE_MASK,
sound/soc/codecs/max98095.c
612
snd_soc_component_update_bits(component, w->reg, M98095_MICPRE_MASK, 0);
sound/soc/codecs/max98095.c
625
static int max98095_line_pga(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98095.c
628
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98095.c
640
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/max98095.c
641
(1 << w->shift), (1 << w->shift));
sound/soc/codecs/max98095.c
646
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/max98095.c
647
(1 << w->shift), 0);
sound/soc/codecs/max98095.c
657
static int max98095_pga_in1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98095.c
660
return max98095_line_pga(w, event, 1);
sound/soc/codecs/max98095.c
663
static int max98095_pga_in2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98095.c
666
return max98095_line_pga(w, event, 2);
sound/soc/codecs/max98095.c
673
static int max98095_lineout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98095.c
676
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98095.c
680
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/max98095.c
681
(1 << (w->shift+2)), (1 << (w->shift+2)));
sound/soc/codecs/max98095.c
684
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/max98095.c
685
(1 << (w->shift+2)), 0);
sound/soc/codecs/max98095.h
301
#define M98095_BYTE1(w) ((w >> 8) & 0xff)
sound/soc/codecs/max98095.h
302
#define M98095_BYTE0(w) (w & 0xff)
sound/soc/codecs/max98357a.c
59
static int max98357a_sdmode_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98357a.c
63
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98373.c
20
static int max98373_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98373.c
23
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98388.c
72
static int max98388_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98388.c
75
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98390.c
472
static int max98390_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98390.c
476
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98396.c
799
static int max98396_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98396.c
803
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98504.c
104
static int max98504_pcm_rx_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98504.c
107
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max98520.c
335
static int max98520_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98520.c
339
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max9867.c
52
static int max9867_adc_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max9867.c
55
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/max9867.c
59
if (!snd_soc_dapm_widget_name_cmp(w, "ADCL"))
sound/soc/codecs/max9867.c
61
else if (!snd_soc_dapm_widget_name_cmp(w, "ADCR"))
sound/soc/codecs/max9867.c
63
else if (!snd_soc_dapm_widget_name_cmp(w, "DACL"))
sound/soc/codecs/max9867.c
65
else if (!snd_soc_dapm_widget_name_cmp(w, "DACR"))
sound/soc/codecs/max98925.c
97
static int max98925_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98927.c
473
static int max98927_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/max98927.c
476
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-analog.c
390
static int pm8916_wcd_analog_enable_micbias_int(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-analog.c
394
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-analog.c
407
static int pm8916_wcd_analog_enable_micbias1(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-analog.c
411
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-analog.c
418
static int pm8916_wcd_analog_enable_micbias2(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-analog.c
422
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-analog.c
529
*w, struct snd_kcontrol
sound/soc/codecs/msm8916-wcd-analog.c
532
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-analog.c
548
return pm8916_wcd_analog_enable_micbias_int(w, kcontrol, event);
sound/soc/codecs/msm8916-wcd-analog.c
551
static int pm8916_wcd_analog_enable_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-analog.c
555
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-analog.c
559
if (w->reg == CDC_A_TX_1_EN)
sound/soc/codecs/msm8916-wcd-analog.c
566
if (w->reg == CDC_A_TX_2_EN)
sound/soc/codecs/msm8916-wcd-analog.c
578
switch (w->reg) {
sound/soc/codecs/msm8916-wcd-analog.c
601
switch (w->reg) {
sound/soc/codecs/msm8916-wcd-analog.c
624
static int pm8916_wcd_analog_enable_spk_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-analog.c
628
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-analog.c
650
snd_soc_component_update_bits(component, w->reg,
sound/soc/codecs/msm8916-wcd-analog.c
671
static int pm8916_wcd_analog_enable_ear_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-analog.c
675
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-digital.c
356
static int msm8x16_wcd_codec_set_iir_gain(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-digital.c
360
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-digital.c
365
if (w->shift == 0)
sound/soc/codecs/msm8916-wcd-digital.c
367
else if (w->shift == 1)
sound/soc/codecs/msm8916-wcd-digital.c
574
struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-digital.c
578
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-digital.c
584
snd_soc_component_write(component, rx_gain_reg[w->shift],
sound/soc/codecs/msm8916-wcd-digital.c
585
snd_soc_component_read(component, rx_gain_reg[w->shift]));
sound/soc/codecs/msm8916-wcd-digital.c
589
1 << w->shift, 1 << w->shift);
sound/soc/codecs/msm8916-wcd-digital.c
591
1 << w->shift, 0x0);
sound/soc/codecs/msm8916-wcd-digital.c
597
static int msm8916_wcd_digital_enable_dec(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-digital.c
601
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-digital.c
602
unsigned int decimator = w->shift + 1;
sound/soc/codecs/msm8916-wcd-digital.c
632
snd_soc_component_write(component, tx_gain_reg[w->shift],
sound/soc/codecs/msm8916-wcd-digital.c
633
snd_soc_component_read(component, tx_gain_reg[w->shift]));
sound/soc/codecs/msm8916-wcd-digital.c
646
snd_soc_component_update_bits(component, dec_reset_reg, 1 << w->shift,
sound/soc/codecs/msm8916-wcd-digital.c
647
1 << w->shift);
sound/soc/codecs/msm8916-wcd-digital.c
648
snd_soc_component_update_bits(component, dec_reset_reg, 1 << w->shift, 0x0);
sound/soc/codecs/msm8916-wcd-digital.c
660
static int msm8916_wcd_digital_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/msm8916-wcd-digital.c
664
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/msm8916-wcd-digital.c
668
char *dmic_num = strpbrk(w->name, "12");
sound/soc/codecs/mt6351.c
1010
static int mt_mic_bias_1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
1014
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
1038
static int mt_mic_bias_2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
1042
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
575
static int mt_reg_set_clr_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
579
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
583
if (w->on_val) {
sound/soc/codecs/mt6351.c
586
w->reg + REG_STRIDE,
sound/soc/codecs/mt6351.c
587
0x1 << w->shift,
sound/soc/codecs/mt6351.c
588
0x1 << w->shift);
sound/soc/codecs/mt6351.c
592
w->reg + REG_STRIDE * 2,
sound/soc/codecs/mt6351.c
593
0x1 << w->shift,
sound/soc/codecs/mt6351.c
594
0x1 << w->shift);
sound/soc/codecs/mt6351.c
598
if (w->off_val) {
sound/soc/codecs/mt6351.c
601
w->reg + REG_STRIDE,
sound/soc/codecs/mt6351.c
602
0x1 << w->shift,
sound/soc/codecs/mt6351.c
603
0x1 << w->shift);
sound/soc/codecs/mt6351.c
607
w->reg + REG_STRIDE * 2,
sound/soc/codecs/mt6351.c
608
0x1 << w->shift,
sound/soc/codecs/mt6351.c
609
0x1 << w->shift);
sound/soc/codecs/mt6351.c
619
static int mt_ncp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
623
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
643
static int mt_sgen_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
647
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
663
static int mt_aif_in_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
667
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
708
static int mt_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
712
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
836
static int mt_aif_out_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
840
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
899
static int mt_adc_clkgen_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
903
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
922
static int mt_pga_left_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
926
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
952
static int mt_pga_right_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
956
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6351.c
982
static int mt_mic_bias_0_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6351.c
986
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
1006
static int lo_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
1010
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
1073
static int hs_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
1077
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
1131
static int hp_main_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
1135
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
1342
static int right_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
1346
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
1381
static int left_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
1385
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
528
static int mt_aif_out_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
532
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
549
static int mt_adc_supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
553
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
594
static int mt_mic_type_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
598
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
600
unsigned int mic_type = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6357.c
642
static int mt_pga_left_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
646
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
695
static int mt_pga_right_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
699
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
742
static int adc_enable_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
746
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
907
static int mt_audio_in_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6357.c
911
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6357.c
988
static int mt_delay_250_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1284
static int mt_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1288
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1290
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6358.c
1342
static int mt_rcv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1346
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1352
snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]));
sound/soc/codecs/mt6358.c
1470
static int mt_aif_out_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1474
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1494
static int mt_adc_supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1498
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1825
static int mt_mic_type_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1829
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1831
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6358.c
1871
static int mt_adc_l_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1875
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1877
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6358.c
1887
static int mt_adc_r_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1891
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1893
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6358.c
1903
static int mt_pga_left_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1907
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1909
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6358.c
1919
static int mt_pga_right_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
1923
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
1925
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6358.c
1935
static int mt_delay_250_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
790
static int mt_clksq_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
794
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
813
static int mt_sgen_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
817
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6358.c
852
static int mt_aif_in_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6358.c
856
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1040
static int mt_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1044
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1046
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6359.c
1070
static int mt_rcv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1074
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1078
__func__, event, snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]));
sound/soc/codecs/mt6359.c
1154
static int mt_lo_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1158
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1160
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6359.c
1265
static int mt_adc_clk_gen_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1269
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1305
static int mt_dcc_clk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1309
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1340
static int mt_mic_bias_0_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1344
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1394
static int mt_mic_bias_1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1398
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1427
static int mt_mic_bias_2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1431
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1478
static int mt_mtkaif_tx_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1482
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1501
static int mt_ul_src_dmic_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1505
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1534
static int mt_ul_src_34_dmic_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1538
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1562
static int mt_adc_l_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1566
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1586
static int mt_adc_r_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1590
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1610
static int mt_adc_3_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1614
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1634
static int mt_pga_l_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1638
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1640
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6359.c
1647
static int mt_pga_r_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1651
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1653
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6359.c
1660
static int mt_pga_3_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1664
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1666
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/mt6359.c
1673
static int mt_pga_l_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1677
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1731
static int mt_pga_r_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1735
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1790
static int mt_pga_3_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1794
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1847
static int mt_delay_250_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1863
static int mt_delay_100_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1879
static int mt_hp_pull_down_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1883
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1900
static int mt_hp_mute_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1904
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1923
static int mt_hp_damp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1927
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1943
static int mt_esd_resist_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1947
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
1970
static int mt_sdm_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
1974
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
2004
static int mt_sdm_3rd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
2008
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
2034
static int mt_ncp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
2038
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
2413
struct snd_soc_dapm_widget *w = sink;
sound/soc/codecs/mt6359.c
2414
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6359.c
814
static int mt_sgen_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6359.c
818
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/mt6660.c
84
static int mt6660_codec_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6660.c
92
static int mt6660_codec_classd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/mt6660.c
96
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8315.c
60
static int nau8315_enpin_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8315.c
64
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8325.c
215
static int nau8325_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8325.c
219
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8325.c
241
static int nau8325_powerup_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8325.c
245
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8540.c
232
static int nau8540_fepga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8540.c
235
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8540.c
253
static int nau8540_precharge_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8540.c
256
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8540.c
275
static int adc_power_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8540.c
278
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8540.c
301
static int aiftx_power_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8540.c
304
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8821.c
467
static int dmic_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8821.c
471
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8821.c
506
static int nau8821_left_adc_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8821.c
510
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8821.c
526
static int nau8821_right_adc_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8821.c
530
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8821.c
546
static int nau8821_pump_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8821.c
550
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8821.c
572
static int nau8821_output_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8821.c
576
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8821.c
596
static int system_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8821.c
600
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8821.c
620
static int nau8821_left_fepga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8821.c
623
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8824.c
428
static int nau8824_output_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8824.c
431
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8824.c
451
static int nau8824_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8824.c
454
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8824.c
475
static int nau8824_pump_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8824.c
478
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8824.c
501
static int system_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8824.c
504
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8824.c
568
static int dmic_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8824.c
571
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8825.c
858
static int nau8825_fepga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8825.c
861
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8825.c
884
static int nau8825_adc_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8825.c
887
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8825.c
908
static int nau8825_pump_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8825.c
911
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8825.c
932
static int nau8825_output_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8825.c
935
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/nau8825.c
970
static int system_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/nau8825.c
973
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pcm3008.c
32
static int pcm3008_dac_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pcm3008.c
36
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pcm3008.c
45
static int pcm3008_adc_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pcm3008.c
49
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
313
static int pm4125_codec_enable_rxclk(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/pm4125.c
316
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
330
static int pm4125_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
333
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
396
static int pm4125_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
399
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
461
static int pm4125_codec_ear_lo_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
464
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
495
static int pm4125_codec_enable_hphl_wdt_irq(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
498
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
514
static int pm4125_codec_enable_hphr_wdt_irq(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
517
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
533
static int pm4125_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
536
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
555
static int pm4125_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
558
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
577
static int pm4125_codec_enable_lo_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
580
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
613
static int pm4125_codec_enable_ear_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
616
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
645
static int pm4125_codec_enable_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
648
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
654
if (w->shift == 1 &&
sound/soc/codecs/pm4125.c
659
if (w->shift)
sound/soc/codecs/pm4125.c
669
if (w->shift == 1 && test_bit(AMIC2_BCS_ENABLE, &pm4125->status_mask))
sound/soc/codecs/pm4125.c
672
if (w->shift)
sound/soc/codecs/pm4125.c
687
static int pm4125_codec_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
690
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
691
u16 dmic_clk_reg = w->reg;
sound/soc/codecs/pm4125.c
795
static int pm4125_codec_enable_micbias(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/pm4125.c
798
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
799
int micb_num = w->shift;
sound/soc/codecs/pm4125.c
822
static int pm4125_codec_enable_micbias_pullup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/pm4125.c
825
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/pm4125.c
826
int micb_num = w->shift;
sound/soc/codecs/rk3308_codec.c
178
static int rk3308_codec_pop_sound_set(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rk3308_codec.c
182
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rk3308_codec.c
190
mask << w->shift, val << w->shift);
sound/soc/codecs/rt1011.c
1414
static int rt1011_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1011.c
1418
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1015.c
584
static int r1015_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1015.c
588
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1015.c
644
static int rt1015_amp_drv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1015.c
648
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1015p.c
26
static int rt1015p_sdb_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1015p.c
30
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1017-sdca-sdw.c
419
static int rt1017_sdca_pde23_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1017-sdca-sdw.c
422
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1017-sdca-sdw.c
445
static int rt1017_sdca_classd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1017-sdca-sdw.c
448
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1017-sdca-sdw.c
464
static int rt1017_sdca_feedback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1017-sdca-sdw.c
467
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1019.c
125
static int r1019_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1019.c
128
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1305.c
434
static int rt1305_classd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1305.c
438
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1308-sdw.c
344
static int rt1308_classd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1308-sdw.c
348
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1308.c
296
static int rt1308_classd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1308.c
300
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1316-sdw.c
330
static int rt1316_classd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1316-sdw.c
334
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1316-sdw.c
375
static int rt1316_pde24_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1316-sdw.c
379
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1318-sdw.c
462
static int rt1318_classd_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1318-sdw.c
466
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1318.c
482
static int rt1318_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1318.c
485
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1320-sdw.c
1962
static int rt1320_pde11_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1320-sdw.c
1966
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1320-sdw.c
1990
static int rt1320_pde23_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1320-sdw.c
1994
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt1320-sdw.c
2266
static int rt1320_dmic_fu_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt1320-sdw.c
2270
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt286.c
440
static int rt286_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt286.c
443
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt286.c
462
static int rt286_set_dmic1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt286.c
465
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt286.c
481
static int rt286_ldo2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt286.c
484
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt286.c
500
static int rt286_mic1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt286.c
503
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt298.c
459
static int rt298_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt298.c
462
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt298.c
481
static int rt298_set_dmic1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt298.c
484
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt298.c
500
static int rt298_adc_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt298.c
503
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt298.c
506
nid = (w->reg >> 20) & 0xff;
sound/soc/codecs/rt298.c
546
static int rt298_mic1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt298.c
549
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5514.c
515
static int rt5514_set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5514.c
518
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5616.c
463
static int rt5616_adc_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5616.c
466
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5616.c
487
static int rt5616_charge_pump_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5616.c
490
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5616.c
553
static int rt5616_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5616.c
556
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5616.c
623
static int rt5616_lout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5616.c
626
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5616.c
651
static int rt5616_bst1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5616.c
654
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5616.c
674
static int rt5616_bst2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5616.c
677
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5631.c
563
static int hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5631.c
566
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5631.c
597
static int set_dmic_params(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5631.c
600
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5640.c
1020
static int rt5640_hp_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5640.c
1023
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5640.c
1036
static int rt5640_hp_post_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5640.c
1039
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5640.c
458
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5640.c
461
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5640.c
967
static int rt5640_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5640.c
970
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5640.c
991
static int rt5640_lout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5640.c
994
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5645.c
1779
static int rt5645_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5645.c
1782
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5645.c
1845
static int rt5645_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5645.c
1848
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5645.c
1878
static int rt5645_lout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5645.c
1881
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5645.c
1908
static int rt5645_bst2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5645.c
1911
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5645.c
1931
static int rt5645_set_micbias1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5645.c
1934
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5645.c
1956
static int rt5645_set_micbias2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5645.c
1959
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5645.c
878
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5645.c
881
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5651.c
376
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5651.c
379
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5651.c
681
static int rt5651_amp_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5651.c
684
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5651.c
719
static int rt5651_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5651.c
722
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5651.c
763
static int rt5651_hp_post_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5651.c
767
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5651.c
784
static int rt5651_bst1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5651.c
787
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5651.c
807
static int rt5651_bst2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5651.c
810
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5651.c
830
static int rt5651_bst3_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5651.c
833
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
1564
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
1567
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
1584
static int set_adc1_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
1587
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
1609
static int set_adc2_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
1613
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
1635
static int rt5659_charge_pump_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
1638
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
1655
static int is_sys_clk_from_pll(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
1659
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
1669
static int is_using_asrc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
1673
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
1675
switch (w->shift) {
sound/soc/codecs/rt5659.c
2343
static int rt5659_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
2346
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
2375
static int rt5659_mono_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
2378
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
2397
static int rt5659_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5659.c
2400
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5659.c
2419
static int set_dmic_power(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5660.c
349
static int rt5660_set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5660.c
352
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5660.c
536
static int rt5660_lout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5660.c
539
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5663.c
2070
static int rt5663_is_sys_clk_from_pll(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5663.c
2074
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5663.c
2084
static int rt5663_is_using_asrc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5663.c
2088
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5663.c
2092
switch (w->shift) {
sound/soc/codecs/rt5663.c
2105
switch (w->shift) {
sound/soc/codecs/rt5663.c
2319
static int rt5663_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5663.c
2322
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5663.c
2377
static int rt5663_charge_pump_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5663.c
2380
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5663.c
2407
static int rt5663_bst2_power(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5663.c
2410
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5663.c
2431
static int rt5663_pre_div_power(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5663.c
2434
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
1376
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
1379
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
1396
static int rt5665_charge_pump_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
1399
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
1419
static int is_sys_clk_from_pll(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
1423
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
1433
static int is_using_asrc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
1437
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
1439
switch (w->shift) {
sound/soc/codecs/rt5665.c
2371
static int rt5665_mono_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
2374
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
2403
static int rt5665_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
2406
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
2429
static int rt5665_lout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
2432
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
2453
static int set_dmic_power(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
2469
static int rt5665_set_verf(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
2472
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
2476
switch (w->shift) {
sound/soc/codecs/rt5665.c
2499
switch (w->shift) {
sound/soc/codecs/rt5665.c
2527
static int rt5665_i2s_pin_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5665.c
2530
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5665.c
2533
switch (w->shift) {
sound/soc/codecs/rt5668.c
1126
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5668.c
1130
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5668.c
1143
static int set_filter_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5668.c
1147
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5668.c
1154
if (w->shift == RT5668_PWR_ADC_S1F_BIT &&
sound/soc/codecs/rt5668.c
1162
if (w->shift == RT5668_PWR_ADC_S1F_BIT)
sound/soc/codecs/rt5668.c
1173
static int is_sys_clk_from_pll1(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5668.c
1178
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5668.c
1188
static int is_using_asrc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5668.c
1193
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5668.c
1195
switch (w->shift) {
sound/soc/codecs/rt5668.c
1375
static int rt5668_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5668.c
1379
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5668.c
1408
static int set_dmic_power(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5668.c
1424
static int rt5655_set_verf(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5668.c
1428
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5668.c
1432
switch (w->shift) {
sound/soc/codecs/rt5668.c
1450
switch (w->shift) {
sound/soc/codecs/rt5670.c
1442
static int rt5670_hp_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5670.c
1445
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5670.c
1478
static int rt5670_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5670.c
1481
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5670.c
1528
static int rt5670_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5670.c
1531
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5670.c
1555
static int rt5670_bst1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5670.c
1558
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5670.c
1578
static int rt5670_bst2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5670.c
1581
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5670.c
744
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5670.c
747
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677-spi.c
459
u32 w, i, si;
sound/soc/codecs/rt5677-spi.c
462
for (w = 0; w < dstlen; w += word_size) {
sound/soc/codecs/rt5677-spi.c
463
for (i = 0; i < word_size && i + w < dstlen; i++) {
sound/soc/codecs/rt5677-spi.c
464
si = w + word_size - i - 1;
sound/soc/codecs/rt5677-spi.c
465
dst[w + i] = si < srclen ? src[si] : 0;
sound/soc/codecs/rt5677.c
1084
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
1087
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2566
static int rt5677_bst1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2569
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2590
static int rt5677_bst2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2593
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2614
static int rt5677_set_pll1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2617
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2636
static int rt5677_set_pll2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2639
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2658
static int rt5677_set_micbias1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2661
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2685
static int rt5677_if1_adc_tdm_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2688
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2708
static int rt5677_if2_adc_tdm_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2711
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2731
static int rt5677_vref_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5677.c
2734
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5677.c
2757
static int rt5677_filter_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1259
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1263
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1279
static int set_filter_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1283
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1294
if (w->shift == RT5682_PWR_ADC_S1F_BIT &&
sound/soc/codecs/rt5682.c
1302
if (w->shift == RT5682_PWR_ADC_S1F_BIT)
sound/soc/codecs/rt5682.c
1323
static int is_sys_clk_from_pll1(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1328
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1338
static int is_sys_clk_from_pll2(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1343
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1353
static int is_using_asrc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1358
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1360
switch (w->shift) {
sound/soc/codecs/rt5682.c
1539
static int rt5682_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1543
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1578
static int set_dmic_power(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1582
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1605
if (!snd_soc_dapm_get_pin_status(w->dapm, "MICBIAS"))
sound/soc/codecs/rt5682.c
1608
if (!snd_soc_dapm_get_pin_status(w->dapm, "Vref2"))
sound/soc/codecs/rt5682.c
1618
static int rt5682_set_verf(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682.c
1622
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682.c
1626
switch (w->shift) {
sound/soc/codecs/rt5682.c
1641
switch (w->shift) {
sound/soc/codecs/rt5682s.c
1140
static int set_dmic_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1143
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1179
static int set_pllb_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1182
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1220
static int set_filter_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1223
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1230
if (w->shift == RT5682S_PWR_ADC_S1F_BIT && val == RT5682S_GP4_PIN_ADCDAT2)
sound/soc/codecs/rt5682s.c
1235
if (w->shift == RT5682S_PWR_ADC_S1F_BIT)
sound/soc/codecs/rt5682s.c
1245
static int set_dmic_power(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1248
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1317
static int set_i2s_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1320
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1327
if (!snd_soc_dapm_widget_name_cmp(w, "I2S1") && !rt5682s->wclk_enabled)
sound/soc/codecs/rt5682s.c
1329
else if (!snd_soc_dapm_widget_name_cmp(w, "I2S2"))
sound/soc/codecs/rt5682s.c
1335
static int is_sys_clk_from_plla(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1338
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1348
static int is_sys_clk_from_pllb(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1351
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1360
static int is_using_asrc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1364
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1366
switch (w->shift) {
sound/soc/codecs/rt5682s.c
1389
static int rt5682s_hp_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1392
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1434
static int rt5682s_stereo1_adc_mixl_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1437
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt5682s.c
1459
static int sar_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt5682s.c
1462
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt700.c
630
static int rt700_dac_front_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt700.c
634
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt700.c
650
static int rt700_dac_surround_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt700.c
654
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt700.c
670
static int rt700_adc_09_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt700.c
674
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt700.c
690
static int rt700_adc_08_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt700.c
694
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt700.c
710
static int rt700_hpo_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt700.c
714
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt700.c
735
static int rt700_spk_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt700.c
739
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
1018
static int rt711_sdca_fu0f_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
1022
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
1038
static int rt711_sdca_fu1e_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
1042
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
1058
static int rt711_sdca_pde28_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
1062
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
1083
static int rt711_sdca_pde29_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
1087
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
1108
static int rt711_sdca_pde2a_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
1112
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
1133
static int rt711_sdca_line1_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
1137
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
1172
static int rt711_sdca_line2_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
1176
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711-sdca.c
985
static int rt711_sdca_fu05_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711-sdca.c
989
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711.c
778
static int rt711_dac_surround_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711.c
782
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711.c
809
static int rt711_adc_09_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711.c
813
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt711.c
829
static int rt711_adc_08_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt711.c
833
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca-dmic.c
512
static int rt712_sdca_dmic_fu1e_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca-dmic.c
516
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca-dmic.c
532
static int rt712_sdca_dmic_pde11_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca-dmic.c
536
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca.c
1314
static int rt712_sdca_dmic_fu1e_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca.c
1318
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca.c
1334
static int rt712_sdca_dmic_pde11_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca.c
1338
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca.c
816
static int rt712_sdca_fu05_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca.c
820
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca.c
836
static int rt712_sdca_fu0f_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca.c
840
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca.c
856
static int rt712_sdca_pde40_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca.c
860
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca.c
881
static int rt712_sdca_pde12_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca.c
885
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt712-sdca.c
906
static int rt712_sdca_pde23_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt712-sdca.c
910
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt715-sdca.c
648
static int rt715_sdca_pde23_24_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt715-sdca.c
652
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
1003
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
1019
static int rt721_sdca_pde47_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
1023
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
1042
static int rt721_sdca_pde41_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
1046
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
1065
static int rt721_sdca_pde11_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
1069
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
1088
static int rt721_sdca_pde34_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
1092
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
891
static int rt721_sdca_fu42_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
895
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
921
static int rt721_sdca_fu21_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
925
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
950
static int rt721_sdca_fu23_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
954
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
979
static int rt721_sdca_fu113_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt721-sdca.c
983
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt721-sdca.c
999
static int rt721_sdca_fu36_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
775
static int rt722_sdca_fu42_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
779
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt722-sdca.c
804
static int rt722_sdca_fu21_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
808
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt722-sdca.c
833
static int rt722_sdca_fu113_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
837
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt722-sdca.c
854
static int rt722_sdca_fu36_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
858
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt722-sdca.c
896
static int rt722_sdca_pde47_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
900
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt722-sdca.c
921
static int rt722_sdca_pde23_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
925
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt722-sdca.c
946
static int rt722_sdca_pde11_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
950
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt722-sdca.c
971
static int rt722_sdca_pde12_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt722-sdca.c
975
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt9120.c
107
static int internal_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/rt9120.c
110
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt9123.c
54
static int rt9123_enable_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/rt9123.c
57
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rt9123p.c
60
static int rt9123p_enable_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/rt9123p.c
63
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rtq9124.c
62
static int rtq9124_enable_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/rtq9124.c
65
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rtq9128.c
347
static int rtq9128_dac_power_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
sound/soc/codecs/rtq9128.c
350
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/rtq9128.c
355
dev_dbg(comp->dev, "%s: %s event %d\n", __func__, w->name, event);
sound/soc/codecs/rtq9128.c
357
if (snd_soc_dapm_widget_name_cmp(w, "DAC1") == 0)
sound/soc/codecs/rtq9128.c
359
else if (snd_soc_dapm_widget_name_cmp(w, "DAC2") == 0)
sound/soc/codecs/rtq9128.c
361
else if (snd_soc_dapm_widget_name_cmp(w, "DAC3") == 0)
sound/soc/codecs/sgtl5000.c
266
static int mic_bias_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sgtl5000.c
269
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sgtl5000.c
340
static int headphone_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sgtl5000.c
344
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sgtl5000.c
353
static int adc_updown_depop(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sgtl5000.c
357
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sgtl5000.c
362
static int dac_updown_depop(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sgtl5000.c
366
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/simple-amplifier.c
18
static int drv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/simple-amplifier.c
21
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/simple-mux.c
84
static int simple_mux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/simple-mux.c
87
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1303.c
515
static int sma1303_aif_in_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1303.c
519
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1303.c
521
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/sma1303.c
585
static int sma1303_aif_out_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1303.c
589
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1303.c
591
unsigned int mux = snd_soc_dapm_kcontrol_get_value(w->kcontrols[0]);
sound/soc/codecs/sma1303.c
725
static int sma1303_sdo_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1303.c
729
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1303.c
777
static int sma1303_post_scaler_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1303.c
781
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1303.c
811
static int sma1303_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1303.c
815
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1307.c
588
static int sma1307_aif_in_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1307.c
592
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1307.c
637
static int sma1307_sdo_setting_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1307.c
641
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1307.c
711
static int sma1307_aif_out_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1307.c
715
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1307.c
719
if (!strcmp(w->name, SMA1307_AIF_OUT0_NAME)) {
sound/soc/codecs/sma1307.c
723
} else if (!strcmp(w->name, SMA1307_AIF_OUT1_NAME)) {
sound/soc/codecs/sma1307.c
729
__func__, w->name);
sound/soc/codecs/sma1307.c
741
static int sma1307_sdo_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1307.c
745
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/sma1307.c
773
static int sma1307_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/sma1307.c
777
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/ssm2305.c
19
static int ssm2305_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/ssm2305.c
22
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/ssm2602.c
128
static int ssm2602_mic_switch_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2552.c
79
static int tas2552_post_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2552.c
82
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas2562.c
434
static int tas2562_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2562.c
438
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas2770.c
129
static int tas2770_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2770.c
133
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas2770.c
160
static int sense_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2770.c
163
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas2781-i2c.c
1758
static int tasdevice_dapm_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2781-i2c.c
1761
struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas2783-sdw.c
812
static s32 tas_fu21_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2783-sdw.c
815
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas2783-sdw.c
834
static s32 tas_fu23_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas2783-sdw.c
837
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas5720.c
403
static int tas5720_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas5720.c
406
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas5805m.c
351
static int tas5805m_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas5805m.c
354
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tas6424.c
71
static int tas6424_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tas6424.c
74
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tlv320adc3xxx.c
542
static int adc3xxx_pll_delay(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tlv320aic31xx.c
409
static int aic31xx_dapm_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tlv320aic31xx.c
412
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tlv320aic31xx.c
418
switch (WIDGET_BIT(w->reg, w->shift)) {
sound/soc/codecs/tlv320aic31xx.c
447
w->name, __func__);
sound/soc/codecs/tlv320aic31xx.c
461
event, w->name);
sound/soc/codecs/tlv320aic31xx.c
512
static int mic_bias_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tlv320aic31xx.c
515
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tlv320aic32x4.c
55
static int aic32x4_reset_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tlv320aic32x4.c
58
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tlv320aic32x4.c
77
static int mic_bias_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tlv320aic32x4.c
80
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tlv320aic3x.c
216
static int mic_bias_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tlv320aic3x.c
219
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tlv320dac33.c
422
static int dac33_playback_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tlv320dac33.c
425
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tpa6130a2.c
88
static int tpa6130a2_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tpa6130a2.c
91
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tscs42xx.c
351
static int dapm_vref_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tscs42xx.c
358
static int dapm_micb_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tscs42xx.c
365
static int pll_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tscs42xx.c
369
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tscs42xx.c
380
static int dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tscs42xx.c
384
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tscs454.c
702
static int pll_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/tscs454.c
706
snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/tscs454.c
714
if (strstr(w->name, "PLL 1"))
sound/soc/codecs/twl4030.c
553
static int pin_name##pga_event(struct snd_soc_dapm_widget *w, \
sound/soc/codecs/twl4030.c
556
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); \
sound/soc/codecs/twl4030.c
608
static int handsfreelpga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
611
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl4030.c
624
static int handsfreerpga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
627
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl4030.c
640
static int vibramux_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
643
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl4030.c
649
static int apll_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
652
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl4030.c
665
static int aif_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
668
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl4030.c
756
static int headsetlpga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
759
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl4030.c
781
static int headsetrpga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
784
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl4030.c
806
static int digimic_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl4030.c
809
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl6040.c
222
static int twl6040_hs_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl6040.c
225
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/twl6040.c
249
static int twl6040_ep_drv_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/twl6040.c
252
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
1263
struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_to_widget(kc);
sound/soc/codecs/wcd9335.c
1264
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/codecs/wcd9335.c
1266
u32 port_id = w->shift;
sound/soc/codecs/wcd9335.c
1276
struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_to_widget(kc);
sound/soc/codecs/wcd9335.c
1277
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/codecs/wcd9335.c
1281
u32 port_id = w->shift;
sound/soc/codecs/wcd9335.c
1316
snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value[port_id],
sound/soc/codecs/wcd9335.c
2571
static int __wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
2574
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
2577
if (strnstr(w->name, "MIC BIAS1", sizeof("MIC BIAS1")))
sound/soc/codecs/wcd9335.c
2579
else if (strnstr(w->name, "MIC BIAS2", sizeof("MIC BIAS2")))
sound/soc/codecs/wcd9335.c
2581
else if (strnstr(w->name, "MIC BIAS3", sizeof("MIC BIAS3")))
sound/soc/codecs/wcd9335.c
2583
else if (strnstr(w->name, "MIC BIAS4", sizeof("MIC BIAS4")))
sound/soc/codecs/wcd9335.c
2609
static int wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
2612
return __wcd9335_codec_enable_micbias(w, event);
sound/soc/codecs/wcd9335.c
2650
static int wcd9335_codec_enable_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
2653
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
2657
wcd9335_codec_set_tx_hold(comp, w->reg, true);
sound/soc/codecs/wcd9335.c
2720
static int wcd9335_codec_enable_dec(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
2723
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
2733
char *wname __free(kfree) = kmemdup_nul(w->name, 15, GFP_KERNEL);
sound/soc/codecs/wcd9335.c
2741
__func__, w->name);
sound/soc/codecs/wcd9335.c
2861
static int wcd9335_codec_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
2864
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
2874
wname = strpbrk(w->name, "012345");
sound/soc/codecs/wcd9335.c
2963
static int wcd9335_codec_enable_slim(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
2967
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
2969
struct wcd_slim_codec_dai_data *dai = &wcd->dai[w->shift];
sound/soc/codecs/wcd9335.c
2984
static int wcd9335_codec_enable_mix_path(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
2987
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
2991
switch (w->reg) {
sound/soc/codecs/wcd9335.c
3021
__func__, w->name);
sound/soc/codecs/wcd9335.c
3241
static int wcd9335_codec_enable_interpolator(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3244
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3249
if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT0 INTERP"))) {
sound/soc/codecs/wcd9335.c
3252
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT1 INTERP"))) {
sound/soc/codecs/wcd9335.c
3255
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT2 INTERP"))) {
sound/soc/codecs/wcd9335.c
3258
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT3 INTERP"))) {
sound/soc/codecs/wcd9335.c
3261
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT4 INTERP"))) {
sound/soc/codecs/wcd9335.c
3264
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT5 INTERP"))) {
sound/soc/codecs/wcd9335.c
3267
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT6 INTERP"))) {
sound/soc/codecs/wcd9335.c
3270
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT7 INTERP"))) {
sound/soc/codecs/wcd9335.c
3273
} else if (!(snd_soc_dapm_widget_name_cmp(w, "RX INT8 INTERP"))) {
sound/soc/codecs/wcd9335.c
3288
wcd9335_config_compander(comp, w->shift, event);
sound/soc/codecs/wcd9335.c
3293
wcd9335_config_compander(comp, w->shift, event);
sound/soc/codecs/wcd9335.c
3474
static int wcd9335_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3478
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3524
static int wcd9335_codec_lineout_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3527
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3544
static int wcd9335_codec_ear_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3547
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3625
static int wcd9335_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3629
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3674
static int wcd9335_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3678
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3722
static int wcd9335_codec_enable_lineout_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3726
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3729
if (w->reg == WCD9335_ANA_LO_1_2) {
sound/soc/codecs/wcd9335.c
3730
if (w->shift == 7) {
sound/soc/codecs/wcd9335.c
3733
} else if (w->shift == 6) {
sound/soc/codecs/wcd9335.c
3737
} else if (w->reg == WCD9335_ANA_LO_3_4) {
sound/soc/codecs/wcd9335.c
3738
if (w->shift == 7) {
sound/soc/codecs/wcd9335.c
3741
} else if (w->shift == 6) {
sound/soc/codecs/wcd9335.c
3794
static int wcd9335_codec_enable_rx_bias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3797
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3824
static int wcd9335_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3827
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
3870
static int wcd9335_codec_enable_ear_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
3873
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd9335.c
4259
static int wcd9335_codec_enable_mclk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd9335.c
4262
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
1379
static int wcd934x_codec_enable_mclk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
1382
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
3254
struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_to_widget(kc);
sound/soc/codecs/wcd934x.c
3258
ucontrol->value.enumerated.item[0] = wcd->rx_port_value[w->shift];
sound/soc/codecs/wcd934x.c
3291
struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_to_widget(kc);
sound/soc/codecs/wcd934x.c
3292
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/codecs/wcd934x.c
3297
u32 port_id = w->shift;
sound/soc/codecs/wcd934x.c
3345
snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value[port_id],
sound/soc/codecs/wcd934x.c
4111
static int wcd934x_codec_enable_slim(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4114
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4116
struct wcd_slim_codec_dai_data *dai = &wcd->dai[w->shift];
sound/soc/codecs/wcd934x.c
4258
static int wcd934x_codec_enable_interp_clk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4261
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4262
int interp_idx = w->shift;
sound/soc/codecs/wcd934x.c
4299
static int wcd934x_codec_enable_mix_path(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4302
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4308
(w->shift * WCD934X_RX_PATH_CTL_OFFSET);
sound/soc/codecs/wcd934x.c
4310
(w->shift * WCD934X_RX_PATH_CTL_OFFSET);
sound/soc/codecs/wcd934x.c
4330
static int wcd934x_codec_set_iir_gain(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4333
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4334
int reg = w->reg;
sound/soc/codecs/wcd934x.c
4364
static int wcd934x_codec_enable_main_path(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4368
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4371
gain_reg = WCD934X_CDC_RX0_RX_VOL_CTL + (w->shift *
sound/soc/codecs/wcd934x.c
4384
static int wcd934x_codec_ear_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4387
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4409
static int wcd934x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4413
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4461
static int wcd934x_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4465
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4511
static int wcd934x_codec_lineout_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4514
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4531
static int wcd934x_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4535
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4595
static int wcd934x_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4599
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4756
static int wcd934x_codec_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4759
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4770
wname = strpbrk(w->name, "012345");
sound/soc/codecs/wcd934x.c
4922
static int wcd934x_codec_enable_dec(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
4925
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
4935
char *wname __free(kfree) = kstrndup(w->name, 15, GFP_KERNEL);
sound/soc/codecs/wcd934x.c
4943
__func__, w->name);
sound/soc/codecs/wcd934x.c
5084
static int wcd934x_codec_enable_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
5087
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
5091
wcd934x_codec_set_tx_hold(comp, w->reg, true);
sound/soc/codecs/wcd934x.c
5100
static int wcd934x_codec_enable_micbias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd934x.c
5104
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd934x.c
5105
int micb_num = w->shift;
sound/soc/codecs/wcd937x.c
1125
static int __wcd937x_codec_enable_micbias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
1128
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
1129
int micb_num = w->shift;
sound/soc/codecs/wcd937x.c
1148
static int wcd937x_codec_enable_micbias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
1152
return __wcd937x_codec_enable_micbias(w, event);
sound/soc/codecs/wcd937x.c
1155
static int __wcd937x_codec_enable_micbias_pullup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
1158
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
1159
int micb_num = w->shift;
sound/soc/codecs/wcd937x.c
1176
static int wcd937x_codec_enable_micbias_pullup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
1180
return __wcd937x_codec_enable_micbias_pullup(w, event);
sound/soc/codecs/wcd937x.c
336
static int wcd937x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
340
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
411
static int wcd937x_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
415
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
480
static int wcd937x_codec_ear_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
484
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
535
static int wcd937x_codec_aux_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
539
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
571
static int wcd937x_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
575
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
640
static int wcd937x_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
644
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
708
static int wcd937x_codec_enable_aux_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
712
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
754
static int wcd937x_codec_enable_ear_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
758
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
826
static int wcd937x_enable_rx1(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
830
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
842
static int wcd937x_enable_rx2(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
845
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
857
static int wcd937x_enable_rx3(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
861
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
875
static int wcd937x_tx_swr_ctrl(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
878
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
883
if (event == SND_SOC_DAPM_PRE_PMU && strnstr(w->name, "ADC", sizeof("ADC")))
sound/soc/codecs/wcd937x.c
884
if (w->shift == 1 && !use_amic3)
sound/soc/codecs/wcd937x.c
890
static int wcd937x_codec_enable_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
893
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
907
if (w->shift == 1 && test_bit(AMIC2_BCS_ENABLE, &wcd937x->status_mask))
sound/soc/codecs/wcd937x.c
918
static int wcd937x_enable_req(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
921
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
972
static int wcd937x_codec_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd937x.c
976
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd937x.c
979
switch (w->shift) {
sound/soc/codecs/wcd938x.c
1015
static int wcd938x_codec_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
1019
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
1023
switch (w->shift) {
sound/soc/codecs/wcd938x.c
1087
static int wcd938x_tx_swr_ctrl(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
1090
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
1099
if (strnstr(w->name, "ADC", sizeof("ADC"))) {
sound/soc/codecs/wcd938x.c
1126
if (strnstr(w->name, "ADC", sizeof("ADC"))) {
sound/soc/codecs/wcd938x.c
1170
static int wcd938x_codec_enable_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
1173
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
1184
set_bit(w->shift, &wcd938x->status_mask);
sound/soc/codecs/wcd938x.c
1189
clear_bit(w->shift, &wcd938x->status_mask);
sound/soc/codecs/wcd938x.c
1225
static int wcd938x_adc_enable_req(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
1228
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
1240
wcd938x_tx_channel_config(component, w->shift, 1);
sound/soc/codecs/wcd938x.c
1241
mode = wcd938x_get_adc_mode(wcd938x->tx_mode[w->shift]);
sound/soc/codecs/wcd938x.c
1246
switch (w->shift) {
sound/soc/codecs/wcd938x.c
1283
wcd938x_tx_channel_config(component, w->shift, 0);
sound/soc/codecs/wcd938x.c
1286
switch (w->shift) {
sound/soc/codecs/wcd938x.c
1431
static int wcd938x_codec_enable_micbias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
1435
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
1436
int micb_num = w->shift;
sound/soc/codecs/wcd938x.c
1454
static int wcd938x_codec_enable_micbias_pullup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
1458
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
1459
int micb_num = w->shift;
sound/soc/codecs/wcd938x.c
423
static int wcd938x_codec_enable_rxclk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
427
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
462
static int wcd938x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
466
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
516
static int wcd938x_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
520
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
570
static int wcd938x_codec_ear_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
574
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
649
static int wcd938x_codec_aux_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
653
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
686
static int wcd938x_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
689
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
793
static int wcd938x_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
796
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
898
static int wcd938x_codec_enable_aux_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
901
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd938x.c
942
static int wcd938x_codec_enable_ear_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd938x.c
945
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
1010
static int wcd939x_tx_swr_ctrl(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
1013
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
1022
if (strnstr(w->name, "ADC", sizeof("ADC"))) {
sound/soc/codecs/wcd939x.c
1043
if (strnstr(w->name, "ADC", sizeof("ADC"))) {
sound/soc/codecs/wcd939x.c
1087
static int wcd939x_codec_enable_adc(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
1090
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
1100
set_bit(w->shift, &wcd939x->status_mask);
sound/soc/codecs/wcd939x.c
1109
clear_bit(w->shift, &wcd939x->status_mask);
sound/soc/codecs/wcd939x.c
1145
static int wcd939x_adc_enable_req(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
1148
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
1159
wcd939x_tx_channel_config(component, w->shift, true);
sound/soc/codecs/wcd939x.c
1160
mode = wcd939x_get_adc_mode(wcd939x->tx_mode[w->shift]);
sound/soc/codecs/wcd939x.c
1166
switch (w->shift) {
sound/soc/codecs/wcd939x.c
1211
wcd939x_tx_channel_config(component, w->shift, false);
sound/soc/codecs/wcd939x.c
1214
switch (w->shift) {
sound/soc/codecs/wcd939x.c
1385
static int wcd939x_codec_enable_micbias(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
1389
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
1390
int micb_num = w->shift;
sound/soc/codecs/wcd939x.c
1408
static int wcd939x_codec_enable_micbias_pullup(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
1412
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
1413
int micb_num = w->shift;
sound/soc/codecs/wcd939x.c
442
static int wcd939x_codec_enable_rxclk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
446
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
502
static int wcd939x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
506
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
556
static int wcd939x_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
560
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
564
w->name, event);
sound/soc/codecs/wcd939x.c
612
static int wcd939x_codec_ear_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
616
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
644
static int wcd939x_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
648
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
764
static int wcd939x_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
768
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
773
w->name, event);
sound/soc/codecs/wcd939x.c
882
static int wcd939x_codec_enable_ear_pa(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
885
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
925
static int wcd939x_codec_enable_dmic(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wcd939x.c
929
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wcd939x.c
935
switch (w->shift) {
sound/soc/codecs/wcd939x.c
979
if (w->shift == 2)
sound/soc/codecs/wcd939x.c
998
if (w->shift == 2)
sound/soc/codecs/wm2000.c
674
static int wm2000_anc_power_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm2000.c
677
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5100.c
774
static int wm5100_out_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5100.c
778
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5100.c
781
switch (w->reg) {
sound/soc/codecs/wm5100.c
839
static int wm5100_post_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5100.c
843
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5102.c
580
static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5102.c
583
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5102.c
611
return arizona_clk_ev(w, kcontrol, event);
sound/soc/codecs/wm5102.c
616
return arizona_dvfs_sysclk_ev(w, kcontrol, event);
sound/soc/codecs/wm5102.c
619
static int wm5102_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5102.c
622
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5102.c
647
wm_adsp2_set_dspclk(w, v);
sound/soc/codecs/wm5102.c
661
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/wm5110.c
158
static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5110.c
161
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5110.c
187
return arizona_clk_ev(w, kcontrol, event);
sound/soc/codecs/wm5110.c
195
static int wm5110_adsp_power_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5110.c
198
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5110.c
211
wm_adsp2_set_dspclk(w, v);
sound/soc/codecs/wm5110.c
213
return wm_adsp_early_event(w, kcontrol, event);
sound/soc/codecs/wm5110.c
288
static int wm5110_hp_pre_enable(struct snd_soc_dapm_widget *w)
sound/soc/codecs/wm5110.c
290
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5110.c
297
switch (w->shift) {
sound/soc/codecs/wm5110.c
325
static int wm5110_hp_pre_disable(struct snd_soc_dapm_widget *w)
sound/soc/codecs/wm5110.c
327
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5110.c
331
switch (w->shift) {
sound/soc/codecs/wm5110.c
363
static int wm5110_hp_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5110.c
366
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5110.c
375
wm5110_hp_pre_enable(w);
sound/soc/codecs/wm5110.c
378
wm5110_hp_pre_disable(w);
sound/soc/codecs/wm5110.c
386
return arizona_hp_ev(w, kcontrol, event);
sound/soc/codecs/wm5110.c
507
static int wm5110_in_analog_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5110.c
510
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5110.c
521
reg = ARIZONA_IN1L_CONTROL + ((w->shift ^ 0x1) * 4);
sound/soc/codecs/wm5110.c
526
wm5110->in_value |= 0x3 << ((w->shift ^ 0x1) * 2);
sound/soc/codecs/wm5110.c
531
wm5110->in_pga_cache[w->shift] = snd_soc_component_read(component, reg);
sound/soc/codecs/wm5110.c
551
wm5110->in_pga_cache[w->shift]);
sound/soc/codecs/wm5110.c
566
static int wm5110_in_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm5110.c
569
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm5110.c
575
if (arizona_input_analog(component, w->shift))
sound/soc/codecs/wm5110.c
576
wm5110_in_analog_ev(w, kcontrol, event);
sound/soc/codecs/wm5110.c
583
return arizona_in_ev(w, kcontrol, event);
sound/soc/codecs/wm8350.c
254
static int pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8350.c
257
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8350.c
261
switch (w->shift) {
sound/soc/codecs/wm8350.c
272
WARN(1, "Invalid shift %d\n", w->shift);
sound/soc/codecs/wm8400.c
315
static int outmixer_event (struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8400.c
318
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8770.c
305
static int vout12supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8770.c
308
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8770.c
322
static int vout34supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8770.c
325
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8770.c
88
static int vout12supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8770.c
90
static int vout34supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8804.c
133
static int wm8804_aif_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8804.c
136
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8804.c
73
static int wm8804_aif_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8900.c
221
static int wm8900_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8900.c
224
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8903.c
257
static int wm8903_cp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8903.c
266
static int wm8903_dcs_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8903.c
269
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8903.c
274
wm8903->dcs_pending |= 1 << w->shift;
sound/soc/codecs/wm8903.c
278
1 << w->shift, 0);
sound/soc/codecs/wm8904.c
641
static int cp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8904.c
653
static int sysclk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8904.c
656
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8904.c
691
static int out_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8904.c
694
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8904.c
708
reg = w->shift;
sound/soc/codecs/wm8955.c
330
static int wm8955_sysclk(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8955.c
333
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8958-dsp2.c
411
int wm8958_aif_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8958-dsp2.c
414
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8960.c
492
struct snd_soc_dapm_widget *w;
sound/soc/codecs/wm8960.c
521
list_for_each_entry(w, &component->card->widgets, list) {
sound/soc/codecs/wm8960.c
522
if (w->dapm != dapm)
sound/soc/codecs/wm8960.c
524
if (strcmp(w->name, "LOUT1 PGA") == 0)
sound/soc/codecs/wm8960.c
525
wm8960->lout1 = w;
sound/soc/codecs/wm8960.c
526
if (strcmp(w->name, "ROUT1 PGA") == 0)
sound/soc/codecs/wm8960.c
527
wm8960->rout1 = w;
sound/soc/codecs/wm8960.c
528
if (strcmp(w->name, "OUT3 VMID") == 0)
sound/soc/codecs/wm8960.c
529
wm8960->out3 = w;
sound/soc/codecs/wm8961.c
191
static int wm8961_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8961.c
194
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8961.c
283
static int wm8961_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8961.c
286
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8962.c
1848
static int tp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8962.c
1852
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8962.c
1862
if (!snd_soc_dapm_widget_name_cmp(w, "TEMP_HP")) {
sound/soc/codecs/wm8962.c
1865
} else if (!snd_soc_dapm_widget_name_cmp(w, "TEMP_SPK")) {
sound/soc/codecs/wm8962.c
1891
static int cp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8962.c
1907
static int hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8962.c
1910
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8962.c
2001
static int out_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8962.c
2004
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8962.c
2007
switch (w->shift) {
sound/soc/codecs/wm8962.c
2021
WARN(1, "Invalid shift %d\n", w->shift);
sound/soc/codecs/wm8962.c
2035
static int dsp2_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8962.c
2038
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8988.c
241
static int wm8988_lrc_control(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8988.c
244
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8990.c
291
static int outmixer_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8990.c
294
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8991.c
357
static int outmixer_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8991.c
360
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8993.c
806
static int clk_sys_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8993.c
809
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1098
static int aif1clk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1101
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1203
static int aif2clk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1206
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1295
static int aif1clk_late_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1298
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1313
static int aif2clk_late_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1316
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1331
static int late_enable_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1334
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1340
aif1clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMU);
sound/soc/codecs/wm8994.c
1344
aif1clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMU);
sound/soc/codecs/wm8994.c
1348
aif2clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMU);
sound/soc/codecs/wm8994.c
1352
aif2clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMU);
sound/soc/codecs/wm8994.c
1359
wm8958_aif_ev(w, kcontrol, event);
sound/soc/codecs/wm8994.c
1364
static int late_disable_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1367
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1373
aif1clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMD);
sound/soc/codecs/wm8994.c
1376
aif1clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMD);
sound/soc/codecs/wm8994.c
1380
aif2clk_ev(w, kcontrol, SND_SOC_DAPM_PRE_PMD);
sound/soc/codecs/wm8994.c
1383
aif2clk_ev(w, kcontrol, SND_SOC_DAPM_POST_PMD);
sound/soc/codecs/wm8994.c
1392
static int adc_mux_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1395
late_enable_ev(w, kcontrol, event);
sound/soc/codecs/wm8994.c
1399
static int micbias_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1402
late_enable_ev(w, kcontrol, event);
sound/soc/codecs/wm8994.c
1406
static int dac_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1409
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
1410
unsigned int mask = 1 << w->shift;
sound/soc/codecs/wm8994.c
1447
static int post_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
1450
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
807
static int clk_sys_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
810
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.c
983
static int vmid_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8994.c
986
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8994.h
58
int wm8958_aif_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8995.c
558
static int hp_supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8995.c
561
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8995.c
607
static int hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8995.c
610
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8995.c
757
static int clk_sys_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8995.c
760
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8996.c
596
static int bg_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8996.c
599
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8996.c
617
static int cp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8996.c
631
static int rmv_short_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8996.c
634
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8996.c
640
wm8996->hpout_pending &= ~w->shift;
sound/soc/codecs/wm8996.c
643
wm8996->hpout_pending |= w->shift;
sound/soc/codecs/wm8996.c
755
static int dcs_start(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8996.c
758
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8996.c
763
wm8996->dcs_pending |= 1 << w->shift;
sound/soc/codecs/wm8997.c
110
return arizona_clk_ev(w, kcontrol, event);
sound/soc/codecs/wm8997.c
115
return arizona_dvfs_sysclk_ev(w, kcontrol, event);
sound/soc/codecs/wm8997.c
81
static int wm8997_sysclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8997.c
84
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm8998.c
37
static int wm8998_asrc_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm8998.c
41
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm9081.c
729
static int clk_sys_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm9081.c
732
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm9090.c
238
static int hp_ev(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm9090.c
241
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm9713.c
192
static int wm9713_voice_shutdown(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm9713.c
195
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_adsp.c
1037
int wm_adsp_early_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_adsp.c
1040
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_adsp.c
1042
struct wm_adsp *dsp = &dsps[w->shift];
sound/soc/codecs/wm_adsp.c
1103
int wm_adsp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_adsp.c
1106
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_adsp.c
1108
struct wm_adsp *dsp = &dsps[w->shift];
sound/soc/codecs/wm_adsp.c
883
int wm_adsp1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_adsp.c
887
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_adsp.c
889
struct wm_adsp *dsp = &dsps[w->shift];
sound/soc/codecs/wm_adsp.c
926
int wm_adsp2_set_dspclk(struct snd_soc_dapm_widget *w, unsigned int freq)
sound/soc/codecs/wm_adsp.c
928
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_adsp.c
930
struct wm_adsp *dsp = &dsps[w->shift];
sound/soc/codecs/wm_adsp.h
106
int wm_adsp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_adsp.h
109
int wm_adsp2_set_dspclk(struct snd_soc_dapm_widget *w, unsigned int freq);
sound/soc/codecs/wm_adsp.h
91
int wm_adsp1_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_adsp.h
94
int wm_adsp_early_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_hubs.c
496
static int hp_supply_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_hubs.c
499
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_hubs.c
538
static int hp_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_hubs.c
541
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_hubs.c
590
static int earpiece_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_hubs.c
593
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_hubs.c
615
static int lineout_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_hubs.c
618
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_hubs.c
622
switch (w->shift) {
sound/soc/codecs/wm_hubs.c
645
static int micbias_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wm_hubs.c
648
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wm_hubs.c
651
switch (w->shift) {
sound/soc/codecs/wsa881x.c
918
static int wsa881x_spkr_pa_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wsa881x.c
921
struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wsa883x.c
1232
static int wsa883x_spkr_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wsa883x.c
1235
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/codecs/wsa884x.c
1696
static int wsa884x_spkr_event(struct snd_soc_dapm_widget *w,
sound/soc/codecs/wsa884x.c
1699
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/fsl/fsl_esai.h
254
#define ESAI_xCR_xSWS(s, w) ((w < 24 ? (s - w + ((w - 8) >> 2)) : (s < 32 ? 0x1e : 0x1f)) << ESAI_xCR_xSWS_SHIFT)
sound/soc/generic/audio-graph-card.c
42
static int graph_outdrv_event(struct snd_soc_dapm_widget *w,
sound/soc/generic/audio-graph-card.c
46
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/atom/sst-atom-controls.c
1002
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/intel/atom/sst-atom-controls.c
1004
struct sst_ids *ids = w->priv;
sound/soc/intel/atom/sst-atom-controls.c
1006
dev_dbg(c->dev, "widget=%s\n", w->name);
sound/soc/intel/atom/sst-atom-controls.c
1030
ret = sst_send_pipe_module_params(w, k);
sound/soc/intel/atom/sst-atom-controls.c
1034
static int sst_set_media_loop(struct snd_soc_dapm_widget *w,
sound/soc/intel/atom/sst-atom-controls.c
1039
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/intel/atom/sst-atom-controls.c
1041
struct sst_ids *ids = w->priv;
sound/soc/intel/atom/sst-atom-controls.c
1043
dev_dbg(c->dev, "Enter:widget=%s\n", w->name);
sound/soc/intel/atom/sst-atom-controls.c
1068
ret = sst_send_pipe_module_params(w, k);
sound/soc/intel/atom/sst-atom-controls.c
1302
static bool is_sst_dapm_widget(struct snd_soc_dapm_widget *w)
sound/soc/intel/atom/sst-atom-controls.c
1304
switch (w->id) {
sound/soc/intel/atom/sst-atom-controls.c
1330
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, stream);
sound/soc/intel/atom/sst-atom-controls.c
1334
dev_dbg(dai->dev, "Stream name=%s\n", w->name);
sound/soc/intel/atom/sst-atom-controls.c
1337
snd_soc_dapm_widget_for_each_sink_path(w, p) {
sound/soc/intel/atom/sst-atom-controls.c
1338
if (p->connected && !p->connected(w, p->sink))
sound/soc/intel/atom/sst-atom-controls.c
1353
snd_soc_dapm_widget_for_each_source_path(w, p) {
sound/soc/intel/atom/sst-atom-controls.c
1354
if (p->connected && !p->connected(w, p->source))
sound/soc/intel/atom/sst-atom-controls.c
1388
struct snd_soc_dapm_widget *w, int type)
sound/soc/intel/atom/sst-atom-controls.c
1391
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/intel/atom/sst-atom-controls.c
1392
struct sst_ids *ids = w->priv;
sound/soc/intel/atom/sst-atom-controls.c
1402
mc->w = w;
sound/soc/intel/atom/sst-atom-controls.c
1408
bc->w = w;
sound/soc/intel/atom/sst-atom-controls.c
1429
static int sst_fill_widget_module_info(struct snd_soc_dapm_widget *w,
sound/soc/intel/atom/sst-atom-controls.c
1444
if (strncmp(kctl->id.name, w->name, index))
sound/soc/intel/atom/sst-atom-controls.c
1448
ret = sst_fill_module_list(kctl, w, SST_MODULE_GAIN);
sound/soc/intel/atom/sst-atom-controls.c
1451
ret = sst_fill_module_list(kctl, w, SST_MODULE_ALGO);
sound/soc/intel/atom/sst-atom-controls.c
1458
mc->w = w;
sound/soc/intel/atom/sst-atom-controls.c
1463
e->w = w;
sound/soc/intel/atom/sst-atom-controls.c
1468
e->w = w;
sound/soc/intel/atom/sst-atom-controls.c
1489
struct snd_soc_dapm_widget *w;
sound/soc/intel/atom/sst-atom-controls.c
1492
list_for_each_entry(w, &component->card->widgets, list) {
sound/soc/intel/atom/sst-atom-controls.c
1493
if (!strncmp(ids->parent_wname, w->name, len)) {
sound/soc/intel/atom/sst-atom-controls.c
1494
ids->parent_w = w;
sound/soc/intel/atom/sst-atom-controls.c
1506
struct snd_soc_dapm_widget *w;
sound/soc/intel/atom/sst-atom-controls.c
1509
list_for_each_entry(w, &component->card->widgets, list) {
sound/soc/intel/atom/sst-atom-controls.c
1510
if (is_sst_dapm_widget(w) && (w->priv)) {
sound/soc/intel/atom/sst-atom-controls.c
1511
struct sst_ids *ids = w->priv;
sound/soc/intel/atom/sst-atom-controls.c
1514
w->id, w->name);
sound/soc/intel/atom/sst-atom-controls.c
1517
ret = sst_fill_widget_module_info(w, component);
sound/soc/intel/atom/sst-atom-controls.c
196
if (e->w && e->w->power)
sound/soc/intel/atom/sst-atom-controls.c
198
else if (!e->w)
sound/soc/intel/atom/sst-atom-controls.c
369
if (bc->w && bc->w->power)
sound/soc/intel/atom/sst-atom-controls.c
506
if (mc->w && mc->w->power)
sound/soc/intel/atom/sst-atom-controls.c
517
static int sst_send_pipe_module_params(struct snd_soc_dapm_widget *w,
sound/soc/intel/atom/sst-atom-controls.c
520
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/intel/atom/sst-atom-controls.c
522
struct sst_ids *ids = w->priv;
sound/soc/intel/atom/sst-atom-controls.c
525
sst_find_and_send_pipe_algo(drv, w->name, ids);
sound/soc/intel/atom/sst-atom-controls.c
532
static int sst_generic_modules_event(struct snd_soc_dapm_widget *w,
sound/soc/intel/atom/sst-atom-controls.c
536
return sst_send_pipe_module_params(w, k);
sound/soc/intel/atom/sst-atom-controls.c
622
static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w,
sound/soc/intel/atom/sst-atom-controls.c
626
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/intel/atom/sst-atom-controls.c
628
struct sst_ids *ids = w->priv;
sound/soc/intel/atom/sst-atom-controls.c
634
dev_dbg(cmpnt->dev, "widget = %s\n", w->name);
sound/soc/intel/atom/sst-atom-controls.c
639
for (i = 0; i < w->num_kcontrols; i++) {
sound/soc/intel/atom/sst-atom-controls.c
640
if (snd_soc_dapm_kcontrol_get_value(w->kcontrols[i])) {
sound/soc/intel/atom/sst-atom-controls.c
641
mc = (struct soc_mixer_control *)(w->kcontrols[i])->private_value;
sound/soc/intel/atom/sst-atom-controls.c
653
if (w->power)
sound/soc/intel/atom/sst-atom-controls.c
977
static int sst_set_be_modules(struct snd_soc_dapm_widget *w,
sound/soc/intel/atom/sst-atom-controls.c
981
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/intel/atom/sst-atom-controls.c
984
dev_dbg(c->dev, "Enter: widget=%s\n", w->name);
sound/soc/intel/atom/sst-atom-controls.c
992
ret = sst_send_pipe_module_params(w, k);
sound/soc/intel/atom/sst-atom-controls.c
997
static int sst_set_media_path(struct snd_soc_dapm_widget *w,
sound/soc/intel/atom/sst-atom-controls.h
699
struct snd_soc_dapm_widget *w;
sound/soc/intel/atom/sst-atom-controls.h
790
struct snd_soc_dapm_widget *w;
sound/soc/intel/atom/sst-atom-controls.h
842
struct snd_soc_dapm_widget *w;
sound/soc/intel/avs/boards/da7219.c
29
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/avs/boards/da7219.c
32
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/avs/boards/es8336.c
38
static int avs_es8336_speaker_power_event(struct snd_soc_dapm_widget *w,
sound/soc/intel/avs/boards/es8336.c
41
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/avs/boards/nau8825.c
24
avs_nau8825_clock_control(struct snd_soc_dapm_widget *w, struct snd_kcontrol *control, int event)
sound/soc/intel/avs/boards/nau8825.c
26
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/avs/boards/rt274.c
28
avs_rt274_clock_control(struct snd_soc_dapm_widget *w, struct snd_kcontrol *control, int event)
sound/soc/intel/avs/boards/rt274.c
30
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/avs/path.c
479
struct snd_soc_dapm_widget *w;
sound/soc/intel/avs/path.c
483
w = path_tmpl->w;
sound/soc/intel/avs/path.c
485
for (i = 0; i < w->num_kcontrols; i++) {
sound/soc/intel/avs/path.c
489
mc = (struct soc_mixer_control *)w->kcontrols[i]->private_value;
sound/soc/intel/avs/path.c
491
if (ctl_data->id == t->ctl_id && strstr(w->kcontrols[i]->id.name, name))
sound/soc/intel/avs/topology.c
1840
struct snd_soc_dapm_widget *w,
sound/soc/intel/avs/topology.c
1852
w->no_wname_in_kcontrol_name = true;
sound/soc/intel/avs/topology.c
1854
if (w->ignore_suspend && !AVS_S0IX_SUPPORTED) {
sound/soc/intel/avs/topology.c
1856
w->ignore_suspend = false;
sound/soc/intel/avs/topology.c
1877
kfree(w->name);
sound/soc/intel/avs/topology.c
1879
w->name = buf;
sound/soc/intel/avs/topology.c
1891
w->priv = template; /* link path information to widget */
sound/soc/intel/avs/topology.c
1897
struct snd_soc_dapm_widget *w,
sound/soc/intel/avs/topology.c
1900
struct avs_tplg_path_template *template = w->priv;
sound/soc/intel/avs/topology.c
1902
template->w = w;
sound/soc/intel/avs/topology.h
159
struct snd_soc_dapm_widget *w;
sound/soc/intel/boards/bdw-rt5677.c
27
static int bdw_rt5677_event_hp(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/bdw-rt5677.c
30
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/bytcht_es8316.c
89
static int byt_cht_es8316_speaker_power_event(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/bytcht_es8316.c
92
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/bytcr_rt5640.c
272
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/bytcr_rt5640.c
275
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/intel/boards/bytcr_rt5640.c
313
static int byt_rt5640_event_lineout(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/bytcr_rt5640.c
327
codec_dai = byt_rt5640_get_codec_dai(w->dapm);
sound/soc/intel/boards/bytcr_rt5651.c
188
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/bytcr_rt5651.c
191
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/bytcr_rt5651.c
233
static int rt5651_ext_amp_power_event(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/bytcr_rt5651.c
236
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/bytcr_wm5102.c
102
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/bytcr_wm5102.c
150
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/bytcr_wm5102.c
153
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/bytcr_wm5102.c
99
static int byt_wm5102_spkvdd_power_event(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/cht_bsw_max98090_ti.c
42
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/cht_bsw_max98090_ti.c
45
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/cht_bsw_rt5645.c
66
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/cht_bsw_rt5645.c
69
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/cht_bsw_rt5672.c
51
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/cht_bsw_rt5672.c
54
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/sof_da7219.c
29
static int platform_clock_control(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/sof_da7219.c
32
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/intel/boards/sof_es8336.c
155
static int sof_es8316_speaker_power_event(struct snd_soc_dapm_widget *w,
sound/soc/intel/boards/sof_es8336.c
158
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
51
static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
55
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
59
__func__, w->name, event);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
58
static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
62
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
67
__func__, w->name, event);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
270
static int mtk_apll_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
274
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
279
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
285
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
297
static int mtk_mclk_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
301
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
305
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
418
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
419
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
439
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
440
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
468
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
469
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
475
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
494
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
495
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
523
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
524
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
529
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
246
static int mtk_tdm_bck_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
250
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
256
__func__, w->name, event);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
272
static int mtk_tdm_mck_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
276
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
282
__func__, w->name, event);
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
333
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8183/mt8183-dai-tdm.c
334
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
155
static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
159
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
165
__func__, w->name, event, mtkaif_dmic);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
196
static int mtk_adda_pad_top_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
200
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
218
static int mtk_adda_mtkaif_cfg_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
222
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
238
if (snd_soc_dapm_widget_name_cmp(w, "ADDA_MTKAIF_CFG") == 0) {
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
298
static int mtk_adda_dl_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
302
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
306
__func__, w->name, event);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
454
struct snd_soc_dapm_widget *w = source;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
455
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
459
adda_priv = get_adda_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
472
struct snd_soc_dapm_widget *w = source;
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
473
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
477
adda_priv = get_adda_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
36
static int mtk_hw_gain_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
40
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
46
__func__, w->name, event);
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
50
if (snd_soc_dapm_widget_name_cmp(w, HW_GAIN_1_EN_W_NAME) == 0) {
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
357
static int mtk_i2s_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
361
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
365
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
368
__func__, w->name, event);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
384
static int mtk_apll_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
388
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
392
__func__, w->name, event);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
396
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
402
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
414
static int mtk_mclk_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
418
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
423
__func__, w->name, event);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
425
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
540
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
541
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
555
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
556
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
578
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
579
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
585
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
597
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
598
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
620
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
621
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
626
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
118
static int mtk_pcm_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
122
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
126
__func__, w->name, event);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
314
static int mtk_hw_src_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-src.c
318
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
325
if (snd_soc_dapm_widget_name_cmp(w, HW_SRC_1_EN_W_NAME) == 0)
sound/soc/mediatek/mt8186/mt8186-dai-src.c
334
__func__, w->name, event, id, src_priv,
sound/soc/mediatek/mt8186/mt8186-dai-src.c
484
struct snd_soc_dapm_widget *w = source;
sound/soc/mediatek/mt8186/mt8186-dai-src.c
485
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
490
if (snd_soc_dapm_widget_name_cmp(w, HW_SRC_1_EN_W_NAME) == 0)
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
103
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
106
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
110
__func__, w->name, event);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
126
static int mtk_tdm_mck_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
130
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
133
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
137
__func__, w->name, event, dai_id);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
201
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
202
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
205
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
214
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
215
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
218
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
231
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
232
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
235
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
244
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
245
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
248
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8186/mt8186-dai-tdm.c
99
static int mtk_tdm_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
103
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
132
static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
136
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
142
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
175
struct snd_soc_dapm_widget *w = source;
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
176
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
180
adda_priv = get_adda_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
74
static int mtk_adda_mtkaif_cfg_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
78
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
82
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
95
static int mtk_adda_dl_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
99
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
255
static int mtk_dmic_gain_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
259
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
266
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
285
static int mtk_dmic_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
289
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-dmic.c
300
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
457
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
458
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
464
etdm_priv = get_etdm_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
479
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
480
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
485
etdm_priv = get_etdm_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
495
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
496
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
508
etdm_priv = get_etdm_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
528
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
529
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
542
etdm_priv = get_etdm_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
567
static int mtk_apll_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
571
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
575
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
579
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
585
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
597
static int mtk_etdm_mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
601
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
603
int mclk_id = get_etdm_id_by_name(afe, w->name);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
611
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
627
static int mtk_dptx_mclk_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
631
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
635
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
651
static int mtk_etdm_cg_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
655
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
661
etdm_id = get_etdm_id_by_name(afe, w->name);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
674
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
690
static int mtk_etdm3_cg_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
694
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
699
__func__, w->name, event);
sound/soc/mediatek/mt8188/mt8188-mt6359.c
1290
struct snd_soc_dapm_widget *w, *next_w;
sound/soc/mediatek/mt8188/mt8188-mt6359.c
1292
for_each_card_widgets_safe(card, w, next_w) {
sound/soc/mediatek/mt8188/mt8188-mt6359.c
1293
if (strcmp(w->name, "Headphone"))
sound/soc/mediatek/mt8188/mt8188-mt6359.c
1296
snd_soc_dapm_free_widget(w);
sound/soc/mediatek/mt8188/mt8188-mt6359.c
363
struct snd_soc_dapm_widget *pin_w = NULL, *w;
sound/soc/mediatek/mt8188/mt8188-mt6359.c
403
for_each_card_widgets(rtd->card, w) {
sound/soc/mediatek/mt8188/mt8188-mt6359.c
404
if (!strcmp(w->name, "MTKAIF_PIN")) {
sound/soc/mediatek/mt8188/mt8188-mt6359.c
405
pin_w = w;
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
459
static int ul_cm0_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
463
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
469
__func__, event, w->name, channels);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
491
static int ul_cm1_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
495
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
501
__func__, event, w->name, channels);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
335
static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
339
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
345
__func__, w->name, event, mtkaif_dmic);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
377
static int mtk_adda_pad_top_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
381
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
403
static int mtk_adda_mtkaif_cfg_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
407
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
432
if (strcmp(w->name, "ADDA_MTKAIF_CFG") == 0 &&
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
440
} else if (strcmp(w->name, "ADDA6_MTKAIF_CFG") == 0 &&
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
512
static int mtk_adda_dl_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
516
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
520
__func__, w->name, event);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
557
static int mt_vs1_voter_dl_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
561
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
583
static int mt_vs1_voter_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
587
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
482
static int mtk_apll_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
486
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
490
__func__, w->name, event);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
494
if (strcmp(w->name, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
500
if (strcmp(w->name, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
512
static int mtk_mclk_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
516
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
521
__func__, w->name, event);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
523
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
732
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
733
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-i2s.c
738
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
255
static int mtk_tdm_bck_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
259
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
262
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
266
w->name, event, dai_id, tdm_priv->bck_rate);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
282
static int mtk_tdm_mck_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
286
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
289
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8189/mt8189-dai-tdm.c
293
w->name, event, dai_id, tdm_priv->mclk_rate);
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
364
static int ul_tinyconn_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
368
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
375
if (strstr(w->name, "UL1")) {
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
378
} else if (strstr(w->name, "UL2")) {
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
381
} else if (strstr(w->name, "UL3")) {
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
384
} else if (strstr(w->name, "UL4")) {
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c
391
__func__, w->name);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
213
static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
217
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
251
static int mtk_adda_ch34_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
255
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
313
static int mtk_adda_pad_top_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
317
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
335
static int mtk_adda_mtkaif_cfg_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
339
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
354
if (snd_soc_dapm_widget_name_cmp(w, "ADDA_MTKAIF_CFG") == 0 &&
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
363
} else if (snd_soc_dapm_widget_name_cmp(w, "ADDA6_MTKAIF_CFG") == 0 &&
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
443
static int mtk_adda_dl_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
447
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
466
static int mtk_adda_ch34_dl_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
470
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
631
static int mtk_stf_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
635
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1025
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1026
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1031
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
582
static int mtk_i2s_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
586
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
590
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
598
__func__, w->name, event);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
614
static int mtk_apll_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
618
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
622
__func__, w->name, event);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
626
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
632
if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0)
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
644
static int i2s_out_tinyconn_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
648
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
656
if (strstr(w->name, "I2S1")) {
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
660
} else if (strstr(w->name, "I2S3")) {
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
664
} else if (strstr(w->name, "I2S5")) {
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
668
} else if (strstr(w->name, "I2S7")) {
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
672
} else if (strstr(w->name, "I2S9")) {
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
681
__func__, w->name);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
700
static int mtk_mclk_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
704
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
709
__func__, w->name, event);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
711
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
921
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
922
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
941
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
942
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
969
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
970
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
976
i2s_priv = get_i2s_priv_by_name(afe, w->name);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
997
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
998
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
174
static int mtk_pcm_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
178
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
182
__func__, w->name, event);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
244
static int mtk_tdm_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
248
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
251
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
260
__func__, w->name, event);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
276
static int mtk_tdm_bck_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
280
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
283
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
292
__func__, w->name, event, dai_id);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
308
static int mtk_tdm_mck_en_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
312
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
315
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
324
__func__, w->name, event, dai_id);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
380
struct snd_soc_dapm_widget *w = sink;
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
381
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8192/mt8192-dai-tdm.c
384
int dai_id = get_tdm_id_by_name(w->name);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
108
static int mtk_adda_mtkaif_cfg_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
112
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
116
__func__, w->name, event);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
129
static int mtk_adda_dl_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
133
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
137
__func__, w->name, event);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
179
static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
183
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
189
__func__, w->name, event);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
206
static int mtk_adda6_ul_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
210
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
217
__func__, w->name, event);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
242
static int mtk_audio_hires_event(struct snd_soc_dapm_widget *w,
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
246
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
253
__func__, w->name, event);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
291
struct snd_soc_dapm_widget *w = source;
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
292
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
296
adda_priv = get_adda_priv_by_name(afe, w->name);
sound/soc/meson/axg-tdm-formatter.c
189
struct snd_soc_dapm_widget *w)
sound/soc/meson/axg-tdm-formatter.c
191
struct axg_tdm_stream *ts = formatter->drv->ops->get_stream(w);
sound/soc/meson/axg-tdm-formatter.c
236
int axg_tdm_formatter_event(struct snd_soc_dapm_widget *w,
sound/soc/meson/axg-tdm-formatter.c
240
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
sound/soc/meson/axg-tdm-formatter.c
246
ret = axg_tdm_formatter_power_up(formatter, w);
sound/soc/meson/axg-tdm-formatter.h
22
struct axg_tdm_stream *(*get_stream)(struct snd_soc_dapm_widget *w);
sound/soc/meson/axg-tdm-formatter.h
40
int axg_tdm_formatter_event(struct snd_soc_dapm_widget *w,
sound/soc/meson/axg-tdmin.c
58
axg_tdmin_get_be(struct snd_soc_dapm_widget *w)
sound/soc/meson/axg-tdmin.c
63
snd_soc_dapm_widget_for_each_source_path(w, p) {
sound/soc/meson/axg-tdmin.c
79
axg_tdmin_get_tdm_stream(struct snd_soc_dapm_widget *w)
sound/soc/meson/axg-tdmin.c
81
struct snd_soc_dai *be = axg_tdmin_get_be(w);
sound/soc/meson/axg-tdmout.c
56
axg_tdmout_get_be(struct snd_soc_dapm_widget *w)
sound/soc/meson/axg-tdmout.c
61
snd_soc_dapm_widget_for_each_sink_path(w, p) {
sound/soc/meson/axg-tdmout.c
77
axg_tdmout_get_tdm_stream(struct snd_soc_dapm_widget *w)
sound/soc/meson/axg-tdmout.c
79
struct snd_soc_dai *be = axg_tdmout_get_be(w);
sound/soc/meson/meson-codec-glue.c
102
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget_capture(dai);
sound/soc/meson/meson-codec-glue.c
103
struct meson_codec_glue_input *in_data = meson_codec_glue_output_get_input_data(w);
sound/soc/meson/meson-codec-glue.c
14
meson_codec_glue_get_input(struct snd_soc_dapm_widget *w)
sound/soc/meson/meson-codec-glue.c
19
snd_soc_dapm_widget_for_each_source_path(w, p) {
sound/soc/meson/meson-codec-glue.c
24
if (snd_soc_dapm_to_component(w->dapm) !=
sound/soc/meson/meson-codec-glue.c
53
meson_codec_glue_output_get_input_data(struct snd_soc_dapm_widget *w)
sound/soc/meson/meson-codec-glue.c
56
meson_codec_glue_get_input(w);
sound/soc/pxa/spitz.c
201
static int spitz_mic_bias(struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/q6usb.c
139
static int q6usb_get_pcm_id_from_widget(struct snd_soc_dapm_widget *w)
sound/soc/qcom/qdsp6/q6usb.c
141
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/qcom/qdsp6/q6usb.c
151
if (dai->stream[0].widget == w)
sound/soc/qcom/qdsp6/q6usb.c
158
static int q6usb_usb_mixer_enabled(struct snd_soc_dapm_widget *w)
sound/soc/qcom/qdsp6/q6usb.c
163
snd_soc_dapm_widget_for_each_sink_path(w, p)
sound/soc/qcom/qdsp6/q6usb.c
172
struct snd_soc_dapm_widget *w;
sound/soc/qcom/qdsp6/q6usb.c
181
for_each_card_widgets(component->card, w) {
sound/soc/qcom/qdsp6/q6usb.c
182
if (!strncmp(w->name, "MultiMedia", 10)) {
sound/soc/qcom/qdsp6/q6usb.c
188
snd_soc_dapm_widget_for_each_sink_path(w, p) {
sound/soc/qcom/qdsp6/q6usb.c
190
pidx = q6usb_get_pcm_id_from_widget(w);
sound/soc/qcom/qdsp6/topology.c
1010
if (control->w && !strcmp(name, control->w->name))
sound/soc/qcom/qdsp6/topology.c
1037
struct snd_soc_dapm_widget *w;
sound/soc/qcom/qdsp6/topology.c
1052
if (!control || !control->w)
sound/soc/qcom/qdsp6/topology.c
1055
w = control->w;
sound/soc/qcom/qdsp6/topology.c
1057
for (i = 0; i < w->num_kcontrols; i++) {
sound/soc/qcom/qdsp6/topology.c
1058
if (!strcmp(route->control, w->kcontrol_news[i].name)) {
sound/soc/qcom/qdsp6/topology.c
1063
sm = (struct soc_mixer_control *)w->kcontrol_news[i].private_value;
sound/soc/qcom/qdsp6/topology.c
164
struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
203
mod->widget = w;
sound/soc/qcom/qdsp6/topology.c
23
struct snd_soc_dapm_widget *w;
sound/soc/qcom/qdsp6/topology.c
441
struct snd_soc_dapm_widget *w)
sound/soc/qcom/qdsp6/topology.c
469
mod = audioreach_tplg_alloc_module(apm, cont, w,
sound/soc/qcom/qdsp6/topology.c
592
int index, struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
609
mod = audioreach_parse_common_tokens(apm, cont, &tplg_w->priv, w);
sound/soc/qcom/qdsp6/topology.c
615
dobj = &w->dobj;
sound/soc/qcom/qdsp6/topology.c
622
int index, struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
632
ret = audioreach_widget_load_module_common(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
636
dobj = &w->dobj;
sound/soc/qcom/qdsp6/topology.c
780
int index, struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
788
ret = audioreach_widget_load_module_common(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
792
dobj = &w->dobj;
sound/soc/qcom/qdsp6/topology.c
820
int index, struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
837
dobj = &w->dobj;
sound/soc/qcom/qdsp6/topology.c
856
scontrol->w = w;
sound/soc/qcom/qdsp6/topology.c
862
static int audioreach_pga_event(struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
866
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/qcom/qdsp6/topology.c
868
struct audioreach_module *mod = w->dobj.private;
sound/soc/qcom/qdsp6/topology.c
888
int index, struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
895
ret = audioreach_widget_load_module_common(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
899
dobj = &w->dobj;
sound/soc/qcom/qdsp6/topology.c
903
ret = snd_soc_tplg_widget_bind_event(w, audioreach_widget_ops,
sound/soc/qcom/qdsp6/topology.c
916
int index, struct snd_soc_dapm_widget *w,
sound/soc/qcom/qdsp6/topology.c
919
switch (w->id) {
sound/soc/qcom/qdsp6/topology.c
922
audioreach_widget_load_buffer(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
927
audioreach_widget_load_enc_dec_cnv(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
930
audioreach_widget_load_buffer(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
933
return audioreach_widget_load_mixer(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
935
return audioreach_widget_load_pga(component, index, w, tplg_w);
sound/soc/qcom/qdsp6/topology.c
940
dev_err(component->dev, "Widget type (0x%x) not yet supported\n", w->id);
sound/soc/qcom/qdsp6/topology.c
950
const struct snd_soc_dapm_widget *w = container_of(dobj, struct snd_soc_dapm_widget, dobj);
sound/soc/qcom/qdsp6/topology.c
958
if (w->id == snd_soc_dapm_mixer) {
sound/soc/rockchip/rk3288_hdmi_analog.c
31
static int rk_hp_power(struct snd_soc_dapm_widget *w,
sound/soc/rockchip/rk3288_hdmi_analog.c
34
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/samsung/aries_wm8994.c
159
static int aries_spk_cfg(struct snd_soc_dapm_widget *w,
sound/soc/samsung/aries_wm8994.c
162
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/samsung/aries_wm8994.c
194
static int aries_main_bias(struct snd_soc_dapm_widget *w,
sound/soc/samsung/aries_wm8994.c
197
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/samsung/aries_wm8994.c
213
static int aries_headset_bias(struct snd_soc_dapm_widget *w,
sound/soc/samsung/aries_wm8994.c
216
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/samsung/littlemill.c
173
static int bbclk_ev(struct snd_soc_dapm_widget *w,
sound/soc/samsung/littlemill.c
176
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/samsung/midas_wm1811.c
263
static int midas_ext_spkmode(struct snd_soc_dapm_widget *w,
sound/soc/samsung/midas_wm1811.c
266
struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm);
sound/soc/samsung/midas_wm1811.c
285
static int midas_fm_set(struct snd_soc_dapm_widget *w,
sound/soc/samsung/midas_wm1811.c
288
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/samsung/midas_wm1811.c
306
static int midas_line_set(struct snd_soc_dapm_widget *w,
sound/soc/samsung/midas_wm1811.c
309
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/samsung/tm2_wm5110.c
260
static int tm2_mic_bias(struct snd_soc_dapm_widget *w,
sound/soc/samsung/tm2_wm5110.c
263
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/soc-dapm.c
1014
dapm_wcache_lookup(struct snd_soc_dapm_widget *w, const char *name)
sound/soc/soc-dapm.c
1016
if (w) {
sound/soc/soc-dapm.c
1017
struct list_head *wlist = &w->dapm->card->widgets;
sound/soc/soc-dapm.c
1021
list_for_each_entry_from(w, wlist, list) {
sound/soc/soc-dapm.c
1022
if (!strcmp(name, w->name))
sound/soc/soc-dapm.c
1023
return w;
sound/soc/soc-dapm.c
1139
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
1144
for_each_card_widgets(dapm->card, w) {
sound/soc/soc-dapm.c
1145
if (w == kcontrolw || w->dapm != kcontrolw->dapm)
sound/soc/soc-dapm.c
1147
for (i = 0; i < w->num_kcontrols; i++) {
sound/soc/soc-dapm.c
1148
if (&w->kcontrol_news[i] == kcontrol_new) {
sound/soc/soc-dapm.c
1149
if (w->kcontrols)
sound/soc/soc-dapm.c
1150
*kcontrol = w->kcontrols[i];
sound/soc/soc-dapm.c
1163
static int dapm_create_or_share_kcontrol(struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
1166
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/soc-dapm.c
1184
shared = dapm_is_shared_kcontrol(dapm, w, &w->kcontrol_news[kci],
sound/soc/soc-dapm.c
1192
switch (w->id) {
sound/soc/soc-dapm.c
1214
if (w->no_wname_in_kcontrol_name)
sound/soc/soc-dapm.c
1225
w->name + prefix_len,
sound/soc/soc-dapm.c
1226
w->kcontrol_news[kci].name);
sound/soc/soc-dapm.c
1233
name = w->name + prefix_len;
sound/soc/soc-dapm.c
1236
name = w->kcontrol_news[kci].name;
sound/soc/soc-dapm.c
1239
kcontrol = snd_soc_cnew(&w->kcontrol_news[kci], NULL, name,
sound/soc/soc-dapm.c
1248
ret = dapm_kcontrol_data_alloc(w, kcontrol, name);
sound/soc/soc-dapm.c
1258
w->name, name, ret);
sound/soc/soc-dapm.c
1263
ret = dapm_kcontrol_add_widget(kcontrol, w);
sound/soc/soc-dapm.c
1265
w->kcontrols[kci] = kcontrol;
sound/soc/soc-dapm.c
1274
static int dapm_new_mixer(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1281
for (i = 0; i < w->num_kcontrols; i++) {
sound/soc/soc-dapm.c
1283
snd_soc_dapm_widget_for_each_source_path(w, path) {
sound/soc/soc-dapm.c
1285
if (path->name != (char *)w->kcontrol_news[i].name)
sound/soc/soc-dapm.c
1288
if (!w->kcontrols[i]) {
sound/soc/soc-dapm.c
1289
ret = dapm_create_or_share_kcontrol(w, i);
sound/soc/soc-dapm.c
1294
dapm_kcontrol_add_path(w->kcontrols[i], path);
sound/soc/soc-dapm.c
1296
data = snd_kcontrol_chip(w->kcontrols[i]);
sound/soc/soc-dapm.c
1309
static int dapm_new_mux(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1311
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/soc-dapm.c
1318
switch (w->id) {
sound/soc/soc-dapm.c
1331
if (w->num_kcontrols != 1) {
sound/soc/soc-dapm.c
1334
w->name);
sound/soc/soc-dapm.c
1338
if (list_empty(&w->edges[dir])) {
sound/soc/soc-dapm.c
1339
dev_err(dev, "ASoC: %s %s has no paths\n", type, w->name);
sound/soc/soc-dapm.c
1343
ret = dapm_create_or_share_kcontrol(w, 0);
sound/soc/soc-dapm.c
1347
snd_soc_dapm_widget_for_each_path(w, dir, path) {
sound/soc/soc-dapm.c
1349
dapm_kcontrol_add_path(w->kcontrols[0], path);
sound/soc/soc-dapm.c
1356
static int dapm_new_pga(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1360
for (i = 0; i < w->num_kcontrols; i++) {
sound/soc/soc-dapm.c
1361
int ret = dapm_create_or_share_kcontrol(w, i);
sound/soc/soc-dapm.c
1370
static int dapm_new_dai_link(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1373
struct snd_soc_pcm_runtime *rtd = w->priv;
sound/soc/soc-dapm.c
1380
for (i = 0; i < w->num_kcontrols; i++) {
sound/soc/soc-dapm.c
1381
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/soc-dapm.c
1384
struct snd_kcontrol *kcontrol = snd_soc_cnew(&w->kcontrol_news[i],
sound/soc/soc-dapm.c
1385
w, w->name, NULL);
sound/soc/soc-dapm.c
1391
w->name, w->kcontrol_news[i].name, ret);
sound/soc/soc-dapm.c
1394
kcontrol->private_data = w;
sound/soc/soc-dapm.c
1395
w->kcontrols[i] = kcontrol;
sound/soc/soc-dapm.c
1430
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
1444
list_for_each_entry(w, widgets, work_list)
sound/soc/soc-dapm.c
1445
(*list)->widgets[i++] = w;
sound/soc/soc-dapm.c
1602
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-dapm.c
1610
dapm_invalidate_paths_ep(w, SND_SOC_DAPM_DIR_OUT);
sound/soc/soc-dapm.c
1611
paths = dapm_is_connected_output_ep(w, &widgets,
sound/soc/soc-dapm.c
1614
dapm_invalidate_paths_ep(w, SND_SOC_DAPM_DIR_IN);
sound/soc/soc-dapm.c
1615
paths = dapm_is_connected_input_ep(w, &widgets,
sound/soc/soc-dapm.c
1642
int snd_soc_dapm_regulator_event(struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
1645
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/soc-dapm.c
1648
dapm_async_complete(w->dapm);
sound/soc/soc-dapm.c
1651
if (w->on_val & SND_SOC_DAPM_REGULATOR_BYPASS) {
sound/soc/soc-dapm.c
1652
ret = regulator_allow_bypass(w->regulator, false);
sound/soc/soc-dapm.c
1656
w->name, ret);
sound/soc/soc-dapm.c
1659
return regulator_enable(w->regulator);
sound/soc/soc-dapm.c
1661
if (w->on_val & SND_SOC_DAPM_REGULATOR_BYPASS) {
sound/soc/soc-dapm.c
1662
ret = regulator_allow_bypass(w->regulator, true);
sound/soc/soc-dapm.c
1666
w->name, ret);
sound/soc/soc-dapm.c
1669
return regulator_disable_deferred(w->regulator, w->shift);
sound/soc/soc-dapm.c
1677
int snd_soc_dapm_pinctrl_event(struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
1680
struct snd_soc_dapm_pinctrl_priv *priv = w->priv;
sound/soc/soc-dapm.c
1681
struct pinctrl *p = w->pinctrl;
sound/soc/soc-dapm.c
1702
int snd_soc_dapm_clock_event(struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
1705
if (!w->clk)
sound/soc/soc-dapm.c
1708
dapm_async_complete(w->dapm);
sound/soc/soc-dapm.c
1711
return clk_prepare_enable(w->clk);
sound/soc/soc-dapm.c
1713
clk_disable_unprepare(w->clk);
sound/soc/soc-dapm.c
1721
static int dapm_widget_power_check(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1723
if (w->power_checked)
sound/soc/soc-dapm.c
1724
return w->new_power;
sound/soc/soc-dapm.c
1726
if (w->force)
sound/soc/soc-dapm.c
1727
w->new_power = 1;
sound/soc/soc-dapm.c
1729
w->new_power = w->power_check(w);
sound/soc/soc-dapm.c
1731
w->power_checked = true;
sound/soc/soc-dapm.c
1733
return w->new_power;
sound/soc/soc-dapm.c
1737
static int dapm_generic_check_power(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1741
DAPM_UPDATE_STAT(w, power_checks);
sound/soc/soc-dapm.c
1743
in = dapm_is_connected_input_ep(w, NULL, NULL);
sound/soc/soc-dapm.c
1744
out = dapm_is_connected_output_ep(w, NULL, NULL);
sound/soc/soc-dapm.c
1749
static int dapm_supply_check_power(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1753
DAPM_UPDATE_STAT(w, power_checks);
sound/soc/soc-dapm.c
1756
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
1757
DAPM_UPDATE_STAT(w, neighbour_checks);
sound/soc/soc-dapm.c
1770
static int dapm_always_on_check_power(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
1772
return w->connected;
sound/soc/soc-dapm.c
1813
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
1815
list_for_each_entry(w, list, power_list)
sound/soc/soc-dapm.c
1816
if (dapm_seq_compare(new_widget, w, power_up) < 0) {
sound/soc/soc-dapm.c
1817
list_add_tail(&new_widget->power_list, &w->power_list);
sound/soc/soc-dapm.c
1825
struct snd_soc_dapm_widget *w, int event)
sound/soc/soc-dapm.c
1861
if (w->new_power != power)
sound/soc/soc-dapm.c
1864
if (w->event && (w->event_flags & event)) {
sound/soc/soc-dapm.c
1868
w->name, ev_name);
sound/soc/soc-dapm.c
1869
dapm_async_complete(w->dapm);
sound/soc/soc-dapm.c
1870
trace_snd_soc_dapm_widget_event_start(w, event);
sound/soc/soc-dapm.c
1871
ret = w->event(w, NULL, event);
sound/soc/soc-dapm.c
1872
trace_snd_soc_dapm_widget_event_done(w, event);
sound/soc/soc-dapm.c
1875
ev_name, w->name, ret);
sound/soc/soc-dapm.c
1885
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
1890
w = list_first_entry(pending, struct snd_soc_dapm_widget, power_list);
sound/soc/soc-dapm.c
1891
reg = w->reg;
sound/soc/soc-dapm.c
1892
dapm = w->dapm;
sound/soc/soc-dapm.c
1894
list_for_each_entry(w, pending, power_list) {
sound/soc/soc-dapm.c
1895
WARN_ON(reg != w->reg || dapm != w->dapm);
sound/soc/soc-dapm.c
1896
w->power = w->new_power;
sound/soc/soc-dapm.c
1898
mask |= w->mask << w->shift;
sound/soc/soc-dapm.c
1899
if (w->power)
sound/soc/soc-dapm.c
1900
value |= w->on_val << w->shift;
sound/soc/soc-dapm.c
1902
value |= w->off_val << w->shift;
sound/soc/soc-dapm.c
1906
w->name, reg, value, mask);
sound/soc/soc-dapm.c
1909
dapm_seq_check_event(card, w, SND_SOC_DAPM_PRE_PMU);
sound/soc/soc-dapm.c
1910
dapm_seq_check_event(card, w, SND_SOC_DAPM_PRE_PMD);
sound/soc/soc-dapm.c
1925
list_for_each_entry(w, pending, power_list) {
sound/soc/soc-dapm.c
1926
dapm_seq_check_event(card, w, SND_SOC_DAPM_POST_PMU);
sound/soc/soc-dapm.c
1927
dapm_seq_check_event(card, w, SND_SOC_DAPM_POST_PMD);
sound/soc/soc-dapm.c
1943
struct snd_soc_dapm_widget *w, *n;
sound/soc/soc-dapm.c
1958
list_for_each_entry_safe(w, n, list, power_list) {
sound/soc/soc-dapm.c
1962
if (sort[w->id] != cur_sort || w->reg != cur_reg ||
sound/soc/soc-dapm.c
1963
w->dapm != cur_dapm || w->subseq != cur_subseq) {
sound/soc/soc-dapm.c
1975
if (cur_dapm && w->dapm != cur_dapm)
sound/soc/soc-dapm.c
1985
switch (w->id) {
sound/soc/soc-dapm.c
1987
if (!w->event)
sound/soc/soc-dapm.c
1991
ret = w->event(w,
sound/soc/soc-dapm.c
1994
ret = w->event(w,
sound/soc/soc-dapm.c
1999
if (!w->event)
sound/soc/soc-dapm.c
2003
ret = w->event(w,
sound/soc/soc-dapm.c
2006
ret = w->event(w,
sound/soc/soc-dapm.c
2012
cur_sort = sort[w->id];
sound/soc/soc-dapm.c
2013
cur_subseq = w->subseq;
sound/soc/soc-dapm.c
2014
cur_reg = w->reg;
sound/soc/soc-dapm.c
2015
cur_dapm = w->dapm;
sound/soc/soc-dapm.c
2016
list_move(&w->power_list, &pending);
sound/soc/soc-dapm.c
2044
struct snd_soc_dapm_widget *w = NULL;
sound/soc/soc-dapm.c
2053
for_each_dapm_widgets(wlist, wi, w) {
sound/soc/soc-dapm.c
2054
if (w->event && (w->event_flags & SND_SOC_DAPM_PRE_REG)) {
sound/soc/soc-dapm.c
2055
ret = w->event(w, update->kcontrol, SND_SOC_DAPM_PRE_REG);
sound/soc/soc-dapm.c
2058
w->name, ret);
sound/soc/soc-dapm.c
2062
if (!w)
sound/soc/soc-dapm.c
2065
ret = dapm_update_bits(w->dapm, update->reg, update->mask,
sound/soc/soc-dapm.c
2069
w->name, ret);
sound/soc/soc-dapm.c
2072
ret = dapm_update_bits(w->dapm, update->reg2,
sound/soc/soc-dapm.c
2077
w->name, ret);
sound/soc/soc-dapm.c
2080
for_each_dapm_widgets(wlist, wi, w) {
sound/soc/soc-dapm.c
2081
if (w->event && (w->event_flags & SND_SOC_DAPM_POST_REG)) {
sound/soc/soc-dapm.c
2082
ret = w->event(w, update->kcontrol, SND_SOC_DAPM_POST_REG);
sound/soc/soc-dapm.c
2085
w->name, ret);
sound/soc/soc-dapm.c
215
static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
217
return !list_empty(&w->dirty);
sound/soc/soc-dapm.c
2176
static void dapm_power_one_widget(struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
2183
switch (w->id) {
sound/soc/soc-dapm.c
2194
power = dapm_widget_power_check(w);
sound/soc/soc-dapm.c
2196
if (w->power == power)
sound/soc/soc-dapm.c
2199
trace_snd_soc_dapm_widget_power(w, power);
sound/soc/soc-dapm.c
220
static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason)
sound/soc/soc-dapm.c
2205
snd_soc_dapm_widget_for_each_source_path(w, path)
sound/soc/soc-dapm.c
2211
if (!w->is_supply)
sound/soc/soc-dapm.c
2212
snd_soc_dapm_widget_for_each_sink_path(w, path)
sound/soc/soc-dapm.c
2217
dapm_seq_insert(w, up_list, true);
sound/soc/soc-dapm.c
2219
dapm_seq_insert(w, down_list, false);
sound/soc/soc-dapm.c
222
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/soc-dapm.c
224
dapm_assert_locked(w->dapm);
sound/soc/soc-dapm.c
2256
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
226
if (!dapm_dirty_widget(w)) {
sound/soc/soc-dapm.c
228
w->name, reason);
sound/soc/soc-dapm.c
2283
list_for_each_entry(w, &card->dapm_dirty, dirty) {
sound/soc/soc-dapm.c
2284
dapm_power_one_widget(w, &up_list, &down_list);
sound/soc/soc-dapm.c
2287
for_each_card_widgets(card, w) {
sound/soc/soc-dapm.c
2288
switch (w->id) {
sound/soc/soc-dapm.c
229
list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty);
sound/soc/soc-dapm.c
2294
list_del_init(&w->dirty);
sound/soc/soc-dapm.c
2298
if (w->new_power) {
sound/soc/soc-dapm.c
2299
d = w->dapm;
sound/soc/soc-dapm.c
2308
switch (w->id) {
sound/soc/soc-dapm.c
2351
list_for_each_entry(w, &down_list, power_list) {
sound/soc/soc-dapm.c
2352
dapm_seq_check_event(card, w, SND_SOC_DAPM_WILL_PMD);
sound/soc/soc-dapm.c
2355
list_for_each_entry(w, &up_list, power_list) {
sound/soc/soc-dapm.c
2356
dapm_seq_check_event(card, w, SND_SOC_DAPM_WILL_PMU);
sound/soc/soc-dapm.c
241
struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir)
sound/soc/soc-dapm.c
2443
struct snd_soc_dapm_widget *w = file->private_data;
sound/soc/soc-dapm.c
2457
snd_soc_dapm_mutex_lock_root(w->dapm);
sound/soc/soc-dapm.c
2460
if (w->is_supply) {
sound/soc/soc-dapm.c
2464
in = dapm_is_connected_input_ep(w, NULL, NULL);
sound/soc/soc-dapm.c
2465
out = dapm_is_connected_output_ep(w, NULL, NULL);
sound/soc/soc-dapm.c
2469
w->name, w->power ? "On" : "Off",
sound/soc/soc-dapm.c
2470
w->force ? " (forced)" : "", in, out);
sound/soc/soc-dapm.c
2472
if (w->reg >= 0)
sound/soc/soc-dapm.c
2475
w->reg, w->reg, w->mask << w->shift);
sound/soc/soc-dapm.c
2479
if (w->sname)
sound/soc/soc-dapm.c
248
dapm_assert_locked(w->dapm);
sound/soc/soc-dapm.c
2481
w->sname,
sound/soc/soc-dapm.c
2482
w->active ? "active" : "inactive");
sound/soc/soc-dapm.c
2485
dapm_type_name[w->id]);
sound/soc/soc-dapm.c
2489
snd_soc_dapm_widget_for_each_path(w, dir, p) {
sound/soc/soc-dapm.c
250
if (w->endpoints[dir] == -1)
sound/soc/soc-dapm.c
2506
snd_soc_dapm_mutex_unlock(w->dapm);
sound/soc/soc-dapm.c
253
list_add_tail(&w->work_list, &list);
sound/soc/soc-dapm.c
254
w->endpoints[dir] = -1;
sound/soc/soc-dapm.c
256
list_for_each_entry(w, &list, work_list) {
sound/soc/soc-dapm.c
2567
static void dapm_debugfs_add_widget(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
2569
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/soc-dapm.c
257
snd_soc_dapm_widget_for_each_path(w, dir, p) {
sound/soc/soc-dapm.c
2571
if (!dapm->debugfs_dapm || !w->name)
sound/soc/soc-dapm.c
2574
debugfs_create_file(w->name, 0444, dapm->debugfs_dapm, w,
sound/soc/soc-dapm.c
2578
static void dapm_debugfs_free_widget(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
2580
struct snd_soc_dapm_context *dapm = w->dapm;
sound/soc/soc-dapm.c
2582
if (!dapm->debugfs_dapm || !w->name)
sound/soc/soc-dapm.c
2585
debugfs_lookup_and_remove(w->name, dapm->debugfs_dapm);
sound/soc/soc-dapm.c
2600
static inline void dapm_debugfs_add_widget(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
2604
static inline void dapm_debugfs_free_widget(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
2747
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
2757
for_each_card_widgets(component->card, w) {
sound/soc/soc-dapm.c
2758
if (w->dapm != dapm)
sound/soc/soc-dapm.c
2762
switch (w->id) {
sound/soc/soc-dapm.c
2779
if (w->name)
sound/soc/soc-dapm.c
2781
w->name, w->power ? "On":"Off");
sound/soc/soc-dapm.c
281
static void dapm_widget_invalidate_input_paths(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
283
dapm_widget_invalidate_paths(w, SND_SOC_DAPM_DIR_IN);
sound/soc/soc-dapm.c
2850
void snd_soc_dapm_free_widget(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
2855
if (!w)
sound/soc/soc-dapm.c
2858
list_del(&w->list);
sound/soc/soc-dapm.c
2859
list_del(&w->dirty);
sound/soc/soc-dapm.c
2866
snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p)
sound/soc/soc-dapm.c
2870
dapm_debugfs_free_widget(w);
sound/soc/soc-dapm.c
2872
kfree(w->kcontrols);
sound/soc/soc-dapm.c
2873
kfree_const(w->name);
sound/soc/soc-dapm.c
2874
kfree_const(w->sname);
sound/soc/soc-dapm.c
2875
kfree(w);
sound/soc/soc-dapm.c
2882
struct snd_soc_dapm_widget *w, *next_w;
sound/soc/soc-dapm.c
2884
for_each_card_widgets_safe(dapm->card, w, next_w) {
sound/soc/soc-dapm.c
2885
if (w->dapm != dapm)
sound/soc/soc-dapm.c
2887
snd_soc_dapm_free_widget(w);
sound/soc/soc-dapm.c
2898
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
2912
for_each_card_widgets(dapm->card, w) {
sound/soc/soc-dapm.c
2913
if (!strcmp(w->name, pin_name)) {
sound/soc/soc-dapm.c
2914
if (w->dapm == dapm)
sound/soc/soc-dapm.c
2915
return w;
sound/soc/soc-dapm.c
2917
fallback = w;
sound/soc/soc-dapm.c
2935
struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true);
sound/soc/soc-dapm.c
2941
if (!w) {
sound/soc/soc-dapm.c
2946
if (w->connected != status) {
sound/soc/soc-dapm.c
2947
dapm_mark_dirty(w, "pin configuration");
sound/soc/soc-dapm.c
2948
dapm_widget_invalidate_input_paths(w);
sound/soc/soc-dapm.c
2949
dapm_widget_invalidate_output_paths(w);
sound/soc/soc-dapm.c
2953
w->connected = status;
sound/soc/soc-dapm.c
2955
w->force = 0;
sound/soc/soc-dapm.c
298
static void dapm_widget_invalidate_output_paths(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
300
dapm_widget_invalidate_paths(w, SND_SOC_DAPM_DIR_OUT);
sound/soc/soc-dapm.c
3017
struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
3020
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/soc-dapm.c
3022
switch (w->id) {
sound/soc/soc-dapm.c
3031
w->channel < channels ? "Connecting" : "Disconnecting",
sound/soc/soc-dapm.c
3034
if (w->channel < channels)
sound/soc/soc-dapm.c
3049
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
3052
w = snd_soc_dai_get_widget(dai, dir);
sound/soc/soc-dapm.c
3054
if (!w)
sound/soc/soc-dapm.c
3059
snd_soc_dapm_widget_for_each_sink_path(w, p) {
sound/soc/soc-dapm.c
3065
snd_soc_dapm_widget_for_each_source_path(w, p) {
sound/soc/soc-dapm.c
3103
struct snd_soc_dapm_widget *wsource = NULL, *wsink = NULL, *w;
sound/soc/soc-dapm.c
3138
for_each_card_widgets(dapm->card, w) {
sound/soc/soc-dapm.c
3139
if (!wsink && !(strcmp(w->name, sink))) {
sound/soc/soc-dapm.c
3140
wtsink = w;
sound/soc/soc-dapm.c
3141
if (w->dapm == dapm) {
sound/soc/soc-dapm.c
3142
wsink = w;
sound/soc/soc-dapm.c
3150
w->name);
sound/soc/soc-dapm.c
3153
if (!wsource && !(strcmp(w->name, source))) {
sound/soc/soc-dapm.c
3154
wtsource = w;
sound/soc/soc-dapm.c
3155
if (w->dapm == dapm) {
sound/soc/soc-dapm.c
3156
wsource = w;
sound/soc/soc-dapm.c
3164
w->name);
sound/soc/soc-dapm.c
3324
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
3329
for_each_card_widgets(card, w)
sound/soc/soc-dapm.c
3331
if (w->new)
sound/soc/soc-dapm.c
3334
if (w->num_kcontrols) {
sound/soc/soc-dapm.c
3335
w->kcontrols = kzalloc_objs(struct snd_kcontrol *,
sound/soc/soc-dapm.c
3336
w->num_kcontrols);
sound/soc/soc-dapm.c
3337
if (!w->kcontrols) {
sound/soc/soc-dapm.c
3343
switch(w->id) {
sound/soc/soc-dapm.c
3347
dapm_new_mixer(w);
sound/soc/soc-dapm.c
3351
dapm_new_mux(w);
sound/soc/soc-dapm.c
3356
dapm_new_pga(w);
sound/soc/soc-dapm.c
3359
dapm_new_dai_link(w);
sound/soc/soc-dapm.c
3366
if (w->reg >= 0) {
sound/soc/soc-dapm.c
3367
val = dapm_read(w->dapm, w->reg);
sound/soc/soc-dapm.c
3368
val = val >> w->shift;
sound/soc/soc-dapm.c
3369
val &= w->mask;
sound/soc/soc-dapm.c
337
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
3370
if (val == w->on_val)
sound/soc/soc-dapm.c
3371
w->power = 1;
sound/soc/soc-dapm.c
3374
w->new = 1;
sound/soc/soc-dapm.c
3376
dapm_mark_dirty(w, "new widget");
sound/soc/soc-dapm.c
3377
dapm_debugfs_add_widget(w);
sound/soc/soc-dapm.c
341
for_each_card_widgets(card, w) {
sound/soc/soc-dapm.c
342
if (w->is_ep) {
sound/soc/soc-dapm.c
343
dapm_mark_dirty(w, "Rechecking endpoints");
sound/soc/soc-dapm.c
344
if (w->is_ep & SND_SOC_DAPM_EP_SINK)
sound/soc/soc-dapm.c
345
dapm_widget_invalidate_output_paths(w);
sound/soc/soc-dapm.c
346
if (w->is_ep & SND_SOC_DAPM_EP_SOURCE)
sound/soc/soc-dapm.c
347
dapm_widget_invalidate_input_paths(w);
sound/soc/soc-dapm.c
359
struct snd_soc_dapm_widget *w __free(kfree) = kmemdup(_widget,
sound/soc/soc-dapm.c
362
if (!w)
sound/soc/soc-dapm.c
366
w->name = kasprintf(GFP_KERNEL, "%s %s", prefix, _widget->name);
sound/soc/soc-dapm.c
368
w->name = kstrdup_const(_widget->name, GFP_KERNEL);
sound/soc/soc-dapm.c
369
if (!w->name)
sound/soc/soc-dapm.c
373
w->sname = kstrdup_const(_widget->sname, GFP_KERNEL);
sound/soc/soc-dapm.c
374
if (!w->sname) {
sound/soc/soc-dapm.c
375
kfree_const(w->name);
sound/soc/soc-dapm.c
3762
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
3765
w = dapm_cnew_widget(widget, dapm_prefix(dapm));
sound/soc/soc-dapm.c
3766
if (!w)
sound/soc/soc-dapm.c
3769
switch (w->id) {
sound/soc/soc-dapm.c
3771
w->regulator = devm_regulator_get(dev, widget->name);
sound/soc/soc-dapm.c
3772
if (IS_ERR(w->regulator)) {
sound/soc/soc-dapm.c
3773
ret = PTR_ERR(w->regulator);
sound/soc/soc-dapm.c
3777
if (w->on_val & SND_SOC_DAPM_REGULATOR_BYPASS) {
sound/soc/soc-dapm.c
3778
ret = regulator_allow_bypass(w->regulator, true);
sound/soc/soc-dapm.c
3782
w->name, ret);
sound/soc/soc-dapm.c
3786
w->pinctrl = devm_pinctrl_get(dev);
sound/soc/soc-dapm.c
3787
if (IS_ERR(w->pinctrl)) {
sound/soc/soc-dapm.c
3788
ret = PTR_ERR(w->pinctrl);
sound/soc/soc-dapm.c
3793
snd_soc_dapm_pinctrl_event(w, NULL, SND_SOC_DAPM_POST_PMD);
sound/soc/soc-dapm.c
3796
w->clk = devm_clk_get(dev, widget->name);
sound/soc/soc-dapm.c
3797
if (IS_ERR(w->clk)) {
sound/soc/soc-dapm.c
3798
ret = PTR_ERR(w->clk);
sound/soc/soc-dapm.c
380
return_ptr(w);
sound/soc/soc-dapm.c
3806
switch (w->id) {
sound/soc/soc-dapm.c
3808
w->is_ep = SND_SOC_DAPM_EP_SOURCE;
sound/soc/soc-dapm.c
3809
w->power_check = dapm_generic_check_power;
sound/soc/soc-dapm.c
3813
w->is_ep = SND_SOC_DAPM_EP_SOURCE;
sound/soc/soc-dapm.c
3814
w->power_check = dapm_generic_check_power;
sound/soc/soc-dapm.c
3818
w->is_ep = SND_SOC_DAPM_EP_SINK;
sound/soc/soc-dapm.c
3819
w->power_check = dapm_generic_check_power;
sound/soc/soc-dapm.c
3823
w->is_ep = SND_SOC_DAPM_EP_SINK;
sound/soc/soc-dapm.c
3824
w->power_check = dapm_generic_check_power;
sound/soc/soc-dapm.c
3828
w->is_ep = SND_SOC_DAPM_EP_SOURCE;
sound/soc/soc-dapm.c
3829
w->power_check = dapm_always_on_check_power;
sound/soc/soc-dapm.c
3832
w->is_ep = SND_SOC_DAPM_EP_SINK;
sound/soc/soc-dapm.c
3833
w->power_check = dapm_always_on_check_power;
sound/soc/soc-dapm.c
3859
w->power_check = dapm_generic_check_power;
sound/soc/soc-dapm.c
3866
w->is_supply = 1;
sound/soc/soc-dapm.c
3867
w->power_check = dapm_supply_check_power;
sound/soc/soc-dapm.c
3870
w->power_check = dapm_always_on_check_power;
sound/soc/soc-dapm.c
3874
w->dapm = dapm;
sound/soc/soc-dapm.c
3875
INIT_LIST_HEAD(&w->list);
sound/soc/soc-dapm.c
3876
INIT_LIST_HEAD(&w->dirty);
sound/soc/soc-dapm.c
3878
list_add_tail(&w->list, &dapm->card->widgets);
sound/soc/soc-dapm.c
3881
INIT_LIST_HEAD(&w->edges[dir]);
sound/soc/soc-dapm.c
3882
w->endpoints[dir] = -1;
sound/soc/soc-dapm.c
3886
w->connected = 1;
sound/soc/soc-dapm.c
3887
return w;
sound/soc/soc-dapm.c
3891
w->name);
sound/soc/soc-dapm.c
3892
kfree_const(w->name);
sound/soc/soc-dapm.c
3893
kfree_const(w->sname);
sound/soc/soc-dapm.c
3894
kfree(w);
sound/soc/soc-dapm.c
3912
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
3915
w = snd_soc_dapm_new_control_unlocked(dapm, widget);
sound/soc/soc-dapm.c
3918
return w;
sound/soc/soc-dapm.c
3941
struct snd_soc_dapm_widget *w = snd_soc_dapm_new_control_unlocked(dapm, widget);
sound/soc/soc-dapm.c
3942
if (IS_ERR(w)) {
sound/soc/soc-dapm.c
3943
ret = PTR_ERR(w);
sound/soc/soc-dapm.c
3953
static int dapm_dai_link_event_pre_pmu(struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
3956
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/soc-dapm.c
3985
snd_soc_dapm_widget_for_each_source_path(w, path) {
sound/soc/soc-dapm.c
3996
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
4039
snd_soc_dapm_widget_for_each_source_path(w, path) {
sound/soc/soc-dapm.c
4050
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
4068
static int dapm_dai_link_event(struct snd_soc_dapm_widget *w,
sound/soc/soc-dapm.c
4073
struct snd_pcm_substream *substream = w->priv;
sound/soc/soc-dapm.c
4076
if (WARN_ON(list_empty(&w->edges[SND_SOC_DAPM_DIR_OUT]) ||
sound/soc/soc-dapm.c
4077
list_empty(&w->edges[SND_SOC_DAPM_DIR_IN])))
sound/soc/soc-dapm.c
4082
ret = dapm_dai_link_event_pre_pmu(w, substream);
sound/soc/soc-dapm.c
4089
snd_soc_dapm_widget_for_each_source_path(w, path) {
sound/soc/soc-dapm.c
4095
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
4101
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
4110
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
4118
snd_soc_dapm_widget_for_each_source_path(w, path) {
sound/soc/soc-dapm.c
4124
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
4130
snd_soc_dapm_widget_for_each_source_path(w, path) {
sound/soc/soc-dapm.c
4137
snd_soc_dapm_widget_for_each_sink_path(w, path) {
sound/soc/soc-dapm.c
4163
struct snd_soc_dapm_widget *w = snd_kcontrol_chip(kcontrol);
sound/soc/soc-dapm.c
4164
struct snd_soc_pcm_runtime *rtd = w->priv;
sound/soc/soc-dapm.c
4174
struct snd_soc_dapm_widget *w = snd_kcontrol_chip(kcontrol);
sound/soc/soc-dapm.c
4175
struct snd_soc_pcm_runtime *rtd = w->priv;
sound/soc/soc-dapm.c
4178
if (w->power)
sound/soc/soc-dapm.c
4285
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
4330
w = snd_soc_dapm_new_control_unlocked(dapm, &template);
sound/soc/soc-dapm.c
4331
if (IS_ERR(w)) {
sound/soc/soc-dapm.c
4332
ret = PTR_ERR(w);
sound/soc/soc-dapm.c
4336
w->priv = substream;
sound/soc/soc-dapm.c
4338
return w;
sound/soc/soc-dapm.c
4364
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
4379
w = snd_soc_dapm_new_control_unlocked(dapm, &template);
sound/soc/soc-dapm.c
4380
if (IS_ERR(w))
sound/soc/soc-dapm.c
4381
return PTR_ERR(w);
sound/soc/soc-dapm.c
4383
w->priv = dai;
sound/soc/soc-dapm.c
4384
snd_soc_dai_set_widget_playback(dai, w);
sound/soc/soc-dapm.c
4395
w = snd_soc_dapm_new_control_unlocked(dapm, &template);
sound/soc/soc-dapm.c
4396
if (IS_ERR(w))
sound/soc/soc-dapm.c
4397
return PTR_ERR(w);
sound/soc/soc-dapm.c
4399
w->priv = dai;
sound/soc/soc-dapm.c
4400
snd_soc_dai_set_widget_capture(dai, w);
sound/soc/soc-dapm.c
4409
struct snd_soc_dapm_widget *dai_w, *w;
sound/soc/soc-dapm.c
4433
for_each_card_widgets(card, w) {
sound/soc/soc-dapm.c
4434
if (w->dapm != dai_w->dapm)
sound/soc/soc-dapm.c
4437
switch (w->id) {
sound/soc/soc-dapm.c
4445
if (!w->sname || !strstr(w->sname, dai_w->sname))
sound/soc/soc-dapm.c
4450
sink = w;
sound/soc/soc-dapm.c
4452
src = w;
sound/soc/soc-dapm.c
4456
dapm_add_path(w->dapm, src, sink, NULL, NULL);
sound/soc/soc-dapm.c
448
struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
450
const struct snd_kcontrol_new *kcontrol = &w->kcontrol_news[0];
sound/soc/soc-dapm.c
4532
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
4534
w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-dapm.c
4536
if (w) {
sound/soc/soc-dapm.c
4539
dapm_mark_dirty(w, "stream event");
sound/soc/soc-dapm.c
4541
if (w->id == snd_soc_dapm_dai_in) {
sound/soc/soc-dapm.c
4543
dapm_widget_invalidate_input_paths(w);
sound/soc/soc-dapm.c
4546
dapm_widget_invalidate_output_paths(w);
sound/soc/soc-dapm.c
4551
w->active = 1;
sound/soc/soc-dapm.c
4552
w->is_ep = ep;
sound/soc/soc-dapm.c
4555
w->active = 0;
sound/soc/soc-dapm.c
4556
w->is_ep = 0;
sound/soc/soc-dapm.c
4716
struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true);
sound/soc/soc-dapm.c
4718
if (!w) {
sound/soc/soc-dapm.c
4725
dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/soc-dapm.c
4728
if (!w->connected) {
sound/soc/soc-dapm.c
4733
dapm_widget_invalidate_input_paths(w);
sound/soc/soc-dapm.c
4734
dapm_widget_invalidate_output_paths(w);
sound/soc/soc-dapm.c
4735
w->connected = 1;
sound/soc/soc-dapm.c
4737
w->force = 1;
sound/soc/soc-dapm.c
4738
dapm_mark_dirty(w, "force enable");
sound/soc/soc-dapm.c
4827
struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true);
sound/soc/soc-dapm.c
4829
if (w)
sound/soc/soc-dapm.c
4830
return w->connected;
sound/soc/soc-dapm.c
4851
struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, false);
sound/soc/soc-dapm.c
4853
if (!w) {
sound/soc/soc-dapm.c
4858
w->ignore_suspend = 1;
sound/soc/soc-dapm.c
4896
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
4902
for_each_card_widgets(dapm->card, w) {
sound/soc/soc-dapm.c
4903
if (w->dapm != dapm)
sound/soc/soc-dapm.c
4905
if (w->power) {
sound/soc/soc-dapm.c
4906
dapm_seq_insert(w, &down_list, false);
sound/soc/soc-dapm.c
4907
w->new_power = 0;
sound/soc/soc-dapm.c
507
static void dapm_update_widget_flags(struct snd_soc_dapm_widget *w)
sound/soc/soc-dapm.c
513
switch (w->id) {
sound/soc/soc-dapm.c
516
if (w->dapm->card->fully_routed)
sound/soc/soc-dapm.c
519
snd_soc_dapm_widget_for_each_source_path(w, p) {
sound/soc/soc-dapm.c
531
if (w->dapm->card->fully_routed)
sound/soc/soc-dapm.c
534
snd_soc_dapm_widget_for_each_sink_path(w, p) {
sound/soc/soc-dapm.c
547
if (!list_empty(&w->edges[dir]))
sound/soc/soc-dapm.c
555
w->is_ep = ep;
sound/soc/soc-dapm.c
971
struct snd_soc_dapm_widget *w;
sound/soc/soc-dapm.c
977
for_each_card_widgets(card, w) {
sound/soc/soc-dapm.c
978
w->new_power = w->power;
sound/soc/soc-dapm.c
979
w->power_checked = false;
sound/soc/soc-pcm.c
1421
struct snd_soc_dapm_widget *w;
sound/soc/soc-pcm.c
1436
w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-pcm.c
1439
w ? w->name : "(not set)");
sound/soc/soc-pcm.c
1441
if (w == widget)
sound/soc/soc-pcm.c
1453
struct snd_soc_dapm_widget *w;
sound/soc/soc-pcm.c
1456
for_each_dapm_widgets(list, i, w)
sound/soc/soc-pcm.c
1457
if (widget == w)
sound/soc/soc-topology.c
1098
struct snd_soc_tplg_dapm_widget *w)
sound/soc/soc-topology.c
1112
if (strnlen(w->name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) ==
sound/soc/soc-topology.c
1115
if (strnlen(w->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) ==
sound/soc/soc-topology.c
1120
w->name, w->id);
sound/soc/soc-topology.c
1125
template.id = get_widget_id(le32_to_cpu(w->id));
sound/soc/soc-topology.c
1130
template.name = kstrdup(w->name, GFP_KERNEL);
sound/soc/soc-topology.c
1133
template.sname = kstrdup(w->sname, GFP_KERNEL);
sound/soc/soc-topology.c
1138
template.reg = le32_to_cpu(w->reg);
sound/soc/soc-topology.c
1139
template.shift = le32_to_cpu(w->shift);
sound/soc/soc-topology.c
1140
template.mask = le32_to_cpu(w->mask);
sound/soc/soc-topology.c
1141
template.subseq = le32_to_cpu(w->subseq);
sound/soc/soc-topology.c
1142
template.on_val = w->invert ? 0 : 1;
sound/soc/soc-topology.c
1143
template.off_val = w->invert ? 1 : 0;
sound/soc/soc-topology.c
1144
template.ignore_suspend = le32_to_cpu(w->ignore_suspend);
sound/soc/soc-topology.c
1145
template.event_flags = le16_to_cpu(w->event_flags);
sound/soc/soc-topology.c
1150
le32_to_cpu(w->priv.size));
sound/soc/soc-topology.c
1152
if (w->num_kcontrols == 0) {
sound/soc/soc-topology.c
1157
template.num_kcontrols = le32_to_cpu(w->num_kcontrols);
sound/soc/soc-topology.c
1158
kc = devm_kcalloc(tplg->dev, le32_to_cpu(w->num_kcontrols), sizeof(*kc), GFP_KERNEL);
sound/soc/soc-topology.c
1164
kcontrol_type = devm_kcalloc(tplg->dev, le32_to_cpu(w->num_kcontrols), sizeof(unsigned int),
sound/soc/soc-topology.c
1171
for (i = 0; i < le32_to_cpu(w->num_kcontrols); i++) {
sound/soc/soc-topology.c
1213
w->name, mixer_count, enum_count, bytes_count);
sound/soc/soc-topology.c
1216
ret = soc_tplg_widget_load(tplg, &template, w);
sound/soc/soc-topology.c
1238
ret = soc_tplg_widget_ready(tplg, widget, w);
sound/soc/soc-topology.c
258
struct snd_soc_dapm_widget *w, struct snd_soc_tplg_dapm_widget *tplg_w)
sound/soc/soc-topology.c
261
return tplg->ops->widget_load(tplg->comp, tplg->index, w,
sound/soc/soc-topology.c
270
struct snd_soc_dapm_widget *w, struct snd_soc_tplg_dapm_widget *tplg_w)
sound/soc/soc-topology.c
273
return tplg->ops->widget_ready(tplg->comp, tplg->index, w,
sound/soc/soc-topology.c
378
struct snd_soc_dapm_widget *w =
sound/soc/soc-topology.c
388
if (w->kcontrols)
sound/soc/soc-topology.c
389
for (i = 0; i < w->num_kcontrols; i++)
sound/soc/soc-topology.c
390
snd_ctl_remove(card, w->kcontrols[i]);
sound/soc/soc-topology.c
552
int snd_soc_tplg_widget_bind_event(struct snd_soc_dapm_widget *w,
sound/soc/soc-topology.c
558
w->event = NULL;
sound/soc/soc-topology.c
564
w->event = events[i].event_handler;
sound/soc/sof/intel/hda-dai-ops.c
131
struct snd_soc_dapm_widget *w;
sound/soc/sof/intel/hda-dai-ops.c
133
w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
134
swidget = w->dobj.private;
sound/soc/sof/intel/hda-dai-ops.c
302
struct snd_soc_dapm_widget *w;
sound/soc/sof/intel/hda-dai-ops.c
305
w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
306
swidget = w->dobj.private;
sound/soc/sof/intel/hda-dai-ops.c
379
struct snd_soc_dapm_widget *w;
sound/soc/sof/intel/hda-dai-ops.c
382
w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
383
swidget = w->dobj.private;
sound/soc/sof/intel/hda-dai-ops.c
517
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
527
ret = hda_dai_config(w, SOF_DAI_CONFIG_FLAGS_HW_FREE, &data);
sound/soc/sof/intel/hda-dai-ops.c
534
return hda_dai_config(w, SOF_DAI_CONFIG_FLAGS_PAUSE, NULL);
sound/soc/sof/intel/hda-dai.c
246
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
249
struct snd_sof_dev *sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
270
return hda_dai_config(w, flags, data);
sound/soc/sof/intel/hda-dai.c
32
int hda_dai_config(struct snd_soc_dapm_widget *w, unsigned int flags,
sound/soc/sof/intel/hda-dai.c
35
struct snd_sof_widget *swidget = w->dobj.private;
sound/soc/sof/intel/hda-dai.c
363
static struct sof_ipc4_copier *widget_to_copier(struct snd_soc_dapm_widget *w)
sound/soc/sof/intel/hda-dai.c
365
struct snd_sof_widget *swidget = w->dobj.private;
sound/soc/sof/intel/hda-dai.c
378
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
398
sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
43
sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
432
ipc4_copier = widget_to_copier(w);
sound/soc/sof/intel/hda-dai.c
499
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
50
flags, w->name);
sound/soc/sof/intel/hda-dai.c
516
if (!w) {
sound/soc/sof/intel/hda-dai.c
528
sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
589
ipc4_copier = widget_to_copier(w);
sound/soc/sof/intel/hda-dai.c
600
w = snd_soc_dai_get_widget(dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
601
if (!w) {
sound/soc/sof/intel/hda-dai.c
607
ipc4_copier = widget_to_copier(w);
sound/soc/sof/intel/hda-dai.c
619
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
629
sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
64
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
66
return widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
672
struct snd_soc_dapm_widget *w;
sound/soc/sof/intel/hda-dai.c
679
w = snd_soc_dai_get_widget(cpu_dai, hdac_stream(hext_stream)->direction);
sound/soc/sof/intel/hda-dai.c
680
swidget = w->dobj.private;
sound/soc/sof/intel/hda-dai.c
681
sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
72
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
82
if (!w) {
sound/soc/sof/intel/hda-dai.c
87
sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda-dai.c
88
swidget = w->dobj.private;
sound/soc/sof/intel/hda.c
65
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(d, params_data->substream->stream);
sound/soc/sof/intel/hda.c
68
if (!w) {
sound/soc/sof/intel/hda.c
77
return hda_dai_config(w, SOF_DAI_CONFIG_FLAGS_HW_PARAMS, &data);
sound/soc/sof/intel/hda.c
83
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(d, free_data->substream->stream);
sound/soc/sof/intel/hda.c
84
struct snd_sof_dev *sdev = widget_to_sdev(w);
sound/soc/sof/intel/hda.c
87
struct snd_sof_widget *swidget = w->dobj.private;
sound/soc/sof/intel/hda.h
1057
int hda_dai_config(struct snd_soc_dapm_widget *w, unsigned int flags,
sound/soc/sof/intel/hda.h
1060
static inline struct snd_sof_dev *widget_to_sdev(struct snd_soc_dapm_widget *w)
sound/soc/sof/intel/hda.h
1062
struct snd_sof_widget *swidget = w->dobj.private;
sound/soc/sof/ipc3-loader.c
30
const struct sof_ext_man_window *w;
sound/soc/sof/ipc3-loader.c
32
w = container_of(hdr, struct sof_ext_man_window, hdr);
sound/soc/sof/ipc3-loader.c
34
return sof_ipc3_get_ext_windows(sdev, &w->ipc_window.ext_hdr);
sound/soc/sof/ipc3-topology.c
1979
static int sof_ipc3_keyword_dapm_event(struct snd_soc_dapm_widget *w,
sound/soc/sof/ipc3-topology.c
1982
struct snd_sof_widget *swidget = w->dobj.private;
sound/soc/sof/ipc3-topology.c
1994
event, w->name);
sound/soc/sof/ipc3.c
520
const struct sof_ipc_window *w =
sound/soc/sof/ipc3.c
523
if (w->num_windows == 0 || w->num_windows > SOF_IPC_MAX_ELEMS)
sound/soc/sof/ipc3.c
527
if (memcmp(sdev->info_window, w, ext_hdr->hdr.size)) {
sound/soc/sof/ipc3.c
535
sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, GFP_KERNEL);
sound/soc/sof/ipc4-pcm.c
822
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, dir);
sound/soc/sof/ipc4-pcm.c
824
if (w) {
sound/soc/sof/ipc4-pcm.c
827
struct snd_sof_widget *swidget = w->dobj.private;
sound/soc/sof/ipc4-topology.c
2301
struct snd_sof_widget *w;
sound/soc/sof/ipc4-topology.c
2340
list_for_each_entry(w, &sdev->widget_list, list) {
sound/soc/sof/ipc4-topology.c
2343
if (!WIDGET_IS_DAI(w->id) || !w->widget->sname ||
sound/soc/sof/ipc4-topology.c
2344
strcmp(w->widget->sname, swidget->widget->sname))
sound/soc/sof/ipc4-topology.c
2347
dai = w->private;
sound/soc/sof/ipc4-topology.c
811
struct snd_sof_widget *w;
sound/soc/sof/ipc4-topology.c
833
list_for_each_entry(w, &sdev->widget_list, list) {
sound/soc/sof/ipc4-topology.c
836
if (!WIDGET_IS_DAI(w->id) || !w->widget->sname ||
sound/soc/sof/ipc4-topology.c
837
strcmp(w->widget->sname, swidget->widget->sname))
sound/soc/sof/ipc4-topology.c
840
alh_dai = w->private;
sound/soc/sof/topology.c
1069
struct snd_soc_dapm_widget *w,
sound/soc/sof/topology.c
1079
if (!w->sname) {
sound/soc/sof/topology.c
1080
dev_err(scomp->dev, "Widget %s does not have stream\n", w->name);
sound/soc/sof/topology.c
1084
if (w->id == snd_soc_dapm_dai_out)
sound/soc/sof/topology.c
1086
else if (w->id == snd_soc_dapm_dai_in)
sound/soc/sof/topology.c
1096
if (!strcmp(rtd->dai_link->stream_name, w->sname)) {
sound/soc/sof/topology.c
1099
} else if (strstr(rtd->dai_link->stream_name, w->sname)) {
sound/soc/sof/topology.c
1114
snd_soc_dai_set_widget(cpu_dai, stream, w);
sound/soc/sof/topology.c
1119
dev_err(scomp->dev, "error: can't find BE for DAI %s\n", w->name);
sound/soc/sof/topology.c
1126
w->name, rtd->dai_link->name);
sound/soc/sof/topology.c
1132
w->name, w->sname);
sound/soc/sof/topology.c
1140
struct snd_soc_dapm_widget *w)
sound/soc/sof/topology.c
1144
const char *sname = w->sname;
sound/soc/sof/topology.c
1151
if (w->id == snd_soc_dapm_dai_out)
sound/soc/sof/topology.c
1153
else if (w->id == snd_soc_dapm_dai_in)
sound/soc/sof/topology.c
1165
if (snd_soc_dai_get_widget(cpu_dai, stream) == w) {
sound/soc/sof/topology.c
1397
struct snd_soc_dapm_widget *w = object;
sound/soc/sof/topology.c
1399
w->no_wname_in_kcontrol_name = !!le32_to_cpu(velem->value);
sound/soc/sof/topology.c
1410
struct snd_soc_dapm_widget *w,
sound/soc/sof/topology.c
1428
swidget->widget = w;
sound/soc/sof/topology.c
1430
swidget->id = w->id;
sound/soc/sof/topology.c
1438
ret = sof_parse_tokens(scomp, w, dapm_widget_tokens, ARRAY_SIZE(dapm_widget_tokens),
sound/soc/sof/topology.c
1442
w->name);
sound/soc/sof/topology.c
1451
w->name);
sound/soc/sof/topology.c
1468
w->name);
sound/soc/sof/topology.c
1478
w->name);
sound/soc/sof/topology.c
1485
swidget->comp_id, w->name, swidget->id, index,
sound/soc/sof/topology.c
1487
strnlen(w->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) > 0 ? w->sname : "none");
sound/soc/sof/topology.c
1491
token_list = widget_ops[w->id].token_list;
sound/soc/sof/topology.c
1492
token_list_size = widget_ops[w->id].token_list_size;
sound/soc/sof/topology.c
1496
switch (w->id) {
sound/soc/sof/topology.c
1507
ret = sof_connect_dai_widget(scomp, w, tw, dai);
sound/soc/sof/topology.c
1574
if (widget_ops && widget_ops[w->id].bind_event) {
sound/soc/sof/topology.c
1575
ret = widget_ops[w->id].bind_event(scomp, swidget,
sound/soc/sof/topology.c
1586
if (w->id == snd_soc_dapm_scheduler) {
sound/soc/sof/topology.c
1600
w->dobj.private = swidget;
sound/soc/sof/topology.c
2378
struct snd_soc_dapm_widget *w,
sound/soc/sof/topology.c
2385
ret = sof_parse_tokens(scomp, w, dapm_widget_tokens,
sound/soc/sof/topology.c
2390
w->name);
sound/soc/sof/topology.c
2394
if (WIDGET_IS_DAI(w->id)) {
sound/soc/sof/topology.c
2420
ret = sof_connect_dai_widget(scomp, w, tw, sdai);
sound/soc/sof/topology.c
2428
swidget->widget = w;
sound/soc/sof/topology.c
2431
w->dobj.private = swidget;
sound/soc/sof/topology.c
2441
struct snd_soc_dapm_widget *w = container_of(dobj, struct snd_soc_dapm_widget, dobj);
sound/soc/sof/topology.c
2443
if (WIDGET_IS_DAI(w->id)) {
sound/soc/sof/topology.c
2446
sof_disconnect_dai_widget(scomp, w);
sound/soc/sunxi/sun4i-codec.c
1663
static int sun4i_codec_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/sunxi/sun4i-codec.c
1666
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/sunxi/sun50i-codec-analog.c
306
static int sun50i_codec_hbias_event(struct snd_soc_dapm_widget *w,
sound/soc/sunxi/sun50i-codec-analog.c
309
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/sunxi/sun8i-codec-analog.c
343
static int sun8i_headphone_amp_event(struct snd_soc_dapm_widget *w,
sound/soc/sunxi/sun8i-codec-analog.c
346
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/sunxi/sun8i-codec.c
812
static int sun8i_codec_aif_event(struct snd_soc_dapm_widget *w,
sound/soc/sunxi/sun8i-codec.c
815
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
sound/soc/sunxi/sun8i-codec.c
817
struct sun8i_codec_aif *aif = &scodec->aifs[w->sname[3] - '1'];
sound/soc/sunxi/sun8i-codec.c
818
int stream = w->id == snd_soc_dapm_aif_out;
sound/soc/tegra/tegra186_asrc.c
467
static int tegra186_asrc_widget_event(struct snd_soc_dapm_widget *w,
sound/soc/tegra/tegra186_asrc.c
470
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/tegra/tegra186_asrc.c
473
(w->reg - TEGRA186_ASRC_ENABLE) / TEGRA186_ASRC_STREAM_STRIDE;
sound/soc/tegra/tegra210_i2s.c
147
static int tegra210_i2s_init(struct snd_soc_dapm_widget *w,
sound/soc/tegra/tegra210_i2s.c
150
struct snd_soc_component *compnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/tegra/tegra210_i2s.c
157
if (w->reg == TEGRA210_I2S_RX_ENABLE) {
sound/soc/tegra/tegra210_i2s.c
160
} else if (w->reg == (TEGRA210_I2S_TX_ENABLE + i2s->soc_data->tx_offset)) {
sound/soc/tegra/tegra210_sfc.c
3268
static int tegra210_sfc_init(struct snd_soc_dapm_widget *w,
sound/soc/tegra/tegra210_sfc.c
3271
struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
sound/soc/tegra/tegra_asoc_machine.c
100
!snd_soc_dapm_widget_name_cmp(w, "Headphone Jack"))
sound/soc/tegra/tegra_asoc_machine.c
78
static int tegra_machine_event(struct snd_soc_dapm_widget *w,
sound/soc/tegra/tegra_asoc_machine.c
81
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
sound/soc/tegra/tegra_asoc_machine.c
84
if (!snd_soc_dapm_widget_name_cmp(w, "Int Spk") ||
sound/soc/tegra/tegra_asoc_machine.c
85
!snd_soc_dapm_widget_name_cmp(w, "Speakers"))
sound/soc/tegra/tegra_asoc_machine.c
89
if (!snd_soc_dapm_widget_name_cmp(w, "Mic Jack") ||
sound/soc/tegra/tegra_asoc_machine.c
90
!snd_soc_dapm_widget_name_cmp(w, "Headset Mic"))
sound/soc/tegra/tegra_asoc_machine.c
94
if (!snd_soc_dapm_widget_name_cmp(w, "Int Mic") ||
sound/soc/tegra/tegra_asoc_machine.c
95
!snd_soc_dapm_widget_name_cmp(w, "Internal Mic 2"))
sound/soc/tegra/tegra_asoc_machine.c
99
if (!snd_soc_dapm_widget_name_cmp(w, "Headphone") ||
sound/soc/ti/ams-delta.c
27
static int ams_delta_event_handset(struct snd_soc_dapm_widget *w,
sound/soc/ti/ams-delta.c
34
static int ams_delta_event_handsfree(struct snd_soc_dapm_widget *w,
sound/soc/ti/n810.c
190
static int n810_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/ti/n810.c
201
static int n810_jack_event(struct snd_soc_dapm_widget *w,
sound/soc/ti/omap-mcbsp-st.c
100
unsigned int w;
sound/soc/ti/omap-mcbsp-st.c
102
w = MCBSP_ST_READ(mcbsp, SSELCR);
sound/soc/ti/omap-mcbsp-st.c
103
MCBSP_ST_WRITE(mcbsp, SSELCR, w & ~(ST_SIDETONEEN));
sound/soc/ti/omap-mcbsp-st.c
105
w = MCBSP_READ(mcbsp, SSELCR);
sound/soc/ti/omap-mcbsp-st.c
106
MCBSP_WRITE(mcbsp, SSELCR, w & ~(SIDETONEEN));
sound/soc/ti/omap-mcbsp-st.c
109
w = MCBSP_ST_READ(mcbsp, SYSCONFIG);
sound/soc/ti/omap-mcbsp-st.c
110
MCBSP_ST_WRITE(mcbsp, SYSCONFIG, w | ST_AUTOIDLE);
sound/soc/ti/omap-mcbsp-st.c
80
unsigned int w;
sound/soc/ti/omap-mcbsp-st.c
86
w = MCBSP_ST_READ(mcbsp, SYSCONFIG);
sound/soc/ti/omap-mcbsp-st.c
87
MCBSP_ST_WRITE(mcbsp, SYSCONFIG, w & ~(ST_AUTOIDLE));
sound/soc/ti/omap-mcbsp-st.c
90
w = MCBSP_READ(mcbsp, SSELCR);
sound/soc/ti/omap-mcbsp-st.c
91
MCBSP_WRITE(mcbsp, SSELCR, w | SIDETONEEN);
sound/soc/ti/omap-mcbsp-st.c
94
w = MCBSP_ST_READ(mcbsp, SSELCR);
sound/soc/ti/omap-mcbsp-st.c
95
MCBSP_ST_WRITE(mcbsp, SSELCR, w | ST_SIDETONEEN);
sound/soc/ti/omap-mcbsp.c
419
u16 w;
sound/soc/ti/omap-mcbsp.c
425
w = MCBSP_READ_CACHE(mcbsp, PCR0);
sound/soc/ti/omap-mcbsp.c
426
if (w & (FSXM | FSRM | CLKXM | CLKRM))
sound/soc/ti/omap-mcbsp.c
432
w = MCBSP_READ_CACHE(mcbsp, SPCR2);
sound/soc/ti/omap-mcbsp.c
433
MCBSP_WRITE(mcbsp, SPCR2, w | (1 << 6));
sound/soc/ti/omap-mcbsp.c
438
w = MCBSP_READ_CACHE(mcbsp, SPCR2);
sound/soc/ti/omap-mcbsp.c
439
MCBSP_WRITE(mcbsp, SPCR2, w | tx);
sound/soc/ti/omap-mcbsp.c
442
w = MCBSP_READ_CACHE(mcbsp, SPCR1);
sound/soc/ti/omap-mcbsp.c
443
MCBSP_WRITE(mcbsp, SPCR1, w | rx);
sound/soc/ti/omap-mcbsp.c
455
w = MCBSP_READ_CACHE(mcbsp, SPCR2);
sound/soc/ti/omap-mcbsp.c
456
MCBSP_WRITE(mcbsp, SPCR2, w | (1 << 7));
sound/soc/ti/omap-mcbsp.c
461
w = MCBSP_READ_CACHE(mcbsp, XCCR);
sound/soc/ti/omap-mcbsp.c
462
w &= ~(tx ? XDISABLE : 0);
sound/soc/ti/omap-mcbsp.c
463
MCBSP_WRITE(mcbsp, XCCR, w);
sound/soc/ti/omap-mcbsp.c
464
w = MCBSP_READ_CACHE(mcbsp, RCCR);
sound/soc/ti/omap-mcbsp.c
465
w &= ~(rx ? RDISABLE : 0);
sound/soc/ti/omap-mcbsp.c
466
MCBSP_WRITE(mcbsp, RCCR, w);
sound/soc/ti/omap-mcbsp.c
478
u16 w;
sound/soc/ti/omap-mcbsp.c
483
w = MCBSP_READ_CACHE(mcbsp, XCCR);
sound/soc/ti/omap-mcbsp.c
484
w |= (tx ? XDISABLE : 0);
sound/soc/ti/omap-mcbsp.c
485
MCBSP_WRITE(mcbsp, XCCR, w);
sound/soc/ti/omap-mcbsp.c
487
w = MCBSP_READ_CACHE(mcbsp, SPCR2);
sound/soc/ti/omap-mcbsp.c
488
MCBSP_WRITE(mcbsp, SPCR2, w & ~tx);
sound/soc/ti/omap-mcbsp.c
493
w = MCBSP_READ_CACHE(mcbsp, RCCR);
sound/soc/ti/omap-mcbsp.c
494
w |= (rx ? RDISABLE : 0);
sound/soc/ti/omap-mcbsp.c
495
MCBSP_WRITE(mcbsp, RCCR, w);
sound/soc/ti/omap-mcbsp.c
497
w = MCBSP_READ_CACHE(mcbsp, SPCR1);
sound/soc/ti/omap-mcbsp.c
498
MCBSP_WRITE(mcbsp, SPCR1, w & ~rx);
sound/soc/ti/omap-mcbsp.c
505
w = MCBSP_READ_CACHE(mcbsp, SPCR2);
sound/soc/ti/omap-mcbsp.c
506
MCBSP_WRITE(mcbsp, SPCR2, w & ~(1 << 6));
sound/soc/ti/omap3pandora.c
64
static int omap3pandora_dac_event(struct snd_soc_dapm_widget *w,
sound/soc/ti/omap3pandora.c
74
struct device *dev = snd_soc_dapm_to_dev(w->dapm);
sound/soc/ti/omap3pandora.c
92
static int omap3pandora_hp_event(struct snd_soc_dapm_widget *w,
sound/soc/ti/rx51.c
139
static int rx51_spk_event(struct snd_soc_dapm_widget *w,
sound/soc/ti/rx51.c
142
struct snd_soc_dapm_context *dapm = w->dapm;
tools/accounting/delaytop.c
175
SORT_FIELD(wpcopy, w, MODE_MEMVERBOSE),
tools/arch/riscv/include/asm/barrier.h
24
#define smp_wmb() RISCV_FENCE(w, w)
tools/arch/riscv/include/asm/barrier.h
28
RISCV_FENCE(rw, w); \
tools/bpf/bpftool/btf.c
122
json_writer_t *w = json_wtr;
tools/bpf/bpftool/btf.c
126
jsonw_start_object(w);
tools/bpf/bpftool/btf.c
127
jsonw_uint_field(w, "id", id);
tools/bpf/bpftool/btf.c
128
jsonw_string_field(w, "kind", btf_kind_str[btf_kind_safe(kind)]);
tools/bpf/bpftool/btf.c
129
jsonw_string_field(w, "name", btf_str(btf, t->name_off));
tools/bpf/bpftool/btf.c
143
jsonw_uint_field(w, "size", t->size);
tools/bpf/bpftool/btf.c
144
jsonw_uint_field(w, "bits_offset", BTF_INT_OFFSET(v));
tools/bpf/bpftool/btf.c
145
jsonw_uint_field(w, "nr_bits", BTF_INT_BITS(v));
tools/bpf/bpftool/btf.c
146
jsonw_string_field(w, "encoding", enc);
tools/bpf/bpftool/btf.c
161
jsonw_uint_field(w, "type_id", t->type);
tools/bpf/bpftool/btf.c
169
jsonw_uint_field(w, "type_id", arr->type);
tools/bpf/bpftool/btf.c
170
jsonw_uint_field(w, "index_type_id", arr->index_type);
tools/bpf/bpftool/btf.c
171
jsonw_uint_field(w, "nr_elems", arr->nelems);
tools/bpf/bpftool/btf.c
185
jsonw_uint_field(w, "size", t->size);
tools/bpf/bpftool/btf.c
186
jsonw_uint_field(w, "vlen", vlen);
tools/bpf/bpftool/btf.c
187
jsonw_name(w, "members");
tools/bpf/bpftool/btf.c
188
jsonw_start_array(w);
tools/bpf/bpftool/btf.c
205
jsonw_start_object(w);
tools/bpf/bpftool/btf.c
206
jsonw_string_field(w, "name", name);
tools/bpf/bpftool/btf.c
207
jsonw_uint_field(w, "type_id", m->type);
tools/bpf/bpftool/btf.c
208
jsonw_uint_field(w, "bits_offset", bit_off);
tools/bpf/bpftool/btf.c
210
jsonw_uint_field(w, "bitfield_size",
tools/bpf/bpftool/btf.c
213
jsonw_end_object(w);
tools/bpf/bpftool/btf.c
222
jsonw_end_array(w);
tools/bpf/bpftool/btf.c
233
jsonw_string_field(w, "encoding", encoding);
tools/bpf/bpftool/btf.c
234
jsonw_uint_field(w, "size", t->size);
tools/bpf/bpftool/btf.c
235
jsonw_uint_field(w, "vlen", vlen);
tools/bpf/bpftool/btf.c
236
jsonw_name(w, "values");
tools/bpf/bpftool/btf.c
237
jsonw_start_array(w);
tools/bpf/bpftool/btf.c
245
jsonw_start_object(w);
tools/bpf/bpftool/btf.c
246
jsonw_string_field(w, "name", name);
tools/bpf/bpftool/btf.c
248
jsonw_int_field(w, "val", v->val);
tools/bpf/bpftool/btf.c
250
jsonw_uint_field(w, "val", v->val);
tools/bpf/bpftool/btf.c
251
jsonw_end_object(w);
tools/bpf/bpftool/btf.c
260
jsonw_end_array(w);
tools/bpf/bpftool/btf.c
271
jsonw_string_field(w, "encoding", encoding);
tools/bpf/bpftool/btf.c
272
jsonw_uint_field(w, "size", t->size);
tools/bpf/bpftool/btf.c
273
jsonw_uint_field(w, "vlen", vlen);
tools/bpf/bpftool/btf.c
274
jsonw_name(w, "values");
tools/bpf/bpftool/btf.c
275
jsonw_start_array(w);
tools/bpf/bpftool/btf.c
284
jsonw_start_object(w);
tools/bpf/bpftool/btf.c
285
jsonw_string_field(w, "name", name);
tools/bpf/bpftool/btf.c
287
jsonw_int_field(w, "val", val);
tools/bpf/bpftool/btf.c
289
jsonw_uint_field(w, "val", val);
tools/bpf/bpftool/btf.c
290
jsonw_end_object(w);
tools/bpf/bpftool/btf.c
301
jsonw_end_array(w);
tools/bpf/bpftool/btf.c
309
jsonw_string_field(w, "fwd_kind", fwd_kind);
tools/bpf/bpftool/btf.c
318
jsonw_uint_field(w, "type_id", t->type);
tools/bpf/bpftool/btf.c
319
jsonw_string_field(w, "linkage", linkage);
tools/bpf/bpftool/btf.c
331
jsonw_uint_field(w, "ret_type_id", t->type);
tools/bpf/bpftool/btf.c
332
jsonw_uint_field(w, "vlen", vlen);
tools/bpf/bpftool/btf.c
333
jsonw_name(w, "params");
tools/bpf/bpftool/btf.c
334
jsonw_start_array(w);
tools/bpf/bpftool/btf.c
342
jsonw_start_object(w);
tools/bpf/bpftool/btf.c
343
jsonw_string_field(w, "name", name);
tools/bpf/bpftool/btf.c
344
jsonw_uint_field(w, "type_id", p->type);
tools/bpf/bpftool/btf.c
345
jsonw_end_object(w);
tools/bpf/bpftool/btf.c
351
jsonw_end_array(w);
tools/bpf/bpftool/btf.c
361
jsonw_uint_field(w, "type_id", t->type);
tools/bpf/bpftool/btf.c
362
jsonw_string_field(w, "linkage", linkage);
tools/bpf/bpftool/btf.c
375
jsonw_uint_field(w, "size", t->size);
tools/bpf/bpftool/btf.c
376
jsonw_uint_field(w, "vlen", vlen);
tools/bpf/bpftool/btf.c
377
jsonw_name(w, "vars");
tools/bpf/bpftool/btf.c
378
jsonw_start_array(w);
tools/bpf/bpftool/btf.c
384
jsonw_start_object(w);
tools/bpf/bpftool/btf.c
385
jsonw_uint_field(w, "type_id", v->type);
tools/bpf/bpftool/btf.c
386
jsonw_uint_field(w, "offset", v->offset);
tools/bpf/bpftool/btf.c
387
jsonw_uint_field(w, "size", v->size);
tools/bpf/bpftool/btf.c
388
jsonw_end_object(w);
tools/bpf/bpftool/btf.c
402
jsonw_end_array(w);
tools/bpf/bpftool/btf.c
407
jsonw_uint_field(w, "size", t->size);
tools/bpf/bpftool/btf.c
416
jsonw_uint_field(w, "type_id", t->type);
tools/bpf/bpftool/btf.c
417
jsonw_int_field(w, "component_idx", tag->component_idx);
tools/bpf/bpftool/gen.c
472
int w = data[i] ? 4 : 2;
tools/bpf/bpftool/gen.c
474
len += w;
tools/bpf/bpftool/gen.c
477
len = w;
tools/hv/hv_kvp_daemon.c
1018
w = addr6->sin6_addr.s6_addr32;
tools/hv/hv_kvp_daemon.c
1021
weight += hweight32(&w[i]);
tools/hv/hv_kvp_daemon.c
872
static unsigned int hweight32(unsigned int *w)
tools/hv/hv_kvp_daemon.c
874
unsigned int res = *w - ((*w >> 1) & 0x55555555);
tools/hv/hv_kvp_daemon.c
933
unsigned int *w;
tools/iio/iio_utils.c
32
char *w, *r;
tools/iio/iio_utils.c
53
w = working;
tools/iio/iio_utils.c
58
*w = *r;
tools/iio/iio_utils.c
59
w++;
tools/iio/iio_utils.c
64
*w = '\0';
tools/include/asm-generic/bitops/arch_hweight.h
12
static inline unsigned int __arch_hweight16(unsigned int w)
tools/include/asm-generic/bitops/arch_hweight.h
14
return __sw_hweight16(w);
tools/include/asm-generic/bitops/arch_hweight.h
17
static inline unsigned int __arch_hweight8(unsigned int w)
tools/include/asm-generic/bitops/arch_hweight.h
19
return __sw_hweight8(w);
tools/include/asm-generic/bitops/arch_hweight.h
22
static inline unsigned long __arch_hweight64(__u64 w)
tools/include/asm-generic/bitops/arch_hweight.h
24
return __sw_hweight64(w);
tools/include/asm-generic/bitops/arch_hweight.h
7
static inline unsigned int __arch_hweight32(unsigned int w)
tools/include/asm-generic/bitops/arch_hweight.h
9
return __sw_hweight32(w);
tools/include/asm-generic/bitops/const_hweight.h
10
((!!((w) & (1ULL << 0))) + \
tools/include/asm-generic/bitops/const_hweight.h
11
(!!((w) & (1ULL << 1))) + \
tools/include/asm-generic/bitops/const_hweight.h
12
(!!((w) & (1ULL << 2))) + \
tools/include/asm-generic/bitops/const_hweight.h
13
(!!((w) & (1ULL << 3))) + \
tools/include/asm-generic/bitops/const_hweight.h
14
(!!((w) & (1ULL << 4))) + \
tools/include/asm-generic/bitops/const_hweight.h
15
(!!((w) & (1ULL << 5))) + \
tools/include/asm-generic/bitops/const_hweight.h
16
(!!((w) & (1ULL << 6))) + \
tools/include/asm-generic/bitops/const_hweight.h
17
(!!((w) & (1ULL << 7)))))
tools/include/asm-generic/bitops/const_hweight.h
19
#define __const_hweight16(w) (__const_hweight8(w) + __const_hweight8((w) >> 8 ))
tools/include/asm-generic/bitops/const_hweight.h
20
#define __const_hweight32(w) (__const_hweight16(w) + __const_hweight16((w) >> 16))
tools/include/asm-generic/bitops/const_hweight.h
21
#define __const_hweight64(w) (__const_hweight32(w) + __const_hweight32((w) >> 32))
tools/include/asm-generic/bitops/const_hweight.h
26
#define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w))
tools/include/asm-generic/bitops/const_hweight.h
27
#define hweight16(w) (__builtin_constant_p(w) ? __const_hweight16(w) : __arch_hweight16(w))
tools/include/asm-generic/bitops/const_hweight.h
28
#define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
tools/include/asm-generic/bitops/const_hweight.h
29
#define hweight64(w) (__builtin_constant_p(w) ? __const_hweight64(w) : __arch_hweight64(w))
tools/include/asm-generic/bitops/const_hweight.h
34
#define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
tools/include/asm-generic/bitops/const_hweight.h
35
#define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
tools/include/asm-generic/bitops/const_hweight.h
36
#define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
tools/include/asm-generic/bitops/const_hweight.h
37
#define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
tools/include/asm-generic/bitops/const_hweight.h
42
#define HWEIGHT(w) HWEIGHT64((u64)w)
tools/include/asm-generic/bitops/const_hweight.h
8
#define __const_hweight8(w) \
tools/include/linux/bitops.h
25
extern unsigned int __sw_hweight8(unsigned int w);
tools/include/linux/bitops.h
26
extern unsigned int __sw_hweight16(unsigned int w);
tools/include/linux/bitops.h
27
extern unsigned int __sw_hweight32(unsigned int w);
tools/include/linux/bitops.h
28
extern unsigned long __sw_hweight64(__u64 w);
tools/include/linux/bitops.h
70
static inline unsigned long hweight_long(unsigned long w)
tools/include/linux/bitops.h
72
return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
tools/include/nolibc/stdio.h
307
size_t len, ofs, w;
tools/include/nolibc/stdio.h
410
w = len < n ? len : n;
tools/include/nolibc/stdio.h
411
n -= w;
tools/include/nolibc/stdio.h
412
while (width-- > w) {
tools/include/nolibc/stdio.h
417
if (cb(state, outstr, w) != 0)
tools/include/uapi/drm/i915_drm.h
328
unsigned int w;
tools/lib/bitmap.c
10
unsigned int k, w = 0, lim = bits/BITS_PER_LONG;
tools/lib/bitmap.c
13
w += hweight_long(bitmap[k]);
tools/lib/bitmap.c
16
w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits));
tools/lib/bitmap.c
18
return w;
tools/lib/bpf/libbpf_utils.c
190
__u32 tmp = h + Sigma_1(e) + Ch(e, f, g) + sha256_K[i] + w[i]; \
tools/lib/bpf/libbpf_utils.c
206
__u32 w[64];
tools/lib/bpf/libbpf_utils.c
210
w[i] = get_unaligned_be32(&data[4 * i]);
tools/lib/bpf/libbpf_utils.c
211
for (; i < ARRAY_SIZE(w); i++)
tools/lib/bpf/libbpf_utils.c
212
w[i] = sigma_1(w[i - 2]) + w[i - 7] +
tools/lib/bpf/libbpf_utils.c
213
sigma_0(w[i - 15]) + w[i - 16];
tools/lib/bpf/libbpf_utils.c
214
for (i = 0; i < ARRAY_SIZE(w); i += 8) {
tools/lib/hweight.c
12
unsigned int __sw_hweight32(unsigned int w)
tools/lib/hweight.c
15
w -= (w >> 1) & 0x55555555;
tools/lib/hweight.c
16
w = (w & 0x33333333) + ((w >> 2) & 0x33333333);
tools/lib/hweight.c
17
w = (w + (w >> 4)) & 0x0f0f0f0f;
tools/lib/hweight.c
18
return (w * 0x01010101) >> 24;
tools/lib/hweight.c
20
unsigned int res = w - ((w >> 1) & 0x55555555);
tools/lib/hweight.c
28
unsigned int __sw_hweight16(unsigned int w)
tools/lib/hweight.c
30
unsigned int res = w - ((w >> 1) & 0x5555);
tools/lib/hweight.c
36
unsigned int __sw_hweight8(unsigned int w)
tools/lib/hweight.c
38
unsigned int res = w - ((w >> 1) & 0x55);
tools/lib/hweight.c
43
unsigned long __sw_hweight64(__u64 w)
tools/lib/hweight.c
46
return __sw_hweight32((unsigned int)(w >> 32)) +
tools/lib/hweight.c
47
__sw_hweight32((unsigned int)w);
tools/lib/hweight.c
50
w -= (w >> 1) & 0x5555555555555555ul;
tools/lib/hweight.c
51
w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul);
tools/lib/hweight.c
52
w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful;
tools/lib/hweight.c
53
return (w * 0x0101010101010101ul) >> 56;
tools/lib/hweight.c
55
__u64 res = w - ((w >> 1) & 0x5555555555555555ul);
tools/mm/page-types.c
912
char r, w, x, s;
tools/mm/page-types.c
919
&r, &w, &x, &s,
tools/objtool/check.c
5028
int w = 0;
tools/objtool/check.c
5030
w += validate_functions(file);
tools/objtool/check.c
5031
w += validate_unwind_hints(file, NULL);
tools/objtool/check.c
5032
if (!w)
tools/objtool/check.c
5033
w += validate_reachable_instructions(file);
tools/objtool/check.c
5035
warnings += w;
tools/perf/bench/epoll-ctl.c
132
static inline void do_epoll_op(struct worker *w, int op, int fd)
tools/perf/bench/epoll-ctl.c
157
w->ops[op]++;
tools/perf/bench/epoll-ctl.c
160
static inline void do_random_epoll_op(struct worker *w)
tools/perf/bench/epoll-ctl.c
165
fd = w->fdmap[rnd1 % nfds];
tools/perf/bench/epoll-ctl.c
168
do_epoll_op(w, op, fd);
tools/perf/bench/epoll-ctl.c
174
struct worker *w = (struct worker *) arg;
tools/perf/bench/epoll-ctl.c
189
do_random_epoll_op(w);
tools/perf/bench/epoll-ctl.c
192
do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]);
tools/perf/bench/epoll-ctl.c
193
do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]);
tools/perf/bench/epoll-ctl.c
194
do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]);
tools/perf/bench/epoll-ctl.c
204
static void init_fdmaps(struct worker *w, int pct)
tools/perf/bench/epoll-ctl.c
215
ev.data.fd = w->fdmap[i];
tools/perf/bench/epoll-ctl.c
218
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0)
tools/perf/bench/epoll-ctl.c
241
struct worker *w = &worker[i];
tools/perf/bench/epoll-ctl.c
243
w->tid = i;
tools/perf/bench/epoll-ctl.c
244
w->fdmap = calloc(nfds, sizeof(int));
tools/perf/bench/epoll-ctl.c
245
if (!w->fdmap)
tools/perf/bench/epoll-ctl.c
249
w->fdmap[j] = eventfd(0, EFD_NONBLOCK);
tools/perf/bench/epoll-ctl.c
250
if (w->fdmap[j] < 0)
tools/perf/bench/epoll-ctl.c
260
init_fdmaps(w, 50);
tools/perf/bench/epoll-ctl.c
276
ret = pthread_create(&w->thread, attrp, workerfn,
tools/perf/bench/epoll-ctl.c
277
(void *)(struct worker *) w);
tools/perf/bench/epoll-wait.c
186
struct worker *w = (struct worker *) arg;
tools/perf/bench/epoll-wait.c
187
unsigned long ops = w->ops;
tools/perf/bench/epoll-wait.c
191
int efd = multiq ? w->epollfd : epollfd;
tools/perf/bench/epoll-wait.c
234
close(w->epollfd);
tools/perf/bench/epoll-wait.c
236
w->ops = ops;
tools/perf/bench/epoll-wait.c
240
static void nest_epollfd(struct worker *w)
tools/perf/bench/epoll-wait.c
244
int efd = multiq ? w->epollfd : epollfd;
tools/perf/bench/epoll-wait.c
318
struct worker *w = &worker[i];
tools/perf/bench/epoll-wait.c
321
w->epollfd = epoll_create(1);
tools/perf/bench/epoll-wait.c
322
if (w->epollfd < 0)
tools/perf/bench/epoll-wait.c
326
nest_epollfd(w);
tools/perf/bench/epoll-wait.c
329
w->tid = i;
tools/perf/bench/epoll-wait.c
330
w->fdmap = calloc(nfds, sizeof(int));
tools/perf/bench/epoll-wait.c
331
if (!w->fdmap)
tools/perf/bench/epoll-wait.c
335
int efd = multiq ? w->epollfd : epollfd;
tools/perf/bench/epoll-wait.c
338
w->fdmap[j] = eventfd(0, EFD_NONBLOCK);
tools/perf/bench/epoll-wait.c
339
if (w->fdmap[j] < 0)
tools/perf/bench/epoll-wait.c
342
ev.data.fd = w->fdmap[j];
tools/perf/bench/epoll-wait.c
346
w->fdmap[j], &ev);
tools/perf/bench/epoll-wait.c
365
ret = pthread_create(&w->thread, attrp, workerfn,
tools/perf/bench/epoll-wait.c
366
(void *)(struct worker *) w);
tools/perf/bench/epoll-wait.c
398
struct worker *w = &worker[i];
tools/perf/bench/epoll-wait.c
401
shuffle((void *)w->fdmap, nfds, sizeof(int));
tools/perf/bench/epoll-wait.c
406
sz = write(w->fdmap[j], &val, sizeof(val));
tools/perf/bench/futex-hash.c
102
w->ops = ops;
tools/perf/bench/futex-hash.c
76
struct worker *w = (struct worker *) arg;
tools/perf/bench/futex-hash.c
78
unsigned long ops = w->ops; /* avoid cacheline bouncing */
tools/perf/bench/futex-hash.c
95
ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag);
tools/perf/bench/futex-lock-pi.c
100
ret = futex_lock_pi(w->futex, NULL, futex_flag);
tools/perf/bench/futex-lock-pi.c
105
w->tid, w->futex, ret);
tools/perf/bench/futex-lock-pi.c
113
ret = futex_unlock_pi(w->futex, futex_flag);
tools/perf/bench/futex-lock-pi.c
116
w->tid, w->futex, ret);
tools/perf/bench/futex-lock-pi.c
120
w->ops = ops;
tools/perf/bench/futex-lock-pi.c
124
static void create_threads(struct worker *w, struct perf_cpu_map *cpu)
tools/perf/bench/futex-lock-pi.c
158
if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) {
tools/perf/bench/futex-lock-pi.c
87
struct worker *w = (struct worker *) arg;
tools/perf/bench/futex-lock-pi.c
88
unsigned long ops = w->ops;
tools/perf/bench/futex-requeue.c
127
static void block_threads(pthread_t *w, struct perf_cpu_map *cpu)
tools/perf/bench/futex-requeue.c
153
if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) {
tools/perf/bench/futex-wake-parallel.c
151
static void block_threads(pthread_t *w, struct perf_cpu_map *cpu)
tools/perf/bench/futex-wake-parallel.c
177
if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL)) {
tools/perf/bench/futex-wake.c
101
static void block_threads(pthread_t *w, struct perf_cpu_map *cpu)
tools/perf/bench/futex-wake.c
126
if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) {
tools/perf/util/demangle-rust-v0.c
318
size_t delta = 0, w = 1, k = 0;
tools/perf/util/demangle-rust-v0.c
336
if (w == 0 || d > SIZE_MAX / w || d*w > SIZE_MAX - delta) {
tools/perf/util/demangle-rust-v0.c
339
delta += d * w;
tools/perf/util/demangle-rust-v0.c
343
if (base < t || w == 0 || (base - t) > SIZE_MAX / w) {
tools/perf/util/demangle-rust-v0.c
346
w *= (base - t);
tools/perf/util/levenshtein.c
45
int w, int s, int a, int d)
tools/perf/util/levenshtein.c
65
row2[j + 1] > row0[j - 1] + w)
tools/perf/util/levenshtein.c
66
row2[j + 1] = row0[j - 1] + w;
tools/perf/util/pmu.c
1423
int w;
tools/perf/util/pmu.c
1425
w = bitmap_weight(format, PERF_PMU_FORMAT_BITS);
tools/perf/util/pmu.c
1426
if (!w)
tools/perf/util/pmu.c
1428
if (w < 64)
tools/perf/util/pmu.c
1429
return (1ULL << w) - 1;
tools/perf/util/svghelper.c
156
double w = time2pixels(end) - time2pixels(start);
tools/perf/util/svghelper.c
166
w,
tools/perf/util/svghelper.c
175
double w = time2pixels(end) - time2pixels(start);
tools/perf/util/svghelper.c
185
w,
tools/perf/util/svghelper.c
194
double w = time2pixels(end) - time2pixels(start);
tools/perf/util/svghelper.c
204
w,
tools/testing/selftests/arm64/fp/sme-inst.h
37
| (((\nw) & 3) << 13) \
tools/testing/selftests/arm64/fp/sme-inst.h
48
| (((\nw) & 3) << 13) \
tools/testing/selftests/bpf/network_helpers.c
1264
__u64 w = 1;
tools/testing/selftests/bpf/network_helpers.c
1272
write(ctx->wake_fd, &w, sizeof(w));
tools/testing/selftests/bpf/progs/bind_prog.h
13
#define load_word(src, w, s) \
tools/testing/selftests/bpf/progs/bind_prog.h
14
(((volatile __u16 *)&(src))[w] << 16 * (((s) / 2) - (w) - 1))
tools/testing/selftests/bpf/progs/bind_prog.h
8
#define load_word(src, w, s) \
tools/testing/selftests/bpf/progs/bind_prog.h
9
(((volatile __u16 *)&(src))[w] << 16 * w)
tools/testing/selftests/bpf/progs/bpf_cubic.c
25
extern void tcp_cong_avoid_ai(struct tcp_sock *tp, __u32 w, __u32 acked) __ksym;
tools/testing/selftests/bpf/progs/test_subprogs.c
34
static __noinline int sub4(int w)
tools/testing/selftests/bpf/progs/test_subprogs.c
39
return w + sub3(5) + sub1(6);
tools/testing/selftests/bpf/progs/verifier_async_cb_context.c
115
if (bpf_wq_init(&val->w, &wq_map, 0) != 0)
tools/testing/selftests/bpf/progs/verifier_async_cb_context.c
117
if (bpf_wq_set_callback(&val->w, wq_cb, 0) != 0)
tools/testing/selftests/bpf/progs/verifier_async_cb_context.c
68
struct bpf_wq w;
tools/testing/selftests/bpf/progs/verifier_async_cb_context.c
97
if (bpf_wq_init(&val->w, &wq_map, 0) != 0)
tools/testing/selftests/bpf/progs/verifier_async_cb_context.c
99
if (bpf_wq_set_callback(&val->w, wq_cb, 0) != 0)
tools/testing/selftests/bpf/progs/wq.c
202
wq = &val->w;
tools/testing/selftests/bpf/progs/wq.c
36
struct bpf_wq w;
tools/testing/selftests/bpf/progs/wq.c
76
wq = &val->w;
tools/testing/selftests/bpf/progs/wq_failures.c
13
struct bpf_wq w;
tools/testing/selftests/bpf/progs/wq_failures.c
163
wq = &val->w + unknown;
tools/testing/selftests/bpf/progs/wq_failures.c
62
wq = &val->w;
tools/testing/selftests/bpf/progs/wq_failures.c
87
wq = &val->w;
tools/testing/selftests/bpf/test_maps.c
668
fd_set w;
tools/testing/selftests/bpf/test_maps.c
975
FD_ZERO(&w);
tools/testing/selftests/bpf/test_maps.c
976
FD_SET(sfd[3], &w);
tools/testing/selftests/bpf/test_maps.c
979
s = select(sfd[3] + 1, &w, NULL, NULL, &to);
tools/testing/selftests/bpf/test_maps.c
988
if (!FD_ISSET(sfd[3], &w)) {
tools/testing/selftests/bpf/test_progs.c
1614
json_writer_t *w = NULL;
tools/testing/selftests/bpf/test_progs.c
1632
w = jsonw_new(env->json);
tools/testing/selftests/bpf/test_progs.c
1633
if (!w)
tools/testing/selftests/bpf/test_progs.c
1637
if (w) {
tools/testing/selftests/bpf/test_progs.c
1638
jsonw_start_object(w);
tools/testing/selftests/bpf/test_progs.c
1639
jsonw_uint_field(w, "success", succ_cnt);
tools/testing/selftests/bpf/test_progs.c
1640
jsonw_uint_field(w, "success_subtest", sub_succ_cnt);
tools/testing/selftests/bpf/test_progs.c
1641
jsonw_uint_field(w, "skipped", skip_cnt);
tools/testing/selftests/bpf/test_progs.c
1642
jsonw_uint_field(w, "failed", fail_cnt);
tools/testing/selftests/bpf/test_progs.c
1643
jsonw_name(w, "results");
tools/testing/selftests/bpf/test_progs.c
1644
jsonw_start_array(w);
tools/testing/selftests/bpf/test_progs.c
1663
dump_test_log(test, state, true, true, w);
tools/testing/selftests/bpf/test_progs.c
1667
if (w) {
tools/testing/selftests/bpf/test_progs.c
1668
jsonw_end_array(w);
tools/testing/selftests/bpf/test_progs.c
1669
jsonw_end_object(w);
tools/testing/selftests/bpf/test_progs.c
1670
jsonw_destroy(&w);
tools/testing/selftests/bpf/test_progs.c
393
static void jsonw_write_log_message(json_writer_t *w, char *log_buf, size_t log_cnt)
tools/testing/selftests/bpf/test_progs.c
399
jsonw_string_field(w, "message", log_buf);
tools/testing/selftests/bpf/test_progs.c
401
jsonw_string_field(w, "message", "");
tools/testing/selftests/bpf/test_progs.c
409
json_writer_t *w)
tools/testing/selftests/bpf/test_progs.c
433
if (w && print_test) {
tools/testing/selftests/bpf/test_progs.c
434
jsonw_start_object(w);
tools/testing/selftests/bpf/test_progs.c
435
jsonw_string_field(w, "name", test->test_name);
tools/testing/selftests/bpf/test_progs.c
436
jsonw_uint_field(w, "number", test->test_num);
tools/testing/selftests/bpf/test_progs.c
437
jsonw_write_log_message(w, test_state->log_buf, test_state->log_cnt);
tools/testing/selftests/bpf/test_progs.c
438
jsonw_bool_field(w, "failed", test_failed);
tools/testing/selftests/bpf/test_progs.c
439
jsonw_name(w, "subtests");
tools/testing/selftests/bpf/test_progs.c
440
jsonw_start_array(w);
tools/testing/selftests/bpf/test_progs.c
462
if (w && print_subtest) {
tools/testing/selftests/bpf/test_progs.c
463
jsonw_start_object(w);
tools/testing/selftests/bpf/test_progs.c
464
jsonw_string_field(w, "name", subtest_state->name);
tools/testing/selftests/bpf/test_progs.c
465
jsonw_uint_field(w, "number", i+1);
tools/testing/selftests/bpf/test_progs.c
466
jsonw_write_log_message(w, subtest_state->log_buf, subtest_state->log_cnt);
tools/testing/selftests/bpf/test_progs.c
467
jsonw_bool_field(w, "failed", subtest_failed);
tools/testing/selftests/bpf/test_progs.c
468
jsonw_end_object(w);
tools/testing/selftests/bpf/test_progs.c
472
if (w && print_test) {
tools/testing/selftests/bpf/test_progs.c
473
jsonw_end_array(w);
tools/testing/selftests/bpf/test_progs.c
474
jsonw_end_object(w);
tools/testing/selftests/bpf/test_sockmap.c
1002
if (!FD_ISSET(i, &w))
tools/testing/selftests/bpf/test_sockmap.c
686
fd_set w;
tools/testing/selftests/bpf/test_sockmap.c
728
FD_ZERO(&w);
tools/testing/selftests/bpf/test_sockmap.c
729
FD_SET(fd, &w);
tools/testing/selftests/bpf/test_sockmap.c
731
slct = select(max_fd + 1, &w, NULL, NULL, &timeout);
tools/testing/selftests/bpf/test_sockmap.c
745
FD_ZERO(&w);
tools/testing/selftests/bpf/test_sockmap.c
746
FD_SET(fd, &w);
tools/testing/selftests/bpf/test_sockmap.c
747
slct = select(max_fd + 1, NULL, NULL, &w, &timeout);
tools/testing/selftests/bpf/test_sockmap.c
983
fd_set w;
tools/testing/selftests/bpf/test_sockmap.c
986
FD_ZERO(&w);
tools/testing/selftests/bpf/test_sockmap.c
987
FD_SET(c1, &w);
tools/testing/selftests/bpf/test_sockmap.c
988
FD_SET(c2, &w);
tools/testing/selftests/bpf/test_sockmap.c
989
FD_SET(p1, &w);
tools/testing/selftests/bpf/test_sockmap.c
990
FD_SET(p2, &w);
tools/testing/selftests/bpf/test_sockmap.c
992
s = select(max_fd + 1, &w, NULL, NULL, &timeout);
tools/testing/selftests/kvm/arm64/debug-exceptions.c
539
int b, w, c;
tools/testing/selftests/kvm/arm64/debug-exceptions.c
563
for (w = 0; w < wrp_num; w++)
tools/testing/selftests/kvm/arm64/debug-exceptions.c
564
test_guest_debug_exceptions(b, w, c);
tools/testing/selftests/kvm/include/arm64/gic_v3.h
173
#define GIC_ENCODE_SZ(n, w) (((unsigned long)(n) - 1) & GENMASK_ULL(((w) - 1), 0))
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
359
static void do_getsockopt_mptcp_info(struct so_state *s, int fd, size_t w)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
377
assert(s->mi.mptcpi_write_seq + w == i.mptcpi_write_seq);
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
382
static void do_getsockopt_tcp_info(struct so_state *s, int fd, size_t r, size_t w)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
414
if (ti.ti[0].tcpi_bytes_sent == w &&
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
418
if (r == 0 && ti.ti[0].tcpi_bytes_sent == w &&
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
429
ti.ti[0].tcpi_bytes_sent, w, ti.ti[0].tcpi_bytes_received, r);
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
558
static void do_getsockopts(struct so_state *s, int fd, size_t r, size_t w)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
560
do_getsockopt_mptcp_info(s, fd, w);
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
562
do_getsockopt_tcp_info(s, fd, r, w);
tools/testing/selftests/nolibc/nolibc-test.c
1656
ssize_t w;
tools/testing/selftests/nolibc/nolibc-test.c
1662
w = vsnprintf(buf, 21, fmt, args);
tools/testing/selftests/nolibc/nolibc-test.c
1665
if (w != c) {
tools/testing/selftests/nolibc/nolibc-test.c
1666
llen += printf(" written(%d) != %d", (int)w, c);
tools/testing/selftests/powerpc/nx-gzip/gunz_test.c
314
char w[1024];
tools/testing/selftests/powerpc/nx-gzip/gunz_test.c
325
strcpy(w, wp);
tools/testing/selftests/powerpc/nx-gzip/gunz_test.c
326
strcat(w, ".nx.gunzip");
tools/testing/selftests/powerpc/nx-gzip/gunz_test.c
328
outf = fopen(w, "w");
tools/testing/selftests/powerpc/nx-gzip/gunz_test.c
330
perror(w);
tools/testing/selftests/rseq/rseq-riscv.h
30
#define rseq_smp_wmb() RISCV_FENCE(w, w)
tools/testing/selftests/rseq/rseq-riscv.h
47
RISCV_FENCE(rw, w); \
tools/testing/selftests/safesetid/safesetid-test.c
268
pid_t cpid, w;
tools/testing/selftests/safesetid/safesetid-test.c
285
w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);
tools/testing/selftests/safesetid/safesetid-test.c
286
if (w == -1) {
tools/testing/selftests/safesetid/safesetid-test.c
324
pid_t cpid, w;
tools/testing/selftests/safesetid/safesetid-test.c
341
w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);
tools/testing/selftests/safesetid/safesetid-test.c
342
if (w == -1) {
tools/testing/selftests/safesetid/safesetid-test.c
380
pid_t cpid, w;
tools/testing/selftests/safesetid/safesetid-test.c
406
w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);
tools/testing/selftests/safesetid/safesetid-test.c
407
if (w == -1) {
tools/thermal/tmon/tui.c
280
WINDOW *w = dialogue_window;
tools/thermal/tmon/tui.c
282
if (tui_disabled || !w)
tools/thermal/tmon/tui.c
285
getmaxyx(w, rows, cols);
tools/thermal/tmon/tui.c
290
werase(w);
tools/thermal/tmon/tui.c
291
box(w, 0, 0);
tools/thermal/tmon/tui.c
292
mvwprintw(w, 0, maxx/4, DIAG_TITLE);
tools/thermal/tmon/tui.c
300
mvwprintw(w, y+1, x+1, "%C-%.12s", 'A'+j, "Set Temp");
tools/thermal/tmon/tui.c
302
mvwprintw(w, y+1, x+1, "%C-%.10s-%2d", 'A'+j,
tools/thermal/tmon/tui.c
305
wattron(w, A_BOLD);
tools/thermal/tmon/tui.c
306
mvwprintw(w, diag_dev_rows()+1, 1, "Enter Choice [A-Z]?");
tools/thermal/tmon/tui.c
307
wattroff(w, A_BOLD);
tools/thermal/tmon/tui.c
309
mvwprintw(w, rows - 2, 1,
tools/thermal/tmon/tui.c
317
WINDOW *w = dialogue_window;
tools/thermal/tmon/tui.c
319
mvwprintw(w, y, x, "%s", buf);
tools/thermal/tmon/tui.c
411
WINDOW *w = dialogue_window;
tools/thermal/tmon/tui.c
414
keypad(w, TRUE);
tools/thermal/tmon/tui.c
415
wgetnstr(w, buf, 31);