| /linux/arch/arm64/include/asm/ |
| H A D | arch_timer.h | 67 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 …]
|
| /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/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/misc/ |
| H A D | tifm_7xx1.c | 40 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 …]
|
| /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/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/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/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 107 cnt = LLVMSetDisasmOptions(ctx, LLVMDisassembler_Option_PrintImmHex); 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/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/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 | 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 | 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 …]
|
| /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/drivers/scsi/qla2xxx/ |
| H A D | qla_dbg.c | 325 uint32_t cnt; in qla24xx_soft_reset() local 335 for (cnt = 0; cnt < 30000; cnt++) { in qla24xx_soft_reset() 351 for (cnt = 0; cnt < 30000; cnt++) { in qla24xx_soft_reset() 364 for (cnt = 10000; rd_reg_word(®->mailbox0) != 0 && in qla24xx_soft_reset() 365 rval == QLA_SUCCESS; cnt--) { in qla24xx_soft_reset() 366 if (cnt) in qla24xx_soft_reset() 382 uint32_t cnt, stat, timer, words, idx; in qla2xxx_dump_ram() local 395 for (cnt = 0; cnt < ram_words && rval == QLA_SUCCESS; in qla2xxx_dump_ram() 396 cnt += words, addr += words) { in qla2xxx_dump_ram() 397 if (cnt + words > ram_words) in qla2xxx_dump_ram() [all …]
|
| /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/net/ipv4/ |
| H A D | tcp_bic.c | 51 u32 cnt; /* increase cwnd by 1 after ACKs */ member 62 ca->cnt = 0; in bictcp_reset() 97 ca->cnt = cwnd; in bictcp_update() 108 ca->cnt = cwnd / max_increment; in bictcp_update() 111 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update() 114 ca->cnt = cwnd / dist; in bictcp_update() 119 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update() 122 ca->cnt = (cwnd * (BICTCP_B-1)) in bictcp_update() 126 ca->cnt = cwnd / max_increment; in bictcp_update() 131 if (ca->cnt > 2 in bictcp_update() [all...] |
| /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 …]
|
| /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/tools/perf/util/ |
| H A D | thread-stack.c | 90 size_t cnt; member 243 if (ts->cnt == ts->sz) { in thread_stack__push() 247 ts->cnt = 0; in thread_stack__push() 251 ts->stack[ts->cnt].trace_end = trace_end; in thread_stack__push() 252 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push() 270 for (i = ts->cnt; i; ) { in thread_stack__pop() 272 ts->cnt = i; in thread_stack__pop() 282 for (i = ts->cnt; i; ) { in thread_stack__pop_trace_end() 284 ts->cnt = i; in thread_stack__pop_trace_end() 292 if (!ts->cnt) in thread_stack__in_kernel() [all …]
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | sk_storage_map.c | 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() 489 err, errno, lookup_value.lock, lookup_value.cnt, value.cnt); in test_sk_storage_map_basic() 492 value.cnt += 1; in test_sk_storage_map_basic() 500 CHECK(err || lookup_value.lock || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic() [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
|