/kernel/irq/ |
D | timings.c | 282 for (i = irqts->count < IRQ_TIMINGS_SIZE ? \ 283 0 : irqts->count & IRQ_TIMINGS_MASK, \ 284 irqts->count = min(IRQ_TIMINGS_SIZE, \ 285 irqts->count); \ 286 irqts->count > 0; irqts->count--, \ 294 int count; member 384 int index, i, period_max, count, start, min = INT_MAX; in __irq_timings_next_event() local 387 irqs->count = irqs->last_ts = 0; in __irq_timings_next_event() 396 period_max = irqs->count > (3 * PREDICTION_PERIOD_MAX) ? in __irq_timings_next_event() 397 PREDICTION_PERIOD_MAX : irqs->count / 3; in __irq_timings_next_event() [all …]
|
D | proc.c | 138 const char __user *buffer, size_t count, loff_t *pos) in write_irq_affinity() argument 151 err = cpumask_parselist_user(buffer, count, new_value); in write_irq_affinity() 153 err = cpumask_parse_user(buffer, count, new_value); in write_irq_affinity() 167 err = irq_select_affinity_usr(irq) ? -EINVAL : count; in write_irq_affinity() 171 err = count; in write_irq_affinity() 180 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_proc_write() argument 182 return write_irq_affinity(0, file, buffer, count, pos); in irq_affinity_proc_write() 186 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_list_proc_write() argument 188 return write_irq_affinity(1, file, buffer, count, pos); in irq_affinity_list_proc_write() 236 const char __user *buffer, size_t count, loff_t *ppos) in default_affinity_write() argument [all …]
|
D | msi.c | 114 int count = 0; in msi_populate_sysfs() local 133 msi_attrs[count] = &msi_dev_attr->attr; in msi_populate_sysfs() 142 ++count; in msi_populate_sysfs() 168 count = 0; in msi_populate_sysfs() 169 msi_attr = msi_attrs[count]; in msi_populate_sysfs() 174 ++count; in msi_populate_sysfs() 175 msi_attr = msi_attrs[count]; in msi_populate_sysfs() 190 int count = 0; in msi_destroy_sysfs() local 195 while (msi_attrs[count]) { in msi_destroy_sysfs() 196 dev_attr = container_of(msi_attrs[count], in msi_destroy_sysfs() [all …]
|
/kernel/locking/ |
D | rwsem.c | 73 #c, atomic_long_read(&(sem)->count), \ 190 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned() local 192 if (count & RWSEM_WRITER_MASK) in is_rwsem_reader_owned() 240 *cntp = atomic_long_add_return_acquire(RWSEM_READER_BIAS, &sem->count); in rwsem_read_trylock() 258 if (atomic_long_try_cmpxchg_acquire(&sem->count, &tmp, RWSEM_WRITER_LOCKED)) { in rwsem_write_trylock() 322 atomic_long_set(&sem->count, RWSEM_UNLOCKED_VALUE); in __init_rwsem() 379 atomic_long_andnot(RWSEM_FLAG_HANDOFF | RWSEM_FLAG_WAITERS, &sem->count); in rwsem_del_waiter() 431 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake() 443 oldcount = atomic_long_fetch_add(adjustment, &sem->count); in rwsem_mark_wake() 458 atomic_long_add(-adjustment, &sem->count); in rwsem_mark_wake() [all …]
|
D | semaphore.c | 59 if (likely(sem->count > 0)) in down() 60 sem->count--; in down() 83 if (likely(sem->count > 0)) in down_interruptible() 84 sem->count--; in down_interruptible() 110 if (likely(sem->count > 0)) in down_killable() 111 sem->count--; in down_killable() 136 int count; in down_trylock() local 139 count = sem->count - 1; in down_trylock() 140 if (likely(count >= 0)) in down_trylock() 141 sem->count = count; in down_trylock() [all …]
|
D | lock_events.c | 62 size_t count, loff_t *ppos) in lockevent_read() argument 80 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in lockevent_read() 89 size_t count, loff_t *ppos) in lockevent_write() argument 97 return count; in lockevent_write() 106 return count; in lockevent_write()
|
/kernel/ |
D | ksysfs.c | 47 const char *buf, size_t count) in uevent_helper_store() argument 49 if (count+1 > UEVENT_HELPER_PATH_LEN) in uevent_helper_store() 51 memcpy(uevent_helper, buf, count); in uevent_helper_store() 52 uevent_helper[count] = '\0'; in uevent_helper_store() 53 if (count && uevent_helper[count-1] == '\n') in uevent_helper_store() 54 uevent_helper[count-1] = '\0'; in uevent_helper_store() 55 return count; in uevent_helper_store() 68 const char *buf, size_t count) in profiling_store() argument 86 return count; in profiling_store() 118 const char *buf, size_t count) in kexec_crash_size_store() argument [all …]
|
D | user_namespace.c | 127 refcount_set(&ns->ns.count, 1); in create_user_ns() 217 } while (refcount_dec_and_test(&parent->ns.count)); in free_user_ns() 233 u32 count; /* == 0 unless used with map_id_range_down() */ member 246 id2 = key->id + key->count - 1; in cmp_map_id() 254 last = first + el->count - 1; in cmp_map_id() 271 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_max() argument 276 key.count = count; in map_id_range_down_max() 289 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_base() argument 294 id2 = id + count - 1; in map_id_range_down_base() 299 last = first + map->extent[idx].count - 1; in map_id_range_down_base() [all …]
|
D | profile.c | 436 const char __user *buffer, size_t count, loff_t *pos) in prof_cpu_mask_proc_write() argument 444 err = cpumask_parse_user(buffer, count, new_value); in prof_cpu_mask_proc_write() 447 err = count; in prof_cpu_mask_proc_write() 474 read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos) in read_profile() argument 484 if (count > (prof_len+1)*sizeof(unsigned int) - p) in read_profile() 485 count = (prof_len+1)*sizeof(unsigned int) - p; in read_profile() 488 while (p < sizeof(unsigned int) && count > 0) { in read_profile() 491 buf++; p++; count--; read++; in read_profile() 494 if (copy_to_user(buf, (void *)pnt, count)) in read_profile() 496 read += count; in read_profile() [all …]
|
D | fail_function.c | 237 size_t count, loff_t *ppos) in fei_write() argument 245 if (count > KSYM_NAME_LEN) in fei_write() 246 count = KSYM_NAME_LEN; in fei_write() 247 buf = kmalloc(count + 1, GFP_KERNEL); in fei_write() 251 if (copy_from_user(buf, buffer, count)) { in fei_write() 255 buf[count] = '\0'; in fei_write() 263 ret = count; in fei_write() 274 ret = count; in fei_write() 304 ret = count; in fei_write()
|
D | audit_tree.c | 14 refcount_t count; member 30 int count; member 99 refcount_set(&tree->count, 1); in alloc_tree() 113 refcount_inc(&tree->count); in get_tree() 118 if (refcount_dec_and_test(&tree->count)) in put_tree() 132 for (i = 0; i < chunk->count; i++) { in free_chunk() 188 static struct audit_chunk *alloc_chunk(int count) in alloc_chunk() argument 193 chunk = kzalloc(struct_size(chunk, owners, count), GFP_KERNEL); in alloc_chunk() 199 chunk->count = count; in alloc_chunk() 201 for (i = 0; i < count; i++) { in alloc_chunk() [all …]
|
D | latencytop.c | 118 latency_record[i].count++; in account_global_scheduler_latency() 167 lat.count = 1; in __account_scheduler_latency() 195 mylat->count++; in __account_scheduler_latency() 229 lr->count, lr->time, lr->max); in lstats_show() 245 lstats_write(struct file *file, const char __user *buf, size_t count, in lstats_write() argument 250 return count; in lstats_write()
|
/kernel/trace/ |
D | trace_selftest.c | 63 static int __maybe_unused trace_test_buffer(struct array_buffer *buf, unsigned long *count) in trace_test_buffer() argument 91 if (count) in trace_test_buffer() 92 *count = cnt; in trace_test_buffer() 327 unsigned long count; in trace_selftest_startup_dynamic_tracing() local 362 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing() 366 if (count) { in trace_selftest_startup_dynamic_tracing() 383 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing() 389 if (!ret && count != 1) { in trace_selftest_startup_dynamic_tracing() 391 printk(KERN_CONT ".. filter failed count=%ld ..", count); in trace_selftest_startup_dynamic_tracing() 660 unsigned long count; in trace_selftest_startup_function() local [all …]
|
D | trace_functions.c | 257 last_info->count < U16_MAX) { in is_repeat_check() 260 last_info->count++; in is_repeat_check() 272 if (last_info->count) { in process_repeats() 274 last_info->count = 0; in process_repeats() 454 long *count; in update_traceon_count() local 486 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in update_traceon_count() 487 old_count = *count; in update_traceon_count() 506 *count = old_count - 1; in update_traceon_count() 592 long *count; in ftrace_stacktrace_count() local 605 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in ftrace_stacktrace_count() [all …]
|
D | trace_osnoise.c | 57 u64 count; member 65 u64 count; member 76 u64 count; member 85 u64 count; member 128 u64 count; member 695 osn_var->nmi.count++; in trace_osnoise_callback() 719 osn_var->irq.count++; in osnoise_trace_irq_entry() 850 osn_var->softirq.count++; in trace_softirq_entry_callback() 960 osn_var->thread.count++; in thread_entry() 1053 s->nmi_count = osn_var->nmi.count; in save_osn_sample_stats() [all …]
|
D | trace_events_trigger.c | 403 long count = (long)data; in event_trigger_print() local 407 if (count == -1) in event_trigger_print() 410 seq_printf(m, ":count=%ld", count); in event_trigger_print() 669 trigger_data->count = -1; in event_trigger_callback() 694 ret = kstrtoul(number, 0, &trigger_data->count); in event_trigger_callback() 990 if (!data->count) in traceon_count_trigger() 993 if (data->count != -1) in traceon_count_trigger() 994 (data->count)--; in traceon_count_trigger() 1038 if (!data->count) in traceoff_count_trigger() 1041 if (data->count != -1) in traceoff_count_trigger() [all …]
|
D | trace_hwlat.c | 99 int count; /* # of iterations over thresh */ member 107 u64 count; /* total since reset */ member 149 entry->count = sample->count; in trace_hwlat_sample() 212 unsigned int count = 0; in get_sample() local 258 if (!count) in get_sample() 260 count++; in get_sample() 290 hwlat_data.count++; in get_sample() 291 s.seqnum = hwlat_data.count; in get_sample() 296 s.count = count; in get_sample() 838 hwlat_data.count = 0; in hwlat_tracer_init()
|
/kernel/debug/ |
D | gdbstub.c | 92 int count; in get_packet() local 107 count = 0; in get_packet() 112 while (count < (BUFMAX - 1)) { in get_packet() 117 buffer[count] = ch; in get_packet() 118 count = count + 1; in get_packet() 134 buffer[count] = 0; in get_packet() 145 int count; in put_packet() local 154 count = 0; in put_packet() 156 while ((ch = buffer[count])) { in put_packet() 159 count++; in put_packet() [all …]
|
/kernel/cgroup/ |
D | debug.c | 79 u64 count; in current_css_set_refcount_read() local 82 count = refcount_read(&task_css_set(current)->refcount); in current_css_set_refcount_read() 84 return count; in current_css_set_refcount_read() 125 int count = 0; in cgroup_css_links_read() local 165 if (count++ <= MAX_TASKS_SHOWN_PER_CSS) in cgroup_css_links_read() 171 if (count++ <= MAX_TASKS_SHOWN_PER_CSS) in cgroup_css_links_read() 176 if (count > MAX_TASKS_SHOWN_PER_CSS) in cgroup_css_links_read() 178 count - MAX_TASKS_SHOWN_PER_CSS); in cgroup_css_links_read() 185 WARN_ON(count != cset->nr_tasks); in cgroup_css_links_read()
|
/kernel/dma/ |
D | contiguous.c | 258 struct page *dma_alloc_from_contiguous(struct device *dev, size_t count, in dma_alloc_from_contiguous() argument 264 return cma_alloc(dev_get_cma_area(dev), count, align, GFP_KERNEL | in dma_alloc_from_contiguous() 279 int count) in dma_release_from_contiguous() argument 281 return cma_release(dev_get_cma_area(dev), pages, count); in dma_release_from_contiguous() 352 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_free_contiguous() local 356 if (cma_release(dev->cma_area, page, count)) in dma_free_contiguous() 364 page, count)) in dma_free_contiguous() 367 if (cma_release(dma_contiguous_default_area, page, count)) in dma_free_contiguous()
|
D | remap.c | 41 int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_common_contiguous_remap() local 46 pages = kvmalloc_array(count, sizeof(struct page *), GFP_KERNEL); in dma_common_contiguous_remap() 49 for (i = 0; i < count; i++) in dma_common_contiguous_remap() 51 vaddr = vmap(pages, count, VM_DMA_COHERENT, prot); in dma_common_contiguous_remap()
|
/kernel/bpf/ |
D | bpf_iter.c | 109 if (seq->count) { in bpf_seq_read() 110 n = min(seq->count, size); in bpf_seq_read() 116 seq->count -= n; in bpf_seq_read() 129 seq->count = 0; in bpf_seq_read() 139 seq->count = 0; in bpf_seq_read() 144 seq->count = 0; in bpf_seq_read() 153 offs = seq->count; in bpf_seq_read() 168 if (seq->count >= size) in bpf_seq_read() 183 seq->count = offs; in bpf_seq_read() 185 seq->count = offs; in bpf_seq_read() [all …]
|
/kernel/time/ |
D | test_udelay.c | 100 size_t count, loff_t *pos) in udelay_test_write() argument 107 if (count >= sizeof(lbuf)) in udelay_test_write() 110 if (copy_from_user(lbuf, buf, count)) in udelay_test_write() 112 lbuf[count] = '\0'; in udelay_test_write() 125 return count; in udelay_test_write()
|
D | clocksource.c | 1321 ssize_t count = 0; in current_clocksource_show() local 1324 count = snprintf(buf, PAGE_SIZE, "%s\n", curr_clocksource->name); in current_clocksource_show() 1327 return count; in current_clocksource_show() 1359 const char *buf, size_t count) in current_clocksource_store() argument 1365 ret = sysfs_get_uname(buf, override_name, count); in current_clocksource_store() 1386 const char *buf, size_t count) in unbind_clocksource_store() argument 1392 ret = sysfs_get_uname(buf, name, count); in unbind_clocksource_store() 1406 return ret ? ret : count; in unbind_clocksource_store() 1423 ssize_t count = 0; in available_clocksource_show() local 1433 count += snprintf(buf + count, in available_clocksource_show() [all …]
|
/kernel/debug/kdb/ |
D | kdb_io.c | 208 int count; in kdb_read() local 330 count = kallsyms_symbol_complete(p_tmp, buf_size); in kdb_read() 331 if (tab == 2 && count > 0) { in kdb_read() 332 kdb_printf("\n%d symbols are found.", count); in kdb_read() 333 if (count > dtab_count) { in kdb_read() 334 count = dtab_count; in kdb_read() 338 count); in kdb_read() 341 for (i = 0; i < count; i++) { in kdb_read() 356 } else if (tab != 2 && count > 0) { in kdb_read()
|