Home
last modified time | relevance | path

Searched full:cnt (Results 1 – 25 of 1684) sorted by relevance

12345678910>>...68

/openbmc/linux/arch/ia64/lib/
H A Dmemset.S27 #define cnt in2 macro
69 cmp.eq p_scr, p0 = cnt, r0
84 cmp.gt p_scr, p0 = 16, cnt // is it a minimalistic task?
93 (p_y) add cnt = -8, cnt //
100 (p_yy) add cnt = -4, cnt //
108 (p_y) add cnt = -2, cnt //
118 cmp.gt p_scr, p0 = tmp, cnt // is it a minimalistic task?
120 (p_yy) add cnt = -1, cnt //
126 shr.u linecnt = cnt, LSIZE_SH
132 and tmp = -(LINE_SIZE), cnt // compute end of range
[all …]
/openbmc/u-boot/common/
H A Dmemsize.c31 long cnt; in get_ram_size() local
36 for (cnt = (maxsize / sizeof(long)) >> 1; cnt > 0; cnt >>= 1) { in get_ram_size()
37 addr = base + cnt; /* pointer arith! */ in get_ram_size()
41 *addr = ~cnt; in get_ram_size()
55 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size()
56 addr = base + cnt; in get_ram_size()
63 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size()
64 addr = base + cnt; /* pointer arith! */ in get_ram_size()
67 if (val != ~cnt) { in get_ram_size()
68 size = cnt * sizeof(long); in get_ram_size()
[all …]
/openbmc/linux/drivers/misc/
H A Dtifm_7xx1.c40 unsigned int irq_status, cnt; in tifm_7xx1_isr() local
52 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr()
53 sock = fm->sockets[cnt]; in tifm_7xx1_isr()
55 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1)) in tifm_7xx1_isr()
57 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1)) in tifm_7xx1_isr()
81 int cnt; in tifm_7xx1_toggle_sock_power() local
85 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
90 msleep(cnt); in tifm_7xx1_toggle_sock_power()
109 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
114 msleep(cnt); in tifm_7xx1_toggle_sock_power()
[all …]
/openbmc/linux/arch/arm64/include/asm/
H A Darch_timer.h67 u64 cnt; in arch_timer_read_cntpct_el0() local
72 : "=r" (cnt)); in arch_timer_read_cntpct_el0()
74 return cnt; in arch_timer_read_cntpct_el0()
79 u64 cnt; in arch_timer_read_cntvct_el0() local
84 : "=r" (cnt)); in arch_timer_read_cntvct_el0()
86 return cnt; in arch_timer_read_cntvct_el0()
172 u64 cnt; in __arch_counter_get_cntpct_stable() local
174 cnt = arch_timer_reg_read_stable(cntpct_el0); in __arch_counter_get_cntpct_stable()
175 arch_counter_enforce_ordering(cnt); in __arch_counter_get_cntpct_stable()
176 return cnt; in __arch_counter_get_cntpct_stable()
[all …]
H A Dhardirq.h23 unsigned int cnt; member
37 if (___ctx->cnt) { \
38 ___ctx->cnt++; \
48 * Make sure the sysreg write is performed before ___ctx->cnt \
49 * is set to 1. NMIs that see cnt == 1 will rely on us. \
52 ___ctx->cnt = 1; \
54 * Make sure ___ctx->cnt is set before we save ___hcr. We \
73 * ___ctx->cnt as it makes ___ctx->hcr updatable again. \
76 ___ctx->cnt--; \
78 * Make sure ___ctx->cnt release is visible before we \
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtc_counters.c33 struct efx_tc_counter *cnt = ptr; in efx_tc_counter_free() local
35 WARN_ON(!list_empty(&cnt->users)); in efx_tc_counter_free()
39 * threads could still be obtaining new pointers to *cnt if they can in efx_tc_counter_free()
42 flush_work(&cnt->work); in efx_tc_counter_free()
43 EFX_WARN_ON_PARANOID(spin_is_locked(&cnt->lock)); in efx_tc_counter_free()
44 kfree(cnt); in efx_tc_counter_free()
89 struct efx_tc_counter *cnt = container_of(work, struct efx_tc_counter, work); in efx_tc_counter_work() local
95 spin_lock_bh(&cnt->lock); in efx_tc_counter_work()
96 touched = READ_ONCE(cnt->touched); in efx_tc_counter_work()
98 list_for_each_entry(act, &cnt->users, count_user) { in efx_tc_counter_work()
[all …]
/openbmc/linux/fs/quota/
H A Ddquot.c404 int ret, err, cnt; in mark_all_dquot_dirty() local
408 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in mark_all_dquot_dirty()
409 dquot = srcu_dereference(dquots[cnt], &dquot_srcu); in mark_all_dquot_dirty()
421 unsigned int cnt; in dqput_all() local
423 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dqput_all()
424 dqput(dquot[cnt]); in dqput_all()
688 int cnt; in dquot_writeback_dquots() local
695 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in dquot_writeback_dquots()
696 if (type != -1 && cnt != type) in dquot_writeback_dquots()
698 if (!sb_has_quota_active(sb, cnt)) in dquot_writeback_dquots()
[all …]
/openbmc/linux/arch/sh/mm/
H A Dflush-sh4.c16 reg_size_t aligned_start, v, cnt, end; in sh4__flush_wback_region() local
22 cnt = (end - v) / L1_CACHE_BYTES; in sh4__flush_wback_region()
24 while (cnt >= 8) { in sh4__flush_wback_region()
33 cnt -= 8; in sh4__flush_wback_region()
36 while (cnt) { in sh4__flush_wback_region()
38 cnt--; in sh4__flush_wback_region()
50 reg_size_t aligned_start, v, cnt, end; in sh4__flush_purge_region() local
56 cnt = (end - v) / L1_CACHE_BYTES; in sh4__flush_purge_region()
58 while (cnt >= 8) { in sh4__flush_purge_region()
67 cnt -= 8; in sh4__flush_purge_region()
[all …]
/openbmc/linux/samples/trace_events/
H A Dtrace-events-sample.c22 static void do_simple_thread_func(int cnt, const char *fmt, ...) in do_simple_thread_func() argument
27 int len = cnt % 5; in do_simple_thread_func()
40 trace_foo_bar("hello", cnt, array, random_strings[len], in do_simple_thread_func()
45 trace_foo_with_template_simple("HELLO", cnt); in do_simple_thread_func()
47 trace_foo_bar_with_cond("Some times print", cnt); in do_simple_thread_func()
49 trace_foo_with_template_cond("prints other times", cnt); in do_simple_thread_func()
51 trace_foo_with_template_print("I have to be different", cnt); in do_simple_thread_func()
53 trace_foo_rel_loc("Hello __rel_loc", cnt, bitmask, current->cpus_ptr); in do_simple_thread_func()
56 static void simple_thread_func(int cnt) in simple_thread_func() argument
58 do_simple_thread_func(cnt, "iter=%d", cnt); in simple_thread_func()
[all …]
/openbmc/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfunc_traceonoff_triggers.tc33 cnt=`cnt_trace`
34 if [ $cnt -ne 0 ]; then
46 cnt=`cnt_trace`
47 if [ $cnt -eq 0 ]; then
75 cnt=`grep schedule set_ftrace_filter | wc -l`
76 if [ $cnt -ne 1 ]; then
80 cnt=`cnt_trace`
84 if [ $cnt -ne $cnt2 ]; then
103 cnt=`cnt_trace`
104 if [ $cnt -ne 0 ]; then
[all …]
/openbmc/linux/lib/
H A Dfind_bit_benchmark.c38 unsigned long i, cnt; in test_find_first_bit() local
42 for (cnt = i = 0; i < len; cnt++) { in test_find_first_bit()
47 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit()
55 unsigned long i, cnt; in test_find_first_and_bit() local
61 for (cnt = i = 0; i < len; cnt++) { in test_find_first_and_bit()
66 pr_err("find_first_and_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_and_bit()
73 unsigned long i, cnt; in test_find_next_bit() local
77 for (cnt = i = 0; i < BITMAP_LEN; cnt++) in test_find_next_bit()
80 pr_err("find_next_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_bit()
87 unsigned long i, cnt; in test_find_next_zero_bit() local
[all …]
/openbmc/linux/fs/ntfs/
H A Dbitmap.c36 s64 cnt = count; in __ntfs_bitmap_set_bits_in_run() local
47 (unsigned long long)cnt, (unsigned int)value, in __ntfs_bitmap_set_bits_in_run()
50 BUG_ON(cnt < 0); in __ntfs_bitmap_set_bits_in_run()
54 * bits, i.e. @start_bit and @start_bit + @cnt - 1, respectively. in __ntfs_bitmap_set_bits_in_run()
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
79 while ((bit & 7) && cnt) { in __ntfs_bitmap_set_bits_in_run()
80 cnt--; in __ntfs_bitmap_set_bits_in_run()
87 if (!cnt) in __ntfs_bitmap_set_bits_in_run()
95 * to @cnt. in __ntfs_bitmap_set_bits_in_run()
97 len = min_t(s64, cnt >> 3, PAGE_SIZE - pos); in __ntfs_bitmap_set_bits_in_run()
[all …]
/openbmc/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-ctrl.c298 unsigned int uc,cnt; in gen_bitmask_string() local
309 cnt = scnprintf(ptr,len,"%s%s%s", in gen_bitmask_string()
314 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
323 cnt = scnprintf(ptr,len,"%s0x%lx", in gen_bitmask_string()
326 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
329 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string()
332 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
335 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string()
338 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
400 unsigned int cnt; in parse_tlist() local
[all …]
/openbmc/linux/drivers/usb/mon/
H A Dmon_text.c101 int cnt, limit; member
411 ptr.cnt = 0; in mon_text_read_t()
417 ptr.cnt += scnprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_t()
421 rp->printf_togo = ptr.cnt; in mon_text_read_t()
450 ptr.cnt = 0; in mon_text_read_u()
465 ptr.cnt += scnprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_u()
469 rp->printf_togo = ptr.cnt; in mon_text_read_u()
523 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_t()
541 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_u()
552 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmonitor_stats.c68 static int fill_monitor_counter_ppcnt_set1(int cnt, u32 *in) in fill_monitor_counter_ppcnt_set1() argument
74 ppcnt_cnt++, cnt++) { in fill_monitor_counter_ppcnt_set1()
76 monitor_counter[cnt].type, in fill_monitor_counter_ppcnt_set1()
79 monitor_counter[cnt].counter, in fill_monitor_counter_ppcnt_set1()
85 static int fill_monitor_counter_q_counter_set1(int cnt, int q_counter, u32 *in) in fill_monitor_counter_q_counter_set1() argument
88 monitor_counter[cnt].type, in fill_monitor_counter_q_counter_set1()
91 monitor_counter[cnt].counter, in fill_monitor_counter_q_counter_set1()
94 monitor_counter[cnt].counter_group_id, in fill_monitor_counter_q_counter_set1()
109 int cnt = 0; in mlx5e_set_monitor_counter() local
112 max_num_of_counters >= (NUM_REQ_PPCNT_COUNTER_S1 + cnt)) in mlx5e_set_monitor_counter()
[all …]
/openbmc/qemu/tests/qtest/
H A Dxlnx-versal-trng-test.c286 static size_t trng_collect(uint32_t *rnd, size_t cnt) in trng_collect() argument
290 for (i = 0; i < cnt; i++) { in trng_collect()
306 const size_t cnt = TEST_DATA_WORDS; in trng_test_autogen() local
316 n = trng_collect(prng, cnt); in trng_test_autogen()
317 if (n != cnt) { in trng_test_autogen()
319 (unsigned)cnt, (unsigned)n); in trng_test_autogen()
326 n = trng_collect(rng, cnt); in trng_test_autogen()
327 if (n != cnt) { in trng_test_autogen()
329 (unsigned)cnt, (unsigned)n); in trng_test_autogen()
336 n = trng_collect(rng, cnt); in trng_test_autogen()
[all …]
/openbmc/u-boot/arch/arm/dts/
H A Dsocfpga_arria10_socdk_sdmmc_handoff.dtsi76 mpuclk-cnt = <0>; /* Field: mpuclk.cnt */
78 nocclk-cnt = <0>; /* Field: nocclk.cnt */
80 cntr2clk-cnt = <900>; /* Field: cntr2clk.cnt */
81 cntr3clk-cnt = <900>; /* Field: cntr3clk.cnt */
82 cntr4clk-cnt = <900>; /* Field: cntr4clk.cnt */
83 cntr5clk-cnt = <900>; /* Field: cntr5clk.cnt */
84 cntr6clk-cnt = <900>; /* Field: cntr6clk.cnt */
85 cntr7clk-cnt = <900>; /* Field: cntr7clk.cnt */
87 cntr8clk-cnt = <900>; /* Field: cntr8clk.cnt */
88 cntr9clk-cnt = <900>; /* Field: cntr9clk.cnt */
[all …]
/openbmc/qemu/contrib/plugins/
H A Dhotblocks.c55 ExecCount *cnt = value; in exec_count_free() local
56 qemu_plugin_scoreboard_free(cnt->exec_count); in exec_count_free()
99 ExecCount *cnt = (ExecCount *)udata; in vcpu_tb_exec() local
100 qemu_plugin_u64_add(qemu_plugin_scoreboard_u64(cnt->exec_count), in vcpu_tb_exec()
111 ExecCount *cnt; in vcpu_tb_trans() local
117 cnt = (ExecCount *) g_hash_table_lookup(hotblocks, (gconstpointer) hash); in vcpu_tb_trans()
118 if (cnt) { in vcpu_tb_trans()
119 cnt->trans_count++; in vcpu_tb_trans()
121 cnt = g_new0(ExecCount, 1); in vcpu_tb_trans()
122 cnt->start_addr = pc; in vcpu_tb_trans()
[all …]
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_vnic.c119 for (j = 0; j < chunk->cnt; j++) { in usnic_vnic_dump()
139 u16 cnt) in usnic_vnic_res_spec_update() argument
145 spec->resources[i].cnt = cnt; in usnic_vnic_res_spec_update()
166 if (min_spec->resources[i].cnt > in usnic_vnic_res_spec_satisfied()
167 res_spec->resources[i].cnt) in usnic_vnic_res_spec_satisfied()
188 res_cnt = res_spec->resources[i].cnt; in usnic_vnic_spec_dump()
190 "Res: %s Cnt: %d ", in usnic_vnic_spec_dump()
207 res_cnt = res_spec->resources[i].cnt; in usnic_vnic_check_room()
222 return vnic->chunks[type].cnt; in usnic_vnic_res_cnt()
233 int cnt, void *owner) in usnic_vnic_get_resources() argument
[all …]
/openbmc/linux/arch/mips/kernel/
H A Dcevt-r4k.c22 unsigned int cnt; in mips_next_event() local
25 cnt = read_c0_count(); in mips_next_event()
26 cnt += delta; in mips_next_event()
27 write_c0_compare(cnt); in mips_next_event()
28 res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0; in mips_next_event()
51 unsigned int cnt, i, j, k, l; in calculate_min_delta() local
65 cnt = read_c0_count(); in calculate_min_delta()
66 write_c0_compare(cnt); in calculate_min_delta()
67 cnt = read_c0_count() - cnt; in calculate_min_delta()
71 if (cnt < buf1[k]) { in calculate_min_delta()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c111 const char btf_str_sec[] = "\0bpf_spin_lock\0val\0cnt\0l"; in load_btf()
120 BTF_MEMBER_ENC(19, 1, 0), /* int cnt; */ in load_btf()
163 int cnt; in insert_close_thread() member
165 } value = { .cnt = 0xeB9F, .lock = 0, }; in insert_close_thread()
280 int cnt; in update_thread() member
282 } value = { .cnt = 0xeB9F, .lock = 0, }; in update_thread()
459 int cnt; in test_sk_storage_map_basic() member
461 } value = { .cnt = 0xeB9f, .lock = 1, }, lookup_value; in test_sk_storage_map_basic()
486 CHECK(err || lookup_value.lock || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic()
488 "err:%d errno:%d lock:%x cnt:%x(%x)\n", in test_sk_storage_map_basic()
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/
H A Dsdio_ops_linux.c33 s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) in _sd_cmd52_read() argument
51 for (i = 0; i < cnt; i++) { in _sd_cmd52_read()
64 s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) in sd_cmd52_read() argument
86 err = _sd_cmd52_read(pintfhdl, addr, cnt, pdata); in sd_cmd52_read()
97 s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) in _sd_cmd52_write() argument
115 for (i = 0; i < cnt; i++) { in _sd_cmd52_write()
128 s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) in sd_cmd52_write() argument
150 err = _sd_cmd52_write(pintfhdl, addr, cnt, pdata); in sd_cmd52_write()
321 *cnt amount to read
328 s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) in _sd_read() argument
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dringbuf.c31 static void atomic_inc(int *cnt) in atomic_inc() argument
33 __atomic_add_fetch(cnt, 1, __ATOMIC_SEQ_CST); in atomic_inc()
36 static int atomic_xchg(int *cnt, int val) in atomic_xchg() argument
38 return __atomic_exchange_n(cnt, val, __ATOMIC_SEQ_CST); in atomic_xchg()
91 int err, cnt, rb_fd; in ringbuf_subtest() local
185 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest()
186 CHECK(cnt != 2, "cnt", "exp %d samples, got %d\n", 2, cnt); in ringbuf_subtest()
192 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest()
193 CHECK(cnt != 0, "cnt", "exp %d samples, got %d\n", 0, cnt); in ringbuf_subtest()
209 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest()
[all …]
/openbmc/linux/tools/lib/subcmd/
H A Dhelp.c26 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
27 cmds->names[cmds->cnt++] = ent; in add_cmdname()
34 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames()
37 cmds->cnt = 0; in clean_cmdnames()
52 if (!cmds->cnt) in uniq()
55 for (i = 1; i < cmds->cnt; i++) { in uniq()
59 for (i = 0, j = 0; i < cmds->cnt; i++) { in uniq()
67 cmds->cnt = j; in uniq()
78 while (ci < cmds->cnt && ei < excludes->cnt) { in exclude_cmds()
96 while (ci < cmds->cnt) { in exclude_cmds()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Ddisp.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub) in nvbios_disp_table() argument
45 *cnt = nvbios_rd08(bios, data + 0x03); in nvbios_disp_table()
61 u8 hdr, cnt; in nvbios_disp_entry() local
62 u16 data = nvbios_disp_table(bios, ver, &hdr, &cnt, len, sub); in nvbios_disp_entry()
63 if (data && idx < cnt) in nvbios_disp_entry()
83 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_outp_entry() argument
88 *cnt = nvbios_rd08(bios, info.data + 0x05); in nvbios_outp_entry()
97 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) in nvbios_outp_parse() argument
99 u16 data = nvbios_outp_entry(bios, idx, ver, hdr, cnt, len); in nvbios_outp_parse()
117 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) in nvbios_outp_match() argument
[all …]

12345678910>>...68