Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 80) sorted by relevance

1234

/u-boot/include/asm-generic/
A Datomic.h25 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 Datomic.h9 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 Dmsr.h94 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 Dserial_mcf.c33 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()
/u-boot/lib/efi_selftest/
A Defi_selftest_event_groups.c61 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 Defi_selftest_config_table.c93 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 Dbootcount_ram.c50 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 DKconfig20 bool "Generic default boot counter"
29 bool "Boot counter on EXT filesystem"
37 bool "Boot counter in AM33XX RTC IP block"
46 bool "Boot counter in environment"
58 bool "Boot counter in RAM"
64 bool "Boot counter on I2C device"
72 bool "Boot counter for Atmel AT91SAM9XE"
137 counter being cleared.
146 the boot counter.
161 boot counter.
[all …]
/u-boot/tools/
A Dmrvl_uart.sh98 counter=0
99 while [ $counter -lt $pattern_repeat ]; do
101 let counter=counter+1
/u-boot/arch/arm/cpu/arm926ejs/mxs/
A Dtimer.c128 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/powerpc/include/asm/
A Datomic.h9 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/arch/arm/mach-stm32mp/cmd_stm32prog/
A Dstm32prog_serial.c470 u32 counter = 0x0; in get_cmd_command() local
475 for (counter = 0; counter < NB_CMD; counter++) in get_cmd_command()
550 u32 counter = 0x0; in read_memory_command() local
580 for (counter = (rcv_data + 1); counter != 0; counter--) in read_memory_command()
628 u32 counter = 0x0, codesize = 0x0; in download_command() local
712 counter = codesize; in download_command()
734 for (counter = codesize; counter != 0; counter--) in download_command()
910 u32 counter = 0x0; in stm32prog_serial_loop() local
949 for (counter = 0; counter < NB_CMD; counter++) in stm32prog_serial_loop()
950 if (cmd_id[counter] == command) { in stm32prog_serial_loop()
[all …]
/u-boot/board/astro/mcf5373l/
A Dmcf5373l.c95 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/arch/arm/mach-imx/
A Dtimer.c25 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/test/dm/
A Dwdt.c24 ut_asserteq(0, state->wdt.counter); in dm_test_wdt_base()
28 ut_asserteq(timeout, state->wdt.counter); in dm_test_wdt_base()
A Dvirtio.c49 u32 counter; in dm_test_virtio_all_ops() local
72 ut_asserteq(-ENOSYS, virtio_generation(dev, &counter)); in dm_test_virtio_all_ops()
/u-boot/arch/arm/mach-zynq/
A Dtimer.c46 u32 counter; /* Timer Counter Register */ member
99 gd->arch.lastinc = readl(&timer_base->counter) / in timer_init()
/u-boot/arch/microblaze/include/asm/
A Dmicroblaze_timer.h23 int counter; /* timer/counter register */ member
/u-boot/arch/powerpc/cpu/mpc8xx/
A Dimmap.c75 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/drivers/ram/k3-j721e/
A Dk3-j721e-ddrss.c71 unsigned int req_type, counter; in j721e_lpddr4_ack_freq_upd_req() local
75 for (counter = 0; counter < ddrss->ddr_fhs_cnt; counter++) { in j721e_lpddr4_ack_freq_upd_req()
87 __func__, req_type, counter); in j721e_lpddr4_ack_freq_upd_req()
/u-boot/arch/arm/include/asm/arch-lpc32xx/
A Dwdt.h15 u32 counter; /* Counter Value Register */ member
/u-boot/include/fsl-mc/
A Dfsl_dpmac.h90 #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/include/configs/
A Dzmx25.h16 (&((struct gpt_regs *)IMX_GPT1_BASE)->counter)
/u-boot/doc/usage/
A Dfor.rst17 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 Daltera_timer.txt9 - clock-frequency : The frequency of the clock that drives the counter, in Hz.

Completed in 23 milliseconds

1234