/openbmc/linux/drivers/tty/hvc/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/macintosh/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/qemu/accel/tcg/ |
H A D | ldst_atomicity.c.inc | 104 * @pv: host address 106 * Atomically load 2 aligned bytes from @pv. 108 static inline uint16_t load_atomic2(void *pv) 110 uint16_t *p = __builtin_assume_aligned(pv, 2); 116 * @pv: host address 118 * Atomically load 4 aligned bytes from @pv. 120 static inline uint32_t load_atomic4(void *pv) 122 uint32_t *p = __builtin_assume_aligned(pv, 4); 128 * @pv: host address 130 * Atomically load 8 aligned bytes from @pv. [all …]
|
/openbmc/qemu/include/migration/ |
H A D | qemu-file-types.h | 55 static inline void qemu_put_be64s(QEMUFile *f, const uint64_t *pv) in qemu_put_be64s() argument 57 qemu_put_be64(f, *pv); in qemu_put_be64s() 60 static inline void qemu_put_be32s(QEMUFile *f, const uint32_t *pv) in qemu_put_be32s() argument 62 qemu_put_be32(f, *pv); in qemu_put_be32s() 65 static inline void qemu_put_be16s(QEMUFile *f, const uint16_t *pv) in qemu_put_be16s() argument 67 qemu_put_be16(f, *pv); in qemu_put_be16s() 70 static inline void qemu_put_8s(QEMUFile *f, const uint8_t *pv) in qemu_put_8s() argument 72 qemu_put_byte(f, *pv); in qemu_put_8s() 75 static inline void qemu_get_be64s(QEMUFile *f, uint64_t *pv) in qemu_get_be64s() argument 77 *pv = qemu_get_be64(f); in qemu_get_be64s() [all …]
|
/openbmc/qemu/migration/ |
H A D | vmstate-types.c | 24 static int get_bool(QEMUFile *f, void *pv, size_t size, in get_bool() argument 27 bool *v = pv; in get_bool() 32 static int put_bool(QEMUFile *f, void *pv, size_t size, in put_bool() argument 35 bool *v = pv; in put_bool() 48 static int get_int8(QEMUFile *f, void *pv, size_t size, in get_int8() argument 51 int8_t *v = pv; in get_int8() 56 static int put_int8(QEMUFile *f, void *pv, size_t size, in put_int8() argument 59 int8_t *v = pv; in put_int8() 72 static int get_int16(QEMUFile *f, void *pv, size_t size, in get_int16() argument 75 int16_t *v = pv; in get_int16() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A 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 …]
|
/openbmc/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 …]
|
/openbmc/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() 81 free_pages(vcpu->arch.pv.stor_base, in kvm_s390_pv_destroy_cpu() 87 memset(&vcpu->arch.pv, 0, sizeof(vcpu->arch.pv)); in kvm_s390_pv_destroy_cpu() 112 vcpu->arch.pv.stor_base = __get_free_pages(GFP_KERNEL_ACCOUNT, in kvm_s390_pv_create_cpu() 114 if (!vcpu->arch.pv.stor_base) in kvm_s390_pv_create_cpu() 121 uvcb.stor_origin = virt_to_phys((void *)vcpu->arch.pv.stor_base); in kvm_s390_pv_create_cpu() 126 free_pages(vcpu->arch.pv.stor_base, in kvm_s390_pv_create_cpu() [all …]
|
/openbmc/qemu/host/include/generic/host/ |
H A D | load-extract-al16-al8.h.inc | 13 * @pv: host address 16 * Load @s bytes from @pv, when pv % s != 0. If [p, p+s-1] does not 21 load_atom_extract_al16_or_al8(void *pv, int s) 23 uintptr_t pi = (uintptr_t)pv; 28 pv = (void *)(pi & ~7); 30 uint64_t *p8 = __builtin_assume_aligned(pv, 16, 8); 40 r = atomic16_read_ro(pv);
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | hvsi.h | 82 extern void hvsilib_init(struct hvsi_priv *pv, 87 extern int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp); 88 extern void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp); 89 extern int hvsilib_read_mctrl(struct hvsi_priv *pv); 90 extern int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr); 91 extern void hvsilib_establish(struct hvsi_priv *pv); 92 extern int hvsilib_get_chars(struct hvsi_priv *pv, char *buf, int count); 93 extern int hvsilib_put_chars(struct hvsi_priv *pv, const char *buf, int count);
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | user_header.cpp | 33 namespace pv = openpower::pels::pel_values; 68 pv::getValue(eventSubsystem, pel_values::subsystemValues); in UserHeader() 259 severity = pv::getValue(_eventSeverity, pel_values::severityValues); in getJSON() 260 subsystem = pv::getValue(_eventSubsystem, pel_values::subsystemValues); in getJSON() 261 eventScope = pv::getValue(_eventScope, pel_values::eventScopeValues); in getJSON() 262 eventType = pv::getValue(_eventType, pel_values::eventTypeValues); in getJSON() 264 pv::getValuesBitwise(_actionFlags, pel_values::actionFlagsValues); in getJSON() 268 auto iter = pv::transmissionStates.find( in getJSON() 270 if (iter != pv::transmissionStates.end()) in getJSON() 274 auto iter1 = pv::transmissionStates.find( in getJSON() [all …]
|
H A D | registry.cpp | 34 namespace pv = pel_values; 45 auto ss = pv::findByName(subsystemName, pv::subsystemValues); in getSubsystem() 46 if (ss == pv::subsystemValues.end()) in getSubsystem() 55 return std::get<pv::fieldValuePos>(*ss); in getSubsystem() 60 auto s = pv::findByName(severityName, pv::severityValues); in getSeverity() 61 if (s == pv::severityValues.end()) in getSeverity() 70 return std::get<pv::fieldValuePos>(*s); in getSeverity() 115 auto s = pv::findByName(flag, pv::actionFlagsValues); in getActionFlags() 116 if (s == pv::actionFlagsValues.end()) in getActionFlags() 127 actionFlags |= std::get<pv::fieldValuePos>(*s); in getActionFlags() [all …]
|
H A D | src.cpp | 37 namespace pv = openpower::pels::pel_values; 366 pv::getValue(eventSubsystem, pel_values::subsystemValues); in SRC() 618 const auto& compDescrp = pv::failingComponentType; in getCallouts() 631 pv::getValue(entry->priority(), in getCallouts() 647 if (pv::procedureDesc.find( in getCallouts() 649 pv::procedureDesc.end()) in getCallouts() 653 pv::procedureDesc.at( in getCallouts() 717 jsonInsert(ps, pv::sectionVer, getNumberString("%d", _header.version), 1); in getJSON() 718 jsonInsert(ps, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON() 719 jsonInsert(ps, pv in getJSON() [all...] |
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/pv/pv/ |
H A D | 0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch | 4 Subject: [PATCH] pv/display: handle error of tcgetpgrp() in pv_in_foreground() 9 Show pv progress bar even if no terminal is set, e.g., in a busybox 20 src/pv/display.c | 4 ++++ 23 diff --git a/src/pv/display.c b/src/pv/display.c 25 --- a/src/pv/display.c 26 +++ b/src/pv/display.c
|
/openbmc/qemu/host/include/x86_64/host/ |
H A D | load-extract-al16-al8.h.inc | 16 * @pv: host address 19 * Load @s bytes from @pv, when pv % s != 0. If [p, p+s-1] does not 24 load_atom_extract_al16_or_al8(void *pv, int s) 26 uintptr_t pi = (uintptr_t)pv; 47 load_atom_extract_al16_or_al8(void *pv, int s);
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | recipetool.py | 399 pv = '1.7.4.1' 400 srcuri = 'http://www.dest-unreach.org/socat/download/Archive/socat-%s.tar.bz2' % pv 407 self.assertEqual(dirlist[0], 'socat_%s.bb' % pv, 'Recipe file incorrectly named') 413 checkvars['SRC_URI'] = srcuri.replace(pv, '${PV}') 484 pv = '0.4.15' 485 recipefile = os.path.join(temprecipe, '%s_%s.bb' % (pn, pv)) 486 …ges/84/30/80932401906eaf787f2e9bd86dc458f1d2e75b064b4c187341f29516945c/python-magic-%s.tar.gz' % pv 502 pv = '0.4.15' 503 recipefile = os.path.join(temprecipe, '%s_%s.bb' % (pn, pv)) 504 …ges/84/30/80932401906eaf787f2e9bd86dc458f1d2e75b064b4c187341f29516945c/python-magic-%s.tar.gz' % pv [all …]
|
/openbmc/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.
|
/openbmc/qemu/host/include/loongarch64/host/ |
H A D | load-extract-al16-al8.h.inc | 16 * @pv: host address 19 * Load @s bytes from @pv, when pv % s != 0. If [p, p+s-1] does not 23 static inline uint64_t load_atom_extract_al16_or_al8(void *pv, int s) 25 uintptr_t pi = (uintptr_t)pv;
|
/openbmc/qemu/target/i386/kvm/ |
H A D | kvm-cpu.c | 185 PropValue *pv; in x86_cpu_change_kvm_default() local 186 for (pv = kvm_default_props; pv->prop; pv++) { in x86_cpu_change_kvm_default() 187 if (!strcmp(pv->prop, prop)) { in x86_cpu_change_kvm_default() 188 pv->value = value; in x86_cpu_change_kvm_default() 197 assert(pv->prop); in x86_cpu_change_kvm_default()
|
/openbmc/qemu/host/include/aarch64/host/ |
H A D | load-extract-al16-al8.h.inc | 16 * @pv: host address 19 * Load @s bytes from @pv, when pv % s != 0. If [p, p+s-1] does not 23 static inline uint64_t load_atom_extract_al16_or_al8(void *pv, int s) 25 uintptr_t pi = (uintptr_t)pv;
|
/openbmc/qemu/target/ppc/ |
H A D | machine.c | 26 static int get_avr(QEMUFile *f, void *pv, size_t size, in get_avr() argument 29 ppc_avr_t *v = pv; in get_avr() 37 static int put_avr(QEMUFile *f, void *pv, size_t size, in put_avr() argument 40 ppc_avr_t *v = pv; in put_avr() 59 static int get_fpr(QEMUFile *f, void *pv, size_t size, in get_fpr() argument 62 ppc_vsr_t *v = pv; in get_fpr() 69 static int put_fpr(QEMUFile *f, void *pv, size_t size, in put_fpr() argument 72 ppc_vsr_t *v = pv; in put_fpr() 90 static int get_vsr(QEMUFile *f, void *pv, size_t size, in get_vsr() argument 93 ppc_vsr_t *v = pv; in get_vsr() [all …]
|
/openbmc/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()
|