/linux-master/drivers/tty/hvc/ |
H A D | hvsi_lib.c | 10 static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet) argument 12 packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno)); 15 return pv->put_chars(pv->termno, (u8 *)packet, packet->len); 18 static void hvsi_start_handshake(struct hvsi_priv *pv) argument 23 pv->established = 0; 24 atomic_set(&pv->seqno, 0); 26 pr_devel("HVSI@%x: Handshaking started\n", pv->termno); 32 hvsi_send_packet(pv, &q.hdr); 35 static int hvsi_send_close(struct hvsi_priv *pv) argument 47 hvsi_cd_change(struct hvsi_priv *pv, int cd) argument 68 hvsi_got_control(struct hvsi_priv *pv) argument 84 hvsi_got_query(struct hvsi_priv *pv) argument 108 hvsi_got_response(struct hvsi_priv *pv) argument 121 hvsi_check_packet(struct hvsi_priv *pv) argument 165 hvsi_get_packet(struct hvsi_priv *pv) argument 181 hvsilib_get_chars(struct hvsi_priv *pv, u8 *buf, size_t count) argument 232 hvsilib_put_chars(struct hvsi_priv *pv, const u8 *buf, size_t count) argument 259 hvsilib_read_mctrl(struct hvsi_priv *pv) argument 289 hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr) argument 314 hvsilib_establish(struct hvsi_priv *pv) argument 376 hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) argument 388 hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) argument 415 hvsilib_init(struct hvsi_priv *pv, ssize_t (*get_chars)(uint32_t termno, u8 *buf, size_t count), ssize_t (*put_chars)(uint32_t termno, const u8 *buf, size_t count), int termno, int is_console) argument [all...] |
H A D | hvc_vio.c | 71 struct hvterm_priv *pv = hvterm_privs[vtermno]; local 76 if (WARN_ON(!pv)) 79 spin_lock_irqsave(&pv->buf_lock, flags); 81 if (pv->left == 0) { 82 pv->offset = 0; 83 pv->left = hvc_get_chars(pv->termno, pv->buf, count); 89 for (i = 1; i < pv->left; ++i) { 90 if (pv 121 struct hvterm_priv *pv = hvterm_privs[vtermno]; local 139 struct hvterm_priv *pv = hvterm_privs[vtermno]; local 150 struct hvterm_priv *pv = hvterm_privs[vtermno]; local 160 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; local 174 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; local 185 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; local 196 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; local 206 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; local 303 struct hvterm_priv *pv; local [all...] |
H A D | hvc_opal.c | 63 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; local 65 if (WARN_ON(!pv)) 68 return hvsilib_get_chars(&pv->hvsi, buf, count); 74 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; local 76 if (WARN_ON(!pv)) 79 return hvsilib_put_chars(&pv->hvsi, buf, count); 84 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; local 93 return hvsilib_open(&pv->hvsi, hp); 98 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; local 102 hvsilib_close(&pv 109 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; local 120 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; local 130 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; local 158 struct hvc_opal_priv *pv; local [all...] |
/linux-master/drivers/macintosh/ |
H A D | windfarm_ad7417_sensor.c | 38 struct wf_ad7417_priv *pv = sr->priv; local 44 mutex_lock(&pv->lock); 48 rc = i2c_master_send(pv->i2c, buf, 1); 51 rc = i2c_master_recv(pv->i2c, buf, 2); 61 mutex_unlock(&pv->lock); 65 mutex_unlock(&pv->lock); 79 static void wf_ad7417_adc_convert(struct wf_ad7417_priv *pv, argument 84 *value = (raw * (s32)pv->mpu->mdiode + 85 ((s32)pv->mpu->bdiode << 12)) >> 2; 101 struct wf_ad7417_priv *pv local 154 struct wf_ad7417_priv *pv = container_of(ref, local 161 struct wf_ad7417_priv *pv = sr->priv; local 179 wf_ad7417_add_sensor(struct wf_ad7417_priv *pv, int index, const char *name, const struct wf_sensor_ops *ops) argument 190 wf_ad7417_init_chip(struct wf_ad7417_priv *pv) argument 234 struct wf_ad7417_priv *pv; local 293 struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev); local [all...] |
H A D | windfarm_fcu_controls.c | 73 struct wf_fcu_priv *pv = container_of(ref, struct wf_fcu_priv, ref); local 75 kfree(pv); 86 static int wf_fcu_read_reg(struct wf_fcu_priv *pv, int reg, argument 91 mutex_lock(&pv->lock); 96 nw = i2c_master_send(pv->i2c, buf, 1); 109 nr = i2c_master_recv(pv->i2c, buf, nb); 118 mutex_unlock(&pv->lock); 122 static int wf_fcu_write_reg(struct wf_fcu_priv *pv, int reg, argument 133 nw = i2c_master_send(pv->i2c, buf, nb); 147 struct wf_fcu_priv *pv local 169 struct wf_fcu_priv *pv = fan->fcu_priv; local 204 struct wf_fcu_priv *pv = fan->fcu_priv; local 226 struct wf_fcu_priv *pv = fan->fcu_priv; local 321 struct wf_fcu_priv *pv = fan->fcu_priv; local 361 wf_fcu_add_fan(struct wf_fcu_priv *pv, const char *name, int type, int id) argument 400 wf_fcu_lookup_fans(struct wf_fcu_priv *pv) argument 480 wf_fcu_default_fans(struct wf_fcu_priv *pv) argument 495 wf_fcu_init_chip(struct wf_fcu_priv *pv) argument 519 struct wf_fcu_priv *pv; local 564 struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev); local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | nv04.c | 33 int clk, struct nvkm_pll_vals *pv) 38 pv->refclk = info->refclk; 39 pv->N1 = N1; 40 pv->M1 = M1; 41 pv->N2 = N2; 42 pv->M2 = M2; 43 pv->log2P = P; 49 nv04_clk_pll_prog(struct nvkm_clk *clk, u32 reg1, struct nvkm_pll_vals *pv) argument 58 setPLL_double_highregs(devinit, reg1, pv); 60 setPLL_double_lowregs(devinit, reg1, pv); 32 nv04_clk_pll_calc(struct nvkm_clk *clock, struct nvbios_pll *info, int clk, struct nvkm_pll_vals *pv) argument [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | hvsi.h | 82 extern void hvsilib_init(struct hvsi_priv *pv, 88 extern int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp); 89 extern void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp); 90 extern int hvsilib_read_mctrl(struct hvsi_priv *pv); 91 extern int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr); 92 extern void hvsilib_establish(struct hvsi_priv *pv); 93 extern ssize_t hvsilib_get_chars(struct hvsi_priv *pv, u8 *buf, size_t count); 94 extern ssize_t hvsilib_put_chars(struct hvsi_priv *pv, const u8 *buf,
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv04.c | 144 struct nvkm_pll_vals *pv) 150 uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1; 164 if (oldM && pv->M1 && (oldN / oldM < pv->N1 / pv->M1)) 166 nvkm_wr32(device, reg, pv->log2P << 16 | (oldpll & 0xffff)); 169 nvkm_wr32(device, reg, (oldpll & 0xffff0000) | pv->NM1); 199 struct nvkm_pll_vals *pv) 207 uint32_t pll1 = (oldpll1 & 0xfff80000) | pv 143 setPLL_single(struct nvkm_devinit *init, u32 reg, struct nvkm_pll_vals *pv) argument 198 setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1, struct nvkm_pll_vals *pv) argument 276 setPLL_double_lowregs(struct nvkm_devinit *init, u32 NMNMreg, struct nvkm_pll_vals *pv) argument 360 struct nvkm_pll_vals pv; local [all...] |
/linux-master/arch/alpha/include/uapi/asm/ |
H A D | regdef.h | 39 #define pv t12 /* procedure-variable register */ macro
|
/linux-master/arch/s390/kvm/ |
H A D | pv.c | 60 kvm->arch.pv.handle = 0; 61 kvm->arch.pv.guest_len = 0; 62 kvm->arch.pv.stor_base = 0; 63 kvm->arch.pv.stor_var = NULL; 81 free_pages(vcpu->arch.pv.stor_base, 87 memset(&vcpu->arch.pv, 0, sizeof(vcpu->arch.pv)); 112 vcpu->arch.pv.stor_base = __get_free_pages(GFP_KERNEL_ACCOUNT, 114 if (!vcpu->arch.pv.stor_base) 121 uvcb.stor_origin = virt_to_phys((void *)vcpu->arch.pv [all...] |
H A D | Makefile | 11 kvm-y += diag.o gaccess.o guestdbg.o vsie.o pv.o
|
/linux-master/net/bridge/ |
H A D | br_mst.c | 128 static void br_mst_vlan_sync_state(struct net_bridge_vlan *pv, u16 msti) argument 130 struct net_bridge_vlan_group *vg = nbp_vlan_group(pv->port); 138 if (v != pv && v->brvlan->msti == msti) { 139 br_mst_vlan_set_state(pv->port, pv, v->state); 145 return br_mst_vlan_set_state(pv->port, pv, BR_STATE_DISABLED); 159 struct net_bridge_vlan *pv; local 175 pv = br_vlan_find(vg, mv->vid); 176 if (pv) [all...] |
/linux-master/drivers/pwm/ |
H A D | pwm-pxa.c | 72 unsigned long period_cycles, prescale, pv, dc; local 85 pv = period_cycles / (prescale + 1) - 1; 93 dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns); 97 writel(pv, pc->mmio_base + offset + PWMPCR);
|
H A D | pwm-vt8500.c | 77 unsigned long period_cycles, prescale, pv, dc; local 95 pv = period_cycles / (prescale + 1) - 1; 96 if (pv > 4095) 97 pv = 4095; 104 c = (unsigned long long)pv * duty_ns; 111 writel(pv, vt8500->base + REG_PERIOD(pwm->hwpwm));
|
H A D | pwm-spear.c | 80 unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; local 84 * Find pv, dc and prescale to suit duty_ns and period_ns. This is done 98 pv = div64_u64(val, div); 103 if (pv < PWMPCR_MIN_PERIOD || dc < PWMDCR_MIN_DUTY) 107 * if pv and dc have crossed their upper limit, then increase 108 * prescale and recalculate pv and dc. 110 if (pv > PWMPCR_MAX_PERIOD || dc > PWMDCR_MAX_DUTY) { 129 spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv);
|
H A D | pwm-rz-mtu3.c | 283 u16 dc, pv; local 288 rz_mtu3_pwm_read_tgr_registers(priv, RZ_MTU3_TGRA, &pv, 291 rz_mtu3_pwm_read_tgr_registers(priv, RZ_MTU3_TGRC, &pv, 297 /* With prescale <= 7 and pv <= 0xffff this doesn't overflow. */ 298 tmp = NSEC_PER_SEC * (u64)pv << (2 * prescale); 326 u16 pv, dc; local 350 pv = rz_mtu3_pwm_calculate_pv_or_dc(period_cycles, prescale); 377 rz_mtu3_pwm_write_tgr_registers(priv, RZ_MTU3_TGRA, pv, 382 rz_mtu3_pwm_write_tgr_registers(priv, RZ_MTU3_TGRC, pv,
|
/linux-master/kernel/trace/ |
H A D | trace_events_inject.c | 37 struct ftrace_event_field **pf, u64 *pv) 102 *pv = val; 128 *pv = (unsigned long)(str + s); 36 parse_field(char *str, struct trace_event_call *call, struct ftrace_event_field **pf, u64 *pv) argument
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | clk.h | 116 struct nvkm_pll_vals *pv); 117 int (*pll_prog)(struct nvkm_clk *, u32 reg1, struct nvkm_pll_vals *pv);
|
/linux-master/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | hw.c | 205 nouveau_hw_pllvals_to_clk(struct nvkm_pll_vals *pv) argument 208 if (!pv->M1 || !pv->M2) 211 return pv->N1 * pv->N2 * pv->refclk / (pv->M1 * pv->M2) >> pv->log2P; 265 struct nvkm_pll_vals pv; local [all...] |
/linux-master/include/linux/ceph/ |
H A D | decode.h | 43 static inline void ceph_decode_copy(void **p, void *pv, size_t n) argument 45 memcpy(pv, *p, n); 84 #define ceph_decode_copy_safe(p, end, pv, n, bad) \ 87 ceph_decode_copy(p, pv, n); \ 386 #define ceph_encode_copy_safe(p, end, pv, n, bad) \ 389 ceph_encode_copy(p, pv, n); \
|
/linux-master/tools/testing/selftests/net/ |
H A D | fib_nexthop_nongw.sh | 100 while getopts :pv o
|
/linux-master/fs/ocfs2/ |
H A D | stack_user.c | 778 struct ocfs2_protocol_version *pv = local 784 ver->pv_major = pv->pv_major; 785 ver->pv_minor = pv->pv_minor; 790 struct ocfs2_protocol_version *pv = local 796 pv->pv_major = ver->pv_major; 797 pv->pv_minor = ver->pv_minor; 888 struct ocfs2_protocol_version pv; local 907 lvb_to_version(lc->oc_lvb, &pv); 909 if ((pv.pv_major != running_proto.pv_major) || 910 (pv [all...] |
/linux-master/drivers/isdn/hardware/mISDN/ |
H A D | hfcmulti.c | 885 u_int pv; local 914 pv = readl(plx_acc_32); 915 pv &= ~PLX_SYNC_O_EN; 916 writel(pv, plx_acc_32); 936 pv = readl(plx_acc_32); 937 pv |= PLX_SYNC_O_EN; 938 writel(pv, plx_acc_32); 967 pv = readl(plx_acc_32); 968 pv |= PLX_SYNC_O_EN; 969 writel(pv, plx_acc_3 1012 u_int pv; local 1083 u_int pv; local [all...] |
/linux-master/sound/pci/hda/ |
H A D | hda_local.h | 633 #define get_amp_nid_(pv) ((pv) & 0xffff) 636 #define get_amp_direction_(pv) (((pv) >> 18) & 0x1) 638 #define get_amp_index_(pv) (((pv) >> 19) & 0xf)
|
/linux-master/sound/usb/line6/ |
H A D | playback.c | 36 short pv = le16_to_cpu(*p); local 37 int val = (pv * volume[chn & 1]) >> 8; 38 pv = clamp(val, -0x8000, 0x7fff); 39 *p = cpu_to_le16(pv);
|