/kernel/irq/ |
D | irqdesc.c | 419 static int alloc_descs(unsigned int start, unsigned int cnt, int node, in alloc_descs() argument 429 for (i = 0, mask = affinity; i < cnt; i++, mask++) { in alloc_descs() 438 for (i = 0; i < cnt; i++) { in alloc_descs() 450 bitmap_set(allocated_irqs, start, cnt); in alloc_descs() 543 static inline int alloc_descs(unsigned int start, unsigned int cnt, int node, in alloc_descs() argument 549 for (i = 0; i < cnt; i++) { in alloc_descs() 554 bitmap_set(allocated_irqs, start, cnt); in alloc_descs() 643 void irq_free_descs(unsigned int from, unsigned int cnt) in irq_free_descs() argument 647 if (from >= nr_irqs || (from + cnt) > nr_irqs) in irq_free_descs() 651 for (i = 0; i < cnt; i++) in irq_free_descs() [all …]
|
D | irqdomain.c | 882 int irq_domain_alloc_descs(int virq, unsigned int cnt, irq_hw_number_t hwirq, in irq_domain_alloc_descs() argument 888 virq = __irq_alloc_descs(virq, virq, cnt, node, THIS_MODULE, in irq_domain_alloc_descs() 894 virq = __irq_alloc_descs(-1, hint, cnt, node, THIS_MODULE, in irq_domain_alloc_descs() 897 virq = __irq_alloc_descs(-1, 1, cnt, node, THIS_MODULE, in irq_domain_alloc_descs()
|
/kernel/trace/ |
D | trace.c | 482 const char __user *ubuf, size_t cnt) in trace_pid_write() argument 527 while (cnt > 0) { in trace_pid_write() 531 ret = trace_get_user(&parser, ubuf, cnt, &pos); in trace_pid_write() 537 cnt -= ret; in trace_pid_write() 1167 size_t cnt, loff_t *ppos) in trace_get_user() argument 1181 cnt--; in trace_get_user() 1189 while (cnt && isspace(ch)) { in trace_get_user() 1194 cnt--; in trace_get_user() 1208 while (cnt && !isspace(ch)) { in trace_get_user() 1219 cnt--; in trace_get_user() [all …]
|
D | trace_hwlat.c | 407 size_t cnt, loff_t *ppos) in hwlat_read() argument 417 if (cnt > sizeof(buf)) in hwlat_read() 418 cnt = sizeof(buf); in hwlat_read() 424 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); in hwlat_read() 444 size_t cnt, loff_t *ppos) in hwlat_width_write() argument 449 err = kstrtoull_from_user(ubuf, cnt, 10, &val); in hwlat_width_write() 463 return cnt; in hwlat_width_write() 483 size_t cnt, loff_t *ppos) in hwlat_window_write() argument 488 err = kstrtoull_from_user(ubuf, cnt, 10, &val); in hwlat_window_write() 502 return cnt; in hwlat_window_write()
|
D | trace_kdb.c | 26 int cnt = 0, cpu; in ftrace_dump_buf() local 66 if (!cnt) in ftrace_dump_buf() 68 cnt++; in ftrace_dump_buf() 81 if (!cnt) in ftrace_dump_buf()
|
D | trace_events.c | 854 size_t cnt, loff_t *ppos) in ftrace_event_write() argument 861 if (!cnt) in ftrace_event_write() 871 read = trace_get_user(&parser, ubuf, cnt, ppos); in ftrace_event_write() 1024 event_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in event_enable_read() argument 1050 return simple_read_from_buffer(ubuf, cnt, ppos, buf, strlen(buf)); in event_enable_read() 1054 event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, in event_enable_write() argument 1061 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in event_enable_write() 1084 *ppos += cnt; in event_enable_write() 1086 return ret ? ret : cnt; in event_enable_write() 1090 system_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in system_enable_read() argument [all …]
|
D | trace_selftest.c | 63 unsigned long flags, cnt = 0; in trace_test_buffer() local 70 cnt = ring_buffer_entries(buf->buffer); in trace_test_buffer() 90 *count = cnt; in trace_test_buffer() 183 static int trace_selftest_ops(struct trace_array *tr, int cnt) in trace_selftest_ops() argument 194 pr_info("Testing dynamic ftrace ops #%d: ", cnt); in trace_selftest_ops() 219 if (cnt > 1) { in trace_selftest_ops() 234 if (cnt > 1) { in trace_selftest_ops() 273 if (cnt > 1) { in trace_selftest_ops() 301 if (cnt > 1) in trace_selftest_ops()
|
D | ftrace.c | 166 int cnt = 0; in ftrace_nr_registered_ops() local 172 cnt++; in ftrace_nr_registered_ops() 176 return cnt; in ftrace_nr_registered_ops() 962 size_t cnt, loff_t *ppos) in ftrace_profile_write() argument 967 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in ftrace_profile_write() 978 cnt = ret; in ftrace_profile_write() 984 cnt = ret; in ftrace_profile_write() 1000 *ppos += cnt; in ftrace_profile_write() 1002 return cnt; in ftrace_profile_write() 1007 size_t cnt, loff_t *ppos) in ftrace_profile_read() argument [all …]
|
D | trace_mmiotrace.c | 123 unsigned long cnt = atomic_xchg(&dropped_count, 0); in count_overruns() local 127 cnt += over - prev_overruns; in count_overruns() 129 return cnt; in count_overruns() 133 char __user *ubuf, size_t cnt, loff_t *ppos) in mmio_read() argument 162 ret = trace_seq_to_user(s, ubuf, cnt); in mmio_read()
|
D | ring_buffer_benchmark.c | 237 int cnt = 0; in ring_buffer_producer() local 264 cnt++; in ring_buffer_producer() 265 if (consumer && !(cnt % wakeup_interval)) in ring_buffer_producer() 278 if (cnt % wakeup_interval) in ring_buffer_producer()
|
D | trace_events_trigger.c | 246 size_t cnt, loff_t *ppos) in event_trigger_regex_write() argument 252 if (!cnt) in event_trigger_regex_write() 255 if (cnt >= PAGE_SIZE) in event_trigger_regex_write() 258 buf = memdup_user_nul(ubuf, cnt); in event_trigger_regex_write() 278 *ppos += cnt; in event_trigger_regex_write() 279 ret = cnt; in event_trigger_regex_write() 298 size_t cnt, loff_t *ppos) in event_trigger_write() argument 300 return event_trigger_regex_write(filp, ubuf, cnt, ppos); in event_trigger_write()
|
D | trace_events_filter.c | 130 unsigned int cnt; member 1074 ps->infix.cnt = strlen(infix_string); in parse_init() 1083 if (!ps->infix.cnt) in infix_next() 1086 ps->infix.cnt--; in infix_next() 1101 if (!ps->infix.cnt) in infix_advance() 1104 ps->infix.cnt--; in infix_advance() 1402 int cnt = 0; in check_preds() local 1406 cnt++; in check_preds() 1412 cnt--; in check_preds() 1416 cnt--; in check_preds() [all …]
|
D | trace_seq.c | 372 int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, int cnt) in trace_seq_to_user() argument 375 return seq_buf_to_user(&s->seq, ubuf, cnt); in trace_seq_to_user()
|
D | trace_functions_graph.c | 1486 graph_depth_write(struct file *filp, const char __user *ubuf, size_t cnt, in graph_depth_write() argument 1492 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in graph_depth_write() 1498 *ppos += cnt; in graph_depth_write() 1500 return cnt; in graph_depth_write() 1504 graph_depth_read(struct file *filp, char __user *ubuf, size_t cnt, in graph_depth_read() argument 1512 return simple_read_from_buffer(ubuf, cnt, ppos, buf, n); in graph_depth_read()
|
/kernel/ |
D | softirq.c | 106 void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) in __local_bh_disable_ip() argument 120 __preempt_count_add(cnt); in __local_bh_disable_ip() 124 if (softirq_count() == (cnt & SOFTIRQ_MASK)) in __local_bh_disable_ip() 128 if (preempt_count() == cnt) { in __local_bh_disable_ip() 138 static void __local_bh_enable(unsigned int cnt) in __local_bh_enable() argument 142 if (softirq_count() == (cnt & SOFTIRQ_MASK)) in __local_bh_enable() 144 preempt_count_sub(cnt); in __local_bh_enable() 159 void __local_bh_enable_ip(unsigned long ip, unsigned int cnt) in __local_bh_enable_ip() argument 174 preempt_count_sub(cnt - 1); in __local_bh_enable_ip()
|
D | ksysfs.c | 117 unsigned long cnt; in kexec_crash_size_store() local 120 if (kstrtoul(buf, 0, &cnt)) in kexec_crash_size_store() 123 ret = crash_shrink_memory(cnt); in kexec_crash_size_store()
|
D | cpuset.c | 70 int cnt; /* unprocessed events count */ member 1413 fmp->cnt = 0; in fmeter_init() 1436 fmp->val += ((FM_SCALE - FM_COEF) * fmp->cnt) / FM_SCALE; in fmeter_update() 1437 fmp->cnt = 0; in fmeter_update() 1445 fmp->cnt = min(FM_MAXCNT, fmp->cnt + FM_SCALE); in fmeter_markevent()
|
D | cpu.c | 135 int ret, cnt; in cpuhp_invoke_callback() local 159 cnt = 0; in cpuhp_invoke_callback() 166 cnt++; in cpuhp_invoke_callback() 176 if (!cnt--) in cpuhp_invoke_callback()
|
/kernel/time/ |
D | clocksource.c | 869 ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt) in sysfs_get_uname() argument 871 size_t ret = cnt; in sysfs_get_uname() 874 if (!cnt || cnt >= CS_NAME_LEN) in sysfs_get_uname() 878 if (buf[cnt-1] == '\n') in sysfs_get_uname() 879 cnt--; in sysfs_get_uname() 880 if (cnt > 0) in sysfs_get_uname() 881 memcpy(dst, buf, cnt); in sysfs_get_uname() 882 dst[cnt] = 0; in sysfs_get_uname()
|
D | tick-internal.h | 59 extern ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt);
|
/kernel/bpf/ |
D | verifier.c | 3277 u32 off, u32 cnt) in adjust_insn_aux_data() argument 3282 if (cnt == 1) in adjust_insn_aux_data() 3288 memcpy(new_data + off + cnt - 1, old_data + off, in adjust_insn_aux_data() 3289 sizeof(struct bpf_insn_aux_data) * (prog_len - off - cnt + 1)); in adjust_insn_aux_data() 3290 for (i = off; i < off + cnt - 1; i++) in adjust_insn_aux_data() 3339 int i, cnt, delta = 0; in convert_ctx_accesses() local 3342 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in convert_ctx_accesses() 3344 if (cnt >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses() 3347 } else if (cnt) { in convert_ctx_accesses() 3348 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses() [all …]
|
/kernel/livepatch/ |
D | core.c | 211 int i, cnt, vmlinux, ret; in klp_resolve_symbols() local 242 cnt = sscanf(strtab + sym->st_name, in klp_resolve_symbols() 245 if (cnt != 3) { in klp_resolve_symbols() 267 int i, cnt, ret = 0; in klp_write_object_relocations() local 289 cnt = sscanf(secname, ".klp.rela.%55[^.]", sec_objname); in klp_write_object_relocations() 290 if (cnt != 1) { in klp_write_object_relocations()
|
/kernel/sched/ |
D | debug.c | 141 size_t cnt, loff_t *ppos) in sched_feat_write() argument 148 if (cnt > 63) in sched_feat_write() 149 cnt = 63; in sched_feat_write() 151 if (copy_from_user(&buf, ubuf, cnt)) in sched_feat_write() 154 buf[cnt] = 0; in sched_feat_write() 165 *ppos += cnt; in sched_feat_write() 167 return cnt; in sched_feat_write()
|
/kernel/locking/ |
D | mutex.c | 962 int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock) in atomic_dec_and_mutex_lock() argument 965 if (atomic_add_unless(cnt, -1, 1)) in atomic_dec_and_mutex_lock() 969 if (!atomic_dec_and_test(cnt)) { in atomic_dec_and_mutex_lock()
|
/kernel/power/ |
D | snapshot.c | 1189 unsigned int cnt = 0; in count_free_highmem_pages() local 1193 cnt += zone_page_state(zone, NR_FREE_PAGES); in count_free_highmem_pages() 1195 return cnt; in count_free_highmem_pages() 2251 unsigned int cnt = 0; in count_highmem_image_pages() local 2257 cnt++; in count_highmem_image_pages() 2261 return cnt; in count_highmem_image_pages()
|