Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/media/spi/
Dgs1662.c54 u16 reg_value; member
59 u16 reg_value; member
235 if (reg_fmt[i].reg_value == std) { in gs_status_format()
251 return reg_fmt[i].reg_value | MASK_FORCE_STD; in get_register_timings()
266 int reg_value; in gs_s_dv_timings() local
268 reg_value = get_register_timings(timings); in gs_s_dv_timings()
269 if (reg_value == 0x0) in gs_s_dv_timings()
290 u16 reg_value, i; in gs_query_dv_timings() local
301 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, &reg_value); in gs_query_dv_timings()
302 if (reg_value) in gs_query_dv_timings()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/
Ddm_services.h107 uint32_t reg_value, in get_reg_field_value_ex() argument
111 return (mask & reg_value) >> shift; in get_reg_field_value_ex()
114 #define get_reg_field_value(reg_value, reg_name, reg_field)\ argument
116 (reg_value),\
121 uint32_t reg_value, in set_reg_field_value_ex() argument
127 return (reg_value & ~mask) | (mask & (value << shift)); in set_reg_field_value_ex()
130 #define set_reg_field_value(reg_value, value, reg_name, reg_field)\ argument
131 (reg_value) = set_reg_field_value_ex(\
132 (reg_value),\
183 #define get_reg_field_value_soc15(reg_value, block, reg_num, reg_name, reg_field)\ argument
[all …]
/kernel/linux/linux-5.10/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_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()
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
Dcoresight-cti-core.c336 u32 reg_value; in cti_channel_trig_op() local
367 reg_value = direction == CTI_TRIG_IN ? config->ctiinen[trigger_idx] : in cti_channel_trig_op()
370 reg_value |= chan_bitmask; in cti_channel_trig_op()
372 reg_value &= ~chan_bitmask; in cti_channel_trig_op()
376 config->ctiinen[trigger_idx] = reg_value; in cti_channel_trig_op()
378 config->ctiouten[trigger_idx] = reg_value; in cti_channel_trig_op()
382 cti_write_single_reg(drvdata, reg_offset, reg_value); in cti_channel_trig_op()
393 u32 reg_value; in cti_channel_gate_op() local
402 reg_value = config->ctigate; in cti_channel_gate_op()
405 reg_value |= chan_bitmask; in cti_channel_gate_op()
[all …]
/kernel/linux/linux-5.10/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()
2557 u8 reg_value; in ab8505_powercut_flagtime_read() local
2562 AB8505_RTC_PCUT_FLAG_TIME_REG, &reg_value); in ab8505_powercut_flagtime_read()
2569 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_flagtime_read()
2580 int reg_value; in ab8505_powercut_flagtime_write() local
2584 if (kstrtoint(buf, 10, &reg_value)) in ab8505_powercut_flagtime_write()
2587 if (reg_value > 0x7F) { in ab8505_powercut_flagtime_write()
2593 AB8505_RTC_PCUT_FLAG_TIME_REG, (u8)reg_value); in ab8505_powercut_flagtime_write()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/ata/
Dahci_imx.c818 struct reg_value { struct
820 u32 reg_value; argument
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 …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
Dcbe_thermal.c57 static inline u8 reg_to_temp(u8 reg_value) in reg_to_temp() argument
59 return ((reg_value & 0x3f) << 1) + TEMP_MIN; in reg_to_temp()
115 u64 reg_value; in store_throttle() local
127 reg_value = in_be64(&pmd_regs->tm_tpr.val); in store_throttle()
130 reg_value &= ~(0xffull << pos); in store_throttle()
132 reg_value |= new_value << pos; in store_throttle()
134 out_be64(&pmd_regs->tm_tpr.val, reg_value); in store_throttle()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/sound/pci/echoaudio/
Dechoaudio_gml.c66 __le32 reg_value; in write_control_reg() local
77 reg_value = cpu_to_le32(value); in write_control_reg()
78 if (reg_value != chip->comm_page->control_register || force) { in write_control_reg()
81 chip->comm_page->control_register = reg_value; in write_control_reg()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_hwtstamp.c28 u32 reg_value; in config_sub_second_increment() local
50 reg_value = data; in config_sub_second_increment()
52 reg_value <<= GMAC4_PTP_SSIR_SSINC_SHIFT; in config_sub_second_increment()
54 writel(reg_value, ioaddr + PTP_SSIR); in config_sub_second_increment()
/kernel/linux/linux-5.10/arch/mips/include/asm/sn/sn0/
Dhubio.h203 u64 reg_value; member
445 u64 reg_value; member
467 u64 reg_value; member
514 u64 reg_value; member
556 u64 reg_value; member
672 u64 reg_value; member
709 u64 reg_value; member
824 u64 reg_value; member
839 #define iprb_regval reg_value
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Dmmsch_v3_0.h66 uint32_t reg_value; member
87 uint32_t reg_value; member
105 direct_wt.reg_value = value; \
Dmmsch_v1_0.h75 uint32_t reg_value; member
96 uint32_t reg_value; member
105 direct_wt->reg_value = value; in mmsch_v1_0_insert_direct_wt()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()

1234