/openbmc/u-boot/arch/xtensa/lib/ |
H A D | time.c | 15 ulong ccount; in get_ccount() local 16 asm volatile ("rsr %0,"__stringify(CCOUNT) : "=a" (ccount)); in get_ccount() 17 return ccount; in get_ccount() 73 register ulong ccount; in get_timer() local 74 __asm__ volatile ("rsr %0, CCOUNT" : "=a"(ccount)); in get_timer() 75 return ccount / (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ) - base; in get_timer() 112 unsigned long ccount; in timer_get_us() local 114 __asm__ volatile ("rsr %0, CCOUNT" : "=a"(ccount)); in timer_get_us() 115 return ccount / (CONFIG_SYS_CLK_FREQ / 1000000); in timer_get_us()
|
/openbmc/linux/drivers/net/ppp/ |
H A D | ppp_mppe.c | 102 unsigned ccount; /* 12-bit coherency count (seqno) */ member 293 state->ccount = MPPE_CCOUNT_SPACE - 1; in mppe_init() 369 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress() 372 state->ccount); in mppe_compress() 373 put_unaligned_be16(state->ccount, obuf); in mppe_compress() 376 ((state->ccount & 0xff) == 0xff) || /* "flag" packet */ in mppe_compress() 438 unsigned ccount; in mppe_decompress() local 463 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress() 466 state->unit, ccount); in mppe_decompress() 482 if (state->stateful && ((ccount & 0xff) == 0xff) && !flushed) { in mppe_decompress() [all …]
|
/openbmc/linux/arch/xtensa/include/asm/ |
H A D | timex.h | 40 return xtensa_get_sr(ccount); in get_ccount() 43 static inline void set_ccount (unsigned long ccount) in set_ccount() argument 45 xtensa_set_sr(ccount, ccount); in set_ccount()
|
H A D | mtd-xip.h | 9 #define xip_currtime() (xtensa_get_sr(ccount)) 10 #define xip_elapsed_since(x) ((xtensa_get_sr(ccount) - (x)) / 1000) /* should work up to 1GHz */
|
/openbmc/qemu/tests/tcg/xtensa/ |
H A D | test_timer.S | 9 rsr \delta, ccount 10 rsr \target, ccount 20 test ccount 21 rsr a3, ccount 22 rsr a4, ccount 27 rsr a3, ccount 28 rsr a4, ccount 31 wsr a2, ccount 33 rsr a3, ccount 80 wsr a2, ccount [all …]
|
H A D | test_sr.S | 81 test_sr ccount, 1
|
/openbmc/u-boot/board/siemens/common/ |
H A D | board.c | 192 unsigned char i, idx, pos1, pos2, ccount; in set_env_gpios() local 208 ccount = 0; in set_env_gpios() 211 if (ccount++ < 1) in set_env_gpios() 218 if (pos2 <= pos1 || ccount > 2) in set_env_gpios()
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | smp.c | 196 unsigned long ccount; in boot_secondary() local 210 ccount = get_ccount(); in boot_secondary() 211 while (!ccount); in boot_secondary() 213 WRITE_ONCE(cpu_start_ccount, ccount); in boot_secondary() 221 ccount = READ_ONCE(cpu_start_ccount); in boot_secondary() 222 } while (ccount && time_before(jiffies, timeout)); in boot_secondary() 224 if (ccount) { in boot_secondary()
|
H A D | head.S | 141 wsr a0, ccount # not really necessary, but nice 299 wsr a3, ccount
|
/openbmc/qemu/hw/input/ |
H A D | ps2.c | 277 int ccount; in ps2_cqueue_reset() local 283 ccount = (q->cwptr - q->rptr) & (PS2_BUFFER_SIZE - 1); in ps2_cqueue_reset() 284 q->count -= ccount; in ps2_cqueue_reset() 1028 int ccount = 0; in ps2_common_post_load() local 1032 ccount = (q->cwptr - q->rptr) & (PS2_BUFFER_SIZE - 1); in ps2_common_post_load() 1033 if (ccount > PS2_QUEUE_HEADROOM) { in ps2_common_post_load() 1034 ccount = PS2_QUEUE_HEADROOM; in ps2_common_post_load() 1039 if (q->count < ccount) { in ps2_common_post_load() 1040 q->count = ccount; in ps2_common_post_load() 1041 } else if (q->count > ccount + PS2_QUEUE_SIZE) { in ps2_common_post_load() [all …]
|
/openbmc/linux/drivers/leds/trigger/ |
H A D | ledtrig-pattern.c | 226 int ccount, cr, offset = 0; in pattern_trig_store_patterns_string() local 230 ccount = sscanf(buf + offset, "%u %u %n", in pattern_trig_store_patterns_string() 234 if (ccount != 2 || in pattern_trig_store_patterns_string()
|
/openbmc/qemu/target/xtensa/core-lx106/ |
H A D | gdb-config.c.inc | 67 XTREG( 44,176,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
|
H A D | xtensa-modules.c.inc | 6376 { "rsr.ccount", ICLASS_xt_iclass_rsr_ccount, 6379 { "wsr.ccount", ICLASS_xt_iclass_wsr_ccount, 6382 { "xsr.ccount", ICLASS_xt_iclass_xsr_ccount,
|
/openbmc/qemu/target/xtensa/core-sample_controller/ |
H A D | gdb-config.c.inc | 103 XTREG( 79,316,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
|
H A D | xtensa-modules.c.inc | 9414 { "rsr.ccount", ICLASS_xt_iclass_rsr_ccount, 9417 { "wsr.ccount", ICLASS_xt_iclass_wsr_ccount, 9420 { "xsr.ccount", ICLASS_xt_iclass_xsr_ccount,
|
/openbmc/qemu/target/xtensa/core-dc232b/ |
H A D | gdb-config.c.inc | 210 XTREG(94, 376, 32, 4, 4, 0x02ea, 0x000f, -2, 2, 0x1000, ccount,
|
H A D | xtensa-modules.c.inc | 11822 { "rsr.ccount", 254 /* xt_iclass_rsr.ccount */, 11825 { "wsr.ccount", 255 /* xt_iclass_wsr.ccount */, 11828 { "xsr.ccount", 256 /* xt_iclass_xsr.ccount */, 12434 return 358; /* xsr.ccount */ 12632 return 356; /* rsr.ccount */ 12769 return 357; /* wsr.ccount */
|
/openbmc/qemu/target/xtensa/core-dc233c/ |
H A D | gdb-config.c.inc | 120 XTREG(95, 380, 32, 4, 4, 0x02ea, 0x000f, -2, 2, 0x1000, ccount, 0, 0, 0, 0, 0, 0)
|
H A D | xtensa-modules.c.inc | 12470 { "rsr.ccount", ICLASS_xt_iclass_rsr_ccount, 12473 { "wsr.ccount", ICLASS_xt_iclass_wsr_ccount, 12476 { "xsr.ccount", ICLASS_xt_iclass_xsr_ccount,
|
/openbmc/qemu/target/xtensa/core-test_mmuhifi_c3/ |
H A D | gdb-config.c.inc | 117 XTREG( 82,376,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
|
/openbmc/qemu/target/xtensa/core-de212/ |
H A D | gdb-config.c.inc | 112 XTREG( 88,352,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
|
/openbmc/qemu/target/xtensa/core-test_kc705_be/ |
H A D | gdb-config.c.inc | 149 XTREG(114,504,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
|
/openbmc/qemu/target/xtensa/core-fsf/ |
H A D | xtensa-modules.c.inc | 8413 { "rsr.ccount", 191 /* xt_iclass_rsr.ccount */, 8416 { "wsr.ccount", 192 /* xt_iclass_wsr.ccount */, 8419 { "xsr.ccount", 193 /* xt_iclass_xsr.ccount */, 8893 return 235; /* xsr.ccount */ 9038 return 233; /* rsr.ccount */ 9137 return 234; /* wsr.ccount */
|
/openbmc/qemu/target/xtensa/core-de233_fpu/ |
H A D | gdb-config.c.inc | 153 XTREG(114,520,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
|
/openbmc/qemu/target/xtensa/core-dsp3400/ |
H A D | gdb-config.c.inc | 287 XTREG(208,1952,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
|