Home
last modified time | relevance | path

Searched refs:reg_value (Results 1 – 25 of 66) sorted by relevance

123

/drivers/media/spi/
Dgs1662.c54 u16 reg_value; member
59 u16 reg_value; member
223 if (reg_fmt[i].reg_value == std) { in gs_status_format()
239 return reg_fmt[i].reg_value | MASK_FORCE_STD; in get_register_timings()
254 int reg_value; in gs_s_dv_timings() local
256 reg_value = get_register_timings(timings); in gs_s_dv_timings()
257 if (reg_value == 0x0) in gs_s_dv_timings()
278 u16 reg_value, i; in gs_query_dv_timings() local
289 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, &reg_value); in gs_query_dv_timings()
290 if (reg_value) in gs_query_dv_timings()
[all …]
/drivers/gpu/drm/amd/display/dc/
Ddm_services.h104 uint32_t reg_value, in get_reg_field_value_ex() argument
108 return (mask & reg_value) >> shift; in get_reg_field_value_ex()
111 #define get_reg_field_value(reg_value, reg_name, reg_field)\ argument
113 (reg_value),\
118 uint32_t reg_value, in set_reg_field_value_ex() argument
124 return (reg_value & ~mask) | (mask & (value << shift)); in set_reg_field_value_ex()
127 #define set_reg_field_value(reg_value, value, reg_name, reg_field)\ argument
128 (reg_value) = set_reg_field_value_ex(\
129 (reg_value),\
173 #define get_reg_field_value_soc15(reg_value, block, reg_num, reg_name, reg_field)\ argument
[all …]
/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_tnrdmd_dvbt_mon.c392 u16 *reg_value) in dvbt_read_snr_reg() argument
397 if (!tnr_dmd || !reg_value) in dvbt_read_snr_reg()
428 *reg_value = (rdata[0] << 8) | rdata[1]; in dvbt_read_snr_reg()
434 u32 reg_value, int *snr) in dvbt_calc_snr() argument
439 if (reg_value == 0) in dvbt_calc_snr()
442 if (reg_value > 4996) in dvbt_calc_snr()
443 reg_value = 4996; in dvbt_calc_snr()
445 *snr = intlog10(reg_value) - intlog10(5350 - reg_value); in dvbt_calc_snr()
454 u16 reg_value = 0; in cxd2880_tnrdmd_dvbt_mon_snr() local
472 ret = dvbt_read_snr_reg(tnr_dmd, &reg_value); in cxd2880_tnrdmd_dvbt_mon_snr()
[all …]
Dcxd2880_tnrdmd_dvbt2_mon.c1228 u16 *reg_value) in dvbt2_read_snr_reg() argument
1236 if (!tnr_dmd || !reg_value) in dvbt2_read_snr_reg()
1275 *reg_value = (data[0] << 8) | data[1]; in dvbt2_read_snr_reg()
1281 u32 reg_value, int *snr) in dvbt2_calc_snr() argument
1286 if (reg_value == 0) in dvbt2_calc_snr()
1289 if (reg_value > 10876) in dvbt2_calc_snr()
1290 reg_value = 10876; in dvbt2_calc_snr()
1292 *snr = intlog10(reg_value) - intlog10(12600 - reg_value); in dvbt2_calc_snr()
1301 u16 reg_value = 0; in cxd2880_tnrdmd_dvbt2_mon_snr() local
1319 ret = dvbt2_read_snr_reg(tnr_dmd, &reg_value); in cxd2880_tnrdmd_dvbt2_mon_snr()
[all …]
Dcxd2880_io.c49 const struct cxd2880_reg_value reg_value[], in cxd2880_io_write_multi_regs() argument
59 ret = io->write_reg(io, tgt, reg_value[i].addr, in cxd2880_io_write_multi_regs()
60 reg_value[i].value); in cxd2880_io_write_multi_regs()
/drivers/clk/
Dclk-max9485.c36 u8 reg_value; member
80 u8 reg_value; member
96 drvdata->reg_value &= ~mask; in max9485_update_bits()
97 drvdata->reg_value |= value; in max9485_update_bits()
101 mask, value, drvdata->reg_value); in max9485_update_bits()
104 &drvdata->reg_value, in max9485_update_bits()
105 sizeof(drvdata->reg_value)); in max9485_update_bits()
144 entry->reg_value); in max9485_clkout_set_rate()
152 u8 val = drvdata->reg_value & MAX9485_FREQ_MASK; in max9485_clkout_recalc_rate()
156 if (val == entry->reg_value) in max9485_clkout_recalc_rate()
[all …]
/drivers/media/dvb-frontends/
Dstv6111.c41 u16 reg_value; member
542 int table_size, u16 reg_value) in table_lookup() argument
551 if (reg_value <= table[0].reg_value) { in table_lookup()
553 } else if (reg_value >= table[imax].reg_value) { in table_lookup()
558 if ((table[imin].reg_value <= reg_value) && in table_lookup()
559 (reg_value <= table[i].reg_value)) in table_lookup()
564 reg_diff = table[imax].reg_value - table[imin].reg_value; in table_lookup()
567 gain += ((s32)(reg_value - table[imin].reg_value) * in table_lookup()
Dsi2165.c829 u32 reg_value; in si2165_set_oversamp() local
837 reg_value = oversamp & 0x3fffffff; in si2165_set_oversamp()
839 dev_dbg(&state->client->dev, "Write oversamp=%#x\n", reg_value); in si2165_set_oversamp()
840 return si2165_writereg32(state, REG_OVERSAMP, reg_value); in si2165_set_oversamp()
847 s32 reg_value = 0; in si2165_set_if_freq_shift() local
865 reg_value = (s32)if_freq_shift; in si2165_set_if_freq_shift()
868 reg_value = -reg_value; in si2165_set_if_freq_shift()
870 reg_value = reg_value & 0x1fffffff; in si2165_set_if_freq_shift()
873 return si2165_writereg32(state, REG_IF_FREQ_SHIFT, reg_value); in si2165_set_if_freq_shift()
Dstv0910.c138 u32 reg_value; member
605 int table_size, u32 reg_value) in table_lookup() argument
614 if (reg_value >= table[0].reg_value) { in table_lookup()
616 } else if (reg_value <= table[imax].reg_value) { in table_lookup()
621 if ((table[imin].reg_value >= reg_value) && in table_lookup()
622 (reg_value >= table[i].reg_value)) in table_lookup()
628 reg_diff = table[imax].reg_value - table[imin].reg_value; in table_lookup()
631 value += ((s32)(reg_value - table[imin].reg_value) * in table_lookup()
1002 u16 reg_value = (tmp[0] << 8) | tmp[1]; in set_vth() local
1004 reg_value); in set_vth()
/drivers/power/supply/
Dab8500_fg.c1823 u8 reg_value; in ab8500_fg_check_hw_failure_work() local
1834 &reg_value); in ab8500_fg_check_hw_failure_work()
1839 if ((reg_value & BATT_OVV) == BATT_OVV) { in ab8500_fg_check_hw_failure_work()
2555 u8 reg_value; in ab8505_powercut_flagtime_read() local
2560 AB8505_RTC_PCUT_FLAG_TIME_REG, &reg_value); in ab8505_powercut_flagtime_read()
2567 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_flagtime_read()
2578 int reg_value; in ab8505_powercut_flagtime_write() local
2582 if (kstrtoint(buf, 10, &reg_value)) in ab8505_powercut_flagtime_write()
2585 if (reg_value > 0x7F) { in ab8505_powercut_flagtime_write()
2591 AB8505_RTC_PCUT_FLAG_TIME_REG, (u8)reg_value); in ab8505_powercut_flagtime_write()
[all …]
Dab8500_charger.c1117 u8 reg_value; in ab8500_charger_set_current() local
1124 reg, &reg_value); in ab8500_charger_set_current()
1133 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1141 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1150 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1966 u8 reg_value; in ab8500_charger_check_hw_failure_work() local
1974 AB8500_CHARGER, AB8500_CH_STATUS2_REG, &reg_value); in ab8500_charger_check_hw_failure_work()
1979 if (!(reg_value & MAIN_CH_NOK)) { in ab8500_charger_check_hw_failure_work()
1987 &reg_value); in ab8500_charger_check_hw_failure_work()
1992 if (!(reg_value & VBUS_OVV_TH)) { in ab8500_charger_check_hw_failure_work()
[all …]
/drivers/ata/
Dahci_imx.c818 struct reg_value { struct
820 u32 reg_value; member
825 const struct reg_value *values;
831 static const struct reg_value gpr13_tx_level[] = {
866 static const struct reg_value gpr13_tx_boost[] = {
885 static const struct reg_value gpr13_tx_atten[] = {
894 static const struct reg_value gpr13_rx_eq[] = {
937 u32 reg_value = 0; in imx_ahci_parse_props() local
945 reg_value |= prop->set_value; in imx_ahci_parse_props()
947 reg_value |= prop->def_value; in imx_ahci_parse_props()
[all …]
/drivers/misc/
Dxilinx_sdfec.c263 u32 reg_value; in update_config_from_hw() local
267 reg_value = xsdfec_regread(xsdfec, XSDFEC_ORDER_ADDR); in update_config_from_hw()
268 xsdfec->config.order = reg_value; in update_config_from_hw()
278 reg_value = xsdfec_regread(xsdfec, XSDFEC_IMR_ADDR); in update_config_from_hw()
279 xsdfec->config.irq.enable_isr = (reg_value & XSDFEC_ISR_MASK) > 0; in update_config_from_hw()
281 reg_value = xsdfec_regread(xsdfec, XSDFEC_ECC_IMR_ADDR); in update_config_from_hw()
283 (reg_value & XSDFEC_ECC_ISR_MASK) > 0; in update_config_from_hw()
285 reg_value = xsdfec_regread(xsdfec, XSDFEC_AXIS_ENABLE_ADDR); in update_config_from_hw()
286 sdfec_started = (reg_value & XSDFEC_AXIS_IN_ENABLE_MASK) > 0; in update_config_from_hw()
437 u32 reg_value; in xsdfec_get_turbo() local
[all …]
/drivers/phy/allwinner/
Dphy-sun9i-usb.c46 u32 bits, reg_value; in sun9i_usb_phy_passby() local
56 reg_value = readl(phy->pmu); in sun9i_usb_phy_passby()
59 reg_value |= bits; in sun9i_usb_phy_passby()
61 reg_value &= ~bits; in sun9i_usb_phy_passby()
63 writel(reg_value, phy->pmu); in sun9i_usb_phy_passby()
/drivers/video/fbdev/via/
Dhw.c1014 int reg_value; in viafb_load_fetch_count_reg() local
1020 reg_value = IGA1_FETCH_COUNT_FORMULA(h_addr, bpp_byte); in viafb_load_fetch_count_reg()
1024 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIASR); in viafb_load_fetch_count_reg()
1027 reg_value = IGA2_FETCH_COUNT_FORMULA(h_addr, bpp_byte); in viafb_load_fetch_count_reg()
1031 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIACR); in viafb_load_fetch_count_reg()
1039 int reg_value; in viafb_load_FIFO_reg() local
1159 reg_value = IGA1_FIFO_DEPTH_SELECT_FORMULA(iga1_fifo_max_depth); in viafb_load_FIFO_reg()
1163 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIASR); in viafb_load_FIFO_reg()
1166 reg_value = IGA1_FIFO_THRESHOLD_FORMULA(iga1_fifo_threshold); in viafb_load_FIFO_reg()
1173 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIASR); in viafb_load_FIFO_reg()
[all …]
Dlcd.c338 int reg_value = 0; in load_lcd_scaling() local
353 reg_value = in load_lcd_scaling()
359 viafb_load_reg(reg_value, in load_lcd_scaling()
373 reg_value = in load_lcd_scaling()
380 viafb_load_reg(reg_value, in load_lcd_scaling()
385 DEBUG_MSG(KERN_INFO "Horizontal Scaling value = %d", reg_value); in load_lcd_scaling()
397 reg_value = in load_lcd_scaling()
403 viafb_load_reg(reg_value, in load_lcd_scaling()
417 reg_value = in load_lcd_scaling()
424 viafb_load_reg(reg_value, in load_lcd_scaling()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_hwtstamp.c27 u32 reg_value; in config_sub_second_increment() local
44 reg_value = data; in config_sub_second_increment()
46 reg_value <<= GMAC4_PTP_SSIR_SSINC_SHIFT; in config_sub_second_increment()
48 writel(reg_value, ioaddr + PTP_SSIR); in config_sub_second_increment()
/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c24 u32 reg_value; in lan743x_otp_power_up() local
26 reg_value = lan743x_csr_read(adapter, OTP_PWR_DN); in lan743x_otp_power_up()
28 if (reg_value & OTP_PWR_DN_PWRDN_N_) { in lan743x_otp_power_up()
30 reg_value &= ~OTP_PWR_DN_PWRDN_N_; in lan743x_otp_power_up()
31 lan743x_csr_write(adapter, OTP_PWR_DN, reg_value); in lan743x_otp_power_up()
41 u32 reg_value; in lan743x_otp_power_down() local
43 reg_value = lan743x_csr_read(adapter, OTP_PWR_DN); in lan743x_otp_power_down()
44 if (!(reg_value & OTP_PWR_DN_PWRDN_N_)) { in lan743x_otp_power_down()
46 reg_value |= OTP_PWR_DN_PWRDN_N_; in lan743x_otp_power_down()
47 lan743x_csr_write(adapter, OTP_PWR_DN, reg_value); in lan743x_otp_power_down()
/drivers/gpu/drm/amd/amdgpu/
Dmmsch_v1_0.h63 uint32_t reg_value; member
84 uint32_t reg_value; member
93 direct_wt->reg_value = value; in mmsch_v1_0_insert_direct_wt()
/drivers/media/i2c/
Dov5645.c73 struct reg_value { struct
81 const struct reg_value *data; argument
122 static const struct reg_value ov5645_global_init_setting[] = {
364 static const struct reg_value ov5645_setting_sxga[] = {
412 static const struct reg_value ov5645_setting_1080p[] = {
462 static const struct reg_value ov5645_setting_full[] = {
623 const struct reg_value *settings, in ov5645_set_register_array()
717 u32 reg_value = (value * 0x10) + 0x40; in ov5645_set_saturation() local
720 ret = ov5645_write_reg(ov5645, OV5645_SDE_SAT_U, reg_value); in ov5645_set_saturation()
724 return ov5645_write_reg(ov5645, OV5645_SDE_SAT_V, reg_value); in ov5645_set_saturation()
/drivers/mmc/host/
Ddw_mmc-k3.c223 u32 reg_value; in dw_mci_hs_set_timing() local
252 reg_value = FIELD_PREP(UHS_REG_EXT_SAMPLE_PHASE_MASK, smpl_phase) | in dw_mci_hs_set_timing()
255 mci_writel(host, UHS_REG_EXT, reg_value); in dw_mci_hs_set_timing()
259 reg_value = FIELD_PREP(GPIO_CLK_DIV_MASK, GENCLK_DIV) | in dw_mci_hs_set_timing()
261 mci_writel(host, GPIO, (unsigned int)reg_value | GPIO_CLK_ENABLE); in dw_mci_hs_set_timing()
/drivers/hwmon/
Daspeed-pwm-tacho.c391 u32 reg_value = ((div_high << type_params[type].h_value) | in aspeed_set_pwm_clock_values() local
396 type_params[type].clk_ctrl_mask, reg_value); in aspeed_set_pwm_clock_values()
410 u32 reg_value = (type & 0x1) << pwm_port_params[pwm_port].type_part1; in aspeed_set_pwm_port_type() local
412 reg_value |= (type & 0x2) << pwm_port_params[pwm_port].type_part2; in aspeed_set_pwm_port_type()
415 pwm_port_params[pwm_port].type_mask, reg_value); in aspeed_set_pwm_port_type()
422 u32 reg_value = (rising << in aspeed_set_pwm_port_duty_rising_falling() local
424 reg_value |= (falling << in aspeed_set_pwm_port_duty_rising_falling()
429 reg_value); in aspeed_set_pwm_port_duty_rising_falling()
443 u32 reg_value = ((mode << TYPE_CTRL_FAN_MODE) | in aspeed_set_tacho_type_values() local
448 TYPE_CTRL_FAN_MASK, reg_value); in aspeed_set_tacho_type_values()
/drivers/regulator/
Dmc13892-regulator.c442 u32 reg_value; in mc13892_sw_regulator_set_voltage_sel() local
447 reg_value = selector; in mc13892_sw_regulator_set_voltage_sel()
467 reg_value -= MC13892_SWxHI_SEL_OFFSET; in mc13892_sw_regulator_set_voltage_sel()
468 reg_value |= MC13892_SWITCHERS0_SWxHI; in mc13892_sw_regulator_set_voltage_sel()
470 reg_value &= ~MC13892_SWITCHERS0_SWxHI; in mc13892_sw_regulator_set_voltage_sel()
476 mask, reg_value); in mc13892_sw_regulator_set_voltage_sel()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_ppe.c37 int reg_value; in hns_ppe_set_indir_table() local
40 reg_value = dsaf_read_dev(ppe_cb, in hns_ppe_set_indir_table()
43 dsaf_set_field(reg_value, PPEV2_CFG_RSS_TBL_4N0_M, in hns_ppe_set_indir_table()
46 dsaf_set_field(reg_value, PPEV2_CFG_RSS_TBL_4N1_M, in hns_ppe_set_indir_table()
49 dsaf_set_field(reg_value, PPEV2_CFG_RSS_TBL_4N2_M, in hns_ppe_set_indir_table()
52 dsaf_set_field(reg_value, PPEV2_CFG_RSS_TBL_4N3_M, in hns_ppe_set_indir_table()
56 ppe_cb, PPEV2_INDRECTION_TBL_REG + i * 0x4, reg_value); in hns_ppe_set_indir_table()
/drivers/gpu/drm/amd/display/dc/basics/
Dconversion.c93 uint32_t reg_value = in convert_float_matrix() local
102 matrix[i] = (uint16_t)reg_value; in convert_float_matrix()

123