Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 1074) sorted by relevance

12345678910>>...43

/linux/lib/
H A Dregion_alloc_benchmark.c28 unsigned long cnt, idx; in benchmark_bitmap() local
34 for (cnt = 0; cnt <= cap; cnt++) { in benchmark_bitmap()
35 idx = bitmap_find_next_zero_area(bitmap, cap, 0, reg_sz[cnt], 0); in benchmark_bitmap()
39 reg_idx[cnt] = idx; in benchmark_bitmap()
40 bitmap_set(bitmap, idx, reg_sz[cnt]); in benchmark_bitmap()
44 idx = cnt; in benchmark_bitmap()
55 alloc_time, free_time, cnt, cap, sz); in benchmark_bitmap()
57 return cnt; in benchmark_bitmap()
82 unsigned long cnt, idx, off, nr_ids = 0; in benchmark_ida() local
87 for (cnt = 0; cnt <= cap; cnt++) { in benchmark_ida()
[all …]
H A Dfind_bit_benchmark.c38 unsigned long i, cnt; in test_find_first_bit() local
44 for (cnt = i = 0; i < len; cnt++) { in test_find_first_bit()
49 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit()
58 unsigned long i, cnt; in test_find_first_and_bit() local
64 for (cnt = i = 0; i < len; cnt++) { in test_find_first_and_bit()
69 pr_err("find_first_and_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_and_bit()
76 unsigned long i, cnt; in test_find_next_bit() local
80 for (cnt = i = 0; i < BITMAP_LEN; cnt++) in test_find_next_bit()
83 pr_err("find_next_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_bit()
90 unsigned long i, cnt; in test_find_next_zero_bit() local
[all …]
H A Drcuref.c194 unsigned int cnt = atomic_read(&ref->refcnt); in rcuref_get_slowpath() local
201 if (cnt >= RCUREF_RELEASED) { in rcuref_get_slowpath()
214 if (WARN_ONCE(cnt > RCUREF_MAXREF, "rcuref saturated - leaking memory")) in rcuref_get_slowpath()
237 bool rcuref_put_slowpath(rcuref_t *ref, unsigned int cnt) in rcuref_put_slowpath() argument
240 if (likely(cnt == RCUREF_NOREF)) { in rcuref_put_slowpath()
250 if (!atomic_try_cmpxchg_release(&ref->refcnt, &cnt, RCUREF_DEAD)) in rcuref_put_slowpath()
266 if (WARN_ONCE(cnt >= RCUREF_RELEASED, "rcuref - imbalanced put()")) { in rcuref_put_slowpath()
276 if (cnt > RCUREF_MAXREF) in rcuref_put_slowpath()
/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
104 cnt=`cnt_trace`
105 if [ $cnt -ne 0 ]; then
[all …]
/linux/fs/quota/
H A Ddquot.c430 int ret, err, cnt; in mark_all_dquot_dirty() local
434 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in mark_all_dquot_dirty()
435 dquot = srcu_dereference(dquots[cnt], &dquot_srcu); in mark_all_dquot_dirty()
447 unsigned int cnt; in dqput_all() local
449 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dqput_all()
450 dqput(dquot[cnt]); in dqput_all()
713 int cnt; in dquot_writeback_dquots() local
720 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in dquot_writeback_dquots()
721 if (type != -1 && cnt != type) in dquot_writeback_dquots()
723 if (!sb_has_quota_active(sb, cnt)) in dquot_writeback_dquots()
[all …]
/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 …]
/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 …]
/linux/tools/testing/selftests/kvm/loongarch/
H A Dpmu_test.c55 u64 cnt[4]; in guest_pmu_base_test() local
85 cnt[0] = csr_read(LOONGARCH_CSR_PERFCNTR0); in guest_pmu_base_test()
86 GUEST_PRINTF("csr_perfcntr0 is %lx\n", cnt[0]); in guest_pmu_base_test()
87 cnt[1] = csr_read(LOONGARCH_CSR_PERFCNTR1); in guest_pmu_base_test()
88 GUEST_PRINTF("csr_perfcntr1 is %lx\n", cnt[1]); in guest_pmu_base_test()
89 cnt[2] = csr_read(LOONGARCH_CSR_PERFCNTR2); in guest_pmu_base_test()
90 GUEST_PRINTF("csr_perfcntr2 is %lx\n", cnt[2]); in guest_pmu_base_test()
91 cnt[3] = csr_read(LOONGARCH_CSR_PERFCNTR3); in guest_pmu_base_test()
92 GUEST_PRINTF("csr_perfcntr3 is %lx\n", cnt[3]); in guest_pmu_base_test()
95 GUEST_ASSERT(cnt[0] > EXPECTED_CYCLES_MIN && cnt[0] < UPPER_BOUND); in guest_pmu_base_test()
[all …]
/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 …]
/linux/drivers/iio/adc/
H A Dpac1934.c469 int cnt; in pac1934_get_samp_rate_idx() local
471 for (cnt = 0; cnt < ARRAY_SIZE(samp_rate_map_tbl); cnt++) in pac1934_get_samp_rate_idx()
472 if (new_samp_rate == samp_rate_map_tbl[cnt]) in pac1934_get_samp_rate_idx()
473 return cnt; in pac1934_get_samp_rate_idx()
595 u32 samp_rate, cnt, tmp; in pac1934_reg_snapshot() local
642 for (cnt = 0; cnt < info->phys_channels; cnt++) { in pac1934_reg_snapshot()
644 if ((ctrl_regs_tmp << cnt) & 0x80) in pac1934_reg_snapshot()
648 if (info->enable_energy[cnt]) { in pac1934_reg_snapshot()
649 curr_energy = info->chip_reg_data.energy_sec_acc[cnt]; in pac1934_reg_snapshot()
653 if (info->bi_dir[cnt]) in pac1934_reg_snapshot()
[all …]
/linux/tools/testing/selftests/bpf/
H A Djit_disasm_helpers.c29 __u32 cnt; member
53 for (i = 0; i < labels->cnt; ++i) in lookup_symbol()
57 if (labels->cnt < MAX_LOCAL_LABELS && ref_value < labels->prog_len) in lookup_symbol()
58 labels->pcs[labels->cnt++] = ref_value; in lookup_symbol()
66 int i, cnt; in disasm_insn() local
68 cnt = LLVMDisasmInstruction(ctx, image + pc, len - pc, pc, in disasm_insn()
70 if (cnt > 0) in disasm_insn()
71 return cnt; in disasm_insn()
97 int i, cnt, err = 0; in disasm_one_func() local
116 cnt in disasm_one_func()
[all...]
/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 …]
/linux/kernel/bpf/
H A Dfixups.c184 struct bpf_insn *insn, int cnt) in add_kfunc_in_insns() argument
188 for (i = 0; i < cnt; i++, insn++) { in add_kfunc_in_insns()
216 struct bpf_prog *new_prog, u32 off, u32 cnt) in adjust_insn_aux_data() argument
228 data[off].zext_dst = bpf_insn_def32(new_prog, insn + off + cnt - 1) >= 0; in adjust_insn_aux_data()
230 if (cnt == 1) in adjust_insn_aux_data()
235 memmove(data + off + cnt - 1, data + off, in adjust_insn_aux_data()
236 sizeof(struct bpf_insn_aux_data) * (prog_len - off - cnt + 1)); in adjust_insn_aux_data()
237 memset(data + off, 0, sizeof(struct bpf_insn_aux_data) * (cnt - 1)); in adjust_insn_aux_data()
238 for (i = off; i < off + cnt - 1; i++) { in adjust_insn_aux_data()
251 if (data[off + cnt - 1].indirect_target) { in adjust_insn_aux_data()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmonitor_stats.c80 static int fill_monitor_counter_ppcnt_set1(int cnt, u32 *in) in fill_monitor_counter_ppcnt_set1() argument
86 ppcnt_cnt++, cnt++) { in fill_monitor_counter_ppcnt_set1()
88 monitor_counter[cnt].type, in fill_monitor_counter_ppcnt_set1()
91 monitor_counter[cnt].counter, in fill_monitor_counter_ppcnt_set1()
97 static int fill_monitor_counter_q_counter_set1(int cnt, int q_counter, u32 *in) in fill_monitor_counter_q_counter_set1() argument
100 monitor_counter[cnt].type, in fill_monitor_counter_q_counter_set1()
103 monitor_counter[cnt].counter, in fill_monitor_counter_q_counter_set1()
106 monitor_counter[cnt].counter_group_id, in fill_monitor_counter_q_counter_set1()
119 int cnt = 0; in mlx5e_set_monitor_counter() local
122 max_num_of_counters >= (NUM_REQ_PPCNT_COUNTER_S1 + cnt)) in mlx5e_set_monitor_counter()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Ddp.c29 nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dp_table() argument
47 *cnt = nvbios_rd08(bios, data + 0x03); in nvbios_dp_table()
61 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dpout_entry() argument
63 u16 data = nvbios_dp_table(bios, ver, hdr, cnt, len); in nvbios_dpout_entry()
64 if (data && idx < *cnt) { in nvbios_dpout_entry()
72 *cnt = nvbios_rd08(bios, outp + 0x04); in nvbios_dpout_entry()
78 *cnt = 0; in nvbios_dpout_entry()
92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_parse() argument
95 u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len); in nvbios_dpout_parse()
139 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_match() argument
[all …]
H A Dboost.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_boostTe() argument
44 *cnt = nvbios_rd08(bios, boost + 5); in nvbios_boostTe()
60 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_boostEe() argument
63 u32 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_boostEe()
64 if (data && idx < *cnt) { in nvbios_boostEe()
67 *cnt = snr; in nvbios_boostEe()
76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) in nvbios_boostEp() argument
78 u32 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len); in nvbios_boostEp()
90 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) in nvbios_boostEm() argument
93 while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) { in nvbios_boostEm()
[all …]
H A DM0205.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0205Te() argument
46 *cnt = nvbios_rd08(bios, data + 0x05); in nvbios_M0205Te()
59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, in nvbios_M0205Tp() argument
62 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz); in nvbios_M0205Tp()
76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_M0205Ee() argument
79 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0205Ee()
80 if (data && idx < *cnt) { in nvbios_M0205Ee()
83 *cnt = snr; in nvbios_M0205Ee()
92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_M0205Ep() argument
95 u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0205Ep()
[all …]
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 …]
/linux/tools/lib/subcmd/
H A Dhelp.c27 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
28 cmds->names[cmds->cnt++] = ent; in add_cmdname()
35 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames()
38 cmds->cnt = 0; in clean_cmdnames()
53 if (!cmds->cnt) in uniq()
56 for (i = 1; i < cmds->cnt; i++) { in uniq()
60 for (i = 0, j = 0; i < cmds->cnt; i++) { in uniq()
68 cmds->cnt = j; in uniq()
78 if (!excludes->cnt) in exclude_cmds()
82 while (ci < cmds->cnt && ei < excludes->cnt) { in exclude_cmds()
[all …]
/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()
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
239 if (usnic_vnic_res_free_cnt(vnic, type) < cnt || cnt < 0 || !owner) in usnic_vnic_get_resources()
[all …]
/linux/fs/ntfs/
H A Dbitmap.c123 s64 cnt = count; in __ntfs_bitmap_set_bits_in_run() local
135 (unsigned long long)cnt, (unsigned int)value, in __ntfs_bitmap_set_bits_in_run()
138 if (start_bit < 0 || cnt < 0 || value > 1) in __ntfs_bitmap_set_bits_in_run()
146 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
173 ntfs_set_lcn_empty_bits(vol, index, value, min_t(s64, 8 - bit, cnt)); in __ntfs_bitmap_set_bits_in_run()
174 while ((bit & 7) && cnt) { in __ntfs_bitmap_set_bits_in_run()
175 cnt--; in __ntfs_bitmap_set_bits_in_run()
182 if (!cnt) in __ntfs_bitmap_set_bits_in_run()
192 len = min_t(s64, cnt >> 3, PAGE_SIZE - pos); in __ntfs_bitmap_set_bits_in_run()
194 cnt -= len << 3; in __ntfs_bitmap_set_bits_in_run()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/dynevent/
H A Dadd_remove_fprobe.tc33 cnt=`cat enabled_functions | wc -l`
34 if [ $cnt -eq $ocnt ]; then
44 cnt=`cat enabled_functions | wc -l`
45 if [ $cnt -eq $cnt2 ]; then
59 cnt=`cat enabled_functions | wc -l`
60 if [ $cnt -ne $ocnt ]; then
68 cnt=`cat enabled_functions | wc -l`
69 if [ $cnt -ne $((ocnt + 1)) ]; then
77 cnt=`cat enabled_functions | wc -l`
78 if [ $cnt -ne $ocnt ]; then
/linux/tools/testing/selftests/ftrace/test.d/event/
H A Devent-no-pid.tc79 cnt=`count_pid $mypid`
80 if [ $cnt -ne 0 ]; then
84 cnt=`count_no_pid $mypid`
85 if [ $cnt -eq 0 ]; then
106 cnt=`count_pid $mypid`
107 if [ $cnt -ne 0 ]; then
111 cnt=`count_pid $child`
112 if [ $cnt -ne 0 ]; then
116 cnt=`count_no_pid $mypid`
117 if [ $cnt -eq 0 ]; then
/linux/drivers/input/serio/
H A Dps2-gpio.c82 unsigned char cnt; member
86 unsigned char cnt; member
164 unsigned char byte, cnt; in ps2_gpio_irq_rx() local
170 cnt = drvdata->rx.cnt; in ps2_gpio_irq_rx()
183 if (us_delta > PS2_IRQ_MAX_INTERVAL_US && cnt) { in ps2_gpio_irq_rx()
200 switch (cnt) { in ps2_gpio_irq_rx()
218 byte |= (data << (cnt - 1)); in ps2_gpio_irq_rx()
250 cnt = byte = 0; in ps2_gpio_irq_rx()
258 cnt++; in ps2_gpio_irq_rx()
262 cnt = byte = 0; in ps2_gpio_irq_rx()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dget_func_args_test.c13 __u64 cnt = bpf_get_func_arg_cnt(ctx); in BPF_PROG() local
17 test1_result = cnt == 1; in BPF_PROG()
46 __u64 cnt = bpf_get_func_arg_cnt(ctx); in BPF_PROG() local
50 test2_result = cnt == 2; in BPF_PROG()
73 __u64 cnt = bpf_get_func_arg_cnt(ctx); in BPF_PROG() local
77 test3_result = cnt == 2; in BPF_PROG()
102 __u64 cnt = bpf_get_func_arg_cnt(ctx); in BPF_PROG() local
106 test4_result = cnt == 2; in BPF_PROG()
129 __u64 cnt = bpf_get_func_arg_cnt(ctx); in BPF_PROG() local
133 test5_result = cnt in BPF_PROG()
149 __u64 cnt = bpf_get_func_arg_cnt(ctx); BPF_PROG() local
174 __u64 cnt = bpf_get_func_arg_cnt(ctx); BPF_PROG() local
[all...]

12345678910>>...43