Home
last modified time | relevance | path

Searched refs:ccount (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/u-boot/arch/xtensa/lib/
H A Dtime.c15 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 Dppp_mppe.c102 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 Dtimex.h40 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 Dmtd-xip.h9 #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 Dtest_timer.S9 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 Dtest_sr.S81 test_sr ccount, 1
/openbmc/u-boot/board/siemens/common/
H A Dboard.c192 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 Dsmp.c196 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 Dhead.S141 wsr a0, ccount # not really necessary, but nice
299 wsr a3, ccount
/openbmc/qemu/hw/input/
H A Dps2.c277 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 Dledtrig-pattern.c226 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 Dgdb-config.c.inc67 XTREG( 44,176,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
H A Dxtensa-modules.c.inc6376 { "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 Dgdb-config.c.inc103 XTREG( 79,316,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)
H A Dxtensa-modules.c.inc9414 { "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 Dgdb-config.c.inc210 XTREG(94, 376, 32, 4, 4, 0x02ea, 0x000f, -2, 2, 0x1000, ccount,
H A Dxtensa-modules.c.inc11822 { "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 Dgdb-config.c.inc120 XTREG(95, 380, 32, 4, 4, 0x02ea, 0x000f, -2, 2, 0x1000, ccount, 0, 0, 0, 0, 0, 0)
H A Dxtensa-modules.c.inc12470 { "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 Dgdb-config.c.inc117 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 Dgdb-config.c.inc112 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 Dgdb-config.c.inc149 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 Dxtensa-modules.c.inc8413 { "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 Dgdb-config.c.inc153 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 Dgdb-config.c.inc287 XTREG(208,1952,32, 4, 4,0x02ea,0x000f,-2, 2,0x1000,ccount, 0,0,0,0,0,0)

12