Home
last modified time | relevance | path

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

1234

/linux/drivers/media/spi/
A Dgs1662.c54 u16 reg_value; member
59 u16 reg_value; member
266 int reg_value; in gs_s_dv_timings() local
269 if (reg_value == 0x0) in gs_s_dv_timings()
290 u16 reg_value, i; in gs_query_dv_timings() local
302 if (reg_value) in gs_query_dv_timings()
311 if (!(reg_value & MASK_H_LOCK) || !(reg_value & MASK_V_LOCK)) in gs_query_dv_timings()
341 int reg_value; in gs_s_stream() local
361 u16 reg_value, i; in gs_g_input_status() local
371 if (reg_value) in gs_g_input_status()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
A Ddm_services.h88 uint32_t reg_value, in get_reg_field_value_ex() argument
92 return (mask & reg_value) >> shift; in get_reg_field_value_ex()
95 #define get_reg_field_value(reg_value, reg_name, reg_field)\ argument
97 (reg_value),\
102 uint32_t reg_value, in set_reg_field_value_ex() argument
108 return (reg_value & ~mask) | (mask & (value << shift)); in set_reg_field_value_ex()
112 (reg_value) = set_reg_field_value_ex(\
113 (reg_value),\
166 (reg_value),\
171 (reg_value) = set_reg_field_value_ex(\
[all …]
/linux/drivers/media/dvb-frontends/cxd2880/
A Dcxd2880_tnrdmd_dvbt_mon.c392 u16 *reg_value) in dvbt_read_snr_reg() 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
493 u16 reg_value = 0; in cxd2880_tnrdmd_dvbt_mon_snr_diver() local
517 reg_value = 0; in cxd2880_tnrdmd_dvbt_mon_snr_diver()
519 reg_value = 0; in cxd2880_tnrdmd_dvbt_mon_snr_diver()
530 reg_value = 0; in cxd2880_tnrdmd_dvbt_mon_snr_diver()
[all …]
A Dcxd2880_tnrdmd_dvbt2_mon.c1228 u16 *reg_value) in dvbt2_read_snr_reg() 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
1340 u16 reg_value = 0; in cxd2880_tnrdmd_dvbt2_mon_snr_diver() local
1364 reg_value = 0; in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1366 reg_value = 0; in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1377 reg_value = 0; in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
[all …]
A 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()
/linux/drivers/clk/
A 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()
156 if (val == entry->reg_value) in max9485_clkout_recalc_rate()
292 sizeof(drvdata->reg_value)); in max9485_i2c_probe()
[all …]
/linux/drivers/media/dvb-frontends/
A Dstv6111.c32 u16 reg_value; member
533 int table_size, u16 reg_value) in table_lookup() argument
542 if (reg_value <= table[0].reg_value) { in table_lookup()
544 } else if (reg_value >= table[imax].reg_value) { in table_lookup()
549 if ((table[imin].reg_value <= reg_value) && in table_lookup()
550 (reg_value <= table[i].reg_value)) in table_lookup()
555 reg_diff = table[imax].reg_value - table[imin].reg_value; in table_lookup()
558 gain += ((s32)(reg_value - table[imin].reg_value) * in table_lookup()
/linux/drivers/hwtracing/coresight/
A Dcoresight-cti-core.c342 u32 reg_value; in cti_channel_trig_op() local
376 reg_value |= chan_bitmask; in cti_channel_trig_op()
378 reg_value &= ~chan_bitmask; in cti_channel_trig_op()
399 u32 reg_value; in cti_channel_gate_op() local
408 reg_value = config->ctigate; in cti_channel_gate_op()
411 reg_value |= chan_bitmask; in cti_channel_gate_op()
415 reg_value &= ~chan_bitmask; in cti_channel_gate_op()
423 config->ctigate = reg_value; in cti_channel_gate_op()
437 u32 reg_value; in cti_channel_setop() local
457 reg_value = chan_bitmask; in cti_channel_setop()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Dsdma_v4_4.c197 uint32_t reg_value = 0; in sdma_v4_4_query_ras_error_count() local
201 reg_value = RREG32(reg_offset); in sdma_v4_4_query_ras_error_count()
203 if (reg_value) in sdma_v4_4_query_ras_error_count()
204 sdma_v4_4_get_ras_error_count(adev, regSDMA0_EDC_COUNTER, reg_value, in sdma_v4_4_query_ras_error_count()
208 reg_value = RREG32(reg_offset); in sdma_v4_4_query_ras_error_count()
210 if (reg_value) in sdma_v4_4_query_ras_error_count()
211 sdma_v4_4_get_ras_error_count(adev, regSDMA0_EDC_COUNTER2, reg_value, in sdma_v4_4_query_ras_error_count()
A Dmmsch_v3_0.h66 uint32_t reg_value; member
87 uint32_t reg_value; member
105 direct_wt.reg_value = value; \
A Dmmsch_v1_0.h73 uint32_t reg_value; member
94 uint32_t reg_value; member
103 direct_wt->reg_value = value; in mmsch_v1_0_insert_direct_wt()
A Dmmhub_v1_7.c1249 uint32_t reg_value; in mmhub_v1_7_query_ras_error_count() local
1255 reg_value = in mmhub_v1_7_query_ras_error_count()
1257 if (reg_value) in mmhub_v1_7_query_ras_error_count()
1259 reg_value, &sec_count, &ded_count); in mmhub_v1_7_query_ras_error_count()
1289 uint32_t reg_value; in mmhub_v1_7_query_ras_error_status() local
1295 reg_value = in mmhub_v1_7_query_ras_error_status()
1301 i, reg_value); in mmhub_v1_7_query_ras_error_status()
1309 uint32_t reg_value; in mmhub_v1_7_reset_ras_error_status() local
1315 reg_value = RREG32(SOC15_REG_ENTRY_OFFSET( in mmhub_v1_7_reset_ras_error_status()
1317 reg_value = REG_SET_FIELD(reg_value, MMEA0_ERR_STATUS, in mmhub_v1_7_reset_ras_error_status()
[all …]
/linux/drivers/power/supply/
A Dab8500_fg.c1826 u8 reg_value; in ab8500_fg_check_hw_failure_work() local
1837 &reg_value); in ab8500_fg_check_hw_failure_work()
2559 u8 reg_value; in ab8505_powercut_flagtime_read() local
2609 u8 reg_value; in ab8505_powercut_maxtime_read() local
2660 u8 reg_value; in ab8505_powercut_restart_read() local
2711 u8 reg_value; in ab8505_powercut_timer_read() local
2734 u8 reg_value; in ab8505_powercut_restart_counter_read() local
2757 u8 reg_value; in ab8505_powercut_read() local
2806 u8 reg_value; in ab8505_powercut_flag_read() local
2829 u8 reg_value; in ab8505_powercut_debounce_read() local
[all …]
/linux/sound/soc/mediatek/mt8195/
A Dmt8195-dai-pcm.c32 unsigned int reg_value; member
43 { .rate = 8000, .reg_value = 0, },
44 { .rate = 16000, .reg_value = 1, },
45 { .rate = 32000, .reg_value = 2, },
46 { .rate = 48000, .reg_value = 3, },
47 { .rate = 11025, .reg_value = 1, },
48 { .rate = 22050, .reg_value = 2, },
49 { .rate = 44100, .reg_value = 3, },
58 return mtk_dai_pcm_rates[i].reg_value; in mtk_dai_pcm_mode()
/linux/drivers/ata/
A Dahci_imx.c818 struct reg_value { struct
820 u32 reg_value; argument
825 const struct reg_value *values;
937 u32 reg_value = 0; in imx_ahci_parse_props() local
945 reg_value |= prop->set_value; in imx_ahci_parse_props()
954 reg_value |= prop->def_value; in imx_ahci_parse_props()
962 reg_value |= prop->values[j].reg_value; in imx_ahci_parse_props()
970 reg_value |= prop->def_value; in imx_ahci_parse_props()
974 return reg_value; in imx_ahci_parse_props()
1086 u32 reg_value; in imx_ahci_probe() local
[all …]
/linux/drivers/misc/
A 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()
283 (reg_value & XSDFEC_ECC_ISR_MASK) > 0; in update_config_from_hw()
437 u32 reg_value; in xsdfec_get_turbo() local
445 reg_value = xsdfec_regread(xsdfec, XSDFEC_TURBO_ADDR); in xsdfec_get_turbo()
449 turbo_params.alg = reg_value & 0x1; in xsdfec_get_turbo()
780 u32 reg_value; in xsdfec_is_active() local
786 is_active = !!(reg_value & XSDFEC_IS_ACTIVITY_SET); in xsdfec_is_active()
[all …]
/linux/drivers/phy/allwinner/
A 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()
/linux/arch/powerpc/platforms/cell/
A 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()
/linux/drivers/video/fbdev/via/
A 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()
1039 int reg_value; in viafb_load_FIFO_reg() local
1176 reg_value = in viafb_load_FIFO_reg()
1187 reg_value = in viafb_load_FIFO_reg()
1309 reg_value = in viafb_load_FIFO_reg()
1319 viafb_load_reg(reg_value, in viafb_load_FIFO_reg()
1324 reg_value = in viafb_load_FIFO_reg()
1332 viafb_load_reg(reg_value, in viafb_load_FIFO_reg()
1347 reg_value = in viafb_load_FIFO_reg()
[all …]
A 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 …]
/linux/arch/mips/include/asm/sn/sn0/
A 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
/linux/sound/pci/echoaudio/
A 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()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_hwtstamp.c31 u32 reg_value; in config_sub_second_increment() local
52 reg_value = data; in config_sub_second_increment()
54 reg_value <<= GMAC4_PTP_SSIR_SSINC_SHIFT; in config_sub_second_increment()
56 writel(reg_value, ioaddr + PTP_SSIR); in config_sub_second_increment()
/linux/drivers/net/ethernet/microchip/
A 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()
/linux/drivers/media/i2c/
A 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()

Completed in 72 milliseconds

1234