/linux/drivers/tty/hvc/ |
H A D | hvsi_lib.c | 15 return pv->put_chars(pv->termno, (u8 *)packet, packet->len); in hvsi_send_packet() 60 if (!pv->is_console && pv->opened) { in hvsi_cd_change() 129 pv->inbuf_len = pv->inbuf_pktlen = 0; in hvsi_check_packet() 161 memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len); in hvsi_check_packet() 169 pv->inbuf_len += pv->get_chars(pv->termno, in hvsi_get_packet() 170 &pv->inbuf[pv->inbuf_len], in hvsi_get_packet() 204 memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l); in hvsilib_get_chars() 215 pv->inbuf_len -= pv->inbuf_cur; in hvsilib_get_chars() 216 memmove(pv->inbuf, &pv->inbuf[pv->inbuf_cur], in hvsilib_get_chars() 404 if (!pv->tty || (pv->tty->termios.c_cflag & HUPCL)) in hvsilib_close() [all …]
|
H A D | hvc_vio.c | 76 if (WARN_ON(!pv)) 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() 90 if (pv->buf[i] == 0 && pv->buf[i-1] == '\r') { in hvterm_raw_get_chars() 91 --pv->left; in hvterm_raw_get_chars() 93 memmove(&pv->buf[i], &pv->buf[i+1], in hvterm_raw_get_chars() 101 memcpy(buf, &pv->buf[pv->offset], got); in hvterm_raw_get_chars() 103 pv->left -= got; in hvterm_raw_get_chars() 123 if (WARN_ON(!pv)) in hvterm_raw_put_chars() 198 if (!pv) in hvterm_hvsi_tiocmget() [all …]
|
H A D | hvc_opal.c | 65 if (WARN_ON(!pv)) in hvc_opal_hvsi_get_chars() 76 if (WARN_ON(!pv)) in hvc_opal_hvsi_put_chars() 102 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close() 113 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_hangup() 122 if (!pv) in hvc_opal_hvsi_tiocmget() 124 return pv->hvsi.mctrl; in hvc_opal_hvsi_tiocmget() 158 struct hvc_opal_priv *pv; in hvc_opal_probe() local 181 pv = hvc_opal_privs[termno]; in hvc_opal_probe() 185 if (!pv) in hvc_opal_probe() 187 pv->proto = proto; in hvc_opal_probe() [all …]
|
/linux/drivers/macintosh/ |
H A D | windfarm_ad7417_sensor.c | 44 mutex_lock(&pv->lock); in wf_ad7417_temp_get() 156 kfree(pv); in wf_ad7417_release() 183 pv->sensors[index].name = kasprintf(GFP_KERNEL, "%s-%d", name, pv->cpu); in wf_ad7417_add_sensor() 184 pv->sensors[index].priv = pv; in wf_ad7417_add_sensor() 187 kref_get(&pv->ref); in wf_ad7417_add_sensor() 229 pv->config = config; in wf_ad7417_init_chip() 264 if (pv == NULL) in wf_ad7417_probe() 269 pv->i2c = client; in wf_ad7417_probe() 270 pv->cpu = cpu_nr; in wf_ad7417_probe() 271 pv->mpu = mpu; in wf_ad7417_probe() [all …]
|
H A D | windfarm_fcu_controls.c | 75 kfree(pv); in wf_fcu_release() 91 mutex_lock(&pv->lock); in wf_fcu_read_reg() 369 fan->fcu_priv = pv; in wf_fcu_add_fan() 397 kref_get(&pv->ref); in wf_fcu_add_fan() 512 pv->rpm_shift); in wf_fcu_init_chip() 521 pv = kzalloc(sizeof(*pv), GFP_KERNEL); in wf_fcu_probe() 522 if (!pv) in wf_fcu_probe() 525 kref_init(&pv->ref); in wf_fcu_probe() 528 pv->i2c = client; in wf_fcu_probe() 536 kfree(pv); in wf_fcu_probe() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv04.c | 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() 210 bool single_stage = !pv->NM2 || pv->N2 == pv->M2; /* nv41+ only */ in setPLL_double_highregs() 217 (pv->N2 & 0x7) << 19 | 8 << 4 | (pv->M2 & 7) << 4; in setPLL_double_highregs() 290 uint32_t NMNM = pv->NM2 << 16 | pv->NM1; in setPLL_double_lowregs() 296 bool single_stage = !pv->NM2 || pv->N2 == pv->M2; in setPLL_double_lowregs() 375 pv.N1 = N1; in nv04_devinit_pll_set() 376 pv.M1 = M1; in nv04_devinit_pll_set() 377 pv.N2 = N2; in nv04_devinit_pll_set() 378 pv.M2 = M2; in nv04_devinit_pll_set() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A 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 …]
|
/linux/arch/s390/kvm/ |
H A D | pv.c | 60 kvm->arch.pv.handle = 0; in kvm_s390_clear_pv_state() 61 kvm->arch.pv.guest_len = 0; in kvm_s390_clear_pv_state() 62 kvm->arch.pv.stor_base = 0; in kvm_s390_clear_pv_state() 63 kvm->arch.pv.stor_var = NULL; in kvm_s390_clear_pv_state() 87 memset(&vcpu->arch.pv, 0, sizeof(vcpu->arch.pv)); in kvm_s390_pv_destroy_cpu() 114 if (!vcpu->arch.pv.stor_base) in kvm_s390_pv_create_cpu() 159 vfree(kvm->arch.pv.stor_var); in kvm_s390_pv_dealloc_vm() 173 if (!kvm->arch.pv.stor_base) in kvm_s390_pv_alloc_vm() 192 if (!kvm->arch.pv.stor_var) in kvm_s390_pv_alloc_vm() 330 if (kvm->arch.pv.set_aside) in kvm_s390_pv_set_aside() [all …]
|
/linux/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/Documentation/ABI/testing/ |
H A D | sysfs-devices-xenbus | 12 Total number of Xen events received for a Xen pv device 20 pv device has been delayed in order to avoid stalls due to 22 other end of the pv device. 28 Number of events received for a Xen pv device which did not 37 before delayed EOI processing is triggered for a Xen pv 39 end of the pv device is issuing spurious events on a regular 41 the value for such cases can improve pv device performance.
|
/linux/net/bridge/ |
H A D | br_mst.c | 131 static void br_mst_vlan_sync_state(struct net_bridge_vlan *pv, u16 msti) in br_mst_vlan_sync_state() argument 133 struct net_bridge_vlan_group *vg = nbp_vlan_group(pv->port); in br_mst_vlan_sync_state() 141 if (v != pv && v->brvlan->msti == msti) { in br_mst_vlan_sync_state() 142 br_mst_vlan_set_state(vg, pv, v->state); in br_mst_vlan_sync_state() 148 return br_mst_vlan_set_state(vg, pv, BR_STATE_DISABLED); in br_mst_vlan_sync_state() 162 struct net_bridge_vlan *pv; in br_mst_vlan_set_msti() local 178 pv = br_vlan_find(vg, mv->vid); in br_mst_vlan_set_msti() 179 if (pv) in br_mst_vlan_set_msti() 180 br_mst_vlan_sync_state(pv, msti); in br_mst_vlan_set_msti()
|
/linux/Documentation/virt/kvm/s390/ |
H A D | index.rst | 11 s390-pv 12 s390-pv-boot 13 s390-pv-dump
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | hw.c | 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() 264 struct nvkm_pll_vals pv; in nouveau_hw_fix_bad_vpll() local 269 nouveau_hw_get_pllvals(dev, pll, &pv); in nouveau_hw_fix_bad_vpll() 271 if (pv.M1 >= pll_lim.vco1.min_m && pv.M1 <= pll_lim.vco1.max_m && in nouveau_hw_fix_bad_vpll() 272 pv.N1 >= pll_lim.vco1.min_n && pv.N1 <= pll_lim.vco1.max_n && in nouveau_hw_fix_bad_vpll() 273 pv.log2P <= pll_lim.max_p) in nouveau_hw_fix_bad_vpll() 279 pv.M1 = pll_lim.vco1.max_m; in nouveau_hw_fix_bad_vpll() 280 pv.N1 = pll_lim.vco1.min_n; in nouveau_hw_fix_bad_vpll() 281 pv.log2P = pll_lim.max_p_usable; in nouveau_hw_fix_bad_vpll() [all …]
|
/linux/drivers/pwm/ |
H A 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()
|
H A D | pwm-spear.c | 80 unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; in spear_pwm_config() local 98 pv = div64_u64(val, div); in spear_pwm_config() 103 if (pv < PWMPCR_MIN_PERIOD || dc < PWMDCR_MIN_DUTY) in spear_pwm_config() 110 if (pv > PWMPCR_MAX_PERIOD || dc > PWMDCR_MAX_DUTY) { in spear_pwm_config() 129 spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); in spear_pwm_config()
|
H A D | pwm-pxa.c | 72 unsigned long period_cycles, prescale, pv, dc; in pxa_pwm_config() local 85 pv = period_cycles / (prescale + 1) - 1; in pxa_pwm_config() 93 dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns); in pxa_pwm_config() 97 writel(pv, pc->mmio_base + offset + PWMPCR); in pxa_pwm_config()
|
H A D | pwm-rz-mtu3.c | 283 u16 dc, pv; in rz_mtu3_pwm_get_state() local 288 rz_mtu3_pwm_read_tgr_registers(priv, RZ_MTU3_TGRA, &pv, in rz_mtu3_pwm_get_state() 291 rz_mtu3_pwm_read_tgr_registers(priv, RZ_MTU3_TGRC, &pv, in rz_mtu3_pwm_get_state() 298 tmp = NSEC_PER_SEC * (u64)pv << (2 * prescale); in rz_mtu3_pwm_get_state() 326 u16 pv, dc; in rz_mtu3_pwm_config() local 350 pv = rz_mtu3_pwm_calculate_pv_or_dc(period_cycles, prescale); in rz_mtu3_pwm_config() 377 rz_mtu3_pwm_write_tgr_registers(priv, RZ_MTU3_TGRA, pv, in rz_mtu3_pwm_config() 382 rz_mtu3_pwm_write_tgr_registers(priv, RZ_MTU3_TGRC, pv, in rz_mtu3_pwm_config()
|
/linux/fs/ocfs2/ |
H A D | stack_user.c | 778 struct ocfs2_protocol_version *pv = in lvb_to_version() local 784 ver->pv_major = pv->pv_major; in lvb_to_version() 785 ver->pv_minor = pv->pv_minor; in lvb_to_version() 790 struct ocfs2_protocol_version *pv = in version_to_lvb() local 796 pv->pv_major = ver->pv_major; in version_to_lvb() 797 pv->pv_minor = ver->pv_minor; in version_to_lvb() 888 struct ocfs2_protocol_version pv; in get_protocol_version() local 907 lvb_to_version(lc->oc_lvb, &pv); in get_protocol_version() 910 (pv.pv_minor > running_proto.pv_minor)) { in get_protocol_version() 915 conn->cc_version.pv_major = pv.pv_major; in get_protocol_version() [all …]
|
/linux/include/linux/ceph/ |
H A D | decode.h | 43 static inline void ceph_decode_copy(void **p, void *pv, size_t n) in ceph_decode_copy() argument 45 memcpy(pv, *p, n); in ceph_decode_copy() 84 #define ceph_decode_copy_safe(p, end, pv, n, bad) \ argument 87 ceph_decode_copy(p, pv, n); \ 386 #define ceph_encode_copy_safe(p, end, pv, n, bad) \ argument 389 ceph_encode_copy(p, pv, n); \
|
/linux/sound/usb/ |
H A D | mixer_quirks.c | 2005 u32 node_id = pv & 0xff; in realtek_ctl_connector_get() 2019 if (pv & REALTEK_MIC_FLAG) { in realtek_ctl_connector_get() 2039 if (pv & REALTEK_MIC_FLAG) in realtek_ctl_connector_get() 2604 int pv; in snd_bbfpro_ctl_get() local 2606 pv = kcontrol->private_value; in snd_bbfpro_ctl_get() 2627 int pv; in snd_bbfpro_ctl_info() local 2662 int old_value, pv, val; in snd_bbfpro_ctl_put() local 2699 int value, pv; in snd_bbfpro_ctl_resume() local 2749 int pv, channel; in snd_bbfpro_gain_info() local 2806 int pv, channel, value; in snd_bbfpro_gain_resume() local [all …]
|
/linux/drivers/isdn/hardware/mISDN/ |
H A D | hfcmulti.c | 886 u_int pv; in hfcmulti_resync() local 938 pv |= PLX_SYNC_O_EN; in hfcmulti_resync() 969 pv |= PLX_SYNC_O_EN; in hfcmulti_resync() 1013 u_int pv; in release_io_hfcmulti() local 1037 pv &= ~PLX_TERM_ON; in release_io_hfcmulti() 1039 pv |= PLX_SLAVE_EN_N; in release_io_hfcmulti() 1040 pv &= ~PLX_MASTER_EN; in release_io_hfcmulti() 1041 pv &= ~PLX_SYNC_O_EN; in release_io_hfcmulti() 1043 pv &= ~PLX_DSP_RES_N; in release_io_hfcmulti() 1084 u_int pv; in init_chip() local [all …]
|
/linux/sound/aoa/codecs/ |
H A D | onyx.c | 371 long int pv = kcontrol->private_value; in onyx_snd_single_bit_get() local 372 u8 polarity = (pv >> 16) & FLAG_POLARITY_INVERT; in onyx_snd_single_bit_get() 373 u8 address = (pv >> 8) & 0xff; in onyx_snd_single_bit_get() 374 u8 mask = pv & 0xff; in onyx_snd_single_bit_get() 391 long int pv = kcontrol->private_value; in onyx_snd_single_bit_put() local 392 u8 polarity = (pv >> 16) & FLAG_POLARITY_INVERT; in onyx_snd_single_bit_put() 393 u8 spdiflock = (pv >> 16) & FLAG_SPDIFLOCK; in onyx_snd_single_bit_put() 394 u8 address = (pv >> 8) & 0xff; in onyx_snd_single_bit_put() 395 u8 mask = pv & 0xff; in onyx_snd_single_bit_put()
|
/linux/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/drivers/input/touchscreen/ |
H A D | ili210x.c | 439 u8 pv[2]; in ili251x_firmware_update_protocol_version() local 443 &pv, sizeof(pv)); in ili251x_firmware_update_protocol_version() 445 memcpy(priv->version_proto, pv, sizeof(pv)); in ili251x_firmware_update_protocol_version() 534 u8 *pv = priv->version_proto; in ili251x_protocol_version_show() local 536 return sysfs_emit(buf, "%02x.%02x\n", pv[0], pv[1]); in ili251x_protocol_version_show()
|
/linux/sound/pci/hda/ |
H A D | hda_local.h | 633 #define get_amp_nid_(pv) ((pv) & 0xffff) argument 636 #define get_amp_direction_(pv) (((pv) >> 18) & 0x1) argument 638 #define get_amp_index_(pv) (((pv) >> 19) & 0xf) argument
|