Searched refs:counter (Results 1 - 25 of 47) sorted by relevance

12

/u-boot/arch/x86/include/asm/
H A Datomic.h9 typedef struct { volatile int counter; } atomic_t; member in struct:__anon5
26 return READ_ONCE((v)->counter);
38 v->counter = i;
51 : "+m" (v->counter)
65 : "+m" (v->counter)
78 : "+m" (v->counter));
90 : "+m" (v->counter));
H A Dmsr.h94 static inline unsigned long long native_read_pmc(int counter) argument
98 asm volatile("rdpmc" : EAX_EDX_RET(val, low, high) : "c" (counter));
230 #define rdpmc(counter, low, high) \
232 u64 _l = native_read_pmc((counter)); \
/u-boot/include/asm-generic/
H A Datomic.h6 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1099
8 typedef struct { volatile long long counter; } atomic64_t; member in struct:__anon1100
10 typedef struct { volatile long counter; } atomic64_t; member in struct:__anon1101
15 #define atomic_read(v) ((v)->counter)
16 #define atomic_set(v, i) ((v)->counter = (i))
25 v->counter += i;
34 v->counter -= i;
43 ++v->counter;
52 --v->counter;
62 val = v->counter;
[all...]
/u-boot/lib/efi_selftest/
H A Defi_selftest_event_groups.c61 unsigned int counter[GROUP_SIZE] = {0}; local
68 notify, (void *)&counter[i],
83 if (counter[j] != 2 * i + 1) {
86 (unsigned int)counter[j]);
96 if (counter[j] != 2 * i + 1) {
99 (unsigned int)counter[j]);
111 if (counter[j] != 2 * i + 2) {
114 (unsigned int)counter[j]);
H A Defi_selftest_config_table.c93 unsigned int counter = 0; local
102 notify, (void *)&counter,
115 if (counter) {
125 if (counter != 1) {
/u-boot/drivers/bootcount/
H A Dbootcount_ram.c50 ulong counter = 0; local
57 counter = readl(&save_addr[0]);
59 /* Is the counter reliable, check in the big pattern for bit errors */
60 for (i = 0; (i < REPEAT_PATTERN) && (counter != 0); i++) {
63 counter = 0;
65 return counter;
/u-boot/drivers/serial/
H A Dserial_mcf.c33 u32 counter; local
53 counter = (u32) ((gd->bus_clk / 32) + (baudrate / 2));
54 counter = counter / baudrate;
56 /* write to CTUR: divide counter upper byte */
57 writeb((u8)((counter & 0xff00) >> 8), &uart->ubg1);
58 /* write to CTLR: divide counter lower byte */
59 writeb((u8)(counter & 0x00ff), &uart->ubg2);
68 u32 counter; local
71 counter
[all...]
H A Dserial_semihosting.c16 * @counter: Counter used to fake pending every other call
21 unsigned counter; member in struct:smh_serial_priv
78 return priv->counter++ & 1;
121 static unsigned counter = 1; variable
154 return counter++ & 1;
/u-boot/arch/powerpc/include/asm/
H A Datomic.h9 typedef struct { volatile int counter; } atomic_t; member in struct:__anon396
11 typedef struct { int counter; } atomic_t; member in struct:__anon397
16 #define atomic_read(v) ((v)->counter)
17 #define atomic_set(v,i) (((v)->counter) = (i))
/u-boot/arch/arm/include/asm/arch-lpc32xx/
H A Dwdt.h15 u32 counter; /* Counter Value Register */ member in struct:wdt_regs
/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dtimer.c128 uint32_t counter = 0; local
132 while (counter < usec) {
144 * Check if we are close to the maximum time and the counter
148 if (counter + incr < counter)
151 counter += incr;
/u-boot/drivers/block/
H A Drkmtd.c236 int counter = 0; local
247 while (counter < plat->idblock[idx].boot_size) {
251 page = (plat->idblock[idx].offset + counter) / 4;
257 sector = plat->idblock[idx].offset + counter;
267 counter += 4;
278 int counter = 0; local
293 while (counter < plat->idblock[idx].boot_size) {
294 sector = plat->idblock[idx].offset + counter;
310 counter += 4;
510 u32 counter; local
[all...]
/u-boot/drivers/timer/
H A Dnpcm-timer.c15 #define NPCM_TIMER_MAX_VAL NPCM_TIMER_TDR_MASK /* max counter value */
36 * @last_count: last hw counter value
37 * @counter: the value to be returned for get_count ops
42 u64 counter; member in struct:npcm_timer_priv
53 priv->counter += priv->last_count - val;
55 priv->counter += priv->last_count + (NPCM_TIMER_MAX_VAL + 1 - val);
58 return priv->counter;
H A Darm_twd_timer.c46 u32 counter; /* Timer Counter Register */ member in struct:arm_twd_timer_regs
58 u32 count = TIMER_LOAD_VAL - readl(&regs->counter);
77 /* Load the timer counter register */
/u-boot/arch/arm/mach-imx/
H A Dtimer.c25 unsigned int counter; member in struct:mxc_gpt
106 gd->arch.tbl = __raw_readl(&cur_gpt->counter);
114 return __raw_readl(&cur_gpt->counter); /* current tick value */
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/
H A Dstm32prog_serial.c411 u32 counter = 0x0; local
416 for (counter = 0; counter < NB_CMD; counter++)
417 stm32prog_serial_putc(cmd_id[counter]);
493 u32 counter = 0x0; local
523 for (counter = (rcv_data + 1); counter != 0; counter--)
570 u32 counter local
798 u32 counter = 0x0; local
[all...]
/u-boot/board/astro/mcf5373l/
H A Dmcf5373l.c95 u32 counter; local
129 counter = (u32) (gd->bus_clk / (baud));
130 counter >>= 5;
132 /* write to CTUR: divide counter upper byte */
133 writeb((u8) ((counter & 0xff00) >> 8), &uart->ubg1);
134 /* write to CTLR: divide counter lower byte */
135 writeb((u8) (counter & 0x00ff), &uart->ubg2);
/u-boot/drivers/watchdog/
H A Dsandbox_wdt.c15 state->wdt.counter = timeout;
/u-boot/drivers/net/fsl-mc/
H A Ddpmac.c179 * dpmac_get_counter() - Read a specific DPMAC counter
183 * @type: The requested counter
184 * @counter: Returned counter value
186 * Return: The requested counter; '0' otherwise.
189 enum dpmac_counter type, uint64_t *counter)
209 *counter = le64_to_cpu(dpmac_rsp->counter);
188 dpmac_get_counter(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, enum dpmac_counter type, uint64_t *counter) argument
/u-boot/arch/arm/mach-k3/
H A Dam625_init.c101 u32 counter; local
104 * If counter has gone past 1, nothing we can do, leave
108 counter = readl(REG_K3RTC_S_CNT_LSW);
109 if (counter > 1)
/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dimmap.c75 static int counter; variable
87 if (counter % 2)
89 counter = 0;
98 int i, second = (counter++ % 2);
133 counter = 0;
/u-boot/include/fsl-mc/
H A Dfsl_dpmac.h73 __le64 counter; member in struct:dpmac_rsp_get_counter
202 * enum dpni_counter - DPNI counter types
280 enum dpmac_counter type, u64 *counter);
/u-boot/test/dm/
H A Dwdt.c29 ut_asserteq(0, state->wdt.counter);
33 ut_asserteq(timeout, state->wdt.counter);
H A Dvirtio_device.c58 u32 counter; local
81 ut_asserteq(-ENOSYS, virtio_generation(dev, &counter));
/u-boot/arch/sandbox/include/asm/
H A Dstate.h42 unsigned long long counter; member in struct:sandbox_wdt_info

Completed in 206 milliseconds

12