Home
last modified time | relevance | path

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

12

/drivers/video/fbdev/
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 …]
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 …]
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 …]
/drivers/regulator/
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 …]
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 …]
Dvctrl-regulator.c245 u32 pval; in vctrl_parse_dt() local
248 ret = of_property_read_u32(np, "ovp-threshold-percent", &pval); in vctrl_parse_dt()
250 vctrl->ovp_threshold = pval; in vctrl_parse_dt()
259 ret = of_property_read_u32(np, "min-slew-down-rate", &pval); in vctrl_parse_dt()
261 vctrl->min_slew_down_rate = pval; in vctrl_parse_dt()
281 ret = of_property_read_u32(np, "regulator-min-microvolt", &pval); in vctrl_parse_dt()
287 vctrl->vrange.out.min_uV = pval; in vctrl_parse_dt()
289 ret = of_property_read_u32(np, "regulator-max-microvolt", &pval); in vctrl_parse_dt()
295 vctrl->vrange.out.max_uV = pval; in vctrl_parse_dt()
Dmax8973-regulator.c537 u32 pval; in max8973_parse_dt() local
549 ret = of_property_read_u32(np, "maxim,dvs-default-state", &pval); in max8973_parse_dt()
551 pdata->dvs_def_state = pval; in max8973_parse_dt()
588 ret = of_property_read_u32(np, "junction-warn-millicelsius", &pval); in max8973_parse_dt()
589 if (!ret && (pval <= MAX77621_TJINT_WARNING_TEMP_120)) in max8973_parse_dt()
/drivers/sbus/char/
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 …]
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()
/drivers/media/platform/rockchip/rkisp1/
Drkisp1-params.c105 const struct rkisp1_cif_isp_bls_fixed_val *pval = in rkisp1_bls_config() local
111 pval->r, RKISP1_CIF_ISP_BLS_D_FIXED); in rkisp1_bls_config()
113 pval->gr, RKISP1_CIF_ISP_BLS_C_FIXED); in rkisp1_bls_config()
115 pval->gb, RKISP1_CIF_ISP_BLS_B_FIXED); in rkisp1_bls_config()
117 pval->b, RKISP1_CIF_ISP_BLS_A_FIXED); in rkisp1_bls_config()
121 pval->r, RKISP1_CIF_ISP_BLS_C_FIXED); in rkisp1_bls_config()
123 pval->gr, RKISP1_CIF_ISP_BLS_D_FIXED); in rkisp1_bls_config()
125 pval->gb, RKISP1_CIF_ISP_BLS_A_FIXED); in rkisp1_bls_config()
127 pval->b, RKISP1_CIF_ISP_BLS_B_FIXED); in rkisp1_bls_config()
131 pval->r, RKISP1_CIF_ISP_BLS_B_FIXED); in rkisp1_bls_config()
[all …]
/drivers/scsi/qla4xxx/
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 …]
/drivers/gpu/drm/i915/gvt/
Dgvt.h467 u32 *pval; in intel_vgpu_write_pci_bar() local
471 pval = (u32 *)(vgpu_cfg_space(vgpu) + offset); in intel_vgpu_write_pci_bar()
478 *pval = (val & GENMASK(31, 4)) | (*pval & GENMASK(3, 0)); in intel_vgpu_write_pci_bar()
480 *pval = val; in intel_vgpu_write_pci_bar()
/drivers/iio/adc/
Dti-ads1015.c866 u32 pval; in ads1015_client_get_channels_config() local
871 if (fwnode_property_read_u32(node, "reg", &pval)) { in ads1015_client_get_channels_config()
876 channel = pval; in ads1015_client_get_channels_config()
883 if (!fwnode_property_read_u32(node, "ti,gain", &pval)) { in ads1015_client_get_channels_config()
884 pga = pval; in ads1015_client_get_channels_config()
892 if (!fwnode_property_read_u32(node, "ti,datarate", &pval)) { in ads1015_client_get_channels_config()
893 data_rate = pval; in ads1015_client_get_channels_config()
Dpalmas_gpadc.c473 u32 pval; in palmas_gpadc_get_adc_dt_data() local
479 ret = of_property_read_u32(np, "ti,channel0-current-microamp", &pval); in palmas_gpadc_get_adc_dt_data()
481 gp_data->ch0_current = pval; in palmas_gpadc_get_adc_dt_data()
483 ret = of_property_read_u32(np, "ti,channel3-current-microamp", &pval); in palmas_gpadc_get_adc_dt_data()
485 gp_data->ch3_current = pval; in palmas_gpadc_get_adc_dt_data()
/drivers/gpu/drm/bridge/
Dti-sn65dsi83.c381 unsigned int pval; in sn65dsi83_atomic_enable() local
511 ret = regmap_read_poll_timeout(ctx->regmap, REG_RC_LVDS_PLL, pval, in sn65dsi83_atomic_enable()
512 pval & REG_RC_LVDS_PLL_PLL_EN_STAT, in sn65dsi83_atomic_enable()
525 regmap_read(ctx->regmap, REG_IRQ_STAT, &pval); in sn65dsi83_atomic_enable()
526 regmap_write(ctx->regmap, REG_IRQ_STAT, pval); in sn65dsi83_atomic_enable()
/drivers/staging/rtl8723bs/include/
Drtw_io.h184 extern void ioreq_read8(struct adapter *adapter, u32 addr, u8 *pval);
185 extern void ioreq_read16(struct adapter *adapter, u32 addr, u16 *pval);
186 extern void ioreq_read32(struct adapter *adapter, u32 addr, u32 *pval);
Drtl8723b_hal.h231 void *pval);
233 void *pval);
/drivers/hwmon/
Dg762.c641 u32 pval; in g762_of_prop_import_one() local
643 if (of_property_read_u32(client->dev.of_node, pname, &pval)) in g762_of_prop_import_one()
646 dev_dbg(&client->dev, "found %s (%d)\n", pname, pval); in g762_of_prop_import_one()
647 ret = (*psetter)(&client->dev, pval); in g762_of_prop_import_one()
649 dev_err(&client->dev, "unable to set %s (%d)\n", pname, pval); in g762_of_prop_import_one()
/drivers/staging/r8188eu/include/
Drtw_cmd.h768 u8 rtw_getbbreg_cmd(struct adapter * padapter, u8 offset, u8 * pval);
769 u8 rtw_getrfreg_cmd(struct adapter * padapter, u8 offset, u8 * pval);
772 u8 rtw_getrttbl_cmd(struct adapter *padapter, struct getratable_rsp *pval);
774 u8 rtw_gettssi_cmd(struct adapter *padapter, u8 offset,u8 *pval);
Drtw_io.h304 void ioreq_read8(struct adapter *adapter, u32 addr, u8 *pval);
305 void ioreq_read16(struct adapter *adapter, u32 addr, u16 *pval);
306 void ioreq_read32(struct adapter *adapter, u32 addr, u32 *pval);
/drivers/pwm/
Dpwm-sun4i.c205 unsigned int pval = prescaler_table[prescaler]; in sun4i_pwm_calculate() local
207 if (!pval) in sun4i_pwm_calculate()
211 do_div(div, pval); in sun4i_pwm_calculate()
/drivers/infiniband/hw/mthca/
Dmthca_main.c1186 static void __init __mthca_check_profile_val(const char *name, int *pval, in __mthca_check_profile_val() argument
1190 int old_pval = *pval; in __mthca_check_profile_val()
1193 *pval = pval_default; in __mthca_check_profile_val()
1195 *pval = roundup_pow_of_two(old_pval); in __mthca_check_profile_val()
1197 if (old_pval != *pval) { in __mthca_check_profile_val()
1200 printk(KERN_WARNING PFX "Corrected %s to %d.\n", name, *pval); in __mthca_check_profile_val()
/drivers/input/
Dinput.c223 unsigned int code, int *pval) in input_handle_abs_event() argument
234 if (mt && *pval >= 0 && *pval < mt->num_slots) in input_handle_abs_event()
235 mt->slot = *pval; in input_handle_abs_event()
255 *pval = input_defuzz_abs_event(*pval, *pold, in input_handle_abs_event()
257 if (*pold == *pval) in input_handle_abs_event()
260 *pold = *pval; in input_handle_abs_event()
273 unsigned int type, unsigned int code, int *pval) in input_get_disposition() argument
276 int value = *pval; in input_get_disposition()
374 *pval = value; in input_get_disposition()
/drivers/staging/rtl8723bs/hal/
Drtl8723b_hal_init.c3764 u8 SetHalDefVar8723B(struct adapter *padapter, enum hal_def_variable variable, void *pval) in SetHalDefVar8723B() argument
3772 bResult = SetHalDefVar(padapter, variable, pval); in SetHalDefVar8723B()
3782 u8 GetHalDefVar8723B(struct adapter *padapter, enum hal_def_variable variable, void *pval) in GetHalDefVar8723B() argument
3790 *((u32 *)pval) = MAX_RECVBUF_SZ; in GetHalDefVar8723B()
3794 *((u32 *)pval) = RXDESC_SIZE + DRVINFO_SZ*8; in GetHalDefVar8723B()
3801 *(u32 *)pval = IEEE80211_HT_MAX_AMPDU_16K; in GetHalDefVar8723B()
3805 *((u8 *)pval) = false; in GetHalDefVar8723B()
3808 *((u8 *)pval) = 0; in GetHalDefVar8723B()
3811 *((u8 *)pval) = 1; in GetHalDefVar8723B()
3815 *((u8 *)pval) = false; in GetHalDefVar8723B()
[all …]
/drivers/tty/serial/
Dserial-tegra.c1448 u32 pval; in tegra_uart_parse_dt() local
1486 count, &pval); in tegra_uart_parse_dt()
1489 pval; in tegra_uart_parse_dt()
1493 count + 1, &pval); in tegra_uart_parse_dt()
1496 pval; in tegra_uart_parse_dt()
1500 count + 2, &pval); in tegra_uart_parse_dt()
1503 (s32)pval; in tegra_uart_parse_dt()

12