| /linux/samples/trace_events/ |
| H A D | trace-events-sample.c | 22 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/ftrace/test.d/ftrace/ |
| H A D | func_traceonoff_triggers.tc | 33 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/arch/sh/mm/ |
| H A D | flush-sh4.c | 16 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/tools/testing/selftests/kvm/loongarch/ |
| H A D | pmu_test.c | 55 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 D | pvrusb2-ctrl.c | 298 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 D | pac1934.c | 469 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 D | jit_disasm_helpers.c | 29 __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 D | mon_text.c | 101 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/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | monitor_stats.c | 80 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/lib/ |
| H A D | rcuref.c | 194 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/dynevent/ |
| H A D | add_remove_fprobe.tc | 33 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/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | dp.c | 29 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 D | boost.c | 30 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 D | M0205.c | 30 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 D | disp.c | 30 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 …]
|
| H A D | M0209.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0209Te() argument 46 *cnt = nvbios_rd08(bios, data + 0x04); in nvbios_M0209Te() 59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_M0209Ee() argument 62 u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0209Ee() 63 if (data && idx < *cnt) { in nvbios_M0209Ee() 66 *cnt = snr; in nvbios_M0209Ee() 75 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *info) in nvbios_M0209Ep() argument 77 u32 data = nvbios_M0209Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0209Ep() 98 u8 cnt, len; in nvbios_M0209Se() local 99 u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len); in nvbios_M0209Se() [all …]
|
| /linux/tools/lib/subcmd/ |
| H A D | help.c | 27 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/tools/testing/selftests/ftrace/test.d/event/ |
| H A D | event-no-pid.tc | 79 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/fs/ntfs/ |
| H A D | bitmap.c | 123 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/drivers/infiniband/hw/usnic/ |
| H A D | usnic_vnic.c | 119 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/tools/testing/selftests/bpf/progs/ |
| H A D | get_func_args_test.c | 13 __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...] |
| /linux/arch/m68k/sun3/ |
| H A D | sun3ints.c | 53 unsigned int cnt; in sun3_int7() local 55 cnt = kstat_irqs_cpu(irq, 0); in sun3_int7() 56 if (!(cnt % 2000)) in sun3_int7() 57 sun3_leds(led_pattern[cnt % 16000 / 2000]); in sun3_int7() 64 unsigned int cnt; in sun3_int5() local 76 cnt = kstat_irqs_cpu(irq, 0); in sun3_int5() 77 if (!(cnt % 20)) in sun3_int5() 78 sun3_leds(led_pattern[cnt % 160 / 20]); in sun3_int5()
|
| /linux/arch/s390/include/asm/ |
| H A D | arch_hweight.h | 11 unsigned long cnt; in popcnt_z196() local 14 : [cnt] "=d" (cnt) in popcnt_z196() 17 return cnt; in popcnt_z196() 22 unsigned long cnt; in popcnt_z15() local 25 : [cnt] "=d" (cnt) in popcnt_z15() 28 return cnt; in popcnt_z15()
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | machine.c | 18 int cnt; member 28 if (mi->cnt >= mi->max_cnt) { in add_extra_kernel_map() 40 mi->maps[mi->cnt].start = start; in add_extra_kernel_map() 41 mi->maps[mi->cnt].end = end; in add_extra_kernel_map() 42 mi->maps[mi->cnt].pgoff = pgoff; in add_extra_kernel_map() 43 strlcpy(mi->maps[mi->cnt].name, name, KMAP_NAME_LEN); in add_extra_kernel_map() 45 mi->cnt += 1; in add_extra_kernel_map() 73 struct extra_kernel_map_info mi = { .cnt = 0, }; in machine__create_extra_kernel_maps() 90 for (i = 0; i < mi.cnt; i++) { in machine__create_extra_kernel_maps() 99 machine->trampolines_mapped = mi.cnt; in machine__create_extra_kernel_maps()
|
| /linux/drivers/input/serio/ |
| H A D | ps2-gpio.c | 82 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 …]
|