Home
last modified time | relevance | path

Searched refs:regval (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/linux/drivers/net/ethernet/synopsys/
A Ddwc-xlgmac-hw.c38 u32 regval; in xlgmac_disable_rx_csum() local
41 regval = XLGMAC_SET_REG_BITS(regval, MAC_RCR_IPC_POS, in xlgmac_disable_rx_csum()
50 u32 regval; in xlgmac_enable_rx_csum() local
53 regval = XLGMAC_SET_REG_BITS(regval, MAC_RCR_IPC_POS, in xlgmac_enable_rx_csum()
112 u32 regval; in xlgmac_enable_rx_vlan_stripping() local
137 u32 regval; in xlgmac_disable_rx_vlan_stripping() local
149 u32 regval; in xlgmac_enable_rx_vlan_filtering() local
258 regval = XLGMAC_SET_REG_BITS(regval, MAC_PFR_PR_POS, in xlgmac_set_promiscuous_mode()
1208 regval = XLGMAC_SET_REG_BITS(regval, in xlgmac_disable_tx_flow_control()
1524 regval = XLGMAC_SET_REG_BITS(regval, in xlgmac_config_queue_mapping()
[all …]
/linux/drivers/media/pci/cx23885/
A Dcx23885-417.c275 u32 regval; in cx23885_mc417_init() local
283 cx_write(MC417_CTL, regval); in cx23885_mc417_init()
286 regval = MC417_MIRDY; in cx23885_mc417_init()
287 cx_write(MC417_OEN, regval); in cx23885_mc417_init()
291 cx_write(MC417_RWD, regval); in cx23885_mc417_init()
311 u32 regval; in mc417_register_write() local
321 cx_write(MC417_RWD, regval); in mc417_register_write()
325 cx_write(MC417_RWD, regval); in mc417_register_write()
376 u32 regval; in mc417_register_read() local
469 u32 regval; in mc417_memory_write() local
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_opp_csc_v.c132 tbl_entry->regval[0], in program_color_matrix_v()
138 tbl_entry->regval[1], in program_color_matrix_v()
150 tbl_entry->regval[2], in program_color_matrix_v()
156 tbl_entry->regval[3], in program_color_matrix_v()
168 tbl_entry->regval[4], in program_color_matrix_v()
174 tbl_entry->regval[5], in program_color_matrix_v()
186 tbl_entry->regval[6], in program_color_matrix_v()
192 tbl_entry->regval[7], in program_color_matrix_v()
508 uint32_t regval[12]; member
543 regval = input_csc_matrix[i].regval; in program_input_csc()
[all …]
/linux/drivers/power/supply/
A Dltc4162-l-charger.c234 regval *= 1924; in ltc4162l_get_vbat()
236 regval /= 10; in ltc4162l_get_vbat()
311 ++regval; in ltc4162l_get_icharge()
397 ++regval; in ltc4162l_get_iin_limit_dac()
411 regval /= 10000u; in ltc4162l_set_iin_limit()
412 if (regval) in ltc4162l_set_iin_limit()
413 --regval; in ltc4162l_set_iin_limit()
414 if (regval > 63) in ltc4162l_set_iin_limit()
415 regval = 63; in ltc4162l_set_iin_limit()
461 regval *= 14660u; in ltc4162l_get_term_current()
[all …]
A Dadp5061.c178 unsigned int regval; in adp5061_get_input_current_limit() local
228 unsigned int regval; in adp5061_get_min_voltage() local
235 regval = ((regval & ADP5061_VOLTAGE_TH_VTRK_DEAD_MSK) >> 3); in adp5061_get_min_voltage()
244 unsigned int regval; in adp5061_get_chg_volt_lim() local
260 unsigned int regval; in adp5061_get_max_voltage() local
267 regval = ((regval & ADP5061_TERM_SET_VTRM_MSK) >> 2) - 0x0F; in adp5061_get_max_voltage()
338 unsigned int regval; in adp5061_get_const_chg_current() local
345 regval = ((regval & ADP5061_CHG_CURR_ICHG_MSK) >> 2); in adp5061_get_const_chg_current()
357 unsigned int regval; in adp5061_get_prechg_current() local
390 unsigned int regval; in adp5061_get_vweak_th() local
[all …]
/linux/drivers/hwmon/
A Dtps23861.c128 unsigned int regval; in tps23861_read_temp() local
143 unsigned int regval; in tps23861_read_voltage() local
167 unsigned int regval; in tps23861_read_current() local
177 &regval, 2); in tps23861_read_current()
373 unsigned int regval; in tps23861_port_operating_mode() local
411 unsigned int regval; in tps23861_port_detect_status() local
415 &regval); in tps23861_port_detect_status()
449 unsigned int regval; in tps23861_port_class_status() local
453 &regval); in tps23861_port_class_status()
492 u16 regval; in tps23861_port_resistance() local
[all …]
A Dmax31730.c156 if (regval < 0) in max31730_read()
157 return regval; in max31730_read()
163 if (regval < 0) in max31730_read()
164 return regval; in max31730_read()
170 if (regval < 0) in max31730_read()
171 return regval; in max31730_read()
178 if (regval < 0) in max31730_read()
179 return regval; in max31730_read()
365 int regval; in max31730_check_reg_temp() local
368 return regval < 0 || (regval & 0x0f); in max31730_check_reg_temp()
[all …]
A Dk10temp.c173 u32 regval; in get_raw_temp() local
176 data->read_tempreg(data->pdev, &regval); in get_raw_temp()
178 if (regval & data->temp_adjust_mask) in get_raw_temp()
214 u32 regval; in k10temp_read_temp() local
232 &regval); in k10temp_read_temp()
243 data->read_htcreg(data->pdev, &regval); in k10temp_read_temp()
247 data->read_htcreg(data->pdev, &regval); in k10temp_read_temp()
248 *val = (((regval >> 16) & 0x7f) in k10temp_read_temp()
249 - ((regval >> 24) & 0xf)) * 500 + 52000; in k10temp_read_temp()
382 u32 regval; in k10temp_get_ccd_support() local
[all …]
A Dmax6621.c172 regval); in max6621_verify_reg_data()
177 switch (regval) { in max6621_verify_reg_data()
180 regval); in max6621_verify_reg_data()
187 regval); in max6621_verify_reg_data()
205 u32 regval; in max6621_read() local
234 &regval); in max6621_read()
257 *val = regval * 1000L; in max6621_read()
270 &regval); in max6621_read()
277 if (regval == MAX6621_ALERT_DIS) in max6621_read()
287 if (regval) { in max6621_read()
[all …]
A Dadm9240.c218 unsigned int regval; in cpu0_vid_show() local
225 vid = regval & 0x0f; in cpu0_vid_show()
229 vid |= (regval & 1) << 4; in cpu0_vid_show()
238 unsigned int regval; in aout_output_show() local
315 unsigned int regval; in adm9240_init_client() local
403 unsigned int regval; in adm9240_intrusion_read() local
442 unsigned int regval; in adm9240_in_read() local
499 unsigned int regval; in adm9240_fan_read() local
557 unsigned int regval; in adm9240_temp_read() local
565 temp = regval << 1; in adm9240_temp_read()
[all …]
A Dmlxreg-fan.c129 u32 regval; in mlxreg_fan_read() local
186 *val = regval; in mlxreg_fan_read()
321 u32 regval; in mlxreg_fan_get_cur_state() local
343 u32 regval; in mlxreg_fan_set_cur_state() local
404 u32 regval; in mlxreg_fan_connect_verify() local
414 return !!(regval & data->bit); in mlxreg_fan_connect_verify()
420 u32 regval; in mlxreg_pwm_connect_verify() local
436 u32 regval; in mlxreg_fan_speed_divider_get() local
452 if (regval > 0 && regval <= MLXREG_FAN_TACHO_DIV_SCALE_MAX) in mlxreg_fan_speed_divider_get()
541 u32 regval; in mlxreg_fan_config() local
[all …]
/linux/drivers/rapidio/switches/
A Dtsi57x.c120 u32 regval; in tsi57x_set_domain() local
142 u32 regval; in tsi57x_get_domain() local
158 u32 regval; in tsi57x_em_init() local
175 &regval); in tsi57x_em_init()
196 &regval); in tsi57x_em_init()
215 u32 regval; in tsi57x_em_handler() local
227 &regval); in tsi57x_em_handler()
235 regval); in tsi57x_em_handler()
243 &regval); in tsi57x_em_handler()
258 &regval); in tsi57x_em_handler()
[all …]
A Didt_gen2.c199 u32 regval; in idtg2_get_domain() local
205 IDT_RIO_DOMAIN, &regval); in idtg2_get_domain()
207 *sw_domain = (u8)(regval & 0xff); in idtg2_get_domain()
215 u32 regval; in idtg2_em_init() local
282 regval | IDT_LANE_CTRL_GENPW); in idtg2_em_init()
324 u32 regval, em_perrdet, em_ltlerrdet; in idtg2_em_handler() local
333 IDT_ISLTL_ADDRESS_CAP, &regval); in idtg2_em_handler()
337 rio_name(rdev), em_ltlerrdet, regval); in idtg2_em_handler()
373 u32 regval; in idtg2_show_errlog() local
376 if (!regval) /* 0 = end of log */ in idtg2_show_errlog()
[all …]
/linux/drivers/crypto/hisilicon/sec/
A Dsec_drv.c255 u32 regval; in sec_queue_ar_pkgattr() local
270 u32 regval; in sec_queue_aw_pkgattr() local
361 u32 regval; in sec_bd_endian_little() local
388 u32 regval; in sec_data_axiwr_otsd_cfg() local
400 u32 regval; in sec_data_axird_otsd_cfg() local
412 u32 regval; in sec_clk_gate_en() local
425 u32 regval; in sec_comm_cnt_cfg() local
438 u32 regval; in sec_commsnap_en() local
474 u32 regval; in sec_set_dbg_bd_cfg() local
492 u32 regval; in sec_saa_getqm_en() local
[all …]
/linux/arch/arm/mach-omap2/
A Domap_phy_internal.c58 u32 regval; in am35x_musb_reset() local
61 regval = omap_ctrl_readl(AM35XX_CONTROL_IP_SW_RESET); in am35x_musb_reset()
63 regval |= AM35XX_USBOTGSS_SW_RST; in am35x_musb_reset()
64 omap_ctrl_writel(regval, AM35XX_CONTROL_IP_SW_RESET); in am35x_musb_reset()
66 regval &= ~AM35XX_USBOTGSS_SW_RST; in am35x_musb_reset()
67 omap_ctrl_writel(regval, AM35XX_CONTROL_IP_SW_RESET); in am35x_musb_reset()
69 regval = omap_ctrl_readl(AM35XX_CONTROL_IP_SW_RESET); in am35x_musb_reset()
112 u32 regval; in am35x_musb_clear_irq() local
114 regval = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); in am35x_musb_clear_irq()
115 regval |= AM35XX_USBOTGSS_INT_CLR; in am35x_musb_clear_irq()
[all …]
/linux/arch/arm64/kvm/
A Dvgic-sys-reg-v3.c23 val = p->regval; in access_gic_ctlr()
81 p->regval = val; in access_gic_ctlr()
127 p->regval = 0; in access_gic_bpr1()
195 *ap_reg = p->regval; in vgic_v3_access_apr_reg()
197 p->regval = *ap_reg; in vgic_v3_access_apr_reg()
212 p->regval = 0; in access_gic_aprn()
237 if (!(p->regval & ICC_SRE_EL1_SRE)) in access_gic_sre()
240 p->regval = vgicv3->vgic_sre; in access_gic_sre()
269 params.regval = *reg; in vgic_v3_has_cpu_sysregs_attr()
287 params.regval = *reg; in vgic_v3_cpu_sysregs_uaccess()
[all …]
/linux/drivers/phy/marvell/
A Dphy-berlin-sata.c68 u32 regval; in phy_berlin_sata_reg_setbits() local
74 regval = readl(ctrl_reg + PORT_VSR_DATA); in phy_berlin_sata_reg_setbits()
75 regval &= ~mask; in phy_berlin_sata_reg_setbits()
76 regval |= val; in phy_berlin_sata_reg_setbits()
77 writel(regval, ctrl_reg + PORT_VSR_DATA); in phy_berlin_sata_reg_setbits()
85 u32 regval; in phy_berlin_sata_power_on() local
94 regval &= ~desc->power_bit; in phy_berlin_sata_power_on()
122 regval &= ~GENMASK(7, 4); in phy_berlin_sata_power_on()
123 regval |= 0x30; in phy_berlin_sata_power_on()
137 u32 regval; in phy_berlin_sata_power_off() local
[all …]
/linux/drivers/platform/mellanox/
A Dmlxreg-io.c48 bool rw_flag, int regsize, u32 *regval) in mlxreg_io_get_reg() argument
72 *regval = !!(*regval & ~data->mask); in mlxreg_io_get_reg()
75 *regval &= data->mask; in mlxreg_io_get_reg()
77 *regval |= ~data->mask; in mlxreg_io_get_reg()
83 *regval = ror32(*regval & data->mask, (data->bit - 1)); in mlxreg_io_get_reg()
88 *regval = (*regval & ~data->mask) | in_val; in mlxreg_io_get_reg()
116 u32 regval = 0; in mlxreg_io_attr_show() local
120 priv->regsize, &regval); in mlxreg_io_attr_show()
124 return sprintf(buf, "%u\n", regval); in mlxreg_io_attr_show()
137 u32 input_val, regval; in mlxreg_io_attr_store() local
[all …]
/linux/drivers/regulator/
A Dab8500-ext.c115 u8 regval; in ab8500_ext_regulator_enable() local
129 regval = info->update_val; in ab8500_ext_regulator_enable()
133 info->update_mask, regval); in ab8500_ext_regulator_enable()
143 info->update_mask, regval); in ab8500_ext_regulator_enable()
152 u8 regval; in ab8500_ext_regulator_disable() local
165 regval = 0; in ab8500_ext_regulator_disable()
169 info->update_mask, regval); in ab8500_ext_regulator_disable()
179 info->update_mask, regval); in ab8500_ext_regulator_disable()
188 u8 regval; in ab8500_ext_regulator_is_enabled() local
220 u8 regval; in ab8500_ext_regulator_set_mode() local
[all …]
/linux/drivers/scsi/ufs/
A Dufs-qcom-ice.c69 u32 regval = qcom_ice_readl(host, QCOM_ICE_REG_VERSION); in qcom_ice_supported() local
70 int major = regval >> 24; in qcom_ice_supported()
71 int minor = (regval >> 16) & 0xFF; in qcom_ice_supported()
72 int step = regval & 0xFFFF; in qcom_ice_supported()
85 regval = qcom_ice_readl(host, QCOM_ICE_REG_FUSE_SETTING); in qcom_ice_supported()
86 if (regval & (QCOM_ICE_FUSE_SETTING_MASK | in qcom_ice_supported()
138 u32 regval; in qcom_ice_low_power_mode_enable() local
140 regval = qcom_ice_readl(host, QCOM_ICE_REG_ADVANCED_CONTROL); in qcom_ice_low_power_mode_enable()
145 regval |= 0x7000; in qcom_ice_low_power_mode_enable()
151 u32 regval; in qcom_ice_optimization_enable() local
[all …]
/linux/drivers/leds/
A Dleds-mlxreg.c66 u32 regval; in mlxreg_led_store_hw() local
82 ret = regmap_read(led_pdata->regmap, data->reg, &regval); in mlxreg_led_store_hw()
88 regval = (regval & data->mask) | nib; in mlxreg_led_store_hw()
104 u32 regval; in mlxreg_led_get_hw() local
125 regval = regval & ~data->mask; in mlxreg_led_get_hw()
126 regval = (ror32(data->mask, data->bit) == 0xf0) ? ror32(regval, in mlxreg_led_get_hw()
127 data->bit) : ror32(regval, data->bit + 4); in mlxreg_led_get_hw()
128 if (regval >= led_data->base_color && in mlxreg_led_get_hw()
192 u32 regval; in mlxreg_led_config() local
204 &regval); in mlxreg_led_config()
[all …]
/linux/drivers/net/wireless/ath/ath9k/
A Dar9002_phy.c381 u32 regval; in ar9002_hw_antdiv_comb_conf_get() local
383 regval = REG_READ(ah, AR_PHY_MULTICHAIN_GAIN_CTL); in ar9002_hw_antdiv_comb_conf_get()
398 u32 regval; in ar9002_hw_antdiv_comb_conf_set() local
400 regval = REG_READ(ah, AR_PHY_MULTICHAIN_GAIN_CTL); in ar9002_hw_antdiv_comb_conf_set()
401 regval &= ~(AR_PHY_9285_ANT_DIV_MAIN_LNACONF | in ar9002_hw_antdiv_comb_conf_set()
411 REG_WRITE(ah, AR_PHY_MULTICHAIN_GAIN_CTL, regval); in ar9002_hw_antdiv_comb_conf_set()
420 u32 regval; in ar9002_hw_set_bt_ant_diversity() local
456 regval &= (~(AR_PHY_9285_ANT_DIV_CTL_ALL)); in ar9002_hw_set_bt_ant_diversity()
461 regval &= (~(AR_PHY_9285_FAST_DIV_BIAS)); in ar9002_hw_set_bt_ant_diversity()
469 regval = REG_READ(ah, AR_PHY_CCK_DETECT); in ar9002_hw_set_bt_ant_diversity()
[all …]
/linux/drivers/crypto/ccp/
A Dccp-debugfs.c47 unsigned int regval; in ccp5_debugfs_info_read() local
66 if (regval & RI_AES_PRESENT) in ccp5_debugfs_info_read()
68 if (regval & RI_3DES_PRESENT) in ccp5_debugfs_info_read()
70 if (regval & RI_SHA_PRESENT) in ccp5_debugfs_info_read()
72 if (regval & RI_RSA_PRESENT) in ccp5_debugfs_info_read()
74 if (regval & RI_ECC_PRESENT) in ccp5_debugfs_info_read()
76 if (regval & RI_ZDE_PRESENT) in ccp5_debugfs_info_read()
78 if (regval & RI_ZCE_PRESENT) in ccp5_debugfs_info_read()
80 if (regval & RI_TRNG_PRESENT) in ccp5_debugfs_info_read()
196 unsigned int regval; in ccp5_debugfs_queue_read() local
[all …]
/linux/drivers/dma/ptdma/
A Dptdma-debugfs.c26 unsigned int regval; in pt_debugfs_info_show() local
32 regval = ioread32(pt->io_regs + CMD_PT_VERSION); in pt_debugfs_info_show()
34 seq_printf(s, " Version: %d\n", regval & RI_VERSION_NUM); in pt_debugfs_info_show()
37 seq_printf(s, " Queues: %d\n", (regval & RI_NUM_VQM) >> RI_NVQM_SHIFT); in pt_debugfs_info_show()
58 unsigned int regval; in pt_debugfs_queue_show() local
65 regval = ioread32(cmd_q->reg_control + 0x000C); in pt_debugfs_queue_show()
68 if (regval & INT_EMPTY_QUEUE) in pt_debugfs_queue_show()
70 if (regval & INT_QUEUE_STOPPED) in pt_debugfs_queue_show()
72 if (regval & INT_ERROR) in pt_debugfs_queue_show()
74 if (regval & INT_COMPLETION) in pt_debugfs_queue_show()
/linux/drivers/clk/hisilicon/
A Dclk-hisi-phase.c31 u32 regval) in hisi_phase_regval_to_degrees() argument
36 if (phase->phase_regvals[i] == regval) in hisi_phase_regval_to_degrees()
45 u32 regval; in hisi_clk_get_phase() local
47 regval = readl(phase->reg); in hisi_clk_get_phase()
48 regval = (regval & phase->mask) >> phase->shift; in hisi_clk_get_phase()
50 return hisi_phase_regval_to_degrees(phase, regval); in hisi_clk_get_phase()
69 int regval; in hisi_clk_set_phase() local
72 regval = hisi_phase_degrees_to_regval(phase, degrees); in hisi_clk_set_phase()
73 if (regval < 0) in hisi_clk_set_phase()
74 return regval; in hisi_clk_set_phase()
[all …]

Completed in 65 milliseconds

12345678910>>...13