Home
last modified time | relevance | path

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

12

/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 …]
/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()
H A Dmax8973-regulator.c519 u32 pval; in max8973_parse_dt() local
530 ret = of_property_read_u32(np, "maxim,dvs-default-state", &pval); in max8973_parse_dt()
532 pdata->dvs_def_state = pval; in max8973_parse_dt()
569 ret = of_property_read_u32(np, "junction-warn-millicelsius", &pval); in max8973_parse_dt()
570 if (!ret && (pval <= MAX77621_TJINT_WARNING_TEMP_120)) in max8973_parse_dt()
/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 …]
/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()
/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()
/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.c877 unsigned int pval = kctl->private_value; in snd_ni_control_init_val() local
882 (pval >> 16) & 0xff, in snd_ni_control_init_val()
884 0, pval & 0xffff, &value, 1); in snd_ni_control_init_val()
905 unsigned int pval = list->kctl->private_value; in snd_ni_update_cur_val() local
912 (pval >> 16) & 0xff, in snd_ni_update_cur_val()
914 pval >> 24, pval & 0xffff, NULL, 0, 1000); in snd_ni_update_cur_val()
1037 unsigned int pval = kctl->private_value; in snd_ftu_eff_switch_init() local
1046 pval & 0xff00, in snd_ftu_eff_switch_init()
1047 snd_usb_ctrl_intf(mixer->hostif) | ((pval in snd_ftu_eff_switch_init()
1066 unsigned int pval = list->kctl->private_value; snd_ftu_eff_switch_update() local
1091 unsigned int pval = list->kctl->private_value; snd_ftu_eff_switch_put() local
1692 unsigned int pval = list->kctl->private_value; snd_microii_spdif_default_update() local
1734 unsigned int pval, pval_old; snd_microii_spdif_default_put() local
[all...]
/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()
/linux/arch/arm64/kvm/
H A Dsys_regs.h200 const unsigned long pval = (unsigned long)key; in match_sys_reg() local
203 return pval - reg_to_encoding(r); in match_sys_reg()
210 unsigned long pval = reg_to_encoding(params); in find_reg() local
212 return __inline_bsearch((void *)pval, table, num, sizeof(table[0]), match_sys_reg); in find_reg()
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test_ns.c284 char pval; in test_listmount_ns() local
340 if (write(parent_ready_pipe[1], &pval, sizeof(pval)) != sizeof(pval)) in test_listmount_ns()
/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()
/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()
/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 …]
/linux/drivers/gpu/drm/i915/gvt/
H A Dgvt.h473 u32 *pval; in intel_vgpu_write_pci_bar() local
477 pval = (u32 *)(vgpu_cfg_space(vgpu) + offset); in intel_vgpu_write_pci_bar()
484 *pval = (val & GENMASK(31, 4)) | (*pval & GENMASK(3, 0)); in intel_vgpu_write_pci_bar()
486 *pval = val; in intel_vgpu_write_pci_bar()
/linux/sound/soc/codecs/
H A Dtlv320aic26.c70 int fsref, divisor, wlen, pval, jval, dval, qval; in aic26_hw_params() local
107 pval = 1; in aic26_hw_params()
115 reg = 0x8000 | qval << 11 | pval << 8 | jval << 2; in aic26_hw_params()
/linux/drivers/staging/rtl8723bs/include/
H A Drtw_io.h127 extern void ioreq_read8(struct adapter *adapter, u32 addr, u8 *pval);
128 extern void ioreq_read16(struct adapter *adapter, u32 addr, u16 *pval);
129 extern void ioreq_read32(struct adapter *adapter, u32 addr, u32 *pval);
/linux/drivers/iio/adc/
H A Dti-ads7924.c263 u32 pval; in ads7924_get_channels_config() local
266 if (fwnode_property_read_u32(node, "reg", &pval)) { in ads7924_get_channels_config()
271 channel = pval; in ads7924_get_channels_config()
/linux/arch/sparc/kernel/
H A Dchmc.c698 const void *pval; in chmc_probe() local
713 pval = of_get_property(dp, "memory-layout", &len); in chmc_probe()
714 if (pval && len > sizeof(p->layout_prop)) { in chmc_probe()
729 if (!pval) in chmc_probe()
732 memcpy(&p->layout_prop, pval, len); in chmc_probe()

12