Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 1427) sorted by relevance

12345678910>>...58

/openbmc/u-boot/arch/arm/mach-uniphier/clk/
H A Dpll-ld4.c17 u32 tmp, clk_mode_upll, clk_mode_axosel; in upll_init() local
19 tmp = readl(SG_PINMON0); in upll_init()
20 clk_mode_upll = tmp & SG_PINMON0_CLK_MODE_UPLLSRC_MASK; in upll_init()
21 clk_mode_axosel = tmp & SG_PINMON0_CLK_MODE_AXOSEL_MASK; in upll_init()
24 tmp = readl(SC_UPLLCTRL); in upll_init()
25 tmp &= ~0x18000000; in upll_init()
26 writel(tmp, SC_UPLLCTRL); in upll_init()
32 tmp &= ~0x07ffffff; in upll_init()
33 tmp |= 0x0228f5c0; in upll_init()
36 tmp &= ~0x07ffffff; in upll_init()
[all …]
H A Dpll-pro4.c17 u32 tmp, clk_mode_axosel; in vpll_init() local
20 tmp = readl(SG_PINMON0); in vpll_init()
21 clk_mode_axosel = tmp & SG_PINMON0_CLK_MODE_AXOSEL_MASK; in vpll_init()
29 tmp = readl(SC_VPLL27ACTRL); in vpll_init()
30 tmp |= 0x00000001; in vpll_init()
31 writel(tmp, SC_VPLL27ACTRL); in vpll_init()
32 tmp = readl(SC_VPLL27BCTRL); in vpll_init()
33 tmp |= 0x00000001; in vpll_init()
34 writel(tmp, SC_VPLL27BCTRL); in vpll_init()
37 tmp = readl(SC_VPLL27ACTRL3); in vpll_init()
[all …]
H A Dpll-base-ld20.c35 u32 tmp; in uniphier_ld20_sscpll_init() local
42 tmp = readl(base); /* SSCPLLCTRL */ in uniphier_ld20_sscpll_init()
43 tmp &= ~SC_PLLCTRL_SSC_DK_MASK; in uniphier_ld20_sscpll_init()
44 tmp |= FIELD_PREP(SC_PLLCTRL_SSC_DK_MASK, in uniphier_ld20_sscpll_init()
47 writel(tmp, base); in uniphier_ld20_sscpll_init()
49 tmp = readl(base + 4); in uniphier_ld20_sscpll_init()
50 tmp &= ~SC_PLLCTRL2_SSC_JK_MASK; in uniphier_ld20_sscpll_init()
51 tmp |= FIELD_PREP(SC_PLLCTRL2_SSC_JK_MASK, in uniphier_ld20_sscpll_init()
54 writel(tmp, base + 4); in uniphier_ld20_sscpll_init()
59 tmp = readl(base + 4); /* SSCPLLCTRL2 */ in uniphier_ld20_sscpll_init()
[all …]
/openbmc/qemu/tests/tcg/mips/user/ase/msa/
H A Dtest_msa_run_64r6eb.sh8 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_b_64r6eb
9 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_h_64r6eb
10 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_w_64r6eb
11 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_d_64r6eb
12 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_b_64r6eb
13 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_h_64r6eb
14 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_w_64r6eb
15 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_d_64r6eb
16 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_b_64r6eb
17 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_h_64r6eb
[all …]
H A Dtest_msa_run_32r5eb.sh8 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_b_32r5eb
9 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_h_32r5eb
10 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_w_32r5eb
11 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_d_32r5eb
12 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_b_32r5eb
13 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_h_32r5eb
14 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_w_32r5eb
15 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_d_32r5eb
16 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_b_32r5eb
17 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_h_32r5eb
[all …]
H A Dtest_msa_run_64r6el.sh8 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_b_64r6el
9 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_h_64r6el
10 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_w_64r6el
11 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_d_64r6el
12 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_b_64r6el
13 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_h_64r6el
14 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_w_64r6el
15 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_d_64r6el
16 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_b_64r6el
17 $PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_h_64r6el
[all …]
H A Dtest_msa_run_32r5el.sh8 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_b_32r5el
9 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_h_32r5el
10 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_w_32r5el
11 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_d_32r5el
12 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_b_32r5el
13 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_h_32r5el
14 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_w_32r5el
15 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_d_32r5el
16 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_b_32r5el
17 $PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_h_32r5el
[all …]
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dmpc8536_serdes.c95 u32 tmp; in fsl_serdes_init() local
115 tmp = in_be32(sd + FSL_SRDSCR0_OFFS); in fsl_serdes_init()
116 tmp &= ~FSL_SRDSCR0_TXEQA_MASK; in fsl_serdes_init()
117 tmp |= FSL_SRDSCR0_TXEQA_SATA; in fsl_serdes_init()
118 tmp &= ~FSL_SRDSCR0_TXEQE_MASK; in fsl_serdes_init()
119 tmp |= FSL_SRDSCR0_TXEQE_SATA; in fsl_serdes_init()
120 out_be32(sd + FSL_SRDSCR0_OFFS, tmp); in fsl_serdes_init()
122 tmp = in_be32(sd + FSL_SRDSCR1_OFFS); in fsl_serdes_init()
123 tmp &= ~FSL_SRDSCR1_LANEA_MASK; in fsl_serdes_init()
124 tmp &= ~FSL_SRDSCR1_LANEE_MASK; in fsl_serdes_init()
[all …]
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/
H A Dserdes.c50 u32 tmp; in fsl_setup_serdes() local
55 tmp = in_be32(regs + FSL_SRDSCR0_OFFS); in fsl_setup_serdes()
56 tmp &= ~FSL_SRDSCR0_DPP_1V2; in fsl_setup_serdes()
57 out_be32(regs + FSL_SRDSCR0_OFFS, tmp); in fsl_setup_serdes()
60 tmp = in_be32(regs + FSL_SRDSCR2_OFFS); in fsl_setup_serdes()
61 tmp &= ~FSL_SRDSCR2_VDD_1V2; in fsl_setup_serdes()
62 out_be32(regs + FSL_SRDSCR2_OFFS, tmp); in fsl_setup_serdes()
69 tmp = in_be32(regs + FSL_SRDSRSTCTL_OFFS); in fsl_setup_serdes()
70 tmp |= FSL_SRDSRSTCTL_SATA_RESET; in fsl_setup_serdes()
71 out_be32(regs + FSL_SRDSRSTCTL_OFFS, tmp); in fsl_setup_serdes()
[all …]
/openbmc/u-boot/arch/arm/lib/
H A Dpsci-dt.c22 int tmp; in fdt_psci() local
31 for (tmp = fdt_first_subnode(fdt, nodeoff); in fdt_psci()
32 tmp >= 0; in fdt_psci()
33 tmp = fdt_next_subnode(fdt, tmp)) { in fdt_psci()
37 prop = fdt_get_property(fdt, tmp, "device_type", &len); in fdt_psci()
50 fdt_setprop_string(fdt, tmp, "enable-method", "psci"); in fdt_psci()
74 tmp = fdt_setprop_string(fdt, nodeoff, in fdt_psci()
76 if (tmp) in fdt_psci()
77 return tmp; in fdt_psci()
81 tmp = fdt_appendprop_string(fdt, nodeoff, in fdt_psci()
[all …]
/openbmc/u-boot/drivers/rtc/
H A Dmax6900.c37 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
64 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
65 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
66 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
67 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
68 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
69 tmp->tm_year = bcd2bin (year) + bcd2bin(cent) * 100; in rtc_get()
70 tmp->tm_wday = bcd2bin (wday & 0x07); in rtc_get()
71 tmp->tm_yday = 0; in rtc_get()
72 tmp->tm_isdst= 0; in rtc_get()
[all …]
H A Dpcf8563.c23 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
51 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
52 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
53 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
54 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
55 tmp->tm_mon = bcd2bin (mon_cent & 0x1F); in rtc_get()
56 tmp->tm_year = bcd2bin (year) + ((mon_cent & 0x80) ? 1900 : 2000); in rtc_get()
57 tmp->tm_wday = bcd2bin (wday & 0x07); in rtc_get()
58 tmp->tm_yday = 0; in rtc_get()
59 tmp->tm_isdst= 0; in rtc_get()
[all …]
H A Ddavinci.c12 int rtc_get(struct rtc_time *tmp) in rtc_get() argument
39 tmp->tm_sec = bcd2bin(sec & 0x7F); in rtc_get()
40 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get()
41 tmp->tm_hour = bcd2bin(hour & 0x3F); in rtc_get()
42 tmp->tm_mday = bcd2bin(mday & 0x3F); in rtc_get()
43 tmp->tm_mon = bcd2bin(mon_cent & 0x1F); in rtc_get()
44 tmp->tm_year = bcd2bin(year) + 2000; in rtc_get()
45 tmp->tm_wday = bcd2bin(wday & 0x07); in rtc_get()
46 tmp->tm_yday = 0; in rtc_get()
47 tmp->tm_isdst = 0; in rtc_get()
[all …]
H A Dm41t11.c72 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
83 tmp->tm_sec = bcd2bin (data[RTC_SEC_ADDR] & 0x7F); in rtc_get()
84 tmp->tm_min = bcd2bin (data[RTC_MIN_ADDR] & 0x7F); in rtc_get()
85 tmp->tm_hour = bcd2bin (data[RTC_HOUR_ADDR] & 0x3F); in rtc_get()
86 tmp->tm_mday = bcd2bin (data[RTC_DATE_ADDR] & 0x3F); in rtc_get()
87 tmp->tm_mon = bcd2bin (data[RTC_MONTH_ADDR]& 0x1F); in rtc_get()
89 tmp->tm_year = CONFIG_SYS_M41T11_BASE_YEAR in rtc_get()
105 tmp->tm_year =((int)cent*100)+bcd2bin(data[RTC_YEARS_ADDR]); in rtc_get()
108 tmp->tm_wday = bcd2bin (data[RTC_DAY_ADDR] & 0x07); in rtc_get()
109 tmp->tm_yday = 0; in rtc_get()
[all …]
H A Dpt7c4338.c62 int rtc_get(struct rtc_time *tmp) in rtc_get() argument
88 tmp->tm_sec = bcd2bin(sec & 0x7F); in rtc_get()
89 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get()
90 tmp->tm_hour = bcd2bin(hour & 0x3F); in rtc_get()
91 tmp->tm_mday = bcd2bin(mday & 0x3F); in rtc_get()
92 tmp->tm_mon = bcd2bin(mon & 0x1F); in rtc_get()
93 tmp->tm_year = bcd2bin(year) + 2000; in rtc_get()
94 tmp->tm_wday = bcd2bin((wday - 1) & 0x07); in rtc_get()
95 tmp->tm_yday = 0; in rtc_get()
96 tmp->tm_isdst = 0; in rtc_get()
[all …]
H A Dds1306.c65 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
80 tmp->tm_sec = bcd2bin (soft_spi_read ()); /* Read seconds */ in rtc_get()
81 tmp->tm_min = bcd2bin (soft_spi_read ()); /* Read minutes */ in rtc_get()
89 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) + 11; in rtc_get()
92 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) - 1; in rtc_get()
96 tmp->tm_hour = (bcd2bin (spi_byte & 0x3F)); in rtc_get()
100 tmp->tm_mday = bcd2bin (soft_spi_read ()); /* Read Day of the Month */ in rtc_get()
101 tmp->tm_mon = bcd2bin (soft_spi_read ()); /* Read Month */ in rtc_get()
104 tmp->tm_year = bcd2bin (soft_spi_read ()) + 2000; in rtc_get()
110 rtc_calc_weekday(tmp); /* Determine the day of week */ in rtc_get()
[all …]
H A Dm48t35ax.c24 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
52 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
53 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
54 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
55 tmp->tm_mday = bcd2bin (date & 0x3F); in rtc_get()
56 tmp->tm_mon = bcd2bin (month & 0x1F); in rtc_get()
57 tmp->tm_year = bcd2bin (year) + ((cent_day & 0x10) ? 2000 : 1900); in rtc_get()
58 tmp->tm_wday = bcd2bin (cent_day & 0x07); in rtc_get()
59 tmp->tm_yday = 0; in rtc_get()
60 tmp->tm_isdst= 0; in rtc_get()
[all …]
H A Dds3231.c60 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
87 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
88 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
89 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
90 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
91 tmp->tm_mon = bcd2bin (mon_cent & 0x1F); in rtc_get()
92 tmp->tm_year = bcd2bin (year) + ((mon_cent & 0x80) ? 2000 : 1900); in rtc_get()
93 tmp->tm_wday = bcd2bin ((wday - 1) & 0x07); in rtc_get()
94 tmp->tm_yday = 0; in rtc_get()
95 tmp->tm_isdst= 0; in rtc_get()
[all …]
H A Dmcfrtc.c23 int rtc_get(struct rtc_time *tmp) in rtc_get() argument
38 rtc_to_tm(tim, tmp); in rtc_get()
40 tmp->tm_yday = 0; in rtc_get()
41 tmp->tm_isdst = 0; in rtc_get()
45 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
46 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
52 int rtc_set(struct rtc_time *tmp) in rtc_set() argument
61 if (tmp->tm_year > 2037) { in rtc_set()
63 tmp->tm_year = 2027; in rtc_set()
67 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
[all …]
H A Drx8025.c78 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
116 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
117 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
119 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
121 tmp->tm_hour = bcd2bin (hour & 0x1F) % 12 + in rtc_get()
123 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
124 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
125 tmp->tm_year = bcd2bin (year) + ( bcd2bin (year) >= 70 ? 1900 : 2000); in rtc_get()
126 tmp->tm_wday = bcd2bin (wday & 0x07); in rtc_get()
127 tmp->tm_yday = 0; in rtc_get()
[all …]
H A Dds1337.c69 int rtc_get (struct rtc_time *tmp) in rtc_get() argument
101 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
102 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
103 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
104 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
105 tmp->tm_mon = bcd2bin (mon_cent & 0x1F); in rtc_get()
106 tmp->tm_year = bcd2bin (year) + ((mon_cent & 0x80) ? 2000 : 1900); in rtc_get()
107 tmp->tm_wday = bcd2bin ((wday - 1) & 0x07); in rtc_get()
108 tmp->tm_yday = 0; in rtc_get()
109 tmp->tm_isdst= 0; in rtc_get()
[all …]
H A Disl1208.c76 static int isl1208_rtc_get(struct udevice *dev, struct rtc_time *tmp) in isl1208_rtc_get() argument
97 tmp->tm_sec = bcd2bin(buf[RTC_SEC_REG_ADDR] & 0x7F); in isl1208_rtc_get()
98 tmp->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in isl1208_rtc_get()
99 tmp->tm_hour = bcd2bin(buf[RTC_HR_REG_ADDR] & 0x3F); in isl1208_rtc_get()
100 tmp->tm_mday = bcd2bin(buf[RTC_DATE_REG_ADDR] & 0x3F); in isl1208_rtc_get()
101 tmp->tm_mon = bcd2bin(buf[RTC_MON_REG_ADDR] & 0x1F); in isl1208_rtc_get()
102 tmp->tm_year = bcd2bin(buf[RTC_YR_REG_ADDR]) + 2000; in isl1208_rtc_get()
103 tmp->tm_wday = bcd2bin(buf[RTC_DAY_REG_ADDR] & 0x07); in isl1208_rtc_get()
104 tmp->tm_yday = 0; in isl1208_rtc_get()
105 tmp->tm_isdst= 0; in isl1208_rtc_get()
[all …]
/openbmc/u-boot/arch/arm/mach-at91/
H A Dspl_atmel.c20 u32 tmp; in switch_to_main_crystal_osc() local
22 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
23 tmp &= ~AT91_PMC_MOR_OSCOUNT(0xff); in switch_to_main_crystal_osc()
24 tmp &= ~AT91_PMC_MOR_KEY(0xff); in switch_to_main_crystal_osc()
25 tmp |= AT91_PMC_MOR_MOSCEN; in switch_to_main_crystal_osc()
26 tmp |= AT91_PMC_MOR_OSCOUNT(8); in switch_to_main_crystal_osc()
27 tmp |= AT91_PMC_MOR_KEY(0x37); in switch_to_main_crystal_osc()
28 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()
34 tmp = readl(&pmc->mcfr); in switch_to_main_crystal_osc()
35 tmp |= AT91_PMC_MCFR_CCSS_XTAL_OSC; in switch_to_main_crystal_osc()
[all …]
/openbmc/u-boot/arch/arm/mach-versal/
H A Dmp.c30 u32 tmp; in set_r5_halt_mode() local
32 tmp = readl(&rpu_base->rpu0_cfg); in set_r5_halt_mode()
34 tmp &= ~VERSAL_RPU_CFG_CPU_HALT_MASK; in set_r5_halt_mode()
36 tmp |= VERSAL_RPU_CFG_CPU_HALT_MASK; in set_r5_halt_mode()
37 writel(tmp, &rpu_base->rpu0_cfg); in set_r5_halt_mode()
40 tmp = readl(&rpu_base->rpu1_cfg); in set_r5_halt_mode()
42 tmp &= ~VERSAL_RPU_CFG_CPU_HALT_MASK; in set_r5_halt_mode()
44 tmp |= VERSAL_RPU_CFG_CPU_HALT_MASK; in set_r5_halt_mode()
45 writel(tmp, &rpu_base->rpu1_cfg); in set_r5_halt_mode()
51 u32 tmp; in set_r5_tcm_mode() local
[all …]
/openbmc/qemu/util/
H A Dbitops.c25 unsigned long tmp; in find_next_bit() local
33 tmp = *(p++); in find_next_bit()
34 tmp &= (~0UL << offset); in find_next_bit()
38 if (tmp) { in find_next_bit()
46 tmp = *p; in find_next_bit()
50 if (tmp) { in find_next_bit()
61 if ((tmp = *(p++))) { in find_next_bit()
70 tmp = *p; in find_next_bit()
73 tmp &= (~0UL >> (BITS_PER_LONG - size)); in find_next_bit()
74 if (tmp == 0UL) { /* Are any bits set? */ in find_next_bit()
[all …]

12345678910>>...58