Home
last modified time | relevance | path

Searched refs:tmp_reg (Results 1 – 12 of 12) sorted by relevance

/drivers/net/ethernet/freescale/fman/
Dfman_keygen.c542 u32 tmp_reg; in keygen_scheme_setup() local
559 tmp_reg = 0; in keygen_scheme_setup()
563 tmp_reg |= KG_SCH_MODE_EN; in keygen_scheme_setup()
565 tmp_reg |= ENQUEUE_KG_DFLT_NIA; in keygen_scheme_setup()
568 scheme_regs.kgse_mode = tmp_reg; in keygen_scheme_setup()
584 tmp_reg = 0; in keygen_scheme_setup()
585 tmp_reg |= (KG_SCH_DEF_USE_KGSE_DV_0 << in keygen_scheme_setup()
587 tmp_reg |= (KG_SCH_DEF_USE_KGSE_DV_1 << in keygen_scheme_setup()
589 scheme_regs.kgse_ekdv = tmp_reg; in keygen_scheme_setup()
597 tmp_reg = 0; in keygen_scheme_setup()
[all …]
Dfman.c710 u32 tmp_reg; in dma_init() local
715 tmp_reg = (DMA_STATUS_BUS_ERR | DMA_STATUS_READ_ECC | in dma_init()
717 iowrite32be(ioread32be(&dma_rg->fmdmsr) | tmp_reg, &dma_rg->fmdmsr); in dma_init()
720 tmp_reg = 0; in dma_init()
721 tmp_reg |= cfg->dma_cache_override << DMA_MODE_CACHE_OR_SHIFT; in dma_init()
723 tmp_reg |= DMA_MODE_BER; in dma_init()
727 tmp_reg |= DMA_MODE_ECC; in dma_init()
729 tmp_reg |= (DMA_MODE_AXI_DBG_MASK & in dma_init()
733 tmp_reg |= (((cfg->dma_cam_num_of_entries / DMA_CAM_UNITS) - 1) & in dma_init()
735 tmp_reg |= DMA_MODE_SECURE_PROT; in dma_init()
[all …]
/drivers/usb/chipidea/
Ddebug.c307 u32 tmp_reg; in ci_registers_show() local
313 tmp_reg = hw_read_intr_enable(ci); in ci_registers_show()
314 seq_printf(s, "USBINTR reg: %08x\n", tmp_reg); in ci_registers_show()
316 tmp_reg = hw_read_intr_status(ci); in ci_registers_show()
317 seq_printf(s, "USBSTS reg: %08x\n", tmp_reg); in ci_registers_show()
319 tmp_reg = hw_read(ci, OP_USBMODE, ~0); in ci_registers_show()
320 seq_printf(s, "USBMODE reg: %08x\n", tmp_reg); in ci_registers_show()
322 tmp_reg = hw_read(ci, OP_USBCMD, ~0); in ci_registers_show()
323 seq_printf(s, "USBCMD reg: %08x\n", tmp_reg); in ci_registers_show()
325 tmp_reg = hw_read(ci, OP_PORTSC, ~0); in ci_registers_show()
[all …]
/drivers/usb/gadget/udc/
Dfsl_udc_core.c2020 u32 tmp_reg; in fsl_proc_read() local
2037 tmp_reg = fsl_readl(&dr_regs->usbcmd); in fsl_proc_read()
2042 (tmp_reg & USB_CMD_SUTW) ? 1 : 0, in fsl_proc_read()
2043 (tmp_reg & USB_CMD_RUN_STOP) ? "Run" : "Stop"); in fsl_proc_read()
2045 tmp_reg = fsl_readl(&dr_regs->usbsts); in fsl_proc_read()
2050 (tmp_reg & USB_STS_SUSPEND) ? 1 : 0, in fsl_proc_read()
2051 (tmp_reg & USB_STS_RESET) ? 1 : 0, in fsl_proc_read()
2052 (tmp_reg & USB_STS_SYS_ERR) ? "Err" : "Normal", in fsl_proc_read()
2053 (tmp_reg & USB_STS_ERR) ? "Err detected" : "No err"); in fsl_proc_read()
2055 tmp_reg = fsl_readl(&dr_regs->usbintr); in fsl_proc_read()
[all …]
Dnet2280.c1951 u32 tmp_reg; in defect7374_disable_data_eps() local
1964 tmp_reg = readl(&dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1965 writel(((tmp_reg & ~0x1f) | ep_sel), &dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1972 tmp_reg = readl(&dev->plregs->pl_ep_cfg_4); in defect7374_disable_data_eps()
1973 tmp_reg &= ~BIT(NON_CTRL_IN_TOLERATE_BAD_DIR); in defect7374_disable_data_eps()
1974 writel(tmp_reg, &dev->plregs->pl_ep_cfg_4); in defect7374_disable_data_eps()
1975 tmp_reg = readl(&dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1976 tmp_reg |= BIT(EP_INITIALIZED); in defect7374_disable_data_eps()
1977 writel(tmp_reg, &dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1983 u32 tmp = 0, tmp_reg; in defect7374_enable_data_eps_zero() local
[all …]
/drivers/gpu/drm/mediatek/
Dmtk_dsi.c386 u32 tmp_reg; in mtk_dsi_rxtx_control() local
390 tmp_reg = 1 << 2; in mtk_dsi_rxtx_control()
393 tmp_reg = 3 << 2; in mtk_dsi_rxtx_control()
396 tmp_reg = 7 << 2; in mtk_dsi_rxtx_control()
399 tmp_reg = 0xf << 2; in mtk_dsi_rxtx_control()
402 tmp_reg = 0xf << 2; in mtk_dsi_rxtx_control()
407 tmp_reg |= HSTX_CKLP_EN; in mtk_dsi_rxtx_control()
410 tmp_reg |= DIS_EOT; in mtk_dsi_rxtx_control()
412 writel(tmp_reg, dsi->regs + DSI_TXRX_CTRL); in mtk_dsi_rxtx_control()
418 u32 tmp_reg; in mtk_dsi_ps_control() local
[all …]
/drivers/net/ethernet/netronome/nfp/bpf/
Djit.c651 static swreg ur_load_imm_any(struct nfp_prog *nfp_prog, u32 imm, swreg tmp_reg) in ur_load_imm_any() argument
656 wrp_immed(nfp_prog, tmp_reg, imm); in ur_load_imm_any()
657 return tmp_reg; in ur_load_imm_any()
664 static swreg re_load_imm_any(struct nfp_prog *nfp_prog, u32 imm, swreg tmp_reg) in re_load_imm_any() argument
669 wrp_immed(nfp_prog, tmp_reg, imm); in re_load_imm_any()
670 return tmp_reg; in re_load_imm_any()
952 swreg tmp_reg; in construct_data_ind_ld() local
955 tmp_reg = ur_load_imm_any(nfp_prog, offset, imm_b(nfp_prog)); in construct_data_ind_ld()
956 emit_alu(nfp_prog, imm_both(nfp_prog), reg_a(src), ALU_OP_ADD, tmp_reg); in construct_data_ind_ld()
973 swreg tmp_reg; in construct_data_ld() local
[all …]
/drivers/media/usb/cpia2/
Dcpia2_core.c617 u8 tmp_reg; in cpia2_reset_camera() local
730 tmp_reg = cam->params.vp_params.system_ctrl; in cpia2_reset_camera()
731 cmd.buffer.registers[0].value = tmp_reg & in cpia2_reset_camera()
732 (tmp_reg & (CPIA2_VP_SYSTEMCTRL_HK_CONTROL ^ 0xFF)); in cpia2_reset_camera()
795 tmp_reg = cam->params.vc_params.vc_control | in cpia2_reset_camera()
798 tmp_reg = cam->params.vc_params.vc_control & in cpia2_reset_camera()
801 cpia2_do_command(cam, CPIA2_CMD_SET_VC_CONTROL, TRANSFER_WRITE,tmp_reg); in cpia2_reset_camera()
823 tmp_reg = cam->params.vc_params.pw_control; in cpia2_reset_camera()
824 tmp_reg &= ~CPIA2_VC_PW_CTRL_VC_RESET_N; in cpia2_reset_camera()
826 cpia2_do_command(cam, CPIA2_CMD_SET_PW_CONTROL, TRANSFER_WRITE,tmp_reg); in cpia2_reset_camera()
[all …]
/drivers/net/ethernet/dec/tulip/
Ddmfe.c1905 int dmfe_mode, tmp_reg; in dmfe_parse_srom() local
1918 for (tmp_reg = 1; tmp_reg < 0x10; tmp_reg <<= 1) { in dmfe_parse_srom()
1919 switch( db->NIC_capability & tmp_reg ) { in dmfe_parse_srom()
1978 tmp_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 3, db->chip_id); in dmfe_parse_srom()
1979 if ( ( tmp_reg & 0xfff0 ) == 0xb900 ) { in dmfe_parse_srom()
1985 dmfe_program_DM9801(db, tmp_reg); in dmfe_parse_srom()
/drivers/net/ethernet/altera/
Daltera_tse_main.c1096 unsigned int tmp_reg = 0; in init_sgmii_pcs() local
1130 tmp_reg = sgmii_pcs_read(priv, MII_BMCR); in init_sgmii_pcs()
1131 tmp_reg |= (BMCR_SPEED1000 | BMCR_FULLDPLX | BMCR_ANENABLE); in init_sgmii_pcs()
1132 sgmii_pcs_write(priv, MII_BMCR, tmp_reg); in init_sgmii_pcs()
1135 tmp_reg |= BMCR_RESET; in init_sgmii_pcs()
1136 sgmii_pcs_write(priv, MII_BMCR, tmp_reg); in init_sgmii_pcs()
/drivers/net/wireless/ath/ath9k/
Dar5008_phy.c167 u32 tmp_reg; in ar5008_hw_force_bias() local
184 tmp_reg = ath9k_hw_reverse_bits(new_bias, 3); in ar5008_hw_force_bias()
190 ar5008_hw_phy_modify_rx_buffer(ah->analogBank6Data, tmp_reg, 3, 181, 3); in ar5008_hw_force_bias()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c10523 u32 addr, tmp_reg; in bnx2x_prev_unload_undi_inc() local
10530 tmp_reg = REG_RD(bp, addr); in bnx2x_prev_unload_undi_inc()
10531 rcq = BNX2X_PREV_UNDI_RCQ(tmp_reg) + inc; in bnx2x_prev_unload_undi_inc()
10532 bd = BNX2X_PREV_UNDI_BD(tmp_reg) + inc; in bnx2x_prev_unload_undi_inc()
10534 tmp_reg = BNX2X_PREV_UNDI_PROD(rcq, bd); in bnx2x_prev_unload_undi_inc()
10535 REG_WR(bp, addr, tmp_reg); in bnx2x_prev_unload_undi_inc()
10757 u32 reset_reg, tmp_reg = 0, rc; in bnx2x_prev_unload_common() local
10800 tmp_reg = REG_RD(bp, BRB1_REG_NUM_OF_FULL_BLOCKS); in bnx2x_prev_unload_common()
10802 u32 prev_brb = tmp_reg; in bnx2x_prev_unload_common()
10804 tmp_reg = REG_RD(bp, BRB1_REG_NUM_OF_FULL_BLOCKS); in bnx2x_prev_unload_common()
[all …]