/drivers/tty/hvc/ |
D | hvsi_lib.c | 10 static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet) in hvsi_send_packet() argument 12 packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno)); in hvsi_send_packet() 15 return pv->put_chars(pv->termno, (char *)packet, packet->len); in hvsi_send_packet() 18 static void hvsi_start_handshake(struct hvsi_priv *pv) in hvsi_start_handshake() argument 23 pv->established = 0; in hvsi_start_handshake() 24 atomic_set(&pv->seqno, 0); in hvsi_start_handshake() 26 pr_devel("HVSI@%x: Handshaking started\n", pv->termno); in hvsi_start_handshake() 32 hvsi_send_packet(pv, &q.hdr); in hvsi_start_handshake() 35 static int hvsi_send_close(struct hvsi_priv *pv) in hvsi_send_close() argument 39 pv->established = 0; in hvsi_send_close() [all …]
|
D | hvc_vio.c | 71 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_get_chars() local 76 if (WARN_ON(!pv)) in hvterm_raw_get_chars() 79 spin_lock_irqsave(&pv->buf_lock, flags); in hvterm_raw_get_chars() 81 if (pv->left == 0) { in hvterm_raw_get_chars() 82 pv->offset = 0; in hvterm_raw_get_chars() 83 pv->left = hvc_get_chars(pv->termno, pv->buf, count); in hvterm_raw_get_chars() 89 for (i = 1; i < pv->left; ++i) { in hvterm_raw_get_chars() 90 if (pv->buf[i] == 0 && pv->buf[i-1] == '\r') { in hvterm_raw_get_chars() 91 --pv->left; in hvterm_raw_get_chars() 92 if (i < pv->left) { in hvterm_raw_get_chars() [all …]
|
D | hvc_opal.c | 63 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_get_chars() local 65 if (WARN_ON(!pv)) in hvc_opal_hvsi_get_chars() 68 return hvsilib_get_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_get_chars() 73 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_put_chars() local 75 if (WARN_ON(!pv)) in hvc_opal_hvsi_put_chars() 78 return hvsilib_put_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_put_chars() 83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() local 92 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open() 97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() local 101 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close() [all …]
|
/drivers/macintosh/ |
D | windfarm_ad7417_sensor.c | 38 struct wf_ad7417_priv *pv = sr->priv; in wf_ad7417_temp_get() local 44 mutex_lock(&pv->lock); in wf_ad7417_temp_get() 48 rc = i2c_master_send(pv->i2c, buf, 1); in wf_ad7417_temp_get() 51 rc = i2c_master_recv(pv->i2c, buf, 2); in wf_ad7417_temp_get() 61 mutex_unlock(&pv->lock); in wf_ad7417_temp_get() 65 mutex_unlock(&pv->lock); in wf_ad7417_temp_get() 79 static void wf_ad7417_adc_convert(struct wf_ad7417_priv *pv, in wf_ad7417_adc_convert() argument 84 *value = (raw * (s32)pv->mpu->mdiode + in wf_ad7417_adc_convert() 85 ((s32)pv->mpu->bdiode << 12)) >> 2; in wf_ad7417_adc_convert() 101 struct wf_ad7417_priv *pv = sr->priv; in wf_ad7417_adc_get() local [all …]
|
D | windfarm_fcu_controls.c | 73 struct wf_fcu_priv *pv = container_of(ref, struct wf_fcu_priv, ref); in wf_fcu_release() local 75 kfree(pv); in wf_fcu_release() 86 static int wf_fcu_read_reg(struct wf_fcu_priv *pv, int reg, in wf_fcu_read_reg() argument 91 mutex_lock(&pv->lock); in wf_fcu_read_reg() 96 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg() 109 nr = i2c_master_recv(pv->i2c, buf, nb); in wf_fcu_read_reg() 118 mutex_unlock(&pv->lock); in wf_fcu_read_reg() 122 static int wf_fcu_write_reg(struct wf_fcu_priv *pv, int reg, in wf_fcu_write_reg() argument 133 nw = i2c_master_send(pv->i2c, buf, nb); in wf_fcu_write_reg() 147 struct wf_fcu_priv *pv = fan->fcu_priv; in wf_fcu_fan_set_rpm() local [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
D | nv04.c | 144 struct nvkm_pll_vals *pv) in setPLL_single() argument 150 uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_single() 164 if (oldM && pv->M1 && (oldN / oldM < pv->N1 / pv->M1)) in setPLL_single() 166 nvkm_wr32(device, reg, pv->log2P << 16 | (oldpll & 0xffff)); in setPLL_single() 169 nvkm_wr32(device, reg, (oldpll & 0xffff0000) | pv->NM1); in setPLL_single() 199 struct nvkm_pll_vals *pv) in setPLL_double_highregs() argument 207 uint32_t pll1 = (oldpll1 & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_double_highregs() 208 uint32_t pll2 = (oldpll2 & 0x7fff0000) | 1 << 31 | pv->NM2; in setPLL_double_highregs() 210 bool single_stage = !pv->NM2 || pv->N2 == pv->M2; /* nv41+ only */ in setPLL_double_highregs() 216 pll1 = (pll1 & 0xfcc7ffff) | (pv->N2 & 0x18) << 21 | in setPLL_double_highregs() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | nv04.c | 33 int clk, struct nvkm_pll_vals *pv) in nv04_clk_pll_calc() argument 38 pv->refclk = info->refclk; in nv04_clk_pll_calc() 39 pv->N1 = N1; in nv04_clk_pll_calc() 40 pv->M1 = M1; in nv04_clk_pll_calc() 41 pv->N2 = N2; in nv04_clk_pll_calc() 42 pv->M2 = M2; in nv04_clk_pll_calc() 43 pv->log2P = P; in nv04_clk_pll_calc() 49 nv04_clk_pll_prog(struct nvkm_clk *clk, u32 reg1, struct nvkm_pll_vals *pv) in nv04_clk_pll_prog() argument 58 setPLL_double_highregs(devinit, reg1, pv); in nv04_clk_pll_prog() 60 setPLL_double_lowregs(devinit, reg1, pv); in nv04_clk_pll_prog() [all …]
|
/drivers/gpu/drm/nouveau/dispnv04/ |
D | hw.c | 205 nouveau_hw_pllvals_to_clk(struct nvkm_pll_vals *pv) in nouveau_hw_pllvals_to_clk() argument 208 if (!pv->M1 || !pv->M2) in nouveau_hw_pllvals_to_clk() 211 return pv->N1 * pv->N2 * pv->refclk / (pv->M1 * pv->M2) >> pv->log2P; in nouveau_hw_pllvals_to_clk() 265 struct nvkm_pll_vals pv; in nouveau_hw_fix_bad_vpll() local 270 nouveau_hw_get_pllvals(dev, pll, &pv); in nouveau_hw_fix_bad_vpll() 272 if (pv.M1 >= pll_lim.vco1.min_m && pv.M1 <= pll_lim.vco1.max_m && in nouveau_hw_fix_bad_vpll() 273 pv.N1 >= pll_lim.vco1.min_n && pv.N1 <= pll_lim.vco1.max_n && in nouveau_hw_fix_bad_vpll() 274 pv.log2P <= pll_lim.max_p) in nouveau_hw_fix_bad_vpll() 280 pv.M1 = pll_lim.vco1.max_m; in nouveau_hw_fix_bad_vpll() 281 pv.N1 = pll_lim.vco1.min_n; in nouveau_hw_fix_bad_vpll() [all …]
|
D | crtc.c | 126 struct nvkm_pll_vals *pv = ®p->pllvals; in nv_crtc_calc_state_ext() local 134 pv->NM2 = 0; in nv_crtc_calc_state_ext() 150 if (!clk->pll_calc(clk, &pll_lim, dot_clock, pv)) in nv_crtc_calc_state_ext() 164 if (pv->NM2) in nv_crtc_calc_state_ext() 166 pv->N1, pv->N2, pv->M1, pv->M2, pv->log2P); in nv_crtc_calc_state_ext() 169 pv->N1, pv->M1, pv->log2P); in nv_crtc_calc_state_ext()
|
/drivers/pwm/ |
D | pwm-vt8500.c | 77 unsigned long period_cycles, prescale, pv, dc; in vt8500_pwm_config() local 95 pv = period_cycles / (prescale + 1) - 1; in vt8500_pwm_config() 96 if (pv > 4095) in vt8500_pwm_config() 97 pv = 4095; in vt8500_pwm_config() 104 c = (unsigned long long)pv * duty_ns; in vt8500_pwm_config() 111 writel(pv, vt8500->base + REG_PERIOD(pwm->hwpwm)); in vt8500_pwm_config()
|
D | pwm-spear.c | 82 unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; in spear_pwm_config() local 100 pv = div64_u64(val, div); in spear_pwm_config() 105 if (pv < PWMPCR_MIN_PERIOD || dc < PWMDCR_MIN_DUTY) in spear_pwm_config() 112 if (pv > PWMPCR_MAX_PERIOD || dc > PWMDCR_MAX_DUTY) { in spear_pwm_config() 131 spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); in spear_pwm_config()
|
D | pwm-pxa.c | 65 unsigned long period_cycles, prescale, pv, dc; in pxa_pwm_config() local 79 pv = period_cycles / (prescale + 1) - 1; in pxa_pwm_config() 87 dc = (pv + 1) * duty_ns / period_ns; in pxa_pwm_config() 98 writel(pv, pc->mmio_base + offset + PWMPCR); in pxa_pwm_config()
|
/drivers/isdn/hardware/mISDN/ |
D | hfcmulti.c | 916 u_int pv; in hfcmulti_resync() local 945 pv = readl(plx_acc_32); in hfcmulti_resync() 946 pv &= ~PLX_SYNC_O_EN; in hfcmulti_resync() 947 writel(pv, plx_acc_32); in hfcmulti_resync() 967 pv = readl(plx_acc_32); in hfcmulti_resync() 968 pv |= PLX_SYNC_O_EN; in hfcmulti_resync() 969 writel(pv, plx_acc_32); in hfcmulti_resync() 998 pv = readl(plx_acc_32); in hfcmulti_resync() 999 pv |= PLX_SYNC_O_EN; in hfcmulti_resync() 1000 writel(pv, plx_acc_32); in hfcmulti_resync() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_gpu_error.c | 180 static void pool_fini(struct pagevec *pv) in pool_fini() argument 182 pagevec_release(pv); in pool_fini() 185 static int pool_refill(struct pagevec *pv, gfp_t gfp) in pool_refill() argument 187 while (pagevec_space(pv)) { in pool_refill() 194 pagevec_add(pv, p); in pool_refill() 200 static int pool_init(struct pagevec *pv, gfp_t gfp) in pool_init() argument 204 pagevec_init(pv); in pool_init() 206 err = pool_refill(pv, gfp); in pool_init() 208 pool_fini(pv); in pool_init() 213 static void *pool_alloc(struct pagevec *pv, gfp_t gfp) in pool_alloc() argument [all …]
|
/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | clk.h | 118 struct nvkm_pll_vals *pv); 119 int (*pll_prog)(struct nvkm_clk *, u32 reg1, struct nvkm_pll_vals *pv);
|
/drivers/xen/xenbus/ |
D | xenbus_client.c | 61 } pv; member 720 node->pv.area = area; in xenbus_map_ring_pv() 751 if (node->pv.area->addr == vaddr) { in xenbus_unmap_ring_pv() 793 free_vm_area(node->pv.area); in xenbus_unmap_ring_pv() 796 node->pv.area, node->nr_handles); in xenbus_unmap_ring_pv()
|
/drivers/nubus/ |
D | nubus.c | 62 unsigned long pv = (unsigned long)p; in not_useful() local 64 pv &= 3; in not_useful() 65 if (map & (1 << pv)) in not_useful()
|
/drivers/misc/ |
D | fastrpc.c | 96 u64 pv; member 814 rpra[i].pv = 0; in fastrpc_get_args() 825 rpra[i].pv = (u64) ctx->args[i].ptr; in fastrpc_get_args() 852 rpra[i].pv = args - ctx->olaps[oix].offset; in fastrpc_get_args() 866 void *dst = (void *)(uintptr_t)rpra[i].pv; in fastrpc_get_args() 882 rpra[i].pv = (u64) ctx->args[i].ptr; in fastrpc_get_args() 906 void *src = (void *)(uintptr_t)rpra[i].pv; in fastrpc_put_args()
|
/drivers/media/radio/si4713/ |
D | si4713.c | 258 static int si4713_read_property(struct si4713_device *sdev, u16 prop, u32 *pv) in si4713_read_property() argument 280 *pv = compose_u16(val[2], val[3]); in si4713_read_property() 284 __func__, prop, *pv, val[0]); in si4713_read_property()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_glue.c | 981 static int get_int_arg(char *ptr, int len, u_long *pv) in get_int_arg() argument 985 *pv = simple_strtoul(ptr, &end, 10); in get_int_arg()
|
/drivers/clk/ |
D | clk.c | 5073 u32 pv; in of_clk_get_parent_name() local 5089 of_property_for_each_u32(clkspec.np, "clock-indices", prop, vp, pv) { in of_clk_get_parent_name() 5090 if (index == pv) { in of_clk_get_parent_name()
|
/drivers/scsi/ |
D | ncr53c8xx.c | 661 char *pc, *pv; in sym53c8xx__setup() local 669 pv = pc; in sym53c8xx__setup() 670 c = *++pv; in sym53c8xx__setup() 677 val = (int) simple_strtoul(pv, &pe, 0); in sym53c8xx__setup()
|