/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/fs/quota/ |
H A D | dquot.c | 402 int ret, err, cnt; in mark_all_dquot_dirty() local 406 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in mark_all_dquot_dirty() 407 dquot = srcu_dereference(dquots[cnt], &dquot_srcu); in mark_all_dquot_dirty() 419 unsigned int cnt; in dqput_all() local 421 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dqput_all() 422 dqput(dquot[cnt]); in dqput_all() 686 int cnt; in dquot_writeback_dquots() local 693 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in dquot_writeback_dquots() 694 if (type != -1 && cnt != type) in dquot_writeback_dquots() 696 if (!sb_has_quota_active(sb, cnt)) in dquot_writeback_dquots() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | tc_counters.c | 33 struct efx_tc_counter *cnt = ptr; in efx_tc_counter_free() local 35 WARN_ON(!list_empty(&cnt->users)); 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() 127 spin_unlock_bh(&cnt->lock); in efx_tc_counter_work() [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/arch/mips/kernel/ |
H A D | cevt-r4k.c | 22 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 …]
|
/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 103 cnt=`cnt_trace` 104 if [ $cnt -ne 0 ]; then [all …]
|
/linux/lib/ |
H A D | find_bit_benchmark.c | 38 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 …]
|
/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/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/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 …]
|
/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_ieee80211.c | 177 uint cnt; in rtw_get_ie_ex() local 186 cnt = 0; in rtw_get_ie_ex() 188 while (cnt < in_len) { in rtw_get_ie_ex() 189 if (eid == in_ie[cnt] in rtw_get_ie_ex() 190 && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { in rtw_get_ie_ex() 191 target_ie = &in_ie[cnt]; in rtw_get_ie_ex() 194 memcpy(ie, &in_ie[cnt], in_ie[cnt+1]+2); in rtw_get_ie_ex() 197 *ielen = in_ie[cnt+1]+2; in rtw_get_ie_ex() 201 cnt += in_ie[cnt+1]+2; /* goto next */ in rtw_get_ie_ex() 568 uint cnt; in rtw_get_wapi_ie() local [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/lib/subcmd/ |
H A D | help.c | 26 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 …]
|
/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 > 20) /* increase cwnd 5% per RTT */ 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/block/ |
H A D | blk-cgroup-rwstat.h | 32 u64 cnt[BLKG_RWSTAT_NR]; member 64 struct percpu_counter *cnt; in blkg_rwstat_add() local 67 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_DISCARD]; in blkg_rwstat_add() 69 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_add() 71 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ]; in blkg_rwstat_add() 73 percpu_counter_add_batch(cnt, val, BLKG_STAT_CPU_BATCH); in blkg_rwstat_add() 76 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; in blkg_rwstat_add() 78 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC]; in blkg_rwstat_add() 80 percpu_counter_add_batch(cnt, val, BLKG_STAT_CPU_BATCH); in blkg_rwstat_add() 95 result->cnt[i] = in blkg_rwstat_read() [all …]
|
/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/drivers/scsi/qla2xxx/ |
H A D | qla_dbg.c | 324 uint32_t cnt; in qla24xx_soft_reset() local 334 for (cnt = 0; cnt < 30000; cnt++) { in qla24xx_soft_reset() 350 for (cnt = 0; cnt < 30000; cnt++) { in qla24xx_soft_reset() 363 for (cnt = 10000; rd_reg_word(®->mailbox0) != 0 && in qla24xx_soft_reset() 364 rval == QLA_SUCCESS; cnt--) { in qla24xx_soft_reset() 365 if (cnt) in qla24xx_soft_reset() 381 uint32_t cnt, stat, timer, words, idx; in qla2xxx_dump_ram() local 394 for (cnt = 0; cnt < ram_words && rval == QLA_SUCCESS; in qla2xxx_dump_ram() 395 cnt += words, addr += words) { in qla2xxx_dump_ram() 396 if (cnt + words > ram_words) in qla2xxx_dump_ram() [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 …]
|