/u-boot/board/freescale/common/ |
A D | dcu_sii9022a.c | 64 u8 temp; in dcu_set_dvi_encoder() local 87 temp |= TPI_PWR_STAT_D0; in dcu_set_dvi_encoder() 108 temp = (u8)(temp1 >> 8); in dcu_set_dvi_encoder() 116 temp = (u8)(temp1 >> 8); in dcu_set_dvi_encoder() 124 temp = (u8)(temp2 >> 8); in dcu_set_dvi_encoder() 133 temp = (u8)(temp1 >> 8); in dcu_set_dvi_encoder() 171 temp |= TPI_PWR_STAT_D0; in dcu_set_dvi_encoder() 192 temp = (u8)(temp1 >> 8); in dcu_set_dvi_encoder() 200 temp = (u8)(temp1 >> 8); in dcu_set_dvi_encoder() 208 temp = (u8)(temp2 >> 8); in dcu_set_dvi_encoder() [all …]
|
A D | diu_ch7301.c | 53 u8 temp; in diu_set_dvi_encoder() local 55 temp = I2C_DVI_TEST_PATTERN_VAL; in diu_set_dvi_encoder() 72 temp = I2C_DVI_INPUT_DATA_FORMAT_VAL; in diu_set_dvi_encoder() 80 temp = I2C_DVI_SYNC_POLARITY_VAL; in diu_set_dvi_encoder() 128 temp = I2C_DVI_POWER_MGMT_VAL; in diu_set_dvi_encoder() 136 &temp, 1); in diu_set_dvi_encoder() 143 1, &temp, 1); in diu_set_dvi_encoder() 150 temp = I2C_DVI_SYNC_POLARITY_VAL; in diu_set_dvi_encoder() 152 &temp, 1); in diu_set_dvi_encoder() 205 temp = I2C_DVI_POWER_MGMT_VAL; in diu_set_dvi_encoder() [all …]
|
/u-boot/arch/m68k/lib/ |
A D | cache.c | 53 u32 temp = 0; in icache_disable() local 59 __asm__ __volatile__("movec %0, %%acr2"::"r"(temp)); in icache_disable() 60 __asm__ __volatile__("movec %0, %%acr3"::"r"(temp)); in icache_disable() 73 u32 temp; in icache_invalid() local 75 temp = CONFIG_SYS_ICACHE_INV; in icache_invalid() 77 temp |= CONFIG_SYS_CACHE_ICACR; in icache_invalid() 105 u32 temp = 0; in dcache_disable() local 125 u32 temp; in dcache_invalid() local 127 temp = CONFIG_SYS_DCACHE_INV; in dcache_invalid() 129 temp |= CONFIG_SYS_CACHE_DCACR; in dcache_invalid() [all …]
|
/u-boot/arch/x86/cpu/quark/ |
A D | mrc_util.c | 185 temp = 0x00; in set_rcvn() 190 temp |= msk; in set_rcvn() 195 temp |= msk; in set_rcvn() 231 temp &= 0xf; in get_rcvn() 245 temp >>= 24; in get_rcvn() 379 temp = 0x00; in set_wdqs() 425 temp &= 0xf; in get_wdqs() 439 temp >>= 16; in get_wdqs() 563 temp >>= 8; in get_wdq() 593 temp <<= 8; in set_wcmd() [all …]
|
/u-boot/arch/m68k/cpu/mcf5445x/ |
A D | speed.c | 94 temp = in_be32(&pll->pcr); in setup_5441x_clocks() 95 temp &= ~0x3f; in setup_5441x_clocks() 96 temp |= 5; in setup_5441x_clocks() 97 out_be32(&pll->pcr, temp); in setup_5441x_clocks() 99 temp = in_be32(&pll->pdr); in setup_5441x_clocks() 100 temp &= ~0x001f0000; in setup_5441x_clocks() 101 temp |= 0x00040000; in setup_5441x_clocks() 102 out_be32(&pll->pdr, temp); in setup_5441x_clocks() 126 gd->arch.sdhc_clk = vco / temp; in setup_5441x_clocks() 176 temp = fbtemp - 1; in setup_5445x_clocks() [all …]
|
/u-boot/arch/arm/include/asm/proc-armv/ |
A D | system.h | 72 unsigned long temp; \ 77 : "=r" (x), "=r" (temp) \ 87 unsigned long temp; \ 92 : "=r" (temp) \ 102 unsigned long temp; \ 107 : "=r" (temp) \ 117 unsigned long temp; \ 122 : "=r" (temp) \ 132 unsigned long temp; \ 137 : "=r" (temp) \
|
/u-boot/arch/arm/include/asm/ |
A D | utils.h | 13 u32 temp = n; in log_2_n_round_up() local 15 while (temp) { in log_2_n_round_up() 17 temp >>= 1; in log_2_n_round_up() 29 u32 temp = n; in log_2_n_round_down() local 31 while (temp) { in log_2_n_round_down() 33 temp >>= 1; in log_2_n_round_down()
|
/u-boot/arch/arm/mach-kirkwood/ |
A D | cpu.c | 241 volatile u32 temp; in arch_misc_init() local 244 temp = readfr_extra_feature_reg(); in arch_misc_init() 246 writefr_extra_feature_reg(temp); in arch_misc_init() 248 temp = readfr_extra_feature_reg(); in arch_misc_init() 250 writefr_extra_feature_reg(temp); in arch_misc_init() 253 temp = readfr_extra_feature_reg(); in arch_misc_init() 255 temp |= (1 << 24); in arch_misc_init() 257 temp |= (1 << 22); in arch_misc_init() 258 writefr_extra_feature_reg(temp); in arch_misc_init() 261 temp = get_cr(); in arch_misc_init() [all …]
|
/u-boot/board/gdsys/p1022/ |
A D | diu.c | 52 unsigned long speed_ccb, temp; in diu_set_pixel_clock() local 56 temp = 1000000000 / pixclock; in diu_set_pixel_clock() 57 temp *= 1000; in diu_set_pixel_clock() 58 pixval = speed_ccb / temp; in diu_set_pixel_clock() 62 temp = in_be32(&gur->clkdvdr) & 0x2000FFFF; in diu_set_pixel_clock() 63 out_be32(&gur->clkdvdr, temp); /* turn off clock */ in diu_set_pixel_clock() 64 out_be32(&gur->clkdvdr, temp | 0x80000000 | ((pixval & 0x1F) << 16)); in diu_set_pixel_clock()
|
/u-boot/drivers/phy/ |
A D | meson-axg-mipi-dphy.c | 209 unsigned long temp; in phy_meson_axg_mipi_dphy_power_on() local 233 temp = temp * 8 * 10; in phy_meson_axg_mipi_dphy_power_on() 236 DIV_ROUND_UP(priv->config.clk_trail, temp) | in phy_meson_axg_mipi_dphy_power_on() 238 priv->config.hs_trail, temp) << 8) | in phy_meson_axg_mipi_dphy_power_on() 242 DIV_ROUND_UP(priv->config.clk_pre, temp)); in phy_meson_axg_mipi_dphy_power_on() 245 DIV_ROUND_UP(priv->config.hs_exit, temp) | in phy_meson_axg_mipi_dphy_power_on() 246 (DIV_ROUND_UP(priv->config.hs_trail, temp) << 8) | in phy_meson_axg_mipi_dphy_power_on() 251 DIV_ROUND_UP(priv->config.lpx, temp) | in phy_meson_axg_mipi_dphy_power_on() 252 (DIV_ROUND_UP(priv->config.ta_sure, temp) << 8) | in phy_meson_axg_mipi_dphy_power_on() 253 (DIV_ROUND_UP(priv->config.ta_go, temp) << 16) | in phy_meson_axg_mipi_dphy_power_on() [all …]
|
/u-boot/drivers/video/nexell/soc/ |
A D | s5pxx18_soc_dpc.c | 507 temp = (u32)(temp | (delay_rgb_pvd << delayrgb_pos)); in nx_dpc_set_delay() 556 temp = (u32)(temp | in nx_dpc_set_dither() 635 temp = (u32)(temp | (ycorder << ycorder_pos)); in nx_dpc_set_mode() 649 temp = (u32)(temp | ((format & 0xf) << format_pos)); in nx_dpc_set_mode() 658 temp = (u32)(temp | (clock << padclksel_pos)); in nx_dpc_set_mode() 751 temp &= ~intpend; in nx_dpc_set_hsync() 816 temp &= ~intpend; in nx_dpc_set_vsync() 1312 u32 temp; in nx_dpc_set_ycorder() local 1316 temp = (u16)(temp | (ycorder << ycorder_pos)); in nx_dpc_set_ycorder() 1408 temp = (u16)(temp | (u16)ntsc_ecmda_table[vbs]); in nx_dpc_set_video_encoder_mode() [all …]
|
/u-boot/common/ |
A D | iomux.c | 36 char *console_args, *temp, **start; in iomux_doenv() local 54 temp = console_args; in iomux_doenv() 59 temp = strchr(temp, ','); in iomux_doenv() 60 if (temp == NULL) in iomux_doenv() 63 temp++; in iomux_doenv() 73 temp = strchr(start[i++], ','); in iomux_doenv() 74 if (temp == NULL) in iomux_doenv() 76 *temp = '\0'; in iomux_doenv() 77 start[i] = temp + 1; in iomux_doenv()
|
/u-boot/arch/arm/mach-orion5x/ |
A D | cpu.c | 253 u32 temp; in arch_misc_init() local 256 temp = readfr_extra_feature_reg(); in arch_misc_init() 258 writefr_extra_feature_reg(temp); in arch_misc_init() 260 temp = readfr_extra_feature_reg(); in arch_misc_init() 262 writefr_extra_feature_reg(temp); in arch_misc_init() 265 temp = readfr_extra_feature_reg(); in arch_misc_init() 267 temp |= (1 << 24); in arch_misc_init() 269 temp |= (1 << 22); in arch_misc_init() 270 writefr_extra_feature_reg(temp); in arch_misc_init() 274 temp = get_cr(); in arch_misc_init() [all …]
|
/u-boot/board/freescale/t104xrdb/ |
A D | diu.c | 41 unsigned long speed_ccb, temp; in diu_set_pixel_clock() local 46 temp = 1000000000 / pixclock; in diu_set_pixel_clock() 47 temp *= 1000; in diu_set_pixel_clock() 48 pixval = speed_ccb / temp; in diu_set_pixel_clock() 51 ret = diu_set_dvi_encoder(temp); in diu_set_pixel_clock()
|
/u-boot/lib/ |
A D | rc4.c | 17 unsigned char s[256], k[256], temp; in rc4_encode() local 32 temp = s[i]; in rc4_encode() 34 s[j] = temp; in rc4_encode() 42 temp = s[i]; in rc4_encode() 44 s[j] = temp; in rc4_encode()
|
/u-boot/arch/arm/cpu/armv8/ |
A D | generic_timer.c | 41 unsigned long temp; in timer_read_counter() local 45 asm volatile("mrs %0, cntpct_el0" : "=r" (temp)); in timer_read_counter() 46 while (temp != cntpct) { in timer_read_counter() 48 asm volatile("mrs %0, cntpct_el0" : "=r" (temp)); in timer_read_counter()
|
/u-boot/board/freescale/m547xevb/ |
A D | m547xevb.c | 34 u32 temp; in dram_init() local 48 temp = CONFIG_SYS_DRAMSZ1 * 0x100000; in dram_init() 50 if (temp == (1 << i)) in dram_init() 54 dramsize += temp; in dram_init() 55 out_be32(&siu->cs1cfg, (CONFIG_SYS_SDRAM_BASE + temp) | i); in dram_init()
|
/u-boot/board/freescale/m548xevb/ |
A D | m548xevb.c | 34 u32 temp; in dram_init() local 48 temp = CONFIG_SYS_DRAMSZ1 * 0x100000; in dram_init() 50 if (temp == (1 << i)) in dram_init() 54 dramsize += temp; in dram_init() 55 out_be32(&siu->cs1cfg, (CONFIG_SYS_SDRAM_BASE + temp) | i); in dram_init()
|
/u-boot/arch/arm/mach-omap2/omap5/ |
A D | fdt.c | 38 u32 *temp; in ft_hs_fixup_crossbar() local 71 temp = malloc(sizeof(u32) * (old_cnt + new_cnt)); in ft_hs_fixup_crossbar() 73 temp[i] = cpu_to_fdt32(hs_irq_skip[i]); in ft_hs_fixup_crossbar() 75 temp[i + new_cnt] = p_data[i]; in ft_hs_fixup_crossbar() 80 temp, in ft_hs_fixup_crossbar() 82 free(temp); in ft_hs_fixup_crossbar() 101 u32 temp[2]; in ft_hs_fixup_sram() local 116 temp[0] = cpu_to_fdt32(0); in ft_hs_fixup_sram() 118 temp[1] = cpu_to_fdt32(max(TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ, in ft_hs_fixup_sram() 121 ret = fdt_setprop(fdt, offs, "reg", temp, 2 * sizeof(u32)); in ft_hs_fixup_sram()
|
/u-boot/drivers/net/ |
A D | xilinx_axi_emac.c | 295 u16 temp; in setup_phy() local 310 if (temp & BMCR_ISOLATE) { in setup_phy() 311 temp &= ~BMCR_ISOLATE; in setup_phy() 364 u32 temp; in axiemac_stop() local 368 temp &= ~XAXIDMA_CR_RUNSTOP_MASK; in axiemac_stop() 471 u32 temp; in axiemac_start() local 488 temp &= ~XAXIDMA_IRQ_ALL_MASK; in axiemac_start() 512 temp |= XAXIDMA_CR_RUNSTOP_MASK; in axiemac_start() 561 u32 temp; in axiemac_send() local 613 u32 temp; in axiemac_recv() local [all …]
|
/u-boot/drivers/usb/host/ |
A D | ohci-hcd.c | 390 __u32 temp; in ohci_dump_status() local 393 if (temp != 0x10) in ohci_dump_status() 394 dbg("spec %d.%d", (temp >> 4), (temp & 0x0f)); in ohci_dump_status() 406 temp & OHCI_CTRL_CBSR in ohci_dump_status() 436 __u32 temp, ndp, i; in ohci_dump_roothub() local 439 ndp = (temp & RH_A_NDP); in ohci_dump_roothub() 455 temp, in ohci_dump_roothub() 457 (temp & RH_B_DR) in ohci_dump_roothub() 461 temp, in ohci_dump_roothub() 475 temp, in ohci_dump_roothub() [all …]
|
/u-boot/drivers/ddr/marvell/a38x/ |
A D | xor.c | 168 u32 temp; in mv_xor_mem_init() local 185 temp = reg_read(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan))); in mv_xor_mem_init() 186 temp &= ~XEXCR_OPERATION_MODE_MASK; in mv_xor_mem_init() 187 temp |= XEXCR_OPERATION_MODE_MEM_INIT; in mv_xor_mem_init() 188 reg_write(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan)), temp); in mv_xor_mem_init() 398 u32 temp; in mv_xor_transfer() local 415 temp = reg_read(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan))); in mv_xor_transfer() 416 temp &= ~XEXCR_OPERATION_MODE_MASK; in mv_xor_transfer() 426 temp |= XEXCR_OPERATION_MODE_XOR; in mv_xor_transfer() 435 temp |= XEXCR_OPERATION_MODE_DMA; in mv_xor_transfer() [all …]
|
/u-boot/fs/jffs2/ |
A D | compr_rubin.c | 51 register unsigned long temp; in rubin_do_decompress() local 61 temp = *(u32 *) in; in rubin_do_decompress() 84 rec_q |= (temp >> (bit++ ^ 7)) & 1; in rubin_do_decompress() 88 temp = *(++p); in rubin_do_decompress()
|
/u-boot/arch/m68k/cpu/mcf5227x/ |
A D | speed.c | 77 int vco, temp, pcrvalue, pfdr; in get_clocks() local 114 temp = (in_be32(&pll->pcr) & PLL_PCR_OUTDIV1_MASK) + 1; in get_clocks() 115 gd->cpu_clk = vco / temp; /* cpu clock */ in get_clocks() 117 temp = ((in_be32(&pll->pcr) & PLL_PCR_OUTDIV2_MASK) >> 4) + 1; in get_clocks() 118 gd->arch.flb_clk = vco / temp; /* flexbus clock */ in get_clocks()
|
/u-boot/arch/m68k/cpu/mcf532x/ |
A D | speed.c | 93 u32 temp; in clock_limp() local 102 temp = (in_be16(&ccm->cdr) & CCM_CDR_SSIDIV(0xFF)); in clock_limp() 105 out_be16(&ccm->cdr, CCM_CDR_LPDIV(div) | CCM_CDR_SSIDIV(temp)); in clock_limp() 147 int fref, temp, fout, mfd; in clock_pll() local 180 temp = (100 * fsys) / fref; in clock_pll() 182 mfd = (BUSDIV * temp) / 100; in clock_pll() 188 mfd = (4 * BUSDIV * temp) / 100; in clock_pll()
|