pv 520 arch/ia64/include/asm/pal.h pv : 1, /* privilege level field valid */ pv 557 arch/ia64/include/asm/pal.h pv : 1, /* privilege level field valid */ pv 593 arch/ia64/include/asm/pal.h pv : 1, /* privilege level field valid */ pv 623 arch/ia64/include/asm/pal.h pv : 1, /* privilege level field valid */ pv 653 arch/ia64/include/asm/pal.h pv : 1, /* privilege level field valid */ pv 21 arch/mips/math-emu/me-debugfs.c local_t *pv; pv 24 arch/mips/math-emu/me-debugfs.c pv = (void *)ps + (unsigned long)data; pv 25 arch/mips/math-emu/me-debugfs.c sum += local_read(pv); pv 82 arch/powerpc/include/asm/hvsi.h extern void hvsilib_init(struct hvsi_priv *pv, pv 87 arch/powerpc/include/asm/hvsi.h extern int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp); pv 88 arch/powerpc/include/asm/hvsi.h extern void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp); pv 89 arch/powerpc/include/asm/hvsi.h extern int hvsilib_read_mctrl(struct hvsi_priv *pv); pv 90 arch/powerpc/include/asm/hvsi.h extern int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr); pv 91 arch/powerpc/include/asm/hvsi.h extern void hvsilib_establish(struct hvsi_priv *pv); pv 92 arch/powerpc/include/asm/hvsi.h extern int hvsilib_get_chars(struct hvsi_priv *pv, char *buf, int count); pv 93 arch/powerpc/include/asm/hvsi.h extern int hvsilib_put_chars(struct hvsi_priv *pv, const char *buf, int count); pv 772 arch/x86/include/asm/kvm_host.h } pv; pv 1070 arch/x86/kvm/lapic.c vcpu->arch.pv.pv_unhalted = 1; pv 8358 arch/x86/kvm/x86.c vcpu->arch.pv.pv_unhalted = false; pv 8776 arch/x86/kvm/x86.c vcpu->arch.pv.pv_unhalted) pv 9960 arch/x86/kvm/x86.c if (vcpu->arch.pv.pv_unhalted) pv 9993 arch/x86/kvm/x86.c if (READ_ONCE(vcpu->arch.pv.pv_unhalted)) pv 4688 drivers/clk/clk.c u32 pv; pv 4704 drivers/clk/clk.c of_property_for_each_u32(clkspec.np, "clock-indices", prop, vp, pv) { pv 4705 drivers/clk/clk.c if (index == pv) { pv 178 drivers/gpu/drm/i915/i915_gpu_error.c static void pool_fini(struct pagevec *pv) pv 180 drivers/gpu/drm/i915/i915_gpu_error.c pagevec_release(pv); pv 183 drivers/gpu/drm/i915/i915_gpu_error.c static int pool_refill(struct pagevec *pv, gfp_t gfp) pv 185 drivers/gpu/drm/i915/i915_gpu_error.c while (pagevec_space(pv)) { pv 192 drivers/gpu/drm/i915/i915_gpu_error.c pagevec_add(pv, p); pv 198 drivers/gpu/drm/i915/i915_gpu_error.c static int pool_init(struct pagevec *pv, gfp_t gfp) pv 202 drivers/gpu/drm/i915/i915_gpu_error.c pagevec_init(pv); pv 204 drivers/gpu/drm/i915/i915_gpu_error.c err = pool_refill(pv, gfp); pv 206 drivers/gpu/drm/i915/i915_gpu_error.c pool_fini(pv); pv 211 drivers/gpu/drm/i915/i915_gpu_error.c static void *pool_alloc(struct pagevec *pv, gfp_t gfp) pv 216 drivers/gpu/drm/i915/i915_gpu_error.c if (!p && pagevec_count(pv)) pv 217 drivers/gpu/drm/i915/i915_gpu_error.c p = pv->pages[--pv->nr]; pv 222 drivers/gpu/drm/i915/i915_gpu_error.c static void pool_free(struct pagevec *pv, void *addr) pv 226 drivers/gpu/drm/i915/i915_gpu_error.c if (pagevec_space(pv)) pv 227 drivers/gpu/drm/i915/i915_gpu_error.c pagevec_add(pv, p); pv 121 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nvkm_pll_vals *pv = ®p->pllvals; pv 129 drivers/gpu/drm/nouveau/dispnv04/crtc.c pv->NM2 = 0; pv 145 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (!clk->pll_calc(clk, &pll_lim, dot_clock, pv)) pv 159 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (pv->NM2) pv 161 drivers/gpu/drm/nouveau/dispnv04/crtc.c pv->N1, pv->N2, pv->M1, pv->M2, pv->log2P); pv 164 drivers/gpu/drm/nouveau/dispnv04/crtc.c pv->N1, pv->M1, pv->log2P); pv 204 drivers/gpu/drm/nouveau/dispnv04/hw.c nouveau_hw_pllvals_to_clk(struct nvkm_pll_vals *pv) pv 207 drivers/gpu/drm/nouveau/dispnv04/hw.c if (!pv->M1 || !pv->M2) pv 210 drivers/gpu/drm/nouveau/dispnv04/hw.c return pv->N1 * pv->N2 * pv->refclk / (pv->M1 * pv->M2) >> pv->log2P; pv 263 drivers/gpu/drm/nouveau/dispnv04/hw.c struct nvkm_pll_vals pv; pv 268 drivers/gpu/drm/nouveau/dispnv04/hw.c nouveau_hw_get_pllvals(dev, pll, &pv); pv 270 drivers/gpu/drm/nouveau/dispnv04/hw.c if (pv.M1 >= pll_lim.vco1.min_m && pv.M1 <= pll_lim.vco1.max_m && pv 271 drivers/gpu/drm/nouveau/dispnv04/hw.c pv.N1 >= pll_lim.vco1.min_n && pv.N1 <= pll_lim.vco1.max_n && pv 272 drivers/gpu/drm/nouveau/dispnv04/hw.c pv.log2P <= pll_lim.max_p) pv 278 drivers/gpu/drm/nouveau/dispnv04/hw.c pv.M1 = pll_lim.vco1.max_m; pv 279 drivers/gpu/drm/nouveau/dispnv04/hw.c pv.N1 = pll_lim.vco1.min_n; pv 280 drivers/gpu/drm/nouveau/dispnv04/hw.c pv.log2P = pll_lim.max_p_usable; pv 281 drivers/gpu/drm/nouveau/dispnv04/hw.c clk->pll_prog(clk, pll_lim.reg, &pv); pv 118 drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h struct nvkm_pll_vals *pv); pv 119 drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h int (*pll_prog)(struct nvkm_clk *, u32 reg1, struct nvkm_pll_vals *pv); pv 33 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c int clk, struct nvkm_pll_vals *pv) pv 38 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c pv->refclk = info->refclk; pv 39 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c pv->N1 = N1; pv 40 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c pv->M1 = M1; pv 41 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c pv->N2 = N2; pv 42 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c pv->M2 = M2; pv 43 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c pv->log2P = P; pv 49 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c nv04_clk_pll_prog(struct nvkm_clk *clk, u32 reg1, struct nvkm_pll_vals *pv) pv 58 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c setPLL_double_highregs(devinit, reg1, pv); pv 60 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c setPLL_double_lowregs(devinit, reg1, pv); pv 62 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c setPLL_single(devinit, reg1, pv); pv 144 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c struct nvkm_pll_vals *pv) pv 150 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1; pv 164 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if (oldM && pv->M1 && (oldN / oldM < pv->N1 / pv->M1)) pv 166 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c nvkm_wr32(device, reg, pv->log2P << 16 | (oldpll & 0xffff)); pv 169 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c nvkm_wr32(device, reg, (oldpll & 0xffff0000) | pv->NM1); pv 199 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c struct nvkm_pll_vals *pv) pv 207 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c uint32_t pll1 = (oldpll1 & 0xfff80000) | pv->log2P << 16 | pv->NM1; pv 208 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c uint32_t pll2 = (oldpll2 & 0x7fff0000) | 1 << 31 | pv->NM2; pv 210 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c bool single_stage = !pv->NM2 || pv->N2 == pv->M2; /* nv41+ only */ pv 216 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c pll1 = (pll1 & 0xfcc7ffff) | (pv->N2 & 0x18) << 21 | pv 217 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c (pv->N2 & 0x7) << 19 | 8 << 4 | (pv->M2 & 7) << 4; pv 277 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c struct nvkm_pll_vals *pv) pv 290 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c uint32_t NMNM = pv->NM2 << 16 | pv->NM1; pv 292 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c 0xc << 28 | pv->log2P << 16; pv 296 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c bool single_stage = !pv->NM2 || pv->N2 == pv->M2; pv 313 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c Pval2 = pv->log2P + info.bias_p; pv 360 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c struct nvkm_pll_vals pv; pv 374 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c pv.refclk = info.refclk; pv 375 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c pv.N1 = N1; pv 376 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c pv.M1 = M1; pv 377 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c pv.N2 = N2; pv 378 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c pv.M2 = M2; pv 379 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c pv.log2P = P; pv 384 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c setPLL_double_highregs(devinit, type, &pv); pv 386 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c setPLL_double_lowregs(devinit, type, &pv); pv 388 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c setPLL_single(devinit, type, &pv); pv 916 drivers/isdn/hardware/mISDN/hfcmulti.c u_int pv; pv 945 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 946 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_SYNC_O_EN; pv 947 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 967 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 968 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_SYNC_O_EN; pv 969 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 998 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 999 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_SYNC_O_EN; pv 1000 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 1043 drivers/isdn/hardware/mISDN/hfcmulti.c u_int pv; pv 1065 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 1067 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_TERM_ON; pv 1069 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_SLAVE_EN_N; pv 1070 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_MASTER_EN; pv 1071 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_SYNC_O_EN; pv 1073 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_DSP_RES_N; pv 1074 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 1077 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, pv); pv 1114 drivers/isdn/hardware/mISDN/hfcmulti.c u_int pv; pv 1198 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 1200 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_TERM_ON; /* hc is currently the last */ pv 1202 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_SLAVE_EN_N; pv 1203 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_MASTER_EN; pv 1204 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_SYNC_O_EN; pv 1206 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_DSP_RES_N; pv 1207 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 1211 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, pv); pv 1233 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 1234 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_TERM_ON; pv 1235 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 1240 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, pv); pv 1295 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 1298 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_MASTER_EN | PLX_SLAVE_EN_N; pv 1299 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_SYNC_O_EN; pv 1302 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, pv); pv 1304 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~(PLX_MASTER_EN | PLX_SLAVE_EN_N); pv 1305 drivers/isdn/hardware/mISDN/hfcmulti.c pv &= ~PLX_SYNC_O_EN; pv 1308 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, pv); pv 1310 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 1413 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 1414 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_MASTER_EN | PLX_SLAVE_EN_N; pv 1415 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_SYNC_O_EN; pv 1416 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 1420 drivers/isdn/hardware/mISDN/hfcmulti.c "PLX_GPIO=%x\n", __func__, pv); pv 1449 drivers/isdn/hardware/mISDN/hfcmulti.c pv = readl(plx_acc_32); pv 1450 drivers/isdn/hardware/mISDN/hfcmulti.c pv |= PLX_DSP_RES_N; pv 1451 drivers/isdn/hardware/mISDN/hfcmulti.c writel(pv, plx_acc_32); pv 1455 drivers/isdn/hardware/mISDN/hfcmulti.c __func__, pv); pv 38 drivers/macintosh/windfarm_ad7417_sensor.c struct wf_ad7417_priv *pv = sr->priv; pv 44 drivers/macintosh/windfarm_ad7417_sensor.c mutex_lock(&pv->lock); pv 48 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_send(pv->i2c, buf, 1); pv 51 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_recv(pv->i2c, buf, 2); pv 61 drivers/macintosh/windfarm_ad7417_sensor.c mutex_unlock(&pv->lock); pv 65 drivers/macintosh/windfarm_ad7417_sensor.c mutex_unlock(&pv->lock); pv 79 drivers/macintosh/windfarm_ad7417_sensor.c static void wf_ad7417_adc_convert(struct wf_ad7417_priv *pv, pv 84 drivers/macintosh/windfarm_ad7417_sensor.c *value = (raw * (s32)pv->mpu->mdiode + pv 85 drivers/macintosh/windfarm_ad7417_sensor.c ((s32)pv->mpu->bdiode << 12)) >> 2; pv 101 drivers/macintosh/windfarm_ad7417_sensor.c struct wf_ad7417_priv *pv = sr->priv; pv 102 drivers/macintosh/windfarm_ad7417_sensor.c int chan = sr - pv->sensors; pv 108 drivers/macintosh/windfarm_ad7417_sensor.c mutex_lock(&pv->lock); pv 112 drivers/macintosh/windfarm_ad7417_sensor.c buf[1] = (pv->config & 0x1f) | (chan << 5); pv 113 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_send(pv->i2c, buf, 2); pv 122 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_send(pv->i2c, buf, 1); pv 127 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_recv(pv->i2c, buf, 2); pv 133 drivers/macintosh/windfarm_ad7417_sensor.c wf_ad7417_adc_convert(pv, chan, raw, value); pv 135 drivers/macintosh/windfarm_ad7417_sensor.c dev_vdbg(&pv->i2c->dev, "ADC chan %d [%s]" pv 139 drivers/macintosh/windfarm_ad7417_sensor.c mutex_unlock(&pv->lock); pv 143 drivers/macintosh/windfarm_ad7417_sensor.c dev_dbg(&pv->i2c->dev, pv 148 drivers/macintosh/windfarm_ad7417_sensor.c mutex_unlock(&pv->lock); pv 154 drivers/macintosh/windfarm_ad7417_sensor.c struct wf_ad7417_priv *pv = container_of(ref, pv 156 drivers/macintosh/windfarm_ad7417_sensor.c kfree(pv); pv 161 drivers/macintosh/windfarm_ad7417_sensor.c struct wf_ad7417_priv *pv = sr->priv; pv 164 drivers/macintosh/windfarm_ad7417_sensor.c kref_put(&pv->ref, wf_ad7417_release); pv 179 drivers/macintosh/windfarm_ad7417_sensor.c static void wf_ad7417_add_sensor(struct wf_ad7417_priv *pv, pv 183 drivers/macintosh/windfarm_ad7417_sensor.c pv->sensors[index].name = kasprintf(GFP_KERNEL, "%s-%d", name, pv->cpu); pv 184 drivers/macintosh/windfarm_ad7417_sensor.c pv->sensors[index].priv = pv; pv 185 drivers/macintosh/windfarm_ad7417_sensor.c pv->sensors[index].ops = ops; pv 186 drivers/macintosh/windfarm_ad7417_sensor.c if (!wf_register_sensor(&pv->sensors[index])) pv 187 drivers/macintosh/windfarm_ad7417_sensor.c kref_get(&pv->ref); pv 190 drivers/macintosh/windfarm_ad7417_sensor.c static void wf_ad7417_init_chip(struct wf_ad7417_priv *pv) pv 206 drivers/macintosh/windfarm_ad7417_sensor.c i2c_master_send(pv->i2c, buf, 2); pv 210 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_send(pv->i2c, buf, 1); pv 212 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_recv(pv->i2c, buf, 1); pv 216 drivers/macintosh/windfarm_ad7417_sensor.c dev_dbg(&pv->i2c->dev, "ADC config reg: %02x\n", pv 223 drivers/macintosh/windfarm_ad7417_sensor.c rc = i2c_master_send(pv->i2c, buf, 2); pv 227 drivers/macintosh/windfarm_ad7417_sensor.c dev_err(&pv->i2c->dev, "Error reading ADC config\n"); pv 229 drivers/macintosh/windfarm_ad7417_sensor.c pv->config = config; pv 235 drivers/macintosh/windfarm_ad7417_sensor.c struct wf_ad7417_priv *pv; pv 264 drivers/macintosh/windfarm_ad7417_sensor.c pv = kzalloc(sizeof(struct wf_ad7417_priv), GFP_KERNEL); pv 265 drivers/macintosh/windfarm_ad7417_sensor.c if (pv == NULL) pv 268 drivers/macintosh/windfarm_ad7417_sensor.c kref_init(&pv->ref); pv 269 drivers/macintosh/windfarm_ad7417_sensor.c mutex_init(&pv->lock); pv 270 drivers/macintosh/windfarm_ad7417_sensor.c pv->i2c = client; pv 271 drivers/macintosh/windfarm_ad7417_sensor.c pv->cpu = cpu_nr; pv 272 drivers/macintosh/windfarm_ad7417_sensor.c pv->mpu = mpu; pv 273 drivers/macintosh/windfarm_ad7417_sensor.c dev_set_drvdata(&client->dev, pv); pv 276 drivers/macintosh/windfarm_ad7417_sensor.c wf_ad7417_init_chip(pv); pv 283 drivers/macintosh/windfarm_ad7417_sensor.c wf_ad7417_add_sensor(pv, 0, "cpu-amb-temp", &wf_ad7417_temp_ops); pv 284 drivers/macintosh/windfarm_ad7417_sensor.c wf_ad7417_add_sensor(pv, 1, "cpu-diode-temp", &wf_ad7417_adc_ops); pv 285 drivers/macintosh/windfarm_ad7417_sensor.c wf_ad7417_add_sensor(pv, 2, "cpu-12v-current", &wf_ad7417_adc_ops); pv 286 drivers/macintosh/windfarm_ad7417_sensor.c wf_ad7417_add_sensor(pv, 3, "cpu-voltage", &wf_ad7417_adc_ops); pv 287 drivers/macintosh/windfarm_ad7417_sensor.c wf_ad7417_add_sensor(pv, 4, "cpu-current", &wf_ad7417_adc_ops); pv 294 drivers/macintosh/windfarm_ad7417_sensor.c struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev); pv 298 drivers/macintosh/windfarm_ad7417_sensor.c pv->i2c = NULL; pv 302 drivers/macintosh/windfarm_ad7417_sensor.c wf_unregister_sensor(&pv->sensors[i]); pv 304 drivers/macintosh/windfarm_ad7417_sensor.c kref_put(&pv->ref, wf_ad7417_release); pv 73 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv = container_of(ref, struct wf_fcu_priv, ref); pv 75 drivers/macintosh/windfarm_fcu_controls.c kfree(pv); pv 86 drivers/macintosh/windfarm_fcu_controls.c static int wf_fcu_read_reg(struct wf_fcu_priv *pv, int reg, pv 91 drivers/macintosh/windfarm_fcu_controls.c mutex_lock(&pv->lock); pv 96 drivers/macintosh/windfarm_fcu_controls.c nw = i2c_master_send(pv->i2c, buf, 1); pv 109 drivers/macintosh/windfarm_fcu_controls.c nr = i2c_master_recv(pv->i2c, buf, nb); pv 118 drivers/macintosh/windfarm_fcu_controls.c mutex_unlock(&pv->lock); pv 122 drivers/macintosh/windfarm_fcu_controls.c static int wf_fcu_write_reg(struct wf_fcu_priv *pv, int reg, pv 133 drivers/macintosh/windfarm_fcu_controls.c nw = i2c_master_send(pv->i2c, buf, nb); pv 147 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv = fan->fcu_priv; pv 148 drivers/macintosh/windfarm_fcu_controls.c int rc, shift = pv->rpm_shift; pv 160 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_write_reg(pv, 0x10 + (fan->id * 2), buf, 2); pv 169 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv = fan->fcu_priv; pv 170 drivers/macintosh/windfarm_fcu_controls.c int rc, reg_base, shift = pv->rpm_shift; pv 175 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_read_reg(pv, 0xb, &failure, 1); pv 180 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_read_reg(pv, 0xd, &active, 1); pv 192 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_read_reg(pv, reg_base + (fan->id * 2), buf, 2); pv 204 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv = fan->fcu_priv; pv 217 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_write_reg(pv, 0x30 + (fan->id * 2), buf, 1); pv 226 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv = fan->fcu_priv; pv 232 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_read_reg(pv, 0x2b, &failure, 1); pv 237 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_read_reg(pv, 0x2d, &active, 1); pv 243 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_read_reg(pv, 0x30 + (fan->id * 2), buf, 1); pv 321 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv = fan->fcu_priv; pv 326 drivers/macintosh/windfarm_fcu_controls.c fan->min = 2400 >> pv->rpm_shift; pv 327 drivers/macintosh/windfarm_fcu_controls.c fan->max = 56000 >> pv->rpm_shift; pv 361 drivers/macintosh/windfarm_fcu_controls.c static void wf_fcu_add_fan(struct wf_fcu_priv *pv, const char *name, pv 369 drivers/macintosh/windfarm_fcu_controls.c fan->fcu_priv = pv; pv 396 drivers/macintosh/windfarm_fcu_controls.c list_add(&fan->link, &pv->fan_list); pv 397 drivers/macintosh/windfarm_fcu_controls.c kref_get(&pv->ref); pv 400 drivers/macintosh/windfarm_fcu_controls.c static void wf_fcu_lookup_fans(struct wf_fcu_priv *pv) pv 427 drivers/macintosh/windfarm_fcu_controls.c struct device_node *np, *fcu = pv->i2c->dev.of_node; pv 476 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, name, type, id); pv 482 drivers/macintosh/windfarm_fcu_controls.c static void wf_fcu_default_fans(struct wf_fcu_priv *pv) pv 488 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, "backside-fan", FCU_FAN_PWM, 1); pv 489 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, "drive-bay-fan", FCU_FAN_RPM, 2); pv 490 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, "slots-fan", FCU_FAN_PWM, 2); pv 491 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, "cpu-front-fan-0", FCU_FAN_RPM, 3); pv 492 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, "cpu-rear-fan-0", FCU_FAN_RPM, 4); pv 493 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, "cpu-front-fan-1", FCU_FAN_RPM, 5); pv 494 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_add_fan(pv, "cpu-rear-fan-1", FCU_FAN_RPM, 6); pv 497 drivers/macintosh/windfarm_fcu_controls.c static int wf_fcu_init_chip(struct wf_fcu_priv *pv) pv 502 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_write_reg(pv, 0xe, &buf, 1); pv 505 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_write_reg(pv, 0x2e, &buf, 1); pv 508 drivers/macintosh/windfarm_fcu_controls.c rc = wf_fcu_read_reg(pv, 0, &buf, 1); pv 511 drivers/macintosh/windfarm_fcu_controls.c pv->rpm_shift = (buf == 1) ? 2 : 3; pv 514 drivers/macintosh/windfarm_fcu_controls.c pv->rpm_shift); pv 522 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv; pv 524 drivers/macintosh/windfarm_fcu_controls.c pv = kzalloc(sizeof(*pv), GFP_KERNEL); pv 525 drivers/macintosh/windfarm_fcu_controls.c if (!pv) pv 528 drivers/macintosh/windfarm_fcu_controls.c kref_init(&pv->ref); pv 529 drivers/macintosh/windfarm_fcu_controls.c mutex_init(&pv->lock); pv 530 drivers/macintosh/windfarm_fcu_controls.c INIT_LIST_HEAD(&pv->fan_list); pv 531 drivers/macintosh/windfarm_fcu_controls.c pv->i2c = client; pv 537 drivers/macintosh/windfarm_fcu_controls.c if (wf_fcu_init_chip(pv)) { pv 539 drivers/macintosh/windfarm_fcu_controls.c kfree(pv); pv 544 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_lookup_fans(pv); pv 550 drivers/macintosh/windfarm_fcu_controls.c if (list_empty(&pv->fan_list)) pv 551 drivers/macintosh/windfarm_fcu_controls.c wf_fcu_default_fans(pv); pv 554 drivers/macintosh/windfarm_fcu_controls.c if (list_empty(&pv->fan_list)) { pv 556 drivers/macintosh/windfarm_fcu_controls.c kfree(pv); pv 560 drivers/macintosh/windfarm_fcu_controls.c dev_set_drvdata(&client->dev, pv); pv 567 drivers/macintosh/windfarm_fcu_controls.c struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev); pv 570 drivers/macintosh/windfarm_fcu_controls.c while (!list_empty(&pv->fan_list)) { pv 571 drivers/macintosh/windfarm_fcu_controls.c fan = list_first_entry(&pv->fan_list, struct wf_fcu_fan, link); pv 575 drivers/macintosh/windfarm_fcu_controls.c kref_put(&pv->ref, wf_fcu_release); pv 258 drivers/media/radio/si4713/si4713.c static int si4713_read_property(struct si4713_device *sdev, u16 prop, u32 *pv) pv 280 drivers/media/radio/si4713/si4713.c *pv = compose_u16(val[2], val[3]); pv 284 drivers/media/radio/si4713/si4713.c __func__, prop, *pv, val[0]); pv 88 drivers/misc/fastrpc.c u64 pv; pv 777 drivers/misc/fastrpc.c rpra[i].pv = 0; pv 788 drivers/misc/fastrpc.c rpra[i].pv = (u64) ctx->args[i].ptr; pv 813 drivers/misc/fastrpc.c rpra[i].pv = args - ctx->olaps[oix].offset; pv 827 drivers/misc/fastrpc.c void *dst = (void *)(uintptr_t)rpra[i].pv; pv 843 drivers/misc/fastrpc.c rpra[i].pv = (u64) ctx->args[i].ptr; pv 867 drivers/misc/fastrpc.c void *src = (void *)(uintptr_t)rpra[i].pv; pv 62 drivers/nubus/nubus.c unsigned long pv = (unsigned long)p; pv 64 drivers/nubus/nubus.c pv &= 3; pv 65 drivers/nubus/nubus.c if (map & (1 << pv)) pv 41 drivers/pwm/pwm-puv3.c unsigned long period_cycles, prescale, pv, dc; pv 54 drivers/pwm/pwm-puv3.c pv = period_cycles / (prescale + 1) - 1; pv 62 drivers/pwm/pwm-puv3.c dc = (pv + 1) * duty_ns / period_ns; pv 71 drivers/pwm/pwm-puv3.c writel(pv - dc, puv3->base + OST_PWM_DCCR); pv 72 drivers/pwm/pwm-puv3.c writel(pv, puv3->base + OST_PWM_PCR); pv 65 drivers/pwm/pwm-pxa.c unsigned long period_cycles, prescale, pv, dc; pv 79 drivers/pwm/pwm-pxa.c pv = period_cycles / (prescale + 1) - 1; pv 87 drivers/pwm/pwm-pxa.c dc = (pv + 1) * duty_ns / period_ns; pv 98 drivers/pwm/pwm-pxa.c writel(pv, pc->mmio_base + offset + PWMPCR); pv 82 drivers/pwm/pwm-spear.c unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; pv 100 drivers/pwm/pwm-spear.c pv = div64_u64(val, div); pv 105 drivers/pwm/pwm-spear.c if (pv < PWMPCR_MIN_PERIOD || dc < PWMDCR_MIN_DUTY) pv 112 drivers/pwm/pwm-spear.c if (pv > PWMPCR_MAX_PERIOD || dc > PWMDCR_MAX_DUTY) { pv 131 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); pv 77 drivers/pwm/pwm-vt8500.c unsigned long period_cycles, prescale, pv, dc; pv 95 drivers/pwm/pwm-vt8500.c pv = period_cycles / (prescale + 1) - 1; pv 96 drivers/pwm/pwm-vt8500.c if (pv > 4095) pv 97 drivers/pwm/pwm-vt8500.c pv = 4095; pv 104 drivers/pwm/pwm-vt8500.c c = (unsigned long long)pv * duty_ns; pv 111 drivers/pwm/pwm-vt8500.c writel(pv, vt8500->base + REG_PERIOD(pwm->hwpwm)); pv 656 drivers/scsi/ncr53c8xx.c char *pc, *pv; pv 664 drivers/scsi/ncr53c8xx.c pv = pc; pv 665 drivers/scsi/ncr53c8xx.c c = *++pv; pv 672 drivers/scsi/ncr53c8xx.c val = (int) simple_strtoul(pv, &pe, 0); pv 987 drivers/scsi/sym53c8xx_2/sym_glue.c static int get_int_arg(char *ptr, int len, u_long *pv) pv 991 drivers/scsi/sym53c8xx_2/sym_glue.c *pv = simple_strtoul(ptr, &end, 10); pv 63 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; pv 65 drivers/tty/hvc/hvc_opal.c if (WARN_ON(!pv)) pv 68 drivers/tty/hvc/hvc_opal.c return hvsilib_get_chars(&pv->hvsi, buf, count); pv 73 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; pv 75 drivers/tty/hvc/hvc_opal.c if (WARN_ON(!pv)) pv 78 drivers/tty/hvc/hvc_opal.c return hvsilib_put_chars(&pv->hvsi, buf, count); pv 83 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; pv 92 drivers/tty/hvc/hvc_opal.c return hvsilib_open(&pv->hvsi, hp); pv 97 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; pv 101 drivers/tty/hvc/hvc_opal.c hvsilib_close(&pv->hvsi, hp); pv 108 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; pv 112 drivers/tty/hvc/hvc_opal.c hvsilib_close(&pv->hvsi, hp); pv 119 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; pv 121 drivers/tty/hvc/hvc_opal.c if (!pv) pv 123 drivers/tty/hvc/hvc_opal.c return pv->hvsi.mctrl; pv 129 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; pv 135 drivers/tty/hvc/hvc_opal.c hvsilib_write_mctrl(&pv->hvsi, 1); pv 137 drivers/tty/hvc/hvc_opal.c hvsilib_write_mctrl(&pv->hvsi, 0); pv 157 drivers/tty/hvc/hvc_opal.c struct hvc_opal_priv *pv; pv 180 drivers/tty/hvc/hvc_opal.c pv = hvc_opal_privs[termno]; pv 183 drivers/tty/hvc/hvc_opal.c pv = kzalloc(sizeof(struct hvc_opal_priv), GFP_KERNEL); pv 184 drivers/tty/hvc/hvc_opal.c if (!pv) pv 186 drivers/tty/hvc/hvc_opal.c pv->proto = proto; pv 187 drivers/tty/hvc/hvc_opal.c hvc_opal_privs[termno] = pv; pv 193 drivers/tty/hvc/hvc_opal.c hvsilib_init(&pv->hvsi, pv 71 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[vtermno]; pv 76 drivers/tty/hvc/hvc_vio.c if (WARN_ON(!pv)) pv 79 drivers/tty/hvc/hvc_vio.c spin_lock_irqsave(&pv->buf_lock, flags); pv 81 drivers/tty/hvc/hvc_vio.c if (pv->left == 0) { pv 82 drivers/tty/hvc/hvc_vio.c pv->offset = 0; pv 83 drivers/tty/hvc/hvc_vio.c pv->left = hvc_get_chars(pv->termno, pv->buf, count); pv 89 drivers/tty/hvc/hvc_vio.c for (i = 1; i < pv->left; ++i) { pv 90 drivers/tty/hvc/hvc_vio.c if (pv->buf[i] == 0 && pv->buf[i-1] == '\r') { pv 91 drivers/tty/hvc/hvc_vio.c --pv->left; pv 92 drivers/tty/hvc/hvc_vio.c if (i < pv->left) { pv 93 drivers/tty/hvc/hvc_vio.c memmove(&pv->buf[i], &pv->buf[i+1], pv 94 drivers/tty/hvc/hvc_vio.c pv->left - i); pv 100 drivers/tty/hvc/hvc_vio.c got = min(count, pv->left); pv 101 drivers/tty/hvc/hvc_vio.c memcpy(buf, &pv->buf[pv->offset], got); pv 102 drivers/tty/hvc/hvc_vio.c pv->offset += got; pv 103 drivers/tty/hvc/hvc_vio.c pv->left -= got; pv 105 drivers/tty/hvc/hvc_vio.c spin_unlock_irqrestore(&pv->buf_lock, flags); pv 120 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[vtermno]; pv 122 drivers/tty/hvc/hvc_vio.c if (WARN_ON(!pv)) pv 125 drivers/tty/hvc/hvc_vio.c return hvc_put_chars(pv->termno, buf, count); pv 138 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[vtermno]; pv 140 drivers/tty/hvc/hvc_vio.c if (WARN_ON(!pv)) pv 143 drivers/tty/hvc/hvc_vio.c return hvsilib_get_chars(&pv->hvsi, buf, count); pv 148 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[vtermno]; pv 150 drivers/tty/hvc/hvc_vio.c if (WARN_ON(!pv)) pv 153 drivers/tty/hvc/hvc_vio.c return hvsilib_put_chars(&pv->hvsi, buf, count); pv 158 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; pv 161 drivers/tty/hvc/hvc_vio.c pr_devel("HVSI@%x: open !\n", pv->termno); pv 167 drivers/tty/hvc/hvc_vio.c return hvsilib_open(&pv->hvsi, hp); pv 172 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; pv 174 drivers/tty/hvc/hvc_vio.c pr_devel("HVSI@%x: do close !\n", pv->termno); pv 176 drivers/tty/hvc/hvc_vio.c hvsilib_close(&pv->hvsi, hp); pv 183 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; pv 185 drivers/tty/hvc/hvc_vio.c pr_devel("HVSI@%x: do hangup !\n", pv->termno); pv 187 drivers/tty/hvc/hvc_vio.c hvsilib_close(&pv->hvsi, hp); pv 194 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; pv 196 drivers/tty/hvc/hvc_vio.c if (!pv) pv 198 drivers/tty/hvc/hvc_vio.c return pv->hvsi.mctrl; pv 204 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; pv 207 drivers/tty/hvc/hvc_vio.c pv->termno, set, clear); pv 210 drivers/tty/hvc/hvc_vio.c hvsilib_write_mctrl(&pv->hvsi, 1); pv 212 drivers/tty/hvc/hvc_vio.c hvsilib_write_mctrl(&pv->hvsi, 0); pv 301 drivers/tty/hvc/hvc_vio.c struct hvterm_priv *pv; pv 327 drivers/tty/hvc/hvc_vio.c pv = hvterm_privs[0]; pv 339 drivers/tty/hvc/hvc_vio.c pv = kzalloc(sizeof(struct hvterm_priv), GFP_KERNEL); pv 340 drivers/tty/hvc/hvc_vio.c if (!pv) pv 342 drivers/tty/hvc/hvc_vio.c pv->termno = vdev->unit_address; pv 343 drivers/tty/hvc/hvc_vio.c pv->proto = proto; pv 344 drivers/tty/hvc/hvc_vio.c spin_lock_init(&pv->buf_lock); pv 345 drivers/tty/hvc/hvc_vio.c hvterm_privs[termno] = pv; pv 346 drivers/tty/hvc/hvc_vio.c hvsilib_init(&pv->hvsi, hvc_get_chars, hvc_put_chars, pv 347 drivers/tty/hvc/hvc_vio.c pv->termno, 0); pv 10 drivers/tty/hvc/hvsi_lib.c static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet) pv 12 drivers/tty/hvc/hvsi_lib.c packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno)); pv 15 drivers/tty/hvc/hvsi_lib.c return pv->put_chars(pv->termno, (char *)packet, packet->len); pv 18 drivers/tty/hvc/hvsi_lib.c static void hvsi_start_handshake(struct hvsi_priv *pv) pv 23 drivers/tty/hvc/hvsi_lib.c pv->established = 0; pv 24 drivers/tty/hvc/hvsi_lib.c atomic_set(&pv->seqno, 0); pv 26 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: Handshaking started\n", pv->termno); pv 32 drivers/tty/hvc/hvsi_lib.c hvsi_send_packet(pv, &q.hdr); pv 35 drivers/tty/hvc/hvsi_lib.c static int hvsi_send_close(struct hvsi_priv *pv) pv 39 drivers/tty/hvc/hvsi_lib.c pv->established = 0; pv 44 drivers/tty/hvc/hvsi_lib.c return hvsi_send_packet(pv, &ctrl.hdr); pv 47 drivers/tty/hvc/hvsi_lib.c static void hvsi_cd_change(struct hvsi_priv *pv, int cd) pv 50 drivers/tty/hvc/hvsi_lib.c pv->mctrl |= TIOCM_CD; pv 52 drivers/tty/hvc/hvsi_lib.c pv->mctrl &= ~TIOCM_CD; pv 60 drivers/tty/hvc/hvsi_lib.c if (!pv->is_console && pv->opened) { pv 62 drivers/tty/hvc/hvsi_lib.c pv->termno); pv 63 drivers/tty/hvc/hvsi_lib.c hvsi_send_close(pv); pv 68 drivers/tty/hvc/hvsi_lib.c static void hvsi_got_control(struct hvsi_priv *pv) pv 70 drivers/tty/hvc/hvsi_lib.c struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf; pv 75 drivers/tty/hvc/hvsi_lib.c hvsi_start_handshake(pv); pv 79 drivers/tty/hvc/hvsi_lib.c hvsi_cd_change(pv, be32_to_cpu(pkt->word) & HVSI_TSCD); pv 84 drivers/tty/hvc/hvsi_lib.c static void hvsi_got_query(struct hvsi_priv *pv) pv 86 drivers/tty/hvc/hvsi_lib.c struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf; pv 94 drivers/tty/hvc/hvsi_lib.c pv->termno); pv 102 drivers/tty/hvc/hvsi_lib.c hvsi_send_packet(pv, &r.hdr); pv 105 drivers/tty/hvc/hvsi_lib.c pv->established = 1; pv 108 drivers/tty/hvc/hvsi_lib.c static void hvsi_got_response(struct hvsi_priv *pv) pv 111 drivers/tty/hvc/hvsi_lib.c (struct hvsi_query_response *)pv->inbuf; pv 115 drivers/tty/hvc/hvsi_lib.c hvsi_cd_change(pv, be32_to_cpu(r->u.mctrl_word) & HVSI_TSCD); pv 116 drivers/tty/hvc/hvsi_lib.c pv->mctrl_update = 1; pv 121 drivers/tty/hvc/hvsi_lib.c static int hvsi_check_packet(struct hvsi_priv *pv) pv 128 drivers/tty/hvc/hvsi_lib.c if (pv->inbuf[0] < 0xfc) { pv 129 drivers/tty/hvc/hvsi_lib.c pv->inbuf_len = pv->inbuf_pktlen = 0; pv 132 drivers/tty/hvc/hvsi_lib.c type = pv->inbuf[0]; pv 133 drivers/tty/hvc/hvsi_lib.c len = pv->inbuf[1]; pv 136 drivers/tty/hvc/hvsi_lib.c if (pv->inbuf_len < len) pv 140 drivers/tty/hvc/hvsi_lib.c pv->termno, type, len); pv 145 drivers/tty/hvc/hvsi_lib.c pv->inbuf_pktlen = len - 4; pv 146 drivers/tty/hvc/hvsi_lib.c pv->inbuf_cur = 4; pv 149 drivers/tty/hvc/hvsi_lib.c hvsi_got_control(pv); pv 152 drivers/tty/hvc/hvsi_lib.c hvsi_got_query(pv); pv 155 drivers/tty/hvc/hvsi_lib.c hvsi_got_response(pv); pv 160 drivers/tty/hvc/hvsi_lib.c pv->inbuf_len -= len; pv 161 drivers/tty/hvc/hvsi_lib.c memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len); pv 165 drivers/tty/hvc/hvsi_lib.c static int hvsi_get_packet(struct hvsi_priv *pv) pv 168 drivers/tty/hvc/hvsi_lib.c if (pv->inbuf_len < HVSI_INBUF_SIZE) pv 169 drivers/tty/hvc/hvsi_lib.c pv->inbuf_len += pv->get_chars(pv->termno, pv 170 drivers/tty/hvc/hvsi_lib.c &pv->inbuf[pv->inbuf_len], pv 171 drivers/tty/hvc/hvsi_lib.c HVSI_INBUF_SIZE - pv->inbuf_len); pv 176 drivers/tty/hvc/hvsi_lib.c if (pv->inbuf_len >= 4) pv 177 drivers/tty/hvc/hvsi_lib.c return hvsi_check_packet(pv); pv 181 drivers/tty/hvc/hvsi_lib.c int hvsilib_get_chars(struct hvsi_priv *pv, char *buf, int count) pv 185 drivers/tty/hvc/hvsi_lib.c if (WARN_ON(!pv)) pv 193 drivers/tty/hvc/hvsi_lib.c if (!pv->opened) pv 201 drivers/tty/hvc/hvsi_lib.c if (pv->inbuf_pktlen) { pv 202 drivers/tty/hvc/hvsi_lib.c unsigned int l = min(count, (int)pv->inbuf_pktlen); pv 203 drivers/tty/hvc/hvsi_lib.c memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l); pv 204 drivers/tty/hvc/hvsi_lib.c pv->inbuf_cur += l; pv 205 drivers/tty/hvc/hvsi_lib.c pv->inbuf_pktlen -= l; pv 213 drivers/tty/hvc/hvsi_lib.c if (pv->inbuf_cur) { pv 214 drivers/tty/hvc/hvsi_lib.c pv->inbuf_len -= pv->inbuf_cur; pv 215 drivers/tty/hvc/hvsi_lib.c memmove(pv->inbuf, &pv->inbuf[pv->inbuf_cur], pv 216 drivers/tty/hvc/hvsi_lib.c pv->inbuf_len); pv 217 drivers/tty/hvc/hvsi_lib.c pv->inbuf_cur = 0; pv 221 drivers/tty/hvc/hvsi_lib.c if (hvsi_get_packet(pv)) pv 224 drivers/tty/hvc/hvsi_lib.c if (!pv->established) { pv 225 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: returning -EPIPE\n", pv->termno); pv 231 drivers/tty/hvc/hvsi_lib.c int hvsilib_put_chars(struct hvsi_priv *pv, const char *buf, int count) pv 236 drivers/tty/hvc/hvsi_lib.c if (WARN_ON(!pv)) pv 242 drivers/tty/hvc/hvsi_lib.c rc = hvsi_send_packet(pv, &dp.hdr); pv 257 drivers/tty/hvc/hvsi_lib.c int hvsilib_read_mctrl(struct hvsi_priv *pv) pv 263 drivers/tty/hvc/hvsi_lib.c pv->termno); pv 265 drivers/tty/hvc/hvsi_lib.c pv->mctrl_update = 0; pv 269 drivers/tty/hvc/hvsi_lib.c rc = hvsi_send_packet(pv, &q.hdr); pv 271 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: Error %d...\n", pv->termno, rc); pv 277 drivers/tty/hvc/hvsi_lib.c if (!pv->established) pv 279 drivers/tty/hvc/hvsi_lib.c if (pv->mctrl_update) pv 281 drivers/tty/hvc/hvsi_lib.c if (!hvsi_get_packet(pv)) pv 287 drivers/tty/hvc/hvsi_lib.c int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr) pv 292 drivers/tty/hvc/hvsi_lib.c mctrl = pv->mctrl; pv 297 drivers/tty/hvc/hvsi_lib.c if (mctrl == pv->mctrl) pv 299 drivers/tty/hvc/hvsi_lib.c pv->mctrl = mctrl; pv 301 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: %s DTR...\n", pv->termno, pv 309 drivers/tty/hvc/hvsi_lib.c return hvsi_send_packet(pv, &ctrl.hdr); pv 312 drivers/tty/hvc/hvsi_lib.c void hvsilib_establish(struct hvsi_priv *pv) pv 316 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: Establishing...\n", pv->termno); pv 322 drivers/tty/hvc/hvsi_lib.c if (pv->established) pv 324 drivers/tty/hvc/hvsi_lib.c if (!hvsi_get_packet(pv)) pv 331 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: ... sending close\n", pv->termno); pv 333 drivers/tty/hvc/hvsi_lib.c hvsi_send_close(pv); pv 337 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: ... restarting handshake\n", pv->termno); pv 339 drivers/tty/hvc/hvsi_lib.c hvsi_start_handshake(pv); pv 341 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: ... waiting handshake\n", pv->termno); pv 345 drivers/tty/hvc/hvsi_lib.c if (pv->established) pv 347 drivers/tty/hvc/hvsi_lib.c if (!hvsi_get_packet(pv)) pv 351 drivers/tty/hvc/hvsi_lib.c if (!pv->established) { pv 353 drivers/tty/hvc/hvsi_lib.c pv->termno); pv 359 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: ... established, reading mctrl\n", pv->termno); pv 361 drivers/tty/hvc/hvsi_lib.c hvsilib_read_mctrl(pv); pv 365 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: ... setting mctrl\n", pv->termno); pv 367 drivers/tty/hvc/hvsi_lib.c hvsilib_write_mctrl(pv, 1); pv 371 drivers/tty/hvc/hvsi_lib.c pv->opened = 1; pv 374 drivers/tty/hvc/hvsi_lib.c int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) pv 376 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: open !\n", pv->termno); pv 379 drivers/tty/hvc/hvsi_lib.c pv->tty = tty_port_tty_get(&hp->port); pv 381 drivers/tty/hvc/hvsi_lib.c hvsilib_establish(pv); pv 386 drivers/tty/hvc/hvsi_lib.c void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) pv 390 drivers/tty/hvc/hvsi_lib.c pr_devel("HVSI@%x: close !\n", pv->termno); pv 392 drivers/tty/hvc/hvsi_lib.c if (!pv->is_console) { pv 394 drivers/tty/hvc/hvsi_lib.c pv->termno); pv 398 drivers/tty/hvc/hvsi_lib.c pv->opened = 0; pv 402 drivers/tty/hvc/hvsi_lib.c if (!pv->tty || (pv->tty->termios.c_cflag & HUPCL)) pv 403 drivers/tty/hvc/hvsi_lib.c hvsilib_write_mctrl(pv, 0); pv 406 drivers/tty/hvc/hvsi_lib.c hvsi_send_close(pv); pv 409 drivers/tty/hvc/hvsi_lib.c tty_kref_put(pv->tty); pv 410 drivers/tty/hvc/hvsi_lib.c pv->tty = NULL; pv 413 drivers/tty/hvc/hvsi_lib.c void hvsilib_init(struct hvsi_priv *pv, pv 419 drivers/tty/hvc/hvsi_lib.c memset(pv, 0, sizeof(*pv)); pv 420 drivers/tty/hvc/hvsi_lib.c pv->get_chars = get_chars; pv 421 drivers/tty/hvc/hvsi_lib.c pv->put_chars = put_chars; pv 422 drivers/tty/hvc/hvsi_lib.c pv->termno = termno; pv 423 drivers/tty/hvc/hvsi_lib.c pv->is_console = is_console; pv 61 drivers/xen/xenbus/xenbus_client.c } pv; pv 715 drivers/xen/xenbus/xenbus_client.c node->pv.area = area; pv 745 drivers/xen/xenbus/xenbus_client.c if (node->pv.area->addr == vaddr) { pv 788 drivers/xen/xenbus/xenbus_client.c free_vm_area(node->pv.area); pv 791 drivers/xen/xenbus/xenbus_client.c node->pv.area, node->nr_handles); pv 236 fs/afs/write.c struct pagevec pv; pv 242 fs/afs/write.c pagevec_init(&pv); pv 250 fs/afs/write.c pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); pv 251 fs/afs/write.c ASSERTCMP(pv.nr, ==, count); pv 254 fs/afs/write.c struct page *page = pv.pages[loop]; pv 265 fs/afs/write.c __pagevec_release(&pv); pv 279 fs/afs/write.c struct pagevec pv; pv 285 fs/afs/write.c pagevec_init(&pv); pv 293 fs/afs/write.c pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); pv 294 fs/afs/write.c ASSERTCMP(pv.nr, ==, count); pv 297 fs/afs/write.c struct page *page = pv.pages[loop]; pv 305 fs/afs/write.c __pagevec_release(&pv); pv 317 fs/afs/write.c struct pagevec pv; pv 324 fs/afs/write.c pagevec_init(&pv); pv 332 fs/afs/write.c pv.nr = find_get_pages_contig(vnode->vfs_inode.i_mapping, pv 333 fs/afs/write.c first, count, pv.pages); pv 334 fs/afs/write.c ASSERTCMP(pv.nr, ==, count); pv 337 fs/afs/write.c priv = page_private(pv.pages[loop]); pv 339 fs/afs/write.c pv.pages[loop]->index, priv); pv 340 fs/afs/write.c set_page_private(pv.pages[loop], 0); pv 341 fs/afs/write.c end_page_writeback(pv.pages[loop]); pv 344 fs/afs/write.c __pagevec_release(&pv); pv 792 fs/ocfs2/stack_user.c struct ocfs2_protocol_version *pv = pv 798 fs/ocfs2/stack_user.c ver->pv_major = pv->pv_major; pv 799 fs/ocfs2/stack_user.c ver->pv_minor = pv->pv_minor; pv 804 fs/ocfs2/stack_user.c struct ocfs2_protocol_version *pv = pv 810 fs/ocfs2/stack_user.c pv->pv_major = ver->pv_major; pv 811 fs/ocfs2/stack_user.c pv->pv_minor = ver->pv_minor; pv 902 fs/ocfs2/stack_user.c struct ocfs2_protocol_version pv; pv 921 fs/ocfs2/stack_user.c lvb_to_version(lc->oc_lvb, &pv); pv 923 fs/ocfs2/stack_user.c if ((pv.pv_major != running_proto.pv_major) || pv 924 fs/ocfs2/stack_user.c (pv.pv_minor > running_proto.pv_minor)) { pv 929 fs/ocfs2/stack_user.c conn->cc_version.pv_major = pv.pv_major; pv 930 fs/ocfs2/stack_user.c conn->cc_version.pv_minor = pv.pv_minor; pv 43 include/linux/ceph/decode.h static inline void ceph_decode_copy(void **p, void *pv, size_t n) pv 45 include/linux/ceph/decode.h memcpy(pv, *p, n); pv 84 include/linux/ceph/decode.h #define ceph_decode_copy_safe(p, end, pv, n, bad) \ pv 87 include/linux/ceph/decode.h ceph_decode_copy(p, pv, n); \ pv 378 include/linux/ceph/decode.h #define ceph_encode_copy_safe(p, end, pv, n, bad) \ pv 381 include/linux/ceph/decode.h ceph_encode_copy(p, pv, n); \ pv 370 sound/aoa/codecs/onyx.c long int pv = kcontrol->private_value; pv 371 sound/aoa/codecs/onyx.c u8 polarity = (pv >> 16) & FLAG_POLARITY_INVERT; pv 372 sound/aoa/codecs/onyx.c u8 address = (pv >> 8) & 0xff; pv 373 sound/aoa/codecs/onyx.c u8 mask = pv & 0xff; pv 390 sound/aoa/codecs/onyx.c long int pv = kcontrol->private_value; pv 391 sound/aoa/codecs/onyx.c u8 polarity = (pv >> 16) & FLAG_POLARITY_INVERT; pv 392 sound/aoa/codecs/onyx.c u8 spdiflock = (pv >> 16) & FLAG_SPDIFLOCK; pv 393 sound/aoa/codecs/onyx.c u8 address = (pv >> 8) & 0xff; pv 394 sound/aoa/codecs/onyx.c u8 mask = pv & 0xff; pv 630 sound/pci/hda/hda_local.h #define get_amp_nid_(pv) ((pv) & 0xffff) pv 633 sound/pci/hda/hda_local.h #define get_amp_direction_(pv) (((pv) >> 18) & 0x1) pv 635 sound/pci/hda/hda_local.h #define get_amp_index_(pv) (((pv) >> 19) & 0xf) pv 1260 sound/pci/maestro3.c } pv[] = { pv 1317 sound/pci/maestro3.c for (i = 0; i < ARRAY_SIZE(pv); i++) pv 1319 sound/pci/maestro3.c s->inst.data + pv[i].addr, pv[i].val); pv 365 sound/soc/mediatek/common/mtk-btcvsd.c int pv; pv 397 sound/soc/mediatek/common/mtk-btcvsd.c pv = 1; pv 399 sound/soc/mediatek/common/mtk-btcvsd.c pv = 0; pv 402 sound/soc/mediatek/common/mtk-btcvsd.c memcpy(bt->rx_packet_buf + packet_buf_ofs, (void *)&pv, pv 36 sound/usb/line6/playback.c short pv = le16_to_cpu(*p); pv 37 sound/usb/line6/playback.c int val = (pv * volume[chn & 1]) >> 8; pv 38 sound/usb/line6/playback.c pv = clamp(val, -0x8000, 0x7fff); pv 39 sound/usb/line6/playback.c *p = cpu_to_le16(pv);