Home
last modified time | relevance | path

Searched refs:pval (Results 1 – 25 of 69) sorted by relevance

123

/openbmc/linux/drivers/video/fbdev/
H A Datafb_iplan2p8.c113 u32 pval[4], v, v1, mask; in atafb_iplan2p8_copyarea() local
134 pval[0] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
135 pval[1] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
136 pval[2] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
137 pval[3] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
139 pval[0] = dst32[0] & mask; in atafb_iplan2p8_copyarea()
140 pval[1] = dst32[1] & mask; in atafb_iplan2p8_copyarea()
141 pval[2] = dst32[2] & mask; in atafb_iplan2p8_copyarea()
142 pval[3] = dst32[3] & mask; in atafb_iplan2p8_copyarea()
148 *dst32++ = pval[0] | (v1 >> 8); in atafb_iplan2p8_copyarea()
[all …]
H A Datafb_iplan2p4.c106 u32 pval[4], v, v1, mask; in atafb_iplan2p4_copyarea() local
127 pval[0] = (*src32++ << 8) & mask; in atafb_iplan2p4_copyarea()
128 pval[1] = (*src32++ << 8) & mask; in atafb_iplan2p4_copyarea()
130 pval[0] = dst32[0] & mask; in atafb_iplan2p4_copyarea()
131 pval[1] = dst32[1] & mask; in atafb_iplan2p4_copyarea()
137 *dst32++ = pval[0] | (v1 >> 8); in atafb_iplan2p4_copyarea()
138 pval[0] = (v ^ v1) << 8; in atafb_iplan2p4_copyarea()
141 *dst32++ = pval[1] | (v1 >> 8); in atafb_iplan2p4_copyarea()
142 pval[1] = (v ^ v1) << 8; in atafb_iplan2p4_copyarea()
146 dst32[0] = (dst32[0] & mask) | pval[0]; in atafb_iplan2p4_copyarea()
[all …]
H A Datafb_iplan2p2.c106 u32 pval[4], v, v1, mask; in atafb_iplan2p2_copyarea() local
127 pval[0] = (*src32++ << 8) & mask; in atafb_iplan2p2_copyarea()
129 pval[0] = dst32[0] & mask; in atafb_iplan2p2_copyarea()
135 *dst32++ = pval[0] | (v1 >> 8); in atafb_iplan2p2_copyarea()
136 pval[0] = (v ^ v1) << 8; in atafb_iplan2p2_copyarea()
140 dst32[0] = (dst32[0] & mask) | pval[0]; in atafb_iplan2p2_copyarea()
148 u32 pval[4], v, v1, mask; in atafb_iplan2p2_copyarea() local
169 pval[0] = dst32[-1] & mask; in atafb_iplan2p2_copyarea()
171 pval[0] = (*--src32 >> 8) & mask; in atafb_iplan2p2_copyarea()
177 *--dst32 = pval[0] | (v1 << 8); in atafb_iplan2p2_copyarea()
[all …]
/openbmc/linux/drivers/regulator/
H A Dof_regulator.c38 u32 pval; in of_get_regulator_prot_limits() local
68 found = !of_property_read_u32(np, prop, &pval); in of_get_regulator_prot_limits()
70 fill_limit(l[j], pval); in of_get_regulator_prot_limits()
91 u32 pval; in of_get_regulation_constraints() local
99 if (!of_property_read_u32(np, "regulator-min-microvolt", &pval)) in of_get_regulation_constraints()
100 constraints->min_uV = pval; in of_get_regulation_constraints()
102 if (!of_property_read_u32(np, "regulator-max-microvolt", &pval)) in of_get_regulation_constraints()
103 constraints->max_uV = pval; in of_get_regulation_constraints()
113 if (!of_property_read_u32(np, "regulator-microvolt-offset", &pval)) in of_get_regulation_constraints()
114 constraints->uV_offset = pval; in of_get_regulation_constraints()
[all …]
H A Dmax77620-regulator.c608 u32 pval; in max77620_of_parse_cb() local
611 ret = of_property_read_u32(np, "maxim,active-fps-source", &pval); in max77620_of_parse_cb()
612 rpdata->active_fps_src = (!ret) ? pval : MAX77620_FPS_SRC_DEF; in max77620_of_parse_cb()
614 ret = of_property_read_u32(np, "maxim,active-fps-power-up-slot", &pval); in max77620_of_parse_cb()
615 rpdata->active_fps_pu_slot = (!ret) ? pval : -1; in max77620_of_parse_cb()
618 np, "maxim,active-fps-power-down-slot", &pval); in max77620_of_parse_cb()
619 rpdata->active_fps_pd_slot = (!ret) ? pval : -1; in max77620_of_parse_cb()
621 ret = of_property_read_u32(np, "maxim,suspend-fps-source", &pval); in max77620_of_parse_cb()
622 rpdata->suspend_fps_src = (!ret) ? pval : -1; in max77620_of_parse_cb()
625 np, "maxim,suspend-fps-power-up-slot", &pval); in max77620_of_parse_cb()
[all …]
H A Dvctrl-regulator.c242 u32 pval; in vctrl_parse_dt() local
245 ret = of_property_read_u32(np, "ovp-threshold-percent", &pval); in vctrl_parse_dt()
247 vctrl->ovp_threshold = pval; in vctrl_parse_dt()
256 ret = of_property_read_u32(np, "min-slew-down-rate", &pval); in vctrl_parse_dt()
258 vctrl->min_slew_down_rate = pval; in vctrl_parse_dt()
278 ret = of_property_read_u32(np, "regulator-min-microvolt", &pval); in vctrl_parse_dt()
284 vctrl->vrange.out.min_uV = pval; in vctrl_parse_dt()
286 ret = of_property_read_u32(np, "regulator-max-microvolt", &pval); in vctrl_parse_dt()
292 vctrl->vrange.out.max_uV = pval; in vctrl_parse_dt()
/openbmc/linux/lib/
H A Dpacking.c166 u64 pval; in packing() local
169 pval = ((u8 *)pbuf)[box_addr] & box_mask; in packing()
171 adjust_for_msb_right_quirk(&pval, in packing()
176 pval >>= box_end_bit; in packing()
177 pval <<= proj_end_bit; in packing()
179 *uval |= pval; in packing()
181 u64 pval; in packing() local
184 pval = (*uval) & proj_mask; in packing()
185 pval >>= proj_end_bit; in packing()
187 adjust_for_msb_right_quirk(&pval, in packing()
[all …]
H A Dtest_scanf.c81 const unsigned long long *pval = check_data; in check_ull() local
83 _check_numbers_template("%llu", pval, string, fmt, n_args, ap); in check_ull()
89 const long long *pval = check_data; in check_ll() local
91 _check_numbers_template("%lld", pval, string, fmt, n_args, ap); in check_ll()
97 const unsigned long *pval = check_data; in check_ulong() local
99 _check_numbers_template("%lu", pval, string, fmt, n_args, ap); in check_ulong()
105 const long *pval = check_data; in check_long() local
107 _check_numbers_template("%ld", pval, string, fmt, n_args, ap); in check_long()
113 const unsigned int *pval = check_data; in check_uint() local
115 _check_numbers_template("%u", pval, string, fmt, n_args, ap); in check_uint()
[all …]
/openbmc/qemu/monitor/
H A Dhmp-target.c88 int get_monitor_def(Monitor *mon, int64_t *pval, const char *name) in get_monitor_def() argument
103 *pval = md->get_value(mon, md, md->offset); in get_monitor_def()
109 *pval = *(int32_t *)ptr; in get_monitor_def()
112 *pval = *(target_long *)ptr; in get_monitor_def()
115 *pval = 0; in get_monitor_def()
125 *pval = (target_long) tmp; in get_monitor_def()
/openbmc/u-boot/board/mscc/jr2/
H A Djr2.c77 u16 pval; in do_board_detect() local
86 if (mscc_phy_rd(0, 0x10, 0x3, &pval) == 0 && in do_board_detect()
87 ((pval >> 4) & 0x3F) == 0x3c) { in do_board_detect()
89 } else if (mscc_phy_rd(1, 0x0, 0x3, &pval) == 0 && in do_board_detect()
90 ((pval >> 4) & 0x3F) == 0x3c) { in do_board_detect()
/openbmc/linux/fs/openpromfs/
H A Dinode.c70 void *pval; in property_show() local
74 pval = prop->value; in property_show()
76 if (is_string(pval, len)) { in property_show()
78 int n = strlen(pval); in property_show()
80 seq_printf(f, "%s", (char *) pval); in property_show()
83 pval += n + 1; in property_show()
95 *(unsigned char *) pval); in property_show()
98 *(unsigned char *) pval); in property_show()
99 pval++; in property_show()
107 *(unsigned int *) pval); in property_show()
[all …]
/openbmc/linux/drivers/sbus/char/
H A Denvctrl.c770 const unsigned int *pval; in envctrl_init_adc() local
783 pval = of_get_property(dp, "warning-temp", NULL); in envctrl_init_adc()
784 if (pval) in envctrl_init_adc()
785 warning_temperature = *pval; in envctrl_init_adc()
787 pval = of_get_property(dp, "shutdown-temp", NULL); in envctrl_init_adc()
788 if (pval) in envctrl_init_adc()
789 shutdown_temperature = *pval; in envctrl_init_adc()
864 const void *pval; in envctrl_init_i2c_child() local
867 pval = of_get_property(dp, "reg", &len); in envctrl_init_i2c_child()
868 memcpy(&pchild->addr, pval, len); in envctrl_init_i2c_child()
[all …]
H A Dopenprom.c132 const void *pval; in opromgetprop() local
136 !(pval = of_get_property(dp, op->oprom_array, &len)) || in opromgetprop()
140 memcpy(op->oprom_array, pval, len); in opromgetprop()
390 const void *pval; in opiocget() local
402 pval = of_get_property(dp, str, &len); in opiocget()
404 if (!pval || len > op.op_buflen) { in opiocget()
409 copy_to_user(op.op_buf, pval, len)) in opiocget()
/openbmc/qemu/target/ppc/
H A Dppc-qmp-cmds.c137 int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval) in target_get_monitor_def() argument
145 *pval = env->gpr[regnum]; in target_get_monitor_def()
152 *pval = *cpu_fpr_ptr(env, regnum); in target_get_monitor_def()
161 *pval = env->spr[i]; in target_get_monitor_def()
170 *pval = env->sr[regnum]; in target_get_monitor_def()
/openbmc/qemu/stubs/
H A Dtarget-get-monitor-def.c24 int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
26 int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval) in target_get_monitor_def() argument
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dti-sn65dsi83.c336 unsigned int pval; in sn65dsi83_atomic_pre_enable() local
474 ret = regmap_read_poll_timeout(ctx->regmap, REG_RC_LVDS_PLL, pval, in sn65dsi83_atomic_pre_enable()
475 pval & REG_RC_LVDS_PLL_PLL_EN_STAT, in sn65dsi83_atomic_pre_enable()
495 unsigned int pval; in sn65dsi83_atomic_enable() local
498 regmap_read(ctx->regmap, REG_IRQ_STAT, &pval); in sn65dsi83_atomic_enable()
499 regmap_write(ctx->regmap, REG_IRQ_STAT, pval); in sn65dsi83_atomic_enable()
503 regmap_read(ctx->regmap, REG_IRQ_STAT, &pval); in sn65dsi83_atomic_enable()
504 if (pval) in sn65dsi83_atomic_enable()
505 dev_err(ctx->dev, "Unexpected link status 0x%02x\n", pval); in sn65dsi83_atomic_enable()
H A Dlontium-lt9211.c327 unsigned int pval; in lt9211_configure_plls() local
360 ret = regmap_read_poll_timeout(ctx->regmap, 0xd087, pval, pval & 0x8, in lt9211_configure_plls()
422 unsigned int pval; in lt9211_configure_tx() local
440 ret = regmap_read_poll_timeout(ctx->regmap, 0x871f, pval, pval & 0x80, in lt9211_configure_tx()
447 ret = regmap_read_poll_timeout(ctx->regmap, 0x8720, pval, pval & 0x80, in lt9211_configure_tx()
/openbmc/linux/sound/usb/
H A Dmixer_s1810c.c366 u32 pval = (u32) kctl->private_value; in snd_s1810c_set_switch_state() local
367 u32 ctl_id = (pval >> 8) & 0xFF; in snd_s1810c_set_switch_state()
368 u32 ctl_val = (pval >> 16) & 0x1; in snd_s1810c_set_switch_state()
386 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_get() local
387 u32 ctl_idx = pval & 0xFF; in snd_s1810c_switch_get()
417 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_set() local
418 u32 ctl_idx = pval & 0xFF; in snd_s1810c_switch_set()
H A Dmixer_quirks.c876 unsigned int pval = kctl->private_value; in snd_ni_control_init_val() local
881 (pval >> 16) & 0xff, in snd_ni_control_init_val()
883 0, pval & 0xffff, &value, 1); in snd_ni_control_init_val()
904 unsigned int pval = list->kctl->private_value; in snd_ni_update_cur_val() local
911 (pval >> 16) & 0xff, in snd_ni_update_cur_val()
913 pval >> 24, pval & 0xffff, NULL, 0, 1000); in snd_ni_update_cur_val()
1036 unsigned int pval = kctl->private_value; in snd_ftu_eff_switch_init() local
1045 pval & 0xff00, in snd_ftu_eff_switch_init()
1046 snd_usb_ctrl_intf(mixer->chip) | ((pval & 0xff) << 8), in snd_ftu_eff_switch_init()
1065 unsigned int pval = list->kctl->private_value; in snd_ftu_eff_switch_update() local
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_dfl.c35 static int dfh_get_u64_param_val(struct dfl_device *dfl_dev, int param_id, u64 *pval) in dfh_get_u64_param_val() argument
44 if (psize != sizeof(*pval)) in dfh_get_u64_param_val()
47 *pval = *p; in dfh_get_u64_param_val()
/openbmc/linux/arch/arm64/kvm/
H A Dsys_regs.h210 const unsigned long pval = (unsigned long)key; in match_sys_reg() local
213 return pval - reg_to_encoding(r); in match_sys_reg()
220 unsigned long pval = reg_to_encoding(params); in find_reg() local
222 return __inline_bsearch((void *)pval, table, num, sizeof(table[0]), match_sys_reg); in find_reg()
/openbmc/linux/sound/pci/
H A Dvia82xx_modem.c933 unsigned char pval; in snd_via82xx_chip_init() local
935 pci_read_config_byte(chip->pci, VIA_MC97_CTRL, &pval); in snd_via82xx_chip_init()
936 if((pval & VIA_MC97_CTRL_INIT) != VIA_MC97_CTRL_INIT) { in snd_via82xx_chip_init()
937 pci_write_config_byte(chip->pci, 0x44, pval|VIA_MC97_CTRL_INIT); in snd_via82xx_chip_init()
941 pci_read_config_byte(chip->pci, VIA_ACLINK_STAT, &pval); in snd_via82xx_chip_init()
942 if (! (pval & VIA_ACLINK_C00_READY)) { /* codec not ready? */ in snd_via82xx_chip_init()
963 pci_read_config_byte(chip->pci, VIA_ACLINK_CTRL, &pval); in snd_via82xx_chip_init()
964 if ((pval & VIA_ACLINK_CTRL_INIT) != VIA_ACLINK_CTRL_INIT) { in snd_via82xx_chip_init()
973 pci_read_config_byte(chip->pci, VIA_ACLINK_STAT, &pval); in snd_via82xx_chip_init()
974 if (pval & VIA_ACLINK_C00_READY) /* primary codec ready */ in snd_via82xx_chip_init()
/openbmc/linux/fs/f2fs/
H A Dxattr.c548 char *pval = entry->e_name + entry->e_name_len; in f2fs_getxattr() local
550 if (base_size - (pval - (char *)base_addr) < size) { in f2fs_getxattr()
554 memcpy(buffer, pval, size); in f2fs_getxattr()
622 void *pval = entry->e_name + entry->e_name_len; in f2fs_xattr_value_same() local
625 !memcmp(pval, value, size); in f2fs_xattr_value_same()
749 char *pval; in __f2fs_setxattr() local
757 pval = last->e_name + len; in __f2fs_setxattr()
758 memcpy(pval, value, size); in __f2fs_setxattr()
/openbmc/linux/drivers/scsi/qla4xxx/
H A Dql4_os.c1272 char *pval = NULL; in qla4xxx_get_iface_param() local
1290 IPOPT_IPV4_PROTOCOL_ENABLE, pval); in qla4xxx_get_iface_param()
1293 IPV6_OPT_IPV6_PROTOCOL_ENABLE, pval); in qla4xxx_get_iface_param()
1296 len = sprintf(buf, "%s\n", pval); in qla4xxx_get_iface_param()
1321 pval = (ha->ip_config.ipv6_addl_options & in qla4xxx_get_iface_param()
1325 len = sprintf(buf, "%s\n", pval); in qla4xxx_get_iface_param()
1328 pval = (ha->ip_config.ipv6_addl_options & in qla4xxx_get_iface_param()
1332 len = sprintf(buf, "%s\n", pval); in qla4xxx_get_iface_param()
1357 IPOPT_VLAN_TAGGING_ENABLE, pval); in qla4xxx_get_iface_param()
1360 IPV6_OPT_VLAN_TAGGING_ENABLE, pval); in qla4xxx_get_iface_param()
[all …]
/openbmc/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-params.c115 const struct rkisp1_cif_isp_bls_fixed_val *pval = in rkisp1_bls_config() local
121 pval->r); in rkisp1_bls_config()
123 pval->gr); in rkisp1_bls_config()
125 pval->gb); in rkisp1_bls_config()
127 pval->b); in rkisp1_bls_config()
131 pval->r); in rkisp1_bls_config()
133 pval->gr); in rkisp1_bls_config()
135 pval->gb); in rkisp1_bls_config()
137 pval->b); in rkisp1_bls_config()
141 pval->r); in rkisp1_bls_config()
[all …]

123