arch/mips/math-emu/me-debugfs.c
21
local_t *pv;
arch/mips/math-emu/me-debugfs.c
24
pv = (void *)ps + (unsigned long)data;
arch/mips/math-emu/me-debugfs.c
25
sum += local_read(pv);
arch/powerpc/include/asm/hvsi.h
82
extern void hvsilib_init(struct hvsi_priv *pv,
arch/powerpc/include/asm/hvsi.h
88
extern int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp);
arch/powerpc/include/asm/hvsi.h
89
extern void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp);
arch/powerpc/include/asm/hvsi.h
90
extern int hvsilib_read_mctrl(struct hvsi_priv *pv);
arch/powerpc/include/asm/hvsi.h
91
extern int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr);
arch/powerpc/include/asm/hvsi.h
92
extern void hvsilib_establish(struct hvsi_priv *pv);
arch/powerpc/include/asm/hvsi.h
93
extern ssize_t hvsilib_get_chars(struct hvsi_priv *pv, u8 *buf, size_t count);
arch/powerpc/include/asm/hvsi.h
94
extern ssize_t hvsilib_put_chars(struct hvsi_priv *pv, const u8 *buf,
arch/riscv/kernel/sys_hwprobe.c
27
#define EXT_KEY(isa_arg, ext, pv, missing) \
arch/riscv/kernel/sys_hwprobe.c
30
pv |= RISCV_HWPROBE_EXT_##ext; \
arch/s390/include/asm/kvm_host.h
443
struct kvm_s390_pv_vcpu pv;
arch/s390/include/asm/kvm_host.h
704
struct kvm_s390_pv pv;
arch/s390/kvm/kvm-s390.c
2525
if (kvm->arch.pv.dumping)
arch/s390/kvm/kvm-s390.c
2539
kvm->arch.pv.dumping = true;
arch/s390/kvm/kvm-s390.c
2547
if (!kvm->arch.pv.dumping)
arch/s390/kvm/kvm-s390.c
2560
if (!kvm->arch.pv.dumping)
arch/s390/kvm/kvm-s390.c
3268
mutex_init(&kvm->arch.pv.import_lock);
arch/s390/kvm/kvm-s390.c
3388
INIT_LIST_HEAD(&kvm->arch.pv.need_cleanup);
arch/s390/kvm/kvm-s390.c
3389
kvm->arch.pv.set_aside = NULL;
arch/s390/kvm/kvm-s390.c
3447
if (kvm->arch.pv.mmu_notifier.ops)
arch/s390/kvm/kvm-s390.c
3448
mmu_notifier_unregister(&kvm->arch.pv.mmu_notifier, kvm->mm);
arch/s390/kvm/kvm-s390.c
5032
if (vcpu->kvm->arch.pv.dumping)
arch/s390/kvm/kvm-s390.c
5483
if (!vcpu->kvm->arch.pv.dumping)
arch/s390/kvm/kvm-s390.h
328
return kvm->arch.pv.handle;
arch/s390/kvm/kvm-s390.h
333
return vcpu->arch.pv.handle;
arch/s390/kvm/pv.c
1052
kvm->arch.pv.dumping = false;
arch/s390/kvm/pv.c
162
scoped_guard(mutex, &kvm->arch.pv.import_lock) {
arch/s390/kvm/pv.c
241
kvm->arch.pv.handle = 0;
arch/s390/kvm/pv.c
242
kvm->arch.pv.guest_len = 0;
arch/s390/kvm/pv.c
243
kvm->arch.pv.stor_base = 0;
arch/s390/kvm/pv.c
244
kvm->arch.pv.stor_var = NULL;
arch/s390/kvm/pv.c
262
free_pages(vcpu->arch.pv.stor_base,
arch/s390/kvm/pv.c
268
memset(&vcpu->arch.pv, 0, sizeof(vcpu->arch.pv));
arch/s390/kvm/pv.c
293
vcpu->arch.pv.stor_base = __get_free_pages(GFP_KERNEL_ACCOUNT,
arch/s390/kvm/pv.c
295
if (!vcpu->arch.pv.stor_base)
arch/s390/kvm/pv.c
302
uvcb.stor_origin = virt_to_phys((void *)vcpu->arch.pv.stor_base);
arch/s390/kvm/pv.c
307
free_pages(vcpu->arch.pv.stor_base,
arch/s390/kvm/pv.c
329
vcpu->arch.pv.handle = uvcb.cpu_handle;
arch/s390/kvm/pv.c
340
vfree(kvm->arch.pv.stor_var);
arch/s390/kvm/pv.c
341
free_pages(kvm->arch.pv.stor_base,
arch/s390/kvm/pv.c
352
kvm->arch.pv.stor_var = NULL;
arch/s390/kvm/pv.c
353
kvm->arch.pv.stor_base = __get_free_pages(GFP_KERNEL_ACCOUNT, get_order(base));
arch/s390/kvm/pv.c
354
if (!kvm->arch.pv.stor_base)
arch/s390/kvm/pv.c
367
kvm->arch.pv.guest_len = npages * PAGE_SIZE;
arch/s390/kvm/pv.c
372
kvm->arch.pv.stor_var = vzalloc(vlen);
arch/s390/kvm/pv.c
373
if (!kvm->arch.pv.stor_var)
arch/s390/kvm/pv.c
481
if (kvm->arch.pv.set_aside)
arch/s390/kvm/pv.c
495
priv->stor_var = kvm->arch.pv.stor_var;
arch/s390/kvm/pv.c
496
priv->stor_base = kvm->arch.pv.stor_base;
arch/s390/kvm/pv.c
510
kvm->arch.pv.set_aside = priv;
arch/s390/kvm/pv.c
593
if (kvm->arch.pv.set_aside) {
arch/s390/kvm/pv.c
594
list_add(kvm->arch.pv.set_aside, &kvm->arch.pv.need_cleanup);
arch/s390/kvm/pv.c
595
kvm->arch.pv.set_aside = NULL;
arch/s390/kvm/pv.c
599
while (!list_empty(&kvm->arch.pv.need_cleanup)) {
arch/s390/kvm/pv.c
600
cur = list_first_entry(&kvm->arch.pv.need_cleanup, typeof(*cur), list);
arch/s390/kvm/pv.c
655
p = kvm->arch.pv.set_aside;
arch/s390/kvm/pv.c
656
kvm->arch.pv.set_aside = NULL;
arch/s390/kvm/pv.c
675
list_add(&p->list, &kvm->arch.pv.need_cleanup);
arch/s390/kvm/pv.c
687
struct kvm *kvm = container_of(subscription, struct kvm, arch.pv.mmu_notifier);
arch/s390/kvm/pv.c
718
if (kvm->arch.pv.mmu_notifier.ops != &kvm_s390_pv_mmu_notifier_ops) {
arch/s390/kvm/pv.c
720
kvm->arch.pv.mmu_notifier.ops = &kvm_s390_pv_mmu_notifier_ops;
arch/s390/kvm/pv.c
721
ret = mmu_notifier_register(&kvm->arch.pv.mmu_notifier, kvm->mm);
arch/s390/kvm/pv.c
723
kvm->arch.pv.mmu_notifier.ops = NULL;
arch/s390/kvm/pv.c
734
uvcb.guest_stor_len = kvm->arch.pv.guest_len;
arch/s390/kvm/pv.c
738
virt_to_phys((void *)kvm->arch.pv.stor_base);
arch/s390/kvm/pv.c
739
uvcb.conf_virt_stor_origin = (u64)kvm->arch.pv.stor_var;
arch/s390/kvm/pv.c
756
kvm->arch.pv.handle = uvcb.guest_handle;
arch/s390/kvm/pv.c
873
.cpu_handle = vcpu->arch.pv.handle,
arch/s390/kvm/pv.c
921
.config_handle = kvm->arch.pv.handle,
arch/x86/include/asm/kvm_host.h
1083
} pv;
arch/x86/kvm/lapic.c
1443
vcpu->arch.pv.pv_unhalted = 1;
arch/x86/kvm/svm/sev.c
4004
vcpu->arch.pv.pv_unhalted = false;
arch/x86/kvm/x86.c
11619
return kvm_vcpu_running(vcpu) || vcpu->arch.pv.pv_unhalted ||
arch/x86/kvm/x86.c
11753
if (kvm_vcpu_has_events(vcpu) || vcpu->arch.pv.pv_unhalted)
arch/x86/kvm/x86.c
11817
if (READ_ONCE(vcpu->arch.pv.pv_unhalted))
arch/x86/kvm/x86.c
12264
vcpu->arch.pv.pv_unhalted)
arch/x86/kvm/x86.h
205
vcpu->arch.pv.pv_unhalted = false;
drivers/clk/clk.c
5360
u32 pv;
drivers/clk/clk.c
5376
of_property_for_each_u32(clkspec.np, "clock-indices", pv) {
drivers/clk/clk.c
5377
if (index == pv) {
drivers/gpu/drm/nouveau/dispnv04/crtc.c
126
struct nvkm_pll_vals *pv = ®p->pllvals;
drivers/gpu/drm/nouveau/dispnv04/crtc.c
134
pv->NM2 = 0;
drivers/gpu/drm/nouveau/dispnv04/crtc.c
150
if (!clk->pll_calc(clk, &pll_lim, dot_clock, pv))
drivers/gpu/drm/nouveau/dispnv04/crtc.c
164
if (pv->NM2)
drivers/gpu/drm/nouveau/dispnv04/crtc.c
166
pv->N1, pv->N2, pv->M1, pv->M2, pv->log2P);
drivers/gpu/drm/nouveau/dispnv04/crtc.c
169
pv->N1, pv->M1, pv->log2P);
drivers/gpu/drm/nouveau/dispnv04/hw.c
205
nouveau_hw_pllvals_to_clk(struct nvkm_pll_vals *pv)
drivers/gpu/drm/nouveau/dispnv04/hw.c
208
if (!pv->M1 || !pv->M2)
drivers/gpu/drm/nouveau/dispnv04/hw.c
211
return pv->N1 * pv->N2 * pv->refclk / (pv->M1 * pv->M2) >> pv->log2P;
drivers/gpu/drm/nouveau/dispnv04/hw.c
264
struct nvkm_pll_vals pv;
drivers/gpu/drm/nouveau/dispnv04/hw.c
269
nouveau_hw_get_pllvals(dev, pll, &pv);
drivers/gpu/drm/nouveau/dispnv04/hw.c
271
if (pv.M1 >= pll_lim.vco1.min_m && pv.M1 <= pll_lim.vco1.max_m &&
drivers/gpu/drm/nouveau/dispnv04/hw.c
272
pv.N1 >= pll_lim.vco1.min_n && pv.N1 <= pll_lim.vco1.max_n &&
drivers/gpu/drm/nouveau/dispnv04/hw.c
273
pv.log2P <= pll_lim.max_p)
drivers/gpu/drm/nouveau/dispnv04/hw.c
279
pv.M1 = pll_lim.vco1.max_m;
drivers/gpu/drm/nouveau/dispnv04/hw.c
280
pv.N1 = pll_lim.vco1.min_n;
drivers/gpu/drm/nouveau/dispnv04/hw.c
281
pv.log2P = pll_lim.max_p_usable;
drivers/gpu/drm/nouveau/dispnv04/hw.c
282
clk->pll_prog(clk, pll_lim.reg, &pv);
drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h
116
struct nvkm_pll_vals *pv);
drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h
117
int (*pll_prog)(struct nvkm_clk *, u32 reg1, struct nvkm_pll_vals *pv);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
33
int clk, struct nvkm_pll_vals *pv)
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
38
pv->refclk = info->refclk;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
39
pv->N1 = N1;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
40
pv->M1 = M1;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
41
pv->N2 = N2;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
42
pv->M2 = M2;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
43
pv->log2P = P;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
49
nv04_clk_pll_prog(struct nvkm_clk *clk, u32 reg1, struct nvkm_pll_vals *pv)
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
58
setPLL_double_highregs(devinit, reg1, pv);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
60
setPLL_double_lowregs(devinit, reg1, pv);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c
62
setPLL_single(devinit, reg1, pv);
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
144
struct nvkm_pll_vals *pv)
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
150
uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
164
if (oldM && pv->M1 && (oldN / oldM < pv->N1 / pv->M1))
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
166
nvkm_wr32(device, reg, pv->log2P << 16 | (oldpll & 0xffff));
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
169
nvkm_wr32(device, reg, (oldpll & 0xffff0000) | pv->NM1);
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
199
struct nvkm_pll_vals *pv)
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
207
uint32_t pll1 = (oldpll1 & 0xfff80000) | pv->log2P << 16 | pv->NM1;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
208
uint32_t pll2 = (oldpll2 & 0x7fff0000) | 1 << 31 | pv->NM2;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
210
bool single_stage = !pv->NM2 || pv->N2 == pv->M2; /* nv41+ only */
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
216
pll1 = (pll1 & 0xfcc7ffff) | (pv->N2 & 0x18) << 21 |
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
217
(pv->N2 & 0x7) << 19 | 8 << 4 | (pv->M2 & 7) << 4;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
277
struct nvkm_pll_vals *pv)
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
290
uint32_t NMNM = pv->NM2 << 16 | pv->NM1;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
292
0xc << 28 | pv->log2P << 16;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
296
bool single_stage = !pv->NM2 || pv->N2 == pv->M2;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
313
Pval2 = pv->log2P + info.bias_p;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
360
struct nvkm_pll_vals pv;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
374
pv.refclk = info.refclk;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
375
pv.N1 = N1;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
376
pv.M1 = M1;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
377
pv.N2 = N2;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
378
pv.M2 = M2;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
379
pv.log2P = P;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
384
setPLL_double_highregs(devinit, type, &pv);
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
386
setPLL_double_lowregs(devinit, type, &pv);
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
388
setPLL_single(devinit, type, &pv);
drivers/hte/hte-tegra194.c
722
u32 tsh, tsl, src, pv, cv, acv, slice, bit_index, line_id;
drivers/hte/hte-tegra194.c
739
pv = tegra_hte_readl(gs, HTE_TEPCV);
drivers/hte/hte-tegra194.c
741
acv = pv ^ cv;
drivers/input/touchscreen/ili210x.c
451
u8 pv[2];
drivers/input/touchscreen/ili210x.c
455
&pv, sizeof(pv));
drivers/input/touchscreen/ili210x.c
457
memcpy(priv->version_proto, pv, sizeof(pv));
drivers/input/touchscreen/ili210x.c
546
u8 *pv = priv->version_proto;
drivers/input/touchscreen/ili210x.c
548
return sysfs_emit(buf, "%02x.%02x\n", pv[0], pv[1]);
drivers/macintosh/windfarm_ad7417_sensor.c
101
struct wf_ad7417_priv *pv = sr->priv;
drivers/macintosh/windfarm_ad7417_sensor.c
102
int chan = sr - pv->sensors;
drivers/macintosh/windfarm_ad7417_sensor.c
108
mutex_lock(&pv->lock);
drivers/macintosh/windfarm_ad7417_sensor.c
112
buf[1] = (pv->config & 0x1f) | (chan << 5);
drivers/macintosh/windfarm_ad7417_sensor.c
113
rc = i2c_master_send(pv->i2c, buf, 2);
drivers/macintosh/windfarm_ad7417_sensor.c
122
rc = i2c_master_send(pv->i2c, buf, 1);
drivers/macintosh/windfarm_ad7417_sensor.c
127
rc = i2c_master_recv(pv->i2c, buf, 2);
drivers/macintosh/windfarm_ad7417_sensor.c
133
wf_ad7417_adc_convert(pv, chan, raw, value);
drivers/macintosh/windfarm_ad7417_sensor.c
135
dev_vdbg(&pv->i2c->dev, "ADC chan %d [%s]"
drivers/macintosh/windfarm_ad7417_sensor.c
139
mutex_unlock(&pv->lock);
drivers/macintosh/windfarm_ad7417_sensor.c
143
dev_dbg(&pv->i2c->dev,
drivers/macintosh/windfarm_ad7417_sensor.c
148
mutex_unlock(&pv->lock);
drivers/macintosh/windfarm_ad7417_sensor.c
154
struct wf_ad7417_priv *pv = container_of(ref,
drivers/macintosh/windfarm_ad7417_sensor.c
156
kfree(pv);
drivers/macintosh/windfarm_ad7417_sensor.c
161
struct wf_ad7417_priv *pv = sr->priv;
drivers/macintosh/windfarm_ad7417_sensor.c
164
kref_put(&pv->ref, wf_ad7417_release);
drivers/macintosh/windfarm_ad7417_sensor.c
179
static void wf_ad7417_add_sensor(struct wf_ad7417_priv *pv,
drivers/macintosh/windfarm_ad7417_sensor.c
183
pv->sensors[index].name = kasprintf(GFP_KERNEL, "%s-%d", name, pv->cpu);
drivers/macintosh/windfarm_ad7417_sensor.c
184
pv->sensors[index].priv = pv;
drivers/macintosh/windfarm_ad7417_sensor.c
185
pv->sensors[index].ops = ops;
drivers/macintosh/windfarm_ad7417_sensor.c
186
if (!wf_register_sensor(&pv->sensors[index]))
drivers/macintosh/windfarm_ad7417_sensor.c
187
kref_get(&pv->ref);
drivers/macintosh/windfarm_ad7417_sensor.c
190
static void wf_ad7417_init_chip(struct wf_ad7417_priv *pv)
drivers/macintosh/windfarm_ad7417_sensor.c
206
i2c_master_send(pv->i2c, buf, 2);
drivers/macintosh/windfarm_ad7417_sensor.c
210
rc = i2c_master_send(pv->i2c, buf, 1);
drivers/macintosh/windfarm_ad7417_sensor.c
212
rc = i2c_master_recv(pv->i2c, buf, 1);
drivers/macintosh/windfarm_ad7417_sensor.c
216
dev_dbg(&pv->i2c->dev, "ADC config reg: %02x\n",
drivers/macintosh/windfarm_ad7417_sensor.c
223
rc = i2c_master_send(pv->i2c, buf, 2);
drivers/macintosh/windfarm_ad7417_sensor.c
227
dev_err(&pv->i2c->dev, "Error reading ADC config\n");
drivers/macintosh/windfarm_ad7417_sensor.c
229
pv->config = config;
drivers/macintosh/windfarm_ad7417_sensor.c
234
struct wf_ad7417_priv *pv;
drivers/macintosh/windfarm_ad7417_sensor.c
263
pv = kzalloc_obj(struct wf_ad7417_priv);
drivers/macintosh/windfarm_ad7417_sensor.c
264
if (pv == NULL)
drivers/macintosh/windfarm_ad7417_sensor.c
267
kref_init(&pv->ref);
drivers/macintosh/windfarm_ad7417_sensor.c
268
mutex_init(&pv->lock);
drivers/macintosh/windfarm_ad7417_sensor.c
269
pv->i2c = client;
drivers/macintosh/windfarm_ad7417_sensor.c
270
pv->cpu = cpu_nr;
drivers/macintosh/windfarm_ad7417_sensor.c
271
pv->mpu = mpu;
drivers/macintosh/windfarm_ad7417_sensor.c
272
dev_set_drvdata(&client->dev, pv);
drivers/macintosh/windfarm_ad7417_sensor.c
275
wf_ad7417_init_chip(pv);
drivers/macintosh/windfarm_ad7417_sensor.c
282
wf_ad7417_add_sensor(pv, 0, "cpu-amb-temp", &wf_ad7417_temp_ops);
drivers/macintosh/windfarm_ad7417_sensor.c
283
wf_ad7417_add_sensor(pv, 1, "cpu-diode-temp", &wf_ad7417_adc_ops);
drivers/macintosh/windfarm_ad7417_sensor.c
284
wf_ad7417_add_sensor(pv, 2, "cpu-12v-current", &wf_ad7417_adc_ops);
drivers/macintosh/windfarm_ad7417_sensor.c
285
wf_ad7417_add_sensor(pv, 3, "cpu-voltage", &wf_ad7417_adc_ops);
drivers/macintosh/windfarm_ad7417_sensor.c
286
wf_ad7417_add_sensor(pv, 4, "cpu-current", &wf_ad7417_adc_ops);
drivers/macintosh/windfarm_ad7417_sensor.c
293
struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev);
drivers/macintosh/windfarm_ad7417_sensor.c
297
pv->i2c = NULL;
drivers/macintosh/windfarm_ad7417_sensor.c
301
wf_unregister_sensor(&pv->sensors[i]);
drivers/macintosh/windfarm_ad7417_sensor.c
303
kref_put(&pv->ref, wf_ad7417_release);
drivers/macintosh/windfarm_ad7417_sensor.c
38
struct wf_ad7417_priv *pv = sr->priv;
drivers/macintosh/windfarm_ad7417_sensor.c
44
mutex_lock(&pv->lock);
drivers/macintosh/windfarm_ad7417_sensor.c
48
rc = i2c_master_send(pv->i2c, buf, 1);
drivers/macintosh/windfarm_ad7417_sensor.c
51
rc = i2c_master_recv(pv->i2c, buf, 2);
drivers/macintosh/windfarm_ad7417_sensor.c
61
mutex_unlock(&pv->lock);
drivers/macintosh/windfarm_ad7417_sensor.c
65
mutex_unlock(&pv->lock);
drivers/macintosh/windfarm_ad7417_sensor.c
79
static void wf_ad7417_adc_convert(struct wf_ad7417_priv *pv,
drivers/macintosh/windfarm_ad7417_sensor.c
84
*value = (raw * (s32)pv->mpu->mdiode +
drivers/macintosh/windfarm_ad7417_sensor.c
85
((s32)pv->mpu->bdiode << 12)) >> 2;
drivers/macintosh/windfarm_fcu_controls.c
109
nr = i2c_master_recv(pv->i2c, buf, nb);
drivers/macintosh/windfarm_fcu_controls.c
118
mutex_unlock(&pv->lock);
drivers/macintosh/windfarm_fcu_controls.c
122
static int wf_fcu_write_reg(struct wf_fcu_priv *pv, int reg,
drivers/macintosh/windfarm_fcu_controls.c
133
nw = i2c_master_send(pv->i2c, buf, nb);
drivers/macintosh/windfarm_fcu_controls.c
147
struct wf_fcu_priv *pv = fan->fcu_priv;
drivers/macintosh/windfarm_fcu_controls.c
148
int rc, shift = pv->rpm_shift;
drivers/macintosh/windfarm_fcu_controls.c
160
rc = wf_fcu_write_reg(pv, 0x10 + (fan->id * 2), buf, 2);
drivers/macintosh/windfarm_fcu_controls.c
169
struct wf_fcu_priv *pv = fan->fcu_priv;
drivers/macintosh/windfarm_fcu_controls.c
170
int rc, reg_base, shift = pv->rpm_shift;
drivers/macintosh/windfarm_fcu_controls.c
175
rc = wf_fcu_read_reg(pv, 0xb, &failure, 1);
drivers/macintosh/windfarm_fcu_controls.c
180
rc = wf_fcu_read_reg(pv, 0xd, &active, 1);
drivers/macintosh/windfarm_fcu_controls.c
192
rc = wf_fcu_read_reg(pv, reg_base + (fan->id * 2), buf, 2);
drivers/macintosh/windfarm_fcu_controls.c
204
struct wf_fcu_priv *pv = fan->fcu_priv;
drivers/macintosh/windfarm_fcu_controls.c
217
rc = wf_fcu_write_reg(pv, 0x30 + (fan->id * 2), buf, 1);
drivers/macintosh/windfarm_fcu_controls.c
226
struct wf_fcu_priv *pv = fan->fcu_priv;
drivers/macintosh/windfarm_fcu_controls.c
232
rc = wf_fcu_read_reg(pv, 0x2b, &failure, 1);
drivers/macintosh/windfarm_fcu_controls.c
237
rc = wf_fcu_read_reg(pv, 0x2d, &active, 1);
drivers/macintosh/windfarm_fcu_controls.c
243
rc = wf_fcu_read_reg(pv, 0x30 + (fan->id * 2), buf, 1);
drivers/macintosh/windfarm_fcu_controls.c
321
struct wf_fcu_priv *pv = fan->fcu_priv;
drivers/macintosh/windfarm_fcu_controls.c
326
fan->min = 2400 >> pv->rpm_shift;
drivers/macintosh/windfarm_fcu_controls.c
327
fan->max = 56000 >> pv->rpm_shift;
drivers/macintosh/windfarm_fcu_controls.c
361
static void wf_fcu_add_fan(struct wf_fcu_priv *pv, const char *name,
drivers/macintosh/windfarm_fcu_controls.c
369
fan->fcu_priv = pv;
drivers/macintosh/windfarm_fcu_controls.c
396
list_add(&fan->link, &pv->fan_list);
drivers/macintosh/windfarm_fcu_controls.c
397
kref_get(&pv->ref);
drivers/macintosh/windfarm_fcu_controls.c
400
static void wf_fcu_lookup_fans(struct wf_fcu_priv *pv)
drivers/macintosh/windfarm_fcu_controls.c
427
struct device_node *np, *fcu = pv->i2c->dev.of_node;
drivers/macintosh/windfarm_fcu_controls.c
474
wf_fcu_add_fan(pv, name, type, id);
drivers/macintosh/windfarm_fcu_controls.c
480
static void wf_fcu_default_fans(struct wf_fcu_priv *pv)
drivers/macintosh/windfarm_fcu_controls.c
486
wf_fcu_add_fan(pv, "backside-fan", FCU_FAN_PWM, 1);
drivers/macintosh/windfarm_fcu_controls.c
487
wf_fcu_add_fan(pv, "drive-bay-fan", FCU_FAN_RPM, 2);
drivers/macintosh/windfarm_fcu_controls.c
488
wf_fcu_add_fan(pv, "slots-fan", FCU_FAN_PWM, 2);
drivers/macintosh/windfarm_fcu_controls.c
489
wf_fcu_add_fan(pv, "cpu-front-fan-0", FCU_FAN_RPM, 3);
drivers/macintosh/windfarm_fcu_controls.c
490
wf_fcu_add_fan(pv, "cpu-rear-fan-0", FCU_FAN_RPM, 4);
drivers/macintosh/windfarm_fcu_controls.c
491
wf_fcu_add_fan(pv, "cpu-front-fan-1", FCU_FAN_RPM, 5);
drivers/macintosh/windfarm_fcu_controls.c
492
wf_fcu_add_fan(pv, "cpu-rear-fan-1", FCU_FAN_RPM, 6);
drivers/macintosh/windfarm_fcu_controls.c
495
static int wf_fcu_init_chip(struct wf_fcu_priv *pv)
drivers/macintosh/windfarm_fcu_controls.c
500
rc = wf_fcu_write_reg(pv, 0xe, &buf, 1);
drivers/macintosh/windfarm_fcu_controls.c
503
rc = wf_fcu_write_reg(pv, 0x2e, &buf, 1);
drivers/macintosh/windfarm_fcu_controls.c
506
rc = wf_fcu_read_reg(pv, 0, &buf, 1);
drivers/macintosh/windfarm_fcu_controls.c
509
pv->rpm_shift = (buf == 1) ? 2 : 3;
drivers/macintosh/windfarm_fcu_controls.c
512
pv->rpm_shift);
drivers/macintosh/windfarm_fcu_controls.c
519
struct wf_fcu_priv *pv;
drivers/macintosh/windfarm_fcu_controls.c
521
pv = kzalloc_obj(*pv);
drivers/macintosh/windfarm_fcu_controls.c
522
if (!pv)
drivers/macintosh/windfarm_fcu_controls.c
525
kref_init(&pv->ref);
drivers/macintosh/windfarm_fcu_controls.c
526
mutex_init(&pv->lock);
drivers/macintosh/windfarm_fcu_controls.c
527
INIT_LIST_HEAD(&pv->fan_list);
drivers/macintosh/windfarm_fcu_controls.c
528
pv->i2c = client;
drivers/macintosh/windfarm_fcu_controls.c
534
if (wf_fcu_init_chip(pv)) {
drivers/macintosh/windfarm_fcu_controls.c
536
kfree(pv);
drivers/macintosh/windfarm_fcu_controls.c
541
wf_fcu_lookup_fans(pv);
drivers/macintosh/windfarm_fcu_controls.c
547
if (list_empty(&pv->fan_list))
drivers/macintosh/windfarm_fcu_controls.c
548
wf_fcu_default_fans(pv);
drivers/macintosh/windfarm_fcu_controls.c
551
if (list_empty(&pv->fan_list)) {
drivers/macintosh/windfarm_fcu_controls.c
553
kfree(pv);
drivers/macintosh/windfarm_fcu_controls.c
557
dev_set_drvdata(&client->dev, pv);
drivers/macintosh/windfarm_fcu_controls.c
564
struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev);
drivers/macintosh/windfarm_fcu_controls.c
567
while (!list_empty(&pv->fan_list)) {
drivers/macintosh/windfarm_fcu_controls.c
568
fan = list_first_entry(&pv->fan_list, struct wf_fcu_fan, link);
drivers/macintosh/windfarm_fcu_controls.c
572
kref_put(&pv->ref, wf_fcu_release);
drivers/macintosh/windfarm_fcu_controls.c
73
struct wf_fcu_priv *pv = container_of(ref, struct wf_fcu_priv, ref);
drivers/macintosh/windfarm_fcu_controls.c
75
kfree(pv);
drivers/macintosh/windfarm_fcu_controls.c
86
static int wf_fcu_read_reg(struct wf_fcu_priv *pv, int reg,
drivers/macintosh/windfarm_fcu_controls.c
91
mutex_lock(&pv->lock);
drivers/macintosh/windfarm_fcu_controls.c
96
nw = i2c_master_send(pv->i2c, buf, 1);
drivers/media/radio/si4713/si4713.c
258
static int si4713_read_property(struct si4713_device *sdev, u16 prop, u32 *pv)
drivers/media/radio/si4713/si4713.c
280
*pv = compose_u16(val[2], val[3]);
drivers/media/radio/si4713/si4713.c
284
__func__, prop, *pv, val[0]);
drivers/misc/fastrpc.c
1075
rpra[i].buf.pv = 0;
drivers/misc/fastrpc.c
1086
rpra[i].buf.pv = (u64) ctx->args[i].ptr;
drivers/misc/fastrpc.c
1113
rpra[i].buf.pv = args - ctx->olaps[oix].offset;
drivers/misc/fastrpc.c
1119
pg_start = (rpra[i].buf.pv & PAGE_MASK) >> PAGE_SHIFT;
drivers/misc/fastrpc.c
1120
pg_end = ((rpra[i].buf.pv + len - 1) & PAGE_MASK) >> PAGE_SHIFT;
drivers/misc/fastrpc.c
1127
void *dst = (void *)(uintptr_t)rpra[i].buf.pv;
drivers/misc/fastrpc.c
1182
void *src = (void *)(uintptr_t)rpra[i].buf.pv;
drivers/misc/fastrpc.c
125
u64 pv; /* buffer pointer */
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
675
struct mlxsw_sp_fid_port_vid *pv,
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
681
mlxsw_reg_svfa_port_vid_pack(svfa_pl, pv->local_port, true,
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
682
fid->fid_index, pv->vid, irif_valid,
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
692
struct mlxsw_sp_fid_port_vid *pv;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
702
list_for_each_entry(pv, &fid->port_vid_list, list) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
707
if (!mlxsw_sp->fid_core->port_fid_mappings[pv->local_port])
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
710
err = mlxsw_sp_fid_port_vid_to_fid_rif_update_one(fid, pv,
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
720
list_for_each_entry_continue_reverse(pv, &fid->port_vid_list, list) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
721
if (!mlxsw_sp->fid_core->port_fid_mappings[pv->local_port])
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
724
mlxsw_sp_fid_port_vid_to_fid_rif_update_one(fid, pv, false, 0);
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
734
struct mlxsw_sp_fid_port_vid *pv;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
736
list_for_each_entry(pv, &fid->port_vid_list, list) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
740
if (!mlxsw_sp->fid_core->port_fid_mappings[pv->local_port])
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
743
mlxsw_sp_fid_port_vid_to_fid_rif_update_one(fid, pv, false, 0);
drivers/nubus/nubus.c
71
unsigned long pv = (unsigned long)p;
drivers/nubus/nubus.c
73
pv &= 3;
drivers/nubus/nubus.c
74
if (map & (1 << pv))
drivers/pwm/pwm-pxa.c
72
unsigned long period_cycles, prescale, pv, dc;
drivers/pwm/pwm-pxa.c
85
pv = period_cycles / (prescale + 1) - 1;
drivers/pwm/pwm-pxa.c
93
dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns);
drivers/pwm/pwm-pxa.c
97
writel(pv, pc->mmio_base + offset + PWMPCR);
drivers/pwm/pwm-rz-mtu3.c
283
u16 dc, pv;
drivers/pwm/pwm-rz-mtu3.c
288
rz_mtu3_pwm_read_tgr_registers(priv, RZ_MTU3_TGRA, &pv,
drivers/pwm/pwm-rz-mtu3.c
291
rz_mtu3_pwm_read_tgr_registers(priv, RZ_MTU3_TGRC, &pv,
drivers/pwm/pwm-rz-mtu3.c
298
tmp = NSEC_PER_SEC * (u64)pv << (2 * prescale);
drivers/pwm/pwm-rz-mtu3.c
326
u16 pv, dc;
drivers/pwm/pwm-rz-mtu3.c
350
pv = rz_mtu3_pwm_calculate_pv_or_dc(period_cycles, prescale);
drivers/pwm/pwm-rz-mtu3.c
377
rz_mtu3_pwm_write_tgr_registers(priv, RZ_MTU3_TGRA, pv,
drivers/pwm/pwm-rz-mtu3.c
382
rz_mtu3_pwm_write_tgr_registers(priv, RZ_MTU3_TGRC, pv,
drivers/pwm/pwm-rzg2l-gpt.c
266
unsigned long pv, dc;
drivers/pwm/pwm-rzg2l-gpt.c
290
pv = rzg2l_gpt_calculate_pv_or_dc(period_ticks, prescale);
drivers/pwm/pwm-rzg2l-gpt.c
325
rzg2l_gpt_write(rzg2l_gpt, RZG2L_GTPR(ch), pv);
drivers/pwm/pwm-spear.c
103
if (pv < PWMPCR_MIN_PERIOD || dc < PWMDCR_MIN_DUTY)
drivers/pwm/pwm-spear.c
110
if (pv > PWMPCR_MAX_PERIOD || dc > PWMDCR_MAX_DUTY) {
drivers/pwm/pwm-spear.c
129
spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv);
drivers/pwm/pwm-spear.c
80
unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc;
drivers/pwm/pwm-spear.c
98
pv = div64_u64(val, div);
drivers/pwm/pwm-vt8500.c
103
c = (unsigned long long)pv * duty_ns;
drivers/pwm/pwm-vt8500.c
110
writel(pv, vt8500->base + REG_PERIOD(pwm->hwpwm));
drivers/pwm/pwm-vt8500.c
76
unsigned long period_cycles, prescale, pv, dc;
drivers/pwm/pwm-vt8500.c
94
pv = period_cycles / (prescale + 1) - 1;
drivers/pwm/pwm-vt8500.c
95
if (pv > 4095)
drivers/pwm/pwm-vt8500.c
96
pv = 4095;
drivers/scsi/ncr53c8xx.c
660
char *pc, *pv;
drivers/scsi/ncr53c8xx.c
668
pv = pc;
drivers/scsi/ncr53c8xx.c
669
c = *++pv;
drivers/scsi/ncr53c8xx.c
676
val = (int) simple_strtoul(pv, &pe, 0);
drivers/scsi/sym53c8xx_2/sym_glue.c
1032
static int get_int_arg(char *ptr, int len, u_long *pv)
drivers/scsi/sym53c8xx_2/sym_glue.c
1036
*pv = simple_strtoul(ptr, &end, 10);
drivers/tty/hvc/hvc_opal.c
102
hvsilib_close(&pv->hvsi, hp);
drivers/tty/hvc/hvc_opal.c
109
struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
drivers/tty/hvc/hvc_opal.c
113
hvsilib_close(&pv->hvsi, hp);
drivers/tty/hvc/hvc_opal.c
120
struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
drivers/tty/hvc/hvc_opal.c
122
if (!pv)
drivers/tty/hvc/hvc_opal.c
124
return pv->hvsi.mctrl;
drivers/tty/hvc/hvc_opal.c
130
struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
drivers/tty/hvc/hvc_opal.c
136
hvsilib_write_mctrl(&pv->hvsi, 1);
drivers/tty/hvc/hvc_opal.c
138
hvsilib_write_mctrl(&pv->hvsi, 0);
drivers/tty/hvc/hvc_opal.c
158
struct hvc_opal_priv *pv;
drivers/tty/hvc/hvc_opal.c
181
pv = hvc_opal_privs[termno];
drivers/tty/hvc/hvc_opal.c
184
pv = kzalloc_obj(struct hvc_opal_priv);
drivers/tty/hvc/hvc_opal.c
185
if (!pv)
drivers/tty/hvc/hvc_opal.c
187
pv->proto = proto;
drivers/tty/hvc/hvc_opal.c
188
hvc_opal_privs[termno] = pv;
drivers/tty/hvc/hvc_opal.c
194
hvsilib_init(&pv->hvsi,
drivers/tty/hvc/hvc_opal.c
63
struct hvc_opal_priv *pv = hvc_opal_privs[vtermno];
drivers/tty/hvc/hvc_opal.c
65
if (WARN_ON(!pv))
drivers/tty/hvc/hvc_opal.c
68
return hvsilib_get_chars(&pv->hvsi, buf, count);
drivers/tty/hvc/hvc_opal.c
74
struct hvc_opal_priv *pv = hvc_opal_privs[vtermno];
drivers/tty/hvc/hvc_opal.c
76
if (WARN_ON(!pv))
drivers/tty/hvc/hvc_opal.c
79
return hvsilib_put_chars(&pv->hvsi, buf, count);
drivers/tty/hvc/hvc_opal.c
84
struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
drivers/tty/hvc/hvc_opal.c
93
return hvsilib_open(&pv->hvsi, hp);
drivers/tty/hvc/hvc_opal.c
98
struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
drivers/tty/hvc/hvc_vio.c
100
got = min(count, pv->left);
drivers/tty/hvc/hvc_vio.c
101
memcpy(buf, &pv->buf[pv->offset], got);
drivers/tty/hvc/hvc_vio.c
102
pv->offset += got;
drivers/tty/hvc/hvc_vio.c
103
pv->left -= got;
drivers/tty/hvc/hvc_vio.c
105
spin_unlock_irqrestore(&pv->buf_lock, flags);
drivers/tty/hvc/hvc_vio.c
121
struct hvterm_priv *pv = hvterm_privs[vtermno];
drivers/tty/hvc/hvc_vio.c
123
if (WARN_ON(!pv))
drivers/tty/hvc/hvc_vio.c
126
return hvc_put_chars(pv->termno, buf, count);
drivers/tty/hvc/hvc_vio.c
139
struct hvterm_priv *pv = hvterm_privs[vtermno];
drivers/tty/hvc/hvc_vio.c
141
if (WARN_ON(!pv))
drivers/tty/hvc/hvc_vio.c
144
return hvsilib_get_chars(&pv->hvsi, buf, count);
drivers/tty/hvc/hvc_vio.c
150
struct hvterm_priv *pv = hvterm_privs[vtermno];
drivers/tty/hvc/hvc_vio.c
152
if (WARN_ON(!pv))
drivers/tty/hvc/hvc_vio.c
155
return hvsilib_put_chars(&pv->hvsi, buf, count);
drivers/tty/hvc/hvc_vio.c
160
struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
drivers/tty/hvc/hvc_vio.c
163
pr_devel("HVSI@%x: open !\n", pv->termno);
drivers/tty/hvc/hvc_vio.c
169
return hvsilib_open(&pv->hvsi, hp);
drivers/tty/hvc/hvc_vio.c
174
struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
drivers/tty/hvc/hvc_vio.c
176
pr_devel("HVSI@%x: do close !\n", pv->termno);
drivers/tty/hvc/hvc_vio.c
178
hvsilib_close(&pv->hvsi, hp);
drivers/tty/hvc/hvc_vio.c
185
struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
drivers/tty/hvc/hvc_vio.c
187
pr_devel("HVSI@%x: do hangup !\n", pv->termno);
drivers/tty/hvc/hvc_vio.c
189
hvsilib_close(&pv->hvsi, hp);
drivers/tty/hvc/hvc_vio.c
196
struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
drivers/tty/hvc/hvc_vio.c
198
if (!pv)
drivers/tty/hvc/hvc_vio.c
200
return pv->hvsi.mctrl;
drivers/tty/hvc/hvc_vio.c
206
struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
drivers/tty/hvc/hvc_vio.c
209
pv->termno, set, clear);
drivers/tty/hvc/hvc_vio.c
212
hvsilib_write_mctrl(&pv->hvsi, 1);
drivers/tty/hvc/hvc_vio.c
214
hvsilib_write_mctrl(&pv->hvsi, 0);
drivers/tty/hvc/hvc_vio.c
303
struct hvterm_priv *pv;
drivers/tty/hvc/hvc_vio.c
329
pv = hvterm_privs[0];
drivers/tty/hvc/hvc_vio.c
341
pv = kzalloc_obj(struct hvterm_priv);
drivers/tty/hvc/hvc_vio.c
342
if (!pv)
drivers/tty/hvc/hvc_vio.c
344
pv->termno = vdev->unit_address;
drivers/tty/hvc/hvc_vio.c
345
pv->proto = proto;
drivers/tty/hvc/hvc_vio.c
346
spin_lock_init(&pv->buf_lock);
drivers/tty/hvc/hvc_vio.c
347
hvterm_privs[termno] = pv;
drivers/tty/hvc/hvc_vio.c
348
hvsilib_init(&pv->hvsi, hvc_get_chars, hvc_put_chars,
drivers/tty/hvc/hvc_vio.c
349
pv->termno, 0);
drivers/tty/hvc/hvc_vio.c
71
struct hvterm_priv *pv = hvterm_privs[vtermno];
drivers/tty/hvc/hvc_vio.c
76
if (WARN_ON(!pv))
drivers/tty/hvc/hvc_vio.c
79
spin_lock_irqsave(&pv->buf_lock, flags);
drivers/tty/hvc/hvc_vio.c
81
if (pv->left == 0) {
drivers/tty/hvc/hvc_vio.c
82
pv->offset = 0;
drivers/tty/hvc/hvc_vio.c
83
pv->left = hvc_get_chars(pv->termno, pv->buf, count);
drivers/tty/hvc/hvc_vio.c
89
for (i = 1; i < pv->left; ++i) {
drivers/tty/hvc/hvc_vio.c
90
if (pv->buf[i] == 0 && pv->buf[i-1] == '\r') {
drivers/tty/hvc/hvc_vio.c
91
--pv->left;
drivers/tty/hvc/hvc_vio.c
92
if (i < pv->left) {
drivers/tty/hvc/hvc_vio.c
93
memmove(&pv->buf[i], &pv->buf[i+1],
drivers/tty/hvc/hvc_vio.c
94
pv->left - i);
drivers/tty/hvc/hvsi_lib.c
10
static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet)
drivers/tty/hvc/hvsi_lib.c
102
hvsi_send_packet(pv, &r.hdr);
drivers/tty/hvc/hvsi_lib.c
105
pv->established = 1;
drivers/tty/hvc/hvsi_lib.c
108
static void hvsi_got_response(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
111
(struct hvsi_query_response *)pv->inbuf;
drivers/tty/hvc/hvsi_lib.c
115
hvsi_cd_change(pv, be32_to_cpu(r->u.mctrl_word) & HVSI_TSCD);
drivers/tty/hvc/hvsi_lib.c
116
pv->mctrl_update = 1;
drivers/tty/hvc/hvsi_lib.c
12
packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno));
drivers/tty/hvc/hvsi_lib.c
121
static int hvsi_check_packet(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
128
if (pv->inbuf[0] < 0xfc) {
drivers/tty/hvc/hvsi_lib.c
129
pv->inbuf_len = pv->inbuf_pktlen = 0;
drivers/tty/hvc/hvsi_lib.c
132
type = pv->inbuf[0];
drivers/tty/hvc/hvsi_lib.c
133
len = pv->inbuf[1];
drivers/tty/hvc/hvsi_lib.c
136
if (pv->inbuf_len < len)
drivers/tty/hvc/hvsi_lib.c
140
pv->termno, type, len);
drivers/tty/hvc/hvsi_lib.c
145
pv->inbuf_pktlen = len - 4;
drivers/tty/hvc/hvsi_lib.c
146
pv->inbuf_cur = 4;
drivers/tty/hvc/hvsi_lib.c
149
hvsi_got_control(pv);
drivers/tty/hvc/hvsi_lib.c
15
return pv->put_chars(pv->termno, (u8 *)packet, packet->len);
drivers/tty/hvc/hvsi_lib.c
152
hvsi_got_query(pv);
drivers/tty/hvc/hvsi_lib.c
155
hvsi_got_response(pv);
drivers/tty/hvc/hvsi_lib.c
160
pv->inbuf_len -= len;
drivers/tty/hvc/hvsi_lib.c
161
memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len);
drivers/tty/hvc/hvsi_lib.c
165
static int hvsi_get_packet(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
168
if (pv->inbuf_len < HVSI_INBUF_SIZE)
drivers/tty/hvc/hvsi_lib.c
169
pv->inbuf_len += pv->get_chars(pv->termno,
drivers/tty/hvc/hvsi_lib.c
170
&pv->inbuf[pv->inbuf_len],
drivers/tty/hvc/hvsi_lib.c
171
HVSI_INBUF_SIZE - pv->inbuf_len);
drivers/tty/hvc/hvsi_lib.c
176
if (pv->inbuf_len >= 4)
drivers/tty/hvc/hvsi_lib.c
177
return hvsi_check_packet(pv);
drivers/tty/hvc/hvsi_lib.c
18
static void hvsi_start_handshake(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
181
ssize_t hvsilib_get_chars(struct hvsi_priv *pv, u8 *buf, size_t count)
drivers/tty/hvc/hvsi_lib.c
186
if (WARN_ON(!pv))
drivers/tty/hvc/hvsi_lib.c
194
if (!pv->opened)
drivers/tty/hvc/hvsi_lib.c
202
if (pv->inbuf_pktlen) {
drivers/tty/hvc/hvsi_lib.c
203
size_t l = min(count, pv->inbuf_pktlen);
drivers/tty/hvc/hvsi_lib.c
204
memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l);
drivers/tty/hvc/hvsi_lib.c
205
pv->inbuf_cur += l;
drivers/tty/hvc/hvsi_lib.c
206
pv->inbuf_pktlen -= l;
drivers/tty/hvc/hvsi_lib.c
214
if (pv->inbuf_cur) {
drivers/tty/hvc/hvsi_lib.c
215
pv->inbuf_len -= pv->inbuf_cur;
drivers/tty/hvc/hvsi_lib.c
216
memmove(pv->inbuf, &pv->inbuf[pv->inbuf_cur],
drivers/tty/hvc/hvsi_lib.c
217
pv->inbuf_len);
drivers/tty/hvc/hvsi_lib.c
218
pv->inbuf_cur = 0;
drivers/tty/hvc/hvsi_lib.c
222
if (hvsi_get_packet(pv))
drivers/tty/hvc/hvsi_lib.c
225
if (!pv->established) {
drivers/tty/hvc/hvsi_lib.c
226
pr_devel("HVSI@%x: returning -EPIPE\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
23
pv->established = 0;
drivers/tty/hvc/hvsi_lib.c
232
ssize_t hvsilib_put_chars(struct hvsi_priv *pv, const u8 *buf, size_t count)
drivers/tty/hvc/hvsi_lib.c
238
if (WARN_ON(!pv))
drivers/tty/hvc/hvsi_lib.c
24
atomic_set(&pv->seqno, 0);
drivers/tty/hvc/hvsi_lib.c
244
rc = hvsi_send_packet(pv, &dp.hdr);
drivers/tty/hvc/hvsi_lib.c
259
int hvsilib_read_mctrl(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
26
pr_devel("HVSI@%x: Handshaking started\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
265
pv->termno);
drivers/tty/hvc/hvsi_lib.c
267
pv->mctrl_update = 0;
drivers/tty/hvc/hvsi_lib.c
271
rc = hvsi_send_packet(pv, &q.hdr);
drivers/tty/hvc/hvsi_lib.c
273
pr_devel("HVSI@%x: Error %d...\n", pv->termno, rc);
drivers/tty/hvc/hvsi_lib.c
279
if (!pv->established)
drivers/tty/hvc/hvsi_lib.c
281
if (pv->mctrl_update)
drivers/tty/hvc/hvsi_lib.c
283
if (!hvsi_get_packet(pv))
drivers/tty/hvc/hvsi_lib.c
289
int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr)
drivers/tty/hvc/hvsi_lib.c
294
mctrl = pv->mctrl;
drivers/tty/hvc/hvsi_lib.c
299
if (mctrl == pv->mctrl)
drivers/tty/hvc/hvsi_lib.c
301
pv->mctrl = mctrl;
drivers/tty/hvc/hvsi_lib.c
303
pr_devel("HVSI@%x: %s DTR...\n", pv->termno,
drivers/tty/hvc/hvsi_lib.c
311
return hvsi_send_packet(pv, &ctrl.hdr);
drivers/tty/hvc/hvsi_lib.c
314
void hvsilib_establish(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
318
pr_devel("HVSI@%x: Establishing...\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
32
hvsi_send_packet(pv, &q.hdr);
drivers/tty/hvc/hvsi_lib.c
324
if (pv->established)
drivers/tty/hvc/hvsi_lib.c
326
if (!hvsi_get_packet(pv))
drivers/tty/hvc/hvsi_lib.c
333
pr_devel("HVSI@%x: ... sending close\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
335
hvsi_send_close(pv);
drivers/tty/hvc/hvsi_lib.c
339
pr_devel("HVSI@%x: ... restarting handshake\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
341
hvsi_start_handshake(pv);
drivers/tty/hvc/hvsi_lib.c
343
pr_devel("HVSI@%x: ... waiting handshake\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
347
if (pv->established)
drivers/tty/hvc/hvsi_lib.c
349
if (!hvsi_get_packet(pv))
drivers/tty/hvc/hvsi_lib.c
35
static int hvsi_send_close(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
353
if (!pv->established) {
drivers/tty/hvc/hvsi_lib.c
355
pv->termno);
drivers/tty/hvc/hvsi_lib.c
361
pr_devel("HVSI@%x: ... established, reading mctrl\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
363
hvsilib_read_mctrl(pv);
drivers/tty/hvc/hvsi_lib.c
367
pr_devel("HVSI@%x: ... setting mctrl\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
369
hvsilib_write_mctrl(pv, 1);
drivers/tty/hvc/hvsi_lib.c
373
pv->opened = 1;
drivers/tty/hvc/hvsi_lib.c
376
int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp)
drivers/tty/hvc/hvsi_lib.c
378
pr_devel("HVSI@%x: open !\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
381
pv->tty = tty_port_tty_get(&hp->port);
drivers/tty/hvc/hvsi_lib.c
383
hvsilib_establish(pv);
drivers/tty/hvc/hvsi_lib.c
388
void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp)
drivers/tty/hvc/hvsi_lib.c
39
pv->established = 0;
drivers/tty/hvc/hvsi_lib.c
392
pr_devel("HVSI@%x: close !\n", pv->termno);
drivers/tty/hvc/hvsi_lib.c
394
if (!pv->is_console) {
drivers/tty/hvc/hvsi_lib.c
396
pv->termno);
drivers/tty/hvc/hvsi_lib.c
400
pv->opened = 0;
drivers/tty/hvc/hvsi_lib.c
404
if (!pv->tty || (pv->tty->termios.c_cflag & HUPCL))
drivers/tty/hvc/hvsi_lib.c
405
hvsilib_write_mctrl(pv, 0);
drivers/tty/hvc/hvsi_lib.c
408
hvsi_send_close(pv);
drivers/tty/hvc/hvsi_lib.c
411
tty_kref_put(pv->tty);
drivers/tty/hvc/hvsi_lib.c
412
pv->tty = NULL;
drivers/tty/hvc/hvsi_lib.c
415
void hvsilib_init(struct hvsi_priv *pv,
drivers/tty/hvc/hvsi_lib.c
421
memset(pv, 0, sizeof(*pv));
drivers/tty/hvc/hvsi_lib.c
422
pv->get_chars = get_chars;
drivers/tty/hvc/hvsi_lib.c
423
pv->put_chars = put_chars;
drivers/tty/hvc/hvsi_lib.c
424
pv->termno = termno;
drivers/tty/hvc/hvsi_lib.c
425
pv->is_console = is_console;
drivers/tty/hvc/hvsi_lib.c
44
return hvsi_send_packet(pv, &ctrl.hdr);
drivers/tty/hvc/hvsi_lib.c
47
static void hvsi_cd_change(struct hvsi_priv *pv, int cd)
drivers/tty/hvc/hvsi_lib.c
50
pv->mctrl |= TIOCM_CD;
drivers/tty/hvc/hvsi_lib.c
52
pv->mctrl &= ~TIOCM_CD;
drivers/tty/hvc/hvsi_lib.c
60
if (!pv->is_console && pv->opened) {
drivers/tty/hvc/hvsi_lib.c
62
pv->termno);
drivers/tty/hvc/hvsi_lib.c
63
hvsi_send_close(pv);
drivers/tty/hvc/hvsi_lib.c
68
static void hvsi_got_control(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
70
struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf;
drivers/tty/hvc/hvsi_lib.c
75
hvsi_start_handshake(pv);
drivers/tty/hvc/hvsi_lib.c
79
hvsi_cd_change(pv, be32_to_cpu(pkt->word) & HVSI_TSCD);
drivers/tty/hvc/hvsi_lib.c
84
static void hvsi_got_query(struct hvsi_priv *pv)
drivers/tty/hvc/hvsi_lib.c
86
struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf;
drivers/tty/hvc/hvsi_lib.c
94
pv->termno);
drivers/xen/xenbus/xenbus_client.c
61
} pv;
drivers/xen/xenbus/xenbus_client.c
784
node->pv.area = area;
drivers/xen/xenbus/xenbus_client.c
815
if (node->pv.area->addr == vaddr) {
drivers/xen/xenbus/xenbus_client.c
857
free_vm_area(node->pv.area);
drivers/xen/xenbus/xenbus_client.c
860
node->pv.area, node->nr_handles);
fs/ocfs2/stack_user.c
767
struct ocfs2_protocol_version *pv =
fs/ocfs2/stack_user.c
773
ver->pv_major = pv->pv_major;
fs/ocfs2/stack_user.c
774
ver->pv_minor = pv->pv_minor;
fs/ocfs2/stack_user.c
779
struct ocfs2_protocol_version *pv =
fs/ocfs2/stack_user.c
785
pv->pv_major = ver->pv_major;
fs/ocfs2/stack_user.c
786
pv->pv_minor = ver->pv_minor;
fs/ocfs2/stack_user.c
877
struct ocfs2_protocol_version pv;
fs/ocfs2/stack_user.c
896
lvb_to_version(lc->oc_lvb, &pv);
fs/ocfs2/stack_user.c
898
if ((pv.pv_major != running_proto.pv_major) ||
fs/ocfs2/stack_user.c
899
(pv.pv_minor > running_proto.pv_minor)) {
fs/ocfs2/stack_user.c
904
conn->cc_version.pv_major = pv.pv_major;
fs/ocfs2/stack_user.c
905
conn->cc_version.pv_minor = pv.pv_minor;
include/linux/ceph/decode.h
386
#define ceph_encode_copy_safe(p, end, pv, n, bad) \
include/linux/ceph/decode.h
389
ceph_encode_copy(p, pv, n); \
include/linux/ceph/decode.h
43
static inline void ceph_decode_copy(void **p, void *pv, size_t n)
include/linux/ceph/decode.h
45
memcpy(pv, *p, n);
include/linux/ceph/decode.h
84
#define ceph_decode_copy_safe(p, end, pv, n, bad) \
include/linux/ceph/decode.h
87
ceph_decode_copy(p, pv, n); \
kernel/trace/trace_events_inject.c
102
*pv = val;
kernel/trace/trace_events_inject.c
128
*pv = (unsigned long)(str + s);
kernel/trace/trace_events_inject.c
37
struct ftrace_event_field **pf, u64 *pv)
mm/vmscan.c
3182
static bool positive_ctrl_err(struct ctrl_pos *sp, struct ctrl_pos *pv)
mm/vmscan.c
3188
return pv->refaulted < MIN_LRU_BATCH ||
mm/vmscan.c
3189
pv->refaulted * (sp->total + MIN_LRU_BATCH) * sp->gain <=
mm/vmscan.c
3190
(sp->refaulted + 1) * pv->total * pv->gain;
mm/vmscan.c
4731
struct ctrl_pos sp, pv = {};
mm/vmscan.c
4740
read_ctrl_pos(lruvec, type, tier, 3, &pv);
mm/vmscan.c
4741
if (!positive_ctrl_err(&sp, &pv))
mm/vmscan.c
4750
struct ctrl_pos sp, pv = {};
mm/vmscan.c
4762
read_ctrl_pos(lruvec, LRU_GEN_FILE, MAX_NR_TIERS, MAX_SWAPPINESS - swappiness, &pv);
mm/vmscan.c
4764
return positive_ctrl_err(&sp, &pv);
net/bridge/br_mst.c
137
static void br_mst_vlan_sync_state(struct net_bridge_vlan *pv, u16 msti)
net/bridge/br_mst.c
139
struct net_bridge_vlan_group *vg = nbp_vlan_group(pv->port);
net/bridge/br_mst.c
147
if (v != pv && v->brvlan->msti == msti) {
net/bridge/br_mst.c
148
br_mst_vlan_set_state(vg, pv, v->state);
net/bridge/br_mst.c
154
return br_mst_vlan_set_state(vg, pv, BR_STATE_DISABLED);
net/bridge/br_mst.c
168
struct net_bridge_vlan *pv;
net/bridge/br_mst.c
184
pv = br_vlan_find(vg, mv->vid);
net/bridge/br_mst.c
185
if (pv)
net/bridge/br_mst.c
186
br_mst_vlan_sync_state(pv, msti);
sound/aoa/codecs/onyx.c
360
long int pv = kcontrol->private_value;
sound/aoa/codecs/onyx.c
361
u8 polarity = (pv >> 16) & FLAG_POLARITY_INVERT;
sound/aoa/codecs/onyx.c
362
u8 address = (pv >> 8) & 0xff;
sound/aoa/codecs/onyx.c
363
u8 mask = pv & 0xff;
sound/aoa/codecs/onyx.c
379
long int pv = kcontrol->private_value;
sound/aoa/codecs/onyx.c
380
u8 polarity = (pv >> 16) & FLAG_POLARITY_INVERT;
sound/aoa/codecs/onyx.c
381
u8 spdiflock = (pv >> 16) & FLAG_SPDIFLOCK;
sound/aoa/codecs/onyx.c
382
u8 address = (pv >> 8) & 0xff;
sound/aoa/codecs/onyx.c
383
u8 mask = pv & 0xff;
sound/hda/common/hda_local.h
669
#define get_amp_nid_(pv) ((pv) & 0xffff)
sound/hda/common/hda_local.h
672
#define get_amp_direction_(pv) (((pv) >> 18) & 0x1)
sound/hda/common/hda_local.h
674
#define get_amp_index_(pv) (((pv) >> 19) & 0xf)
sound/pci/maestro3.c
1269
} pv[] = {
sound/pci/maestro3.c
1326
for (i = 0; i < ARRAY_SIZE(pv); i++)
sound/pci/maestro3.c
1328
s->inst.data + pv[i].addr, pv[i].val);
sound/soc/mediatek/common/mtk-btcvsd.c
363
int pv;
sound/soc/mediatek/common/mtk-btcvsd.c
394
pv = 1;
sound/soc/mediatek/common/mtk-btcvsd.c
396
pv = 0;
sound/soc/mediatek/common/mtk-btcvsd.c
399
memcpy(bt->rx_packet_buf + packet_buf_ofs, (void *)&pv,
sound/usb/line6/playback.c
36
short pv = le16_to_cpu(*p);
sound/usb/line6/playback.c
37
int val = (pv * volume[chn & 1]) >> 8;
sound/usb/line6/playback.c
38
pv = clamp(val, -0x8000, 0x7fff);
sound/usb/line6/playback.c
39
*p = cpu_to_le16(pv);
sound/usb/mixer_quirks.c
2279
u32 pv = kcontrol->private_value;
sound/usb/mixer_quirks.c
2280
u32 node_id = pv & 0xff;
sound/usb/mixer_quirks.c
2294
if (pv & REALTEK_MIC_FLAG) {
sound/usb/mixer_quirks.c
2310
if (pv & REALTEK_MIC_FLAG)
sound/usb/mixer_quirks.c
2443
u32 pv = kcontrol->private_value;
sound/usb/mixer_quirks.c
2461
if (pv && presence) {
sound/usb/mixer_quirks.c
2972
int pv;
sound/usb/mixer_quirks.c
2974
pv = kcontrol->private_value;
sound/usb/mixer_quirks.c
2975
reg = pv & SND_BBFPRO_CTL_REG_MASK;
sound/usb/mixer_quirks.c
2976
idx = (pv >> SND_BBFPRO_CTL_IDX_SHIFT) & SND_BBFPRO_CTL_IDX_MASK;
sound/usb/mixer_quirks.c
2995
int pv;
sound/usb/mixer_quirks.c
2997
pv = kcontrol->private_value;
sound/usb/mixer_quirks.c
2998
reg = pv & SND_BBFPRO_CTL_REG_MASK;
sound/usb/mixer_quirks.c
2999
idx = (pv >> SND_BBFPRO_CTL_IDX_SHIFT) & SND_BBFPRO_CTL_IDX_MASK;
sound/usb/mixer_quirks.c
3030
int old_value, pv, val;
sound/usb/mixer_quirks.c
3035
pv = kcontrol->private_value;
sound/usb/mixer_quirks.c
3036
reg = pv & SND_BBFPRO_CTL_REG_MASK;
sound/usb/mixer_quirks.c
3037
idx = (pv >> SND_BBFPRO_CTL_IDX_SHIFT) & SND_BBFPRO_CTL_IDX_MASK;
sound/usb/mixer_quirks.c
3038
old_value = (pv >> SND_BBFPRO_CTL_VAL_SHIFT) & SND_BBFPRO_CTL_VAL_MASK;
sound/usb/mixer_quirks.c
3069
int value, pv;
sound/usb/mixer_quirks.c
3071
pv = list->kctl->private_value;
sound/usb/mixer_quirks.c
3072
reg = pv & SND_BBFPRO_CTL_REG_MASK;
sound/usb/mixer_quirks.c
3073
idx = (pv >> SND_BBFPRO_CTL_IDX_SHIFT) & SND_BBFPRO_CTL_IDX_MASK;
sound/usb/mixer_quirks.c
3074
value = (pv >> SND_BBFPRO_CTL_VAL_SHIFT) & SND_BBFPRO_CTL_VAL_MASK;
sound/usb/mixer_quirks.c
3115
int pv, channel;
sound/usb/mixer_quirks.c
3117
pv = kcontrol->private_value;
sound/usb/mixer_quirks.c
3118
channel = (pv >> SND_BBFPRO_GAIN_CHANNEL_SHIFT) &
sound/usb/mixer_quirks.c
3136
int pv, channel, old_value, value, err;
sound/usb/mixer_quirks.c
3141
pv = kcontrol->private_value;
sound/usb/mixer_quirks.c
3142
channel = (pv >> SND_BBFPRO_GAIN_CHANNEL_SHIFT) &
sound/usb/mixer_quirks.c
3144
old_value = pv & SND_BBFPRO_GAIN_VAL_MASK;
sound/usb/mixer_quirks.c
3172
int pv, channel, value;
sound/usb/mixer_quirks.c
3175
pv = kctl->private_value;
sound/usb/mixer_quirks.c
3176
channel = (pv >> SND_BBFPRO_GAIN_CHANNEL_SHIFT) &
sound/usb/mixer_quirks.c
3178
value = pv & SND_BBFPRO_GAIN_VAL_MASK;
sound/usb/mixer_quirks.c
3259
int pv = list->kctl->private_value;
sound/usb/mixer_quirks.c
3260
u16 idx = pv & SND_BBFPRO_MIXER_IDX_MASK;
sound/usb/mixer_quirks.c
3261
u32 val = (pv >> SND_BBFPRO_MIXER_VAL_SHIFT)