Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fman/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/chipidea/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c2023 u32 tmp_reg; in fsl_proc_read() local
2040 tmp_reg = fsl_readl(&dr_regs->usbcmd); in fsl_proc_read()
2045 (tmp_reg & USB_CMD_SUTW) ? 1 : 0, in fsl_proc_read()
2046 (tmp_reg & USB_CMD_RUN_STOP) ? "Run" : "Stop"); in fsl_proc_read()
2048 tmp_reg = fsl_readl(&dr_regs->usbsts); in fsl_proc_read()
2053 (tmp_reg & USB_STS_SUSPEND) ? 1 : 0, in fsl_proc_read()
2054 (tmp_reg & USB_STS_RESET) ? 1 : 0, in fsl_proc_read()
2055 (tmp_reg & USB_STS_SYS_ERR) ? "Err" : "Normal", in fsl_proc_read()
2056 (tmp_reg & USB_STS_ERR) ? "Err detected" : "No err"); in fsl_proc_read()
2058 tmp_reg = fsl_readl(&dr_regs->usbintr); in fsl_proc_read()
[all …]
H A Dnet2280.c1949 u32 tmp_reg; in defect7374_disable_data_eps() local
1962 tmp_reg = readl(&dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1963 writel(((tmp_reg & ~0x1f) | ep_sel), &dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1970 tmp_reg = readl(&dev->plregs->pl_ep_cfg_4); in defect7374_disable_data_eps()
1971 tmp_reg &= ~BIT(NON_CTRL_IN_TOLERATE_BAD_DIR); in defect7374_disable_data_eps()
1972 writel(tmp_reg, &dev->plregs->pl_ep_cfg_4); in defect7374_disable_data_eps()
1973 tmp_reg = readl(&dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1974 tmp_reg |= BIT(EP_INITIALIZED); in defect7374_disable_data_eps()
1975 writel(tmp_reg, &dev->plregs->pl_ep_ctrl); in defect7374_disable_data_eps()
1981 u32 tmp = 0, tmp_reg; in defect7374_enable_data_eps_zero() local
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/mediatek/
H A Dmtk_dsi.c385 u32 tmp_reg; in mtk_dsi_rxtx_control() local
389 tmp_reg = 1 << 2; in mtk_dsi_rxtx_control()
392 tmp_reg = 3 << 2; in mtk_dsi_rxtx_control()
395 tmp_reg = 7 << 2; in mtk_dsi_rxtx_control()
398 tmp_reg = 0xf << 2; in mtk_dsi_rxtx_control()
401 tmp_reg = 0xf << 2; in mtk_dsi_rxtx_control()
405 tmp_reg |= (dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) << 6; in mtk_dsi_rxtx_control()
406 tmp_reg |= (dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET) >> 3; in mtk_dsi_rxtx_control()
408 writel(tmp_reg, dsi->regs + DSI_TXRX_CTRL); in mtk_dsi_rxtx_control()
414 u32 tmp_reg; in mtk_dsi_ps_control() local
[all …]
/OK3568_Linux_fs/u-boot/board/keymile/km83xx/
H A Dkm83xx.c246 u8 tmp_reg; in last_stage_init() local
249 tmp_reg = in_8(&base->res1[0]) | 0x10; /* DIRECT3 register */ in last_stage_init()
250 out_8(&base->res1[0], tmp_reg); /* GP28 as output */ in last_stage_init()
251 tmp_reg = in_8(&base->gprt3) | 0x10; /* GP28 to high */ in last_stage_init()
252 out_8(&base->gprt3, tmp_reg); in last_stage_init()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/halrf/rtl8723b/
H A Dhalrf_8723b_win.c1967 u8 tmp_reg; in _phy_lc_calibrate_8723b() local
1971 tmp_reg = odm_read_1byte(p_dm, 0xd03); in _phy_lc_calibrate_8723b()
1973 if ((tmp_reg & 0x70) != 0) /* Deal with contisuous TX case */ in _phy_lc_calibrate_8723b()
1974 odm_write_1byte(p_dm, 0xd03, tmp_reg & 0x8F); /* disable all continuous TX */ in _phy_lc_calibrate_8723b()
1978 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8723b()
2007 if ((tmp_reg & 0x70) != 0) { /* Deal with contisuous TX case */ in _phy_lc_calibrate_8723b()
2009 odm_write_1byte(p_dm, 0xd03, tmp_reg); in _phy_lc_calibrate_8723b()
2256 u32 tmp_reg, index, offset, apkbound;
2560 tmp_reg = APK_RF_init_value[path][index];
2563 BB_offset = (tmp_reg & 0xF0000) >> 16;
[all …]
H A Dhalrf_8723b_ap.c1730 u8 tmp_reg; in _phy_lc_calibrate_8723b() local
1734 tmp_reg = odm_read_1byte(p_dm, 0xd03); in _phy_lc_calibrate_8723b()
1736 if ((tmp_reg & 0x70) != 0) /*Deal with contisuous TX case*/ in _phy_lc_calibrate_8723b()
1737 odm_write_1byte(p_dm, 0xd03, tmp_reg & 0x8F); /*disable all continuous TX*/ in _phy_lc_calibrate_8723b()
1741 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8723b()
1768 if ((tmp_reg & 0x70) != 0) { /*Deal with contisuous TX case */ in _phy_lc_calibrate_8723b()
1770 odm_write_1byte(p_dm, 0xd03, tmp_reg); in _phy_lc_calibrate_8723b()
H A Dhalrf_8723b_ce.c1900 u8 tmp_reg; in _phy_lc_calibrate_8723b() local
1904 tmp_reg = odm_read_1byte(p_dm, 0xd03); in _phy_lc_calibrate_8723b()
1906 if ((tmp_reg & 0x70) != 0) /* Deal with contisuous TX case */ in _phy_lc_calibrate_8723b()
1907 odm_write_1byte(p_dm, 0xd03, tmp_reg & 0x8F); /* disable all continuous TX */ in _phy_lc_calibrate_8723b()
1911 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8723b()
1944 if ((tmp_reg & 0x70) != 0) { /* Deal with contisuous TX case */ in _phy_lc_calibrate_8723b()
1946 odm_write_1byte(p_dm, 0xd03, tmp_reg); in _phy_lc_calibrate_8723b()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/bpf/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/powerpc/net/
H A Dbpf_jit_comp64.c962 int tmp_reg = b2p[TMP_REG_1]; in bpf_jit_build_body() local
964 EMIT(PPC_RAW_AND(tmp_reg, dst_reg, src_reg)); in bpf_jit_build_body()
965 EMIT(PPC_RAW_RLWINM_DOT(tmp_reg, tmp_reg, 0, 0, in bpf_jit_build_body()
1044 int tmp_reg = b2p[TMP_REG_1]; in bpf_jit_build_body() local
1046 PPC_LI32(tmp_reg, imm); in bpf_jit_build_body()
1048 EMIT(PPC_RAW_AND_DOT(tmp_reg, dst_reg, in bpf_jit_build_body()
1049 tmp_reg)); in bpf_jit_build_body()
1051 EMIT(PPC_RAW_AND(tmp_reg, dst_reg, in bpf_jit_build_body()
1052 tmp_reg)); in bpf_jit_build_body()
1053 EMIT(PPC_RAW_RLWINM_DOT(tmp_reg, tmp_reg, in bpf_jit_build_body()
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dtlv320aic32x4.c971 u32 tmp_reg; in aic32x4_component_probe() local
999 tmp_reg = (aic32x4->power_cfg & AIC32X4_PWR_AIC32X4_LDO_ENABLE) ? in aic32x4_component_probe()
1001 snd_soc_component_write(component, AIC32X4_LDOCTL, tmp_reg); in aic32x4_component_probe()
1003 tmp_reg = snd_soc_component_read(component, AIC32X4_CMMODE); in aic32x4_component_probe()
1005 tmp_reg |= AIC32X4_LDOIN_18_36; in aic32x4_component_probe()
1007 tmp_reg |= AIC32X4_LDOIN2HP; in aic32x4_component_probe()
1008 snd_soc_component_write(component, AIC32X4_CMMODE, tmp_reg); in aic32x4_component_probe()
1029 tmp_reg = snd_soc_component_read(component, AIC32X4_ADCSETUP); in aic32x4_component_probe()
1030 snd_soc_component_write(component, AIC32X4_ADCSETUP, tmp_reg | in aic32x4_component_probe()
1032 snd_soc_component_write(component, AIC32X4_ADCSETUP, tmp_reg); in aic32x4_component_probe()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c918 struct ttm_resource tmp_reg; in nouveau_bo_move_flipd() local
924 tmp_reg = *new_reg; in nouveau_bo_move_flipd()
925 tmp_reg.mm_node = NULL; in nouveau_bo_move_flipd()
926 ret = ttm_bo_mem_space(bo, &placement, &tmp_reg, &ctx); in nouveau_bo_move_flipd()
934 ret = nouveau_ttm_tt_bind(bo->bdev, bo->ttm, &tmp_reg); in nouveau_bo_move_flipd()
938 ret = nouveau_bo_move_m2mf(bo, true, intr, no_wait_gpu, &tmp_reg); in nouveau_bo_move_flipd()
944 ttm_resource_free(bo, &tmp_reg); in nouveau_bo_move_flipd()
960 struct ttm_resource tmp_reg; in nouveau_bo_move_flips() local
966 tmp_reg = *new_reg; in nouveau_bo_move_flips()
967 tmp_reg.mm_node = NULL; in nouveau_bo_move_flips()
[all …]
/OK3568_Linux_fs/u-boot/drivers/qe/
H A Duec_phy.c132 u32 tmp_reg; in uec_write_phy_reg() local
152 tmp_reg = ((u32) mii_id << MIIMADD_PHY_ADDRESS_SHIFT) | mii_reg; in uec_write_phy_reg()
153 out_be32 (&ug_regs->miimadd, tmp_reg); in uec_write_phy_reg()
171 u32 tmp_reg; in uec_read_phy_reg() local
190 tmp_reg = ((u32) mii_id << MIIMADD_PHY_ADDRESS_SHIFT) | mii_reg; in uec_read_phy_reg()
191 out_be32 (&ug_regs->miimadd, tmp_reg); in uec_read_phy_reg()
/OK3568_Linux_fs/kernel/drivers/media/usb/cpia2/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/dec/tulip/
H A 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()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/halrf/rtl8822c/
H A Dhalrf_dpk_8822c.c1150 u16 tmp_reg; in _dpk_coef_write_8822c() local
1158 tmp_reg = 0x1b0c + addr * 4; in _dpk_coef_write_8822c()
1160 tmp_reg = 0x1b64 + addr * 4; in _dpk_coef_write_8822c()
1169 odm_set_bb_reg(dm, tmp_reg, MASKDWORD, coef); in _dpk_coef_write_8822c()
1173 "[DPK][coef_w] S%d 0x%x = 0x%08x\n", path, tmp_reg, coef); in _dpk_coef_write_8822c()
1259 u16 tmp_reg; in _dpk_coef_default_8822c() local
1267 tmp_reg = 0x1b0c + addr * 4; in _dpk_coef_default_8822c()
1269 tmp_reg = 0x1b64 + addr * 4; in _dpk_coef_default_8822c()
1275 odm_set_bb_reg(dm, tmp_reg, MASKDWORD, coef); in _dpk_coef_default_8822c()
1277 "[DPK][Coef write] 0x%x = 0x%x\n", tmp_reg, coef); in _dpk_coef_default_8822c()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/hal/phydm/halrf/rtl8188e/
H A Dhalrf_8188e_ap.c999 u8 tmp_reg; in _phy_lc_calibrate_8188e() local
1003 tmp_reg = odm_read_1byte(dm, 0xd03); in _phy_lc_calibrate_8188e()
1005 if ((tmp_reg & 0x70) != 0) /* Deal with contisuous TX case */ in _phy_lc_calibrate_8188e()
1010 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8188e()
1038 if ((tmp_reg & 0x70) != 0) { /* Deal with contisuous TX case */ in _phy_lc_calibrate_8188e()
H A Dhalrf_8188e_ce.c1247 u8 tmp_reg; in _phy_lc_calibrate_8188e() local
1251 tmp_reg = odm_read_1byte(dm, 0xd03); in _phy_lc_calibrate_8188e()
1253 if ((tmp_reg & 0x70) != 0) /* Deal with contisuous TX case */ in _phy_lc_calibrate_8188e()
1254 odm_write_1byte(dm, 0xd03, tmp_reg & 0x8F); /* disable all continuous TX */ in _phy_lc_calibrate_8188e()
1258 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8188e()
1281 if ((tmp_reg & 0x70) != 0) { /* Deal with contisuous TX case */ in _phy_lc_calibrate_8188e()
1283 odm_write_1byte(dm, 0xd03, tmp_reg); in _phy_lc_calibrate_8188e()
H A Dhalrf_8188e_win.c1402 u8 tmp_reg; in _phy_lc_calibrate_8188e() local
1406 tmp_reg = odm_read_1byte(dm, 0xd03); in _phy_lc_calibrate_8188e()
1408 if ((tmp_reg & 0x70) != 0) /* Deal with contisuous TX case */ in _phy_lc_calibrate_8188e()
1409 odm_write_1byte(dm, 0xd03, tmp_reg & 0x8F); /* disable all continuous TX */ in _phy_lc_calibrate_8188e()
1413 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8188e()
1453 if ((tmp_reg & 0x70) != 0) { /* Deal with contisuous TX case */ in _phy_lc_calibrate_8188e()
1455 odm_write_1byte(dm, 0xd03, tmp_reg); in _phy_lc_calibrate_8188e()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/altera/
H A 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()
/OK3568_Linux_fs/kernel/arch/mips/net/
H A Debpf_jit.c838 int tmp_reg = MIPS_R_AT; in build_one_insn() local
841 tmp_reg = dst; in build_one_insn()
844 emit_instr(ctx, daddu, tmp_reg, src, MIPS_R_ZERO); in build_one_insn()
845 emit_instr(ctx, dinsu, tmp_reg, MIPS_R_ZERO, 32, 32); in build_one_insn()
930 int tmp_reg = MIPS_R_AT; in build_one_insn() local
933 tmp_reg = dst; in build_one_insn()
937 emit_instr(ctx, sll, tmp_reg, src, 0); in build_one_insn()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/hal/phydm/halrf/rtl8703b/
H A Dhalrf_8703b.c1549 u8 tmp_reg; in _phy_lc_calibrate_8703b() local
1553 tmp_reg = odm_read_1byte(dm, 0xd03); in _phy_lc_calibrate_8703b()
1555 if ((tmp_reg & 0x70) != 0) /*Deal with contisuous TX case*/ in _phy_lc_calibrate_8703b()
1556 odm_write_1byte(dm, 0xd03, tmp_reg & 0x8F); /*disable all continuous TX*/ in _phy_lc_calibrate_8703b()
1579 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8703b()
1581 odm_write_1byte(dm, 0xd03, tmp_reg); in _phy_lc_calibrate_8703b()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/hal/phydm/halrf/rtl8188f/
H A Dhalrf_8188f.c1847 u8 tmp_reg; in _phy_lc_calibrate_8188f() local
1851 tmp_reg = odm_read_1byte(dm, 0xd03); in _phy_lc_calibrate_8188f()
1853 if ((tmp_reg & 0x70) != 0) /*Deal with contisuous TX case*/ in _phy_lc_calibrate_8188f()
1854 odm_write_1byte(dm, 0xd03, tmp_reg & 0x8F); /*disable all continuous TX*/ in _phy_lc_calibrate_8188f()
1874 if ((tmp_reg & 0x70) != 0) { in _phy_lc_calibrate_8188f()
1876 odm_write_1byte(dm, 0xd03, tmp_reg); in _phy_lc_calibrate_8188f()

123