Home
last modified time | relevance | path

Searched refs:reg_val (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/openbmc/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_mtl.c23 u32 reg_val; in sxgbe_mtl_init() local
87 u32 reg_val; in sxgbe_mtl_enable_txqueue() local
96 u32 reg_val; in sxgbe_mtl_disable_txqueue() local
106 u32 reg_val; in sxgbe_mtl_fc_active() local
117 u32 reg_val; in sxgbe_mtl_fc_enable() local
127 u32 reg_val; in sxgbe_mtl_fc_deactive() local
138 u32 reg_val; in sxgbe_mtl_fep_enable() local
148 u32 reg_val; in sxgbe_mtl_fep_disable() local
158 u32 reg_val; in sxgbe_mtl_fup_enable() local
168 u32 reg_val; in sxgbe_mtl_fup_disable() local
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dimx_keypad.c83 unsigned short reg_val; in imx_keypad_scan_matrix() local
95 reg_val |= 0xff00; in imx_keypad_scan_matrix()
136 reg_val &= 0x00ff; in imx_keypad_scan_matrix()
188 unsigned short reg_val; in imx_keypad_check_for_events() local
264 reg_val |= KBD_STAT_KDIE; in imx_keypad_check_for_events()
282 reg_val |= KBD_STAT_KRIE; in imx_keypad_check_for_events()
291 unsigned short reg_val; in imx_keypad_irq_handler() local
315 unsigned short reg_val; in imx_keypad_config() local
328 reg_val &= 0x00ff; in imx_keypad_config()
344 reg_val |= KBD_STAT_KDIE; in imx_keypad_config()
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Daf9033_priv.h19 struct reg_val { struct
87 static const struct reg_val ofsm_init[] = {
202 static const struct reg_val tuner_init_tua9001[] = {
246 static const struct reg_val tuner_init_fc0011[] = {
309 static const struct reg_val tuner_init_fc0012[] = {
354 static const struct reg_val tuner_init_mxl5007t[] = {
391 static const struct reg_val tuner_init_tda18218[] = {
427 static const struct reg_val tuner_init_fc2580[] = {
467 static const struct reg_val ofsm_init_it9135_v1[] = {
582 static const struct reg_val tuner_init_it9135_38[] = {
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Darasan_nfc.c266 u32 reg_val; in arasan_nand_select_chip() local
280 u32 reg_val; in arasan_nand_enable_ecc() local
691 u32 reg_val, page; in arasan_nand_send_wrcmd() local
698 reg_val |= curr_cmd->cmd1 | in arasan_nand_send_wrcmd()
712 reg_val |= (addr_cycles << in arasan_nand_send_wrcmd()
734 u32 reg_val; in arasan_nand_write_buf() local
785 u32 reg_val, page; in arasan_nand_erase() local
793 reg_val |= curr_cmd->cmd1 | in arasan_nand_erase()
841 u32 reg_val; in arasan_nand_read_status() local
857 reg_val |= (addr_cycles << in arasan_nand_read_status()
[all …]
H A Dtegra_nand.c117 u32 reg_val; in nand_waitfor_cmd_completion() local
207 int reg_val; in nand_dev_ready() local
213 if (reg_val & STATUS_RBSY0) in nand_dev_ready()
239 u32 reg_val; in nand_clear_interrupt_status() local
242 reg_val = readl(&reg->isr); in nand_clear_interrupt_status()
391 u32 reg_val; in check_ecc_error() local
435 u32 reg_val; in start_command() local
438 reg_val |= CMD_GO; in start_command()
508 u32 reg_val; in nand_rw_page() local
724 u32 reg_val; in nand_rw_oob() local
[all …]
H A Dkmeter1_nand.c50 u8 reg_val = read_mode(); in kpn_nand_hwcontrol() local
53 reg_val = reg_val & ~(KPN_ALE + KPN_CLE); in kpn_nand_hwcontrol()
56 reg_val = reg_val | KPN_CLE; in kpn_nand_hwcontrol()
58 reg_val = reg_val | KPN_ALE; in kpn_nand_hwcontrol()
60 reg_val = reg_val & ~KPN_CE1N; in kpn_nand_hwcontrol()
62 reg_val = reg_val | KPN_CE1N; in kpn_nand_hwcontrol()
64 write_mode(reg_val); in kpn_nand_hwcontrol()
/openbmc/u-boot/drivers/video/tegra124/
H A Dsor.c64 reg_val |= val; in tegra_sor_write_field()
113 u32 reg_val; in tegra_dc_sor_set_power_state() local
144 u32 reg_val; in tegra_dc_sor_set_dp_linkctl() local
180 u32 reg_val; in tegra_dc_sor_enable_lane_sequencer() local
215 u32 reg_val; in tegra_dc_sor_power_dplanes() local
245 u32 reg_val; in tegra_dc_sor_set_panel_power() local
277 u32 reg_val; in tegra_dc_sor_set_dp_mode() local
326 u32 reg_val; in tegra_dc_sor_io_set_dpd() local
373 u32 reg_val; in tegra_dc_sor_set_internal_panel() local
390 u32 reg_val; in tegra_dc_sor_read_link_config() local
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_cn9k_pf.c266 u64 reg_val; in octep_setup_iq_regs_cn93_pf() local
311 u64 reg_val; in octep_setup_oq_regs_cn93_pf() local
412 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
433 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
453 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
462 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
475 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
482 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
491 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
500 if (reg_val) { in octep_non_ioq_intr_handler_cn93_pf()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_helper.c248 return reg_val; in generic_reg_update_ex()
277 return reg_val; in generic_reg_set_ex()
285 return reg_val; in generic_reg_get()
295 return reg_val; in generic_reg_get2()
307 return reg_val; in generic_reg_get3()
321 return reg_val; in generic_reg_get4()
337 return reg_val; in generic_reg_get5()
355 return reg_val; in generic_reg_get6()
375 return reg_val; in generic_reg_get7()
397 return reg_val; in generic_reg_get8()
[all …]
/openbmc/u-boot/arch/arm/mach-sunxi/
H A Ddram_sun4i.c66 u32 reg_val; in mctl_ddr3_reset() local
69 reg_val = readl(&timer->cpu_cfg); in mctl_ddr3_reset()
239 u32 reg_val; in mctl_setup_dram_clock() local
253 reg_val |= CCM_PLL5_CTRL_P(1); in mctl_setup_dram_clock()
387 u32 reg_val; in dramc_scan_readpipe() local
397 reg_val = readl(&dram->csr); in dramc_scan_readpipe()
513 u32 reg_val; in mctl_set_impedance() local
564 u32 reg_val; in dramc_init_helper() local
595 reg_val = DRAM_DCR_TYPE_DDR3; in dramc_init_helper()
618 writel(reg_val, &dram->dcr); in dramc_init_helper()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_vbif.c61 u32 reg_val; in dpu_hw_set_mem_type() local
80 reg_val &= ~(0x7 << bit_off); in dpu_hw_set_mem_type()
89 u32 reg_val; in dpu_hw_set_limit_conf() local
110 u32 reg_val; in dpu_hw_get_limit_conf() local
132 u32 reg_val; in dpu_hw_set_halt_ctrl() local
137 reg_val |= BIT(xin_id); in dpu_hw_set_halt_ctrl()
139 reg_val &= ~BIT(xin_id); in dpu_hw_set_halt_ctrl()
148 u32 reg_val; in dpu_hw_get_halt_ctrl() local
175 reg_val &= ~mask; in dpu_hw_set_qos_remap()
188 u32 reg_val; in dpu_hw_set_write_gather_en() local
[all …]
/openbmc/u-boot/arch/arm/mach-imx/mx7/
H A Dddr.c114 u32 reg_val, field_val; in imx_ddr_size() local
118 reg_val = readl(&ddrc_regs->mstr); in imx_ddr_size()
127 reg_val = readl(&ddrc_regs->addrmap2); in imx_ddr_size()
128 field_val = (reg_val & ADDRMAP2_COL_B2_MASK) >> ADDRMAP2_COL_B2_SHIFT; in imx_ddr_size()
131 field_val = (reg_val & ADDRMAP2_COL_B3_MASK) >> ADDRMAP2_COL_B3_SHIFT; in imx_ddr_size()
134 field_val = (reg_val & ADDRMAP2_COL_B4_MASK) >> ADDRMAP2_COL_B4_SHIFT; in imx_ddr_size()
140 reg_val = readl(&ddrc_regs->addrmap3); in imx_ddr_size()
153 reg_val = readl(&ddrc_regs->addrmap4); in imx_ddr_size()
161 reg_val = readl(&ddrc_regs->addrmap5); in imx_ddr_size()
174 reg_val = readl(&ddrc_regs->addrmap6); in imx_ddr_size()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-mt65xx.c271 u32 reg_val; in mtk_spi_reset() local
275 reg_val |= SPI_CMD_RST; in mtk_spi_reset()
290 u32 reg_val; in mtk_spi_set_hw_cs_timing() local
354 u32 reg_val; in mtk_spi_hw_init() local
463 u32 reg_val; in mtk_spi_set_cs() local
628 u32 reg_val; in mtk_spi_fifo_transfer() local
642 reg_val = 0; in mtk_spi_fifo_transfer()
703 u32 reg_val = 0; in mtk_spi_transfer_one() local
775 &reg_val, in mtk_spi_interrupt()
797 reg_val = 0; in mtk_spi_interrupt()
[all …]
H A Dspi-slave-mt27xx.c100 u32 reg_val; in mtk_spi_slave_disable_dma() local
103 reg_val &= ~RX_DMA_EN; in mtk_spi_slave_disable_dma()
104 reg_val &= ~TX_DMA_EN; in mtk_spi_slave_disable_dma()
110 u32 reg_val; in mtk_spi_slave_disable_xfer() local
135 u32 reg_val; in mtk_spi_slave_prepare_message() local
142 reg_val |= SPIS_CPHA; in mtk_spi_slave_prepare_message()
146 reg_val |= SPIS_CPOL; in mtk_spi_slave_prepare_message()
185 reg_val = 0; in mtk_spi_slave_fifo_transfer()
205 int reg_val, ret; in mtk_spi_slave_dma_transfer() local
246 reg_val = 0; in mtk_spi_slave_dma_transfer()
[all …]
/openbmc/u-boot/drivers/usb/musb-new/
H A Dsunxi.c110 u32 reg_val; in USBC_EnableIdPullUp() local
114 reg_val = USBC_WakeUp_ClearChangeDetect(reg_val); in USBC_EnableIdPullUp()
120 u32 reg_val; in USBC_EnableDpDmPullUp() local
124 reg_val = USBC_WakeUp_ClearChangeDetect(reg_val); in USBC_EnableDpDmPullUp()
130 u32 reg_val; in USBC_ForceIdToLow() local
135 reg_val = USBC_WakeUp_ClearChangeDetect(reg_val); in USBC_ForceIdToLow()
141 u32 reg_val; in USBC_ForceIdToHigh() local
146 reg_val = USBC_WakeUp_ClearChangeDetect(reg_val); in USBC_ForceIdToHigh()
152 u32 reg_val; in USBC_ForceVbusValidToLow() local
157 reg_val = USBC_WakeUp_ClearChangeDetect(reg_val); in USBC_ForceVbusValidToLow()
[all …]
/openbmc/linux/drivers/net/ethernet/allwinner/
H A Dsun4i-emac.c105 unsigned int reg_val; in emac_update_speed() local
109 reg_val &= ~EMAC_MAC_SUPP_100M; in emac_update_speed()
118 unsigned int reg_val; in emac_update_duplex() local
250 u32 reg_val; in emac_dma_done_callback() local
364 unsigned int reg_val; in emac_setup() local
407 unsigned int reg_val; in emac_set_rx_mode() local
427 unsigned int reg_val; in emac_powerup() local
495 unsigned int reg_val; in emac_init_device() local
623 unsigned int reg_val; in emac_rx() local
764 unsigned int reg_val; in emac_interrupt() local
[all …]
/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_onereg.c127 unsigned long reg_val; in kvm_riscv_vcpu_get_reg_config() local
205 reg_val &= ~BIT(i); in kvm_riscv_vcpu_set_reg_config()
281 unsigned long reg_val; in kvm_riscv_vcpu_get_reg_core() local
289 reg_val = cntx->sepc; in kvm_riscv_vcpu_get_reg_core()
314 unsigned long reg_val; in kvm_riscv_vcpu_set_reg_core() local
325 cntx->sepc = reg_val; in kvm_riscv_vcpu_set_reg_core()
467 *reg_val = 0; in riscv_vcpu_get_isa_ext_single()
496 if (reg_val == 1 && in riscv_vcpu_set_isa_ext_single()
499 else if (!reg_val && in riscv_vcpu_set_isa_ext_single()
572 reg_val = 0; in kvm_riscv_vcpu_get_reg_isa_ext()
[all …]
/openbmc/linux/sound/drivers/opl3/
H A Dopl3_synth.c396 unsigned char reg_val; in snd_opl3_play_note() local
420 reg_val = 0x00; in snd_opl3_play_note()
423 reg_val |= OPL3_KEYON_BIT; in snd_opl3_play_note()
444 unsigned char reg_val; in snd_opl3_set_voice() local
470 reg_val = 0x00; in snd_opl3_set_voice()
482 reg_val |= OPL3_KSR; in snd_opl3_set_voice()
543 unsigned char reg_val; in snd_opl3_set_params() local
545 reg_val = 0x00; in snd_opl3_set_params()
551 reg_val = 0x00; in snd_opl3_set_params()
575 reg_val |= OPL3_HIHAT_ON; in snd_opl3_set_params()
[all …]
/openbmc/linux/arch/arm/mach-qcom/
H A Dplatsmp.c84 u32 reg_val; in cortex_a7_release_secondary() local
111 reg_val &= ~CORE_MEM_CLAMP; in cortex_a7_release_secondary()
113 reg_val |= L2DT_SLP; in cortex_a7_release_secondary()
117 reg_val = (reg_val | BIT(17)) & ~CLAMP; in cortex_a7_release_secondary()
124 reg_val |= CORE_PWRD_UP; in cortex_a7_release_secondary()
219 unsigned reg_val; in kpssv2_release_secondary() local
264 reg_val |= 0x3f << BHS_SEG_SHIFT; in kpssv2_release_secondary()
279 reg_val = COREPOR_RST | CLAMP; in kpssv2_release_secondary()
284 reg_val &= ~CLAMP; in kpssv2_release_secondary()
289 reg_val &= ~COREPOR_RST; in kpssv2_release_secondary()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_hdcp.c45 u32 reg_val; member
230 __func__, reg_val); in msm_hdmi_hdcp_irq()
292 reg_val, failure, nack0); in msm_reset_hdcp_ddc_failures()
402 u32 reg_val; in msm_hdmi_hdcp_reauth_work() local
459 u32 reg_val; in msm_hdmi_hdcp_auth_prepare() local
540 u32 reg_val; in msm_hdmi_hdcp_auth_fail() local
558 u32 reg_val; in msm_hdmi_hdcp_auth_done() local
1120 u32 reg_val, data, reg; in msm_hdmi_hdcp_write_ksv_fifo() local
1162 data = reg_val; in msm_hdmi_hdcp_write_ksv_fifo()
1307 u32 reg_val; in msm_hdmi_hdcp_on() local
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-fadump.h83 __be64 reg_val; member
88 u64 reg_val) in opal_fadump_set_regval_regnum() argument
92 regs->gpr[reg_num] = reg_val; in opal_fadump_set_regval_regnum()
98 regs->ctr = reg_val; in opal_fadump_set_regval_regnum()
101 regs->link = reg_val; in opal_fadump_set_regval_regnum()
104 regs->xer = reg_val; in opal_fadump_set_regval_regnum()
107 regs->dar = reg_val; in opal_fadump_set_regval_regnum()
110 regs->dsisr = reg_val; in opal_fadump_set_regval_regnum()
113 regs->nip = reg_val; in opal_fadump_set_regval_regnum()
116 regs->msr = reg_val; in opal_fadump_set_regval_regnum()
[all …]
/openbmc/linux/arch/mips/pci/
H A Dfixup-malta.c70 unsigned char reg_val; in malta_piix_func0_fixup() local
85 if (reg_val & PIIX4_FUNC0_PIRQRC_IRQ_ROUTING_DISABLE) in malta_piix_func0_fixup()
88 pci_irq[PCIA+i] = piixirqmap[reg_val & in malta_piix_func0_fixup()
98 pci_read_config_byte(pdev, PIIX4_FUNC0_TOM, &reg_val); in malta_piix_func0_fixup()
99 pci_write_config_byte(pdev, PIIX4_FUNC0_TOM, reg_val | in malta_piix_func0_fixup()
109 pci_read_config_byte(pdev, PIIX4_FUNC0_SERIRQC, &reg_val); in malta_piix_func0_fixup()
124 unsigned char reg_val; in malta_piix_func1_fixup() local
132 &reg_val); in malta_piix_func1_fixup()
134 reg_val|PIIX4_FUNC1_IDETIM_PRIMARY_HI_IDE_DECODE_EN); in malta_piix_func1_fixup()
136 &reg_val); in malta_piix_func1_fixup()
[all …]
/openbmc/linux/drivers/ata/
H A Dahci_sunxi.c55 u32 reg_val; in sunxi_clrbits() local
57 reg_val = readl(reg); in sunxi_clrbits()
59 writel(reg_val, reg); in sunxi_clrbits()
64 u32 reg_val; in sunxi_setbits() local
66 reg_val = readl(reg); in sunxi_setbits()
67 reg_val |= set_val; in sunxi_setbits()
68 writel(reg_val, reg); in sunxi_setbits()
73 u32 reg_val; in sunxi_clrsetbits() local
75 reg_val = readl(reg); in sunxi_clrsetbits()
77 reg_val |= set_val; in sunxi_clrsetbits()
[all …]
/openbmc/u-boot/drivers/net/phy/
H A Dmscc.c287 u16 reg_val; in vsc8584_cmd() local
1010 u16 reg_val; in mscc_vsc8531_vsc8541_init_scripts() local
1188 reg_val = bitfield_replace(reg_val, MAC_IF_SELECTION_POS, in vsc8531_vsc8541_mac_config()
1199 reg_val = bitfield_replace(reg_val, RX_CLK_OUT_POS, in vsc8531_vsc8541_mac_config()
1214 u16 reg_val; in vsc8531_config() local
1258 reg_val = bitfield_replace(reg_val, EDGE_RATE_CNTL_POS, in vsc8531_config()
1274 u16 reg_val; in vsc8541_config() local
1318 reg_val = bitfield_replace(reg_val, EDGE_RATE_CNTL_POS, in vsc8541_config()
1336 u16 reg_val; in vsc8584_config_init() local
1360 reg_val); in vsc8584_config_init()
[all …]
/openbmc/linux/drivers/hwmon/
H A Dltc2992.c410 int reg_val; in ltc2992_get_voltage() local
416 reg_val = reg_val >> 4; in ltc2992_get_voltage()
432 int reg_val; in ltc2992_read_gpio_alarm() local
483 int reg_val; in ltc2992_read_in_alarm() local
537 int reg_val; in ltc2992_get_current() local
543 reg_val = reg_val >> 4; in ltc2992_get_current()
551 u32 reg_val; in ltc2992_set_current() local
554 reg_val = reg_val << 4; in ltc2992_set_current()
561 int reg_val; in ltc2992_read_curr_alarm() local
612 int reg_val; in ltc2992_get_power() local
[all …]

12345678910>>...17