| /rk3399_rockchip-uboot/arch/arm/include/asm/ |
| H A D | atomic.h | 25 typedef struct { volatile int counter; } atomic_t; member 27 typedef struct { volatile long long counter; } atomic64_t; member 29 typedef struct { volatile long counter; } atomic64_t; member 37 #define atomic_read(v) ((v)->counter) 38 #define atomic_set(v, i) (((v)->counter) = (i)) 47 v->counter += i; in atomic_add() 56 v->counter -= i; in atomic_sub() 65 v->counter += 1; in atomic_inc() 74 v->counter -= 1; in atomic_dec() 84 val = v->counter; in atomic_dec_and_test() [all …]
|
| /rk3399_rockchip-uboot/arch/xtensa/include/asm/ |
| H A D | atomic.h | 12 typedef struct { volatile int counter; } atomic_t; member 16 #define atomic_read(v) ((v)->counter) 17 #define atomic_set(v, i) ((v)->counter = (i)) 24 v->counter += i; in atomic_add() 33 v->counter -= i; in atomic_sub() 42 ++v->counter; in atomic_inc() 51 --v->counter; in atomic_dec()
|
| /rk3399_rockchip-uboot/arch/x86/include/asm/ |
| H A D | atomic.h | 8 typedef struct { volatile int counter; } atomic_t; member 25 return ACCESS_ONCE((v)->counter); in atomic_read() 37 v->counter = i; in atomic_set() 50 : "+m" (v->counter) in atomic_add() 64 : "+m" (v->counter) in atomic_sub() 77 : "+m" (v->counter)); in atomic_inc() 89 : "+m" (v->counter)); in atomic_dec()
|
| H A D | msr.h | 95 static inline unsigned long long native_read_pmc(int counter) in native_read_pmc() argument 99 asm volatile("rdpmc" : EAX_EDX_RET(val, low, high) : "c" (counter)); in native_read_pmc() 231 #define rdpmc(counter, low, high) \ argument 233 u64 _l = native_read_pmc((counter)); \
|
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | mcfuart.c | 30 u32 counter; in mcf_serial_init_common() local 50 counter = (u32) ((gd->bus_clk / 32) + (baudrate / 2)); in mcf_serial_init_common() 51 counter = counter / baudrate; in mcf_serial_init_common() 54 writeb((u8)((counter & 0xff00) >> 8), &uart->ubg1); in mcf_serial_init_common() 56 writeb((u8)(counter & 0x00ff), &uart->ubg2); in mcf_serial_init_common() 65 u32 counter; in mcf_serial_setbrg_common() local 68 counter = (u32) ((gd->bus_clk / 32) + (baudrate / 2)); in mcf_serial_setbrg_common() 69 counter = counter / baudrate; in mcf_serial_setbrg_common() 72 writeb(((counter & 0xff00) >> 8), &uart->ubg1); in mcf_serial_setbrg_common() 74 writeb((counter & 0x00ff), &uart->ubg2); in mcf_serial_setbrg_common()
|
| /rk3399_rockchip-uboot/drivers/bootcount/ |
| H A D | Kconfig | 17 bool "Boot counter on EXT filesystem" 25 string "Interface on which to find boot counter EXT filesystem" 30 boot counter. 33 string "Partition of the boot counter EXT filesystem" 38 boot counter. 41 string "Path and filename of the EXT filesystem based boot counter" 45 Set the filename and path of the file used to store the boot counter. 48 hex "RAM address used for reading and writing the boot counter" 52 Set the address used for reading and writing the boot counter.
|
| H A D | bootcount_ram.c | 48 ulong counter = 0; in bootcount_load() local 55 counter = readl(&save_addr[0]); in bootcount_load() 58 for (i = 0; (i < REPEAT_PATTERN) && (counter != 0); i++) { in bootcount_load() 61 counter = 0; in bootcount_load() 63 return counter; in bootcount_load()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/mxs/ |
| H A D | timer.c | 130 uint32_t counter = 0; in __udelay() local 134 while (counter < usec) { in __udelay() 150 if (counter + incr < counter) in __udelay() 153 counter += incr; in __udelay()
|
| /rk3399_rockchip-uboot/arch/powerpc/include/asm/ |
| H 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))
|
| /rk3399_rockchip-uboot/board/astro/mcf5373l/ |
| H A D | mcf5373l.c | 92 u32 counter; in rs_serial_init() local 126 counter = (u32) (gd->bus_clk / (baud)); in rs_serial_init() 127 counter >>= 5; in rs_serial_init() 130 writeb((u8) ((counter & 0xff00) >> 8), &uart->ubg1); in rs_serial_init() 132 writeb((u8) (counter & 0x00ff), &uart->ubg2); in rs_serial_init()
|
| /rk3399_rockchip-uboot/test/dm/ |
| H A D | wdt.c | 24 ut_asserteq(0, state->wdt.counter); in dm_test_wdt_base() 28 ut_asserteq(timeout, state->wdt.counter); in dm_test_wdt_base()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | ufs.c | 137 uint32_t counter; in do_ufs_rpmb_counter() local 139 counter = ufs_rpmb_read_writecount(); in do_ufs_rpmb_counter() 140 printf("RPMB Write counter= %x\n", counter); in do_ufs_rpmb_counter() 149 U_BOOT_CMD_MKENT(counter, 1, 1, do_ufs_rpmb_counter, "", ""),
|
| /rk3399_rockchip-uboot/arch/arm/mach-zynq/ |
| H A D | timer.c | 43 u32 counter; /* Timer Counter Register */ member 96 gd->arch.lastinc = readl(&timer_base->counter) / in timer_init()
|
| /rk3399_rockchip-uboot/arch/arm/mach-imx/ |
| H A D | timer.c | 23 unsigned int counter; member 112 return __raw_readl(&cur_gpt->counter); /* current tick value */ in timer_read_counter()
|
| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc8xx/ |
| H A D | immap.c | 73 static int counter; variable 85 if (counter % 2) in header() 87 counter = 0; in header() 96 int i, second = (counter++ % 2); in binary() 130 counter = 0; in do_iopinfo()
|
| /rk3399_rockchip-uboot/fs/fat/ |
| H A D | fat_write.c | 226 __u8 counter = 0, checksum; in fill_dir_slot() local 235 slotptr->id = ++counter; in fill_dir_slot() 244 while (counter >= 1) { in fill_dir_slot() 252 counter--; in fill_dir_slot() 282 __u8 counter = (slotptr->id & ~LAST_LONG_ENTRY_MASK) & 0xff; in get_long_file_name() local 285 if (counter > VFAT_MAXSEQ) { in get_long_file_name() 291 if (counter == 0) in get_long_file_name() 293 if (((slotptr->id & ~LAST_LONG_ENTRY_MASK) & 0xff) != counter) in get_long_file_name() 296 counter--; in get_long_file_name() 318 while (counter > 0) { in get_long_file_name() [all …]
|
| /rk3399_rockchip-uboot/board/micronas/vct/ |
| H A D | ebi_nor_flash.c | 35 u32 counter = 0; in ebi_write_u16() local 37 if (counter++ > 0xFFFFFF) in ebi_write_u16()
|
| /rk3399_rockchip-uboot/arch/microblaze/include/asm/ |
| H A D | microblaze_timer.h | 24 int counter; /* timer/counter register */ member
|
| /rk3399_rockchip-uboot/include/fsl-mc/ |
| H A D | fsl_dpmac.h | 91 #define DPMAC_RSP_GET_COUNTER(cmd, counter) \ argument 92 MC_RSP_OP(cmd, 1, 0, 64, uint64_t, counter) 466 uint64_t *counter);
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-lpc32xx/ |
| H A D | wdt.h | 16 u32 counter; /* Counter Value Register */ member
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | Kconfig | 29 erase counter value and the lowest erase counter value of eraseblocks 32 counter to eraseblocks with high erase counter.
|
| /rk3399_rockchip-uboot/doc/device-tree-bindings/timer/ |
| H A D | altera_timer.txt | 9 - clock-frequency : The frequency of the clock that drives the counter, in Hz.
|
| /rk3399_rockchip-uboot/drivers/net/fsl-mc/ |
| H A D | dpmac.c | 203 uint64_t *counter) in dpmac_get_counter() argument 219 DPMAC_RSP_GET_COUNTER(cmd, *counter); in dpmac_get_counter()
|
| /rk3399_rockchip-uboot/drivers/watchdog/ |
| H A D | sandbox_wdt.c | 18 state->wdt.counter = timeout; in sandbox_wdt_start()
|
| /rk3399_rockchip-uboot/include/configs/ |
| H A D | zmx25.h | 20 (&((struct gpt_regs *)IMX_GPT1_BASE)->counter)
|