/linux-6.1.9/fs/quota/ |
D | dquot.c | 378 int ret, err, cnt; in mark_all_dquot_dirty() local 381 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in mark_all_dquot_dirty() 382 if (dquot[cnt]) in mark_all_dquot_dirty() 384 ret = mark_dquot_dirty(dquot[cnt]); in mark_all_dquot_dirty() 393 unsigned int cnt; in dqput_all() local 395 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dqput_all() 396 dqput(dquot[cnt]); in dqput_all() 637 int cnt; in dquot_writeback_dquots() local 642 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in dquot_writeback_dquots() 643 if (type != -1 && cnt != type) in dquot_writeback_dquots() [all …]
|
/linux-6.1.9/arch/ia64/lib/ |
D | memset.S | 27 #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 …]
|
/linux-6.1.9/samples/trace_events/ |
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); 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-6.1.9/arch/arm64/include/asm/ |
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() 178 u64 cnt; in __arch_counter_get_cntpct_stable() local 180 cnt = arch_timer_reg_read_stable(cntpct_el0); in __arch_counter_get_cntpct_stable() 181 arch_counter_enforce_ordering(cnt); in __arch_counter_get_cntpct_stable() 182 return cnt; in __arch_counter_get_cntpct_stable() [all …]
|
/linux-6.1.9/tools/testing/selftests/ftrace/test.d/ftrace/ |
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-6.1.9/arch/mips/kernel/ |
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-6.1.9/lib/ |
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-6.1.9/fs/ntfs/ |
D | bitmap.c | 36 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() 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() 97 len = min_t(s64, cnt >> 3, PAGE_SIZE - pos); in __ntfs_bitmap_set_bits_in_run() 99 cnt -= len << 3; in __ntfs_bitmap_set_bits_in_run() 102 if (cnt < 8) in __ntfs_bitmap_set_bits_in_run() [all …]
|
/linux-6.1.9/arch/sh/mm/ |
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-6.1.9/drivers/misc/ |
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-6.1.9/drivers/media/usb/pvrusb2/ |
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-6.1.9/tools/testing/selftests/bpf/ |
D | testing_helpers.c | 79 int i, j, cnt = 0; in parse_test_list() local 90 tmp = realloc(tests, sizeof(*tests) * (cnt + 1)); in parse_test_list() 95 tests[cnt].subtest_cnt = 0; in parse_test_list() 96 tests[cnt].subtests = NULL; in parse_test_list() 107 int subtest_cnt = tests[cnt].subtest_cnt; in parse_test_list() 111 tmp_subtests = realloc(tests[cnt].subtests, in parse_test_list() 116 tests[cnt].subtests = tmp_subtests; in parse_test_list() 118 tests[cnt].subtests[subtest_cnt] = in parse_test_list() 120 if (!tests[cnt].subtests[subtest_cnt]) in parse_test_list() 122 sprintf(tests[cnt].subtests[subtest_cnt], in parse_test_list() [all …]
|
/linux-6.1.9/drivers/usb/mon/ |
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-6.1.9/drivers/staging/rtl8712/ |
D | ieee80211.c | 369 uint cnt; in r8712_get_sec_ie() local 372 cnt = _TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_; in r8712_get_sec_ie() 373 while (cnt < in_len) { in r8712_get_sec_ie() 374 authmode = in_ie[cnt]; in r8712_get_sec_ie() 376 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { in r8712_get_sec_ie() 377 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in r8712_get_sec_ie() 378 *wpa_len = in_ie[cnt + 1] + 2; in r8712_get_sec_ie() 379 cnt += in_ie[cnt + 1] + 2; /*get next */ in r8712_get_sec_ie() 382 memcpy(rsn_ie, &in_ie[cnt], in r8712_get_sec_ie() 383 in_ie[cnt + 1] + 2); in r8712_get_sec_ie() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | monitor_stats.c | 68 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 …]
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
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 …]
|
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 …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | ringbuf.c | 30 static void atomic_inc(int *cnt) in atomic_inc() argument 32 __atomic_add_fetch(cnt, 1, __ATOMIC_SEQ_CST); in atomic_inc() 35 static int atomic_xchg(int *cnt, int val) in atomic_xchg() argument 37 return __atomic_exchange_n(cnt, val, __ATOMIC_SEQ_CST); in atomic_xchg() 89 int err, cnt, rb_fd; in test_ringbuf() local 183 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf() 184 CHECK(cnt != 2, "cnt", "exp %d samples, got %d\n", 2, cnt); in test_ringbuf() 190 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf() 191 CHECK(cnt != 0, "cnt", "exp %d samples, got %d\n", 0, cnt); in test_ringbuf() 207 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/usnic/ |
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-6.1.9/drivers/staging/rtl8723bs/core/ |
D | rtw_ieee80211.c | 176 uint cnt; in rtw_get_ie_ex() local 185 cnt = 0; in rtw_get_ie_ex() 187 while (cnt < in_len) { in rtw_get_ie_ex() 188 if (eid == in_ie[cnt] in rtw_get_ie_ex() 189 && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { in rtw_get_ie_ex() 190 target_ie = &in_ie[cnt]; in rtw_get_ie_ex() 193 memcpy(ie, &in_ie[cnt], in_ie[cnt+1]+2); in rtw_get_ie_ex() 196 *ielen = in_ie[cnt+1]+2; in rtw_get_ie_ex() 200 cnt += in_ie[cnt+1]+2; /* goto next */ in rtw_get_ie_ex() 567 uint cnt; in rtw_get_wapi_ie() local [all …]
|
/linux-6.1.9/tools/lib/subcmd/ |
D | help.c | 24 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname() 25 cmds->names[cmds->cnt++] = ent; in add_cmdname() 32 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames() 35 cmds->cnt = 0; in clean_cmdnames() 50 if (!cmds->cnt) in uniq() 53 for (i = j = 1; i < cmds->cnt; i++) in uniq() 57 cmds->cnt = j; in uniq() 66 while (ci < cmds->cnt && ei < excludes->cnt) { in exclude_cmds() 78 while (ci < cmds->cnt) in exclude_cmds() 81 cmds->cnt = cj; in exclude_cmds() [all …]
|
/linux-6.1.9/net/ipv4/ |
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-6.1.9/block/ |
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-6.1.9/drivers/staging/rtl8723bs/hal/ |
D | hal_com.c | 41 size_t cnt = 0; in dump_chip_info() local 43 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "Chip Version Info: CHIP_8723B_%s_", in dump_chip_info() 47 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "TSMC_"); in dump_chip_info() 49 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "UMC_"); in dump_chip_info() 51 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "SMIC_"); in dump_chip_info() 54 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "A_CUT_"); in dump_chip_info() 56 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "B_CUT_"); in dump_chip_info() 58 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "C_CUT_"); in dump_chip_info() 60 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "D_CUT_"); in dump_chip_info() 62 cnt += scnprintf(buf + cnt, sizeof(buf) - cnt, "E_CUT_"); in dump_chip_info() [all …]
|
/linux-6.1.9/tools/testing/selftests/ftrace/test.d/event/ |
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
|