| /u-boot/include/asm-generic/ |
| A D | atomic.h | 25 v->counter += i; in atomic_add() 34 v->counter -= i; in atomic_sub() 43 ++v->counter; in atomic_inc() 52 --v->counter; in atomic_dec() 62 val = v->counter; in atomic_dec_and_test() 75 val = v->counter; in atomic_add_negative() 98 v->counter += i; in atomic64_add() 107 v->counter -= i; in atomic64_sub() 118 v->counter += i; in atomic64_add() 127 v->counter -= i; in atomic64_sub() [all …]
|
| /u-boot/arch/x86/include/asm/ |
| A D | atomic.h | 9 typedef struct { volatile int counter; } atomic_t; member 26 return READ_ONCE((v)->counter); in atomic_read() 38 v->counter = i; in atomic_set() 51 : "+m" (v->counter) in atomic_add() 65 : "+m" (v->counter) in atomic_sub() 78 : "+m" (v->counter)); in atomic_inc() 90 : "+m" (v->counter)); in atomic_dec()
|
| A D | msr.h | 94 static inline unsigned long long native_read_pmc(int counter) in native_read_pmc() argument 98 asm volatile("rdpmc" : EAX_EDX_RET(val, low, high) : "c" (counter)); in native_read_pmc() 230 #define rdpmc(counter, low, high) \ argument 232 u64 _l = native_read_pmc((counter)); \
|
| /u-boot/drivers/serial/ |
| A D | serial_mcf.c | 33 u32 counter; in mcf_serial_init_common() local 53 counter = (u32) ((gd->bus_clk / 32) + (baudrate / 2)); in mcf_serial_init_common() 54 counter = counter / baudrate; in mcf_serial_init_common() 57 writeb((u8)((counter & 0xff00) >> 8), &uart->ubg1); in mcf_serial_init_common() 59 writeb((u8)(counter & 0x00ff), &uart->ubg2); in mcf_serial_init_common() 68 u32 counter; in mcf_serial_setbrg_common() local 71 counter = (u32) ((gd->bus_clk / 32) + (baudrate / 2)); in mcf_serial_setbrg_common() 72 counter = counter / baudrate; in mcf_serial_setbrg_common() 75 writeb(((counter & 0xff00) >> 8), &uart->ubg1); in mcf_serial_setbrg_common() 77 writeb((counter & 0x00ff), &uart->ubg2); in mcf_serial_setbrg_common()
|
| A D | serial_semihosting.c | 21 unsigned counter; member 78 return priv->counter++ & 1; in smh_serial_pending() 121 static unsigned counter = 1; variable 154 return counter++ & 1; in smh_serial_tstc()
|
| /u-boot/lib/efi_selftest/ |
| A D | efi_selftest_event_groups.c | 61 unsigned int counter[GROUP_SIZE] = {0}; in execute() local 68 notify, (void *)&counter[i], in execute() 83 if (counter[j] != 2 * i + 1) { in execute() 86 (unsigned int)counter[j]); in execute() 96 if (counter[j] != 2 * i + 1) { in execute() 99 (unsigned int)counter[j]); in execute() 111 if (counter[j] != 2 * i + 2) { in execute() 114 (unsigned int)counter[j]); in execute()
|
| A D | efi_selftest_config_table.c | 93 unsigned int counter = 0; in execute() local 102 notify, (void *)&counter, in execute() 115 if (counter) { in execute() 125 if (counter != 1) { in execute()
|
| /u-boot/drivers/bootcount/ |
| A D | bootcount_ram.c | 50 ulong counter = 0; in bootcount_load() local 57 counter = readl(&save_addr[0]); in bootcount_load() 60 for (i = 0; (i < REPEAT_PATTERN) && (counter != 0); i++) { in bootcount_load() 63 counter = 0; in bootcount_load() 65 return counter; in bootcount_load()
|
| A D | Kconfig | 20 bool "Generic default boot counter" 29 bool "Boot counter on EXT filesystem" 37 bool "Boot counter in AM33XX RTC IP block" 65 bool "Boot counter in environment" 77 bool "Boot counter in RAM" 83 bool "Boot counter on I2C device" 175 counter being cleared. 184 the boot counter. 199 boot counter. 207 boot counter. [all …]
|
| /u-boot/arch/arm/cpu/arm926ejs/mxs/ |
| A D | timer.c | 128 uint32_t counter = 0; in __udelay() local 132 while (counter < usec) { in __udelay() 148 if (counter + incr < counter) in __udelay() 151 counter += incr; in __udelay()
|
| /u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/ |
| A D | stm32prog_serial.c | 410 u32 counter = 0x0; in get_cmd_command() local 415 for (counter = 0; counter < NB_CMD; counter++) in get_cmd_command() 492 u32 counter = 0x0; in read_memory_command() local 522 for (counter = (rcv_data + 1); counter != 0; counter--) in read_memory_command() 569 u32 counter = 0x0, codesize = 0x0; in download_command() local 646 counter = codesize; in download_command() 668 for (counter = codesize; counter != 0; counter--) in download_command() 797 u32 counter = 0x0; in stm32prog_serial_loop() local 836 for (counter = 0; counter < NB_CMD; counter++) in stm32prog_serial_loop() 837 if (cmd_id[counter] == command) { in stm32prog_serial_loop() [all …]
|
| /u-boot/arch/powerpc/include/asm/ |
| A D | atomic.h | 9 typedef struct { volatile int counter; } atomic_t; member 11 typedef struct { int counter; } atomic_t; member 16 #define atomic_read(v) ((v)->counter) 17 #define atomic_set(v,i) (((v)->counter) = (i))
|
| /u-boot/board/astro/mcf5373l/ |
| A D | mcf5373l.c | 95 u32 counter; in rs_serial_init() local 129 counter = (u32) (gd->bus_clk / (baud)); in rs_serial_init() 130 counter >>= 5; in rs_serial_init() 133 writeb((u8) ((counter & 0xff00) >> 8), &uart->ubg1); in rs_serial_init() 135 writeb((u8) (counter & 0x00ff), &uart->ubg2); in rs_serial_init()
|
| /u-boot/drivers/timer/ |
| A D | npcm-timer.c | 42 u64 counter; member 53 priv->counter += priv->last_count - val; in npcm_timer_get_count() 55 priv->counter += priv->last_count + (NPCM_TIMER_MAX_VAL + 1 - val); in npcm_timer_get_count() 58 return priv->counter; in npcm_timer_get_count()
|
| A D | arm_twd_timer.c | 46 u32 counter; /* Timer Counter Register */ member 58 u32 count = TIMER_LOAD_VAL - readl(®s->counter); in arm_twd_timer_get_count()
|
| /u-boot/arch/arm/mach-imx/ |
| A D | timer.c | 25 unsigned int counter; member 106 gd->arch.tbl = __raw_readl(&cur_gpt->counter); in timer_init() 114 return __raw_readl(&cur_gpt->counter); /* current tick value */ in timer_read_counter()
|
| /u-boot/drivers/ddr/imx/imx9/ |
| A D | Kconfig | 15 bool "imx9 DDRC performance monitor counter" 18 Enable DDR controller performance monitor counter for reference events.
|
| /u-boot/arch/powerpc/cpu/mpc8xx/ |
| A D | immap.c | 75 static int counter; variable 87 if (counter % 2) in header() 89 counter = 0; in header() 98 int i, second = (counter++ % 2); in binary() 133 counter = 0; in do_iopinfo()
|
| /u-boot/arch/arm/include/asm/arch-lpc32xx/ |
| A D | wdt.h | 15 u32 counter; /* Counter Value Register */ member
|
| /u-boot/include/fsl-mc/ |
| A D | fsl_dpmac.h | 90 #define DPMAC_RSP_GET_COUNTER(cmd, counter) \ argument 91 MC_RSP_OP(cmd, 1, 0, 64, uint64_t, counter) 460 uint64_t *counter);
|
| /u-boot/doc/usage/cmd/ |
| A D | for.rst | 17 The counter variable of the loop is a shell variable. Please, keep in mind that 21 name of the counter variable
|
| /u-boot/doc/device-tree-bindings/timer/ |
| A D | altera_timer.txt | 9 - clock-frequency : The frequency of the clock that drives the counter, in Hz.
|
| A D | arc_timer.txt | 7 - clocks : Specifies clocks that drives the counter.
|
| /u-boot/drivers/watchdog/ |
| A D | sandbox_wdt.c | 15 state->wdt.counter = timeout; in sandbox_wdt_start()
|
| /u-boot/test/dm/ |
| A D | wdt.c | 29 ut_asserteq(0, state->wdt.counter); in dm_test_wdt_base() 33 ut_asserteq(timeout, state->wdt.counter); in dm_test_wdt_base()
|