| /kernel/irq/ |
| A D | timings.c | 286 irqts->count > 0; irqts->count--, \ 294 int count; member 409 count = irqs->count < IRQ_TIMINGS_SIZE ? in __irq_timings_next_event() 457 irqs->count = 0; in __irq_timings_store() 470 irqs->count++; in __irq_timings_store() 503 irqs->count = 0; in irq_timings_store() 640 size_t count; member 719 count = ti->count - 1; in irq_timings_test_next_index() 739 count = min_t(int, count, IRQ_TIMINGS_SIZE); in irq_timings_test_next_index() 809 if (irqs->count != ti->count) { in irq_timings_test_irqs() [all …]
|
| A D | proc.c | 134 const char __user *buffer, size_t count, loff_t *pos) in write_irq_affinity() argument 147 err = cpumask_parselist_user(buffer, count, new_value); in write_irq_affinity() 149 err = cpumask_parse_user(buffer, count, new_value); in write_irq_affinity() 163 err = irq_select_affinity_usr(irq) ? -EINVAL : count; in write_irq_affinity() 167 err = count; in write_irq_affinity() 176 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_proc_write() argument 178 return write_irq_affinity(0, file, buffer, count, pos); in irq_affinity_proc_write() 182 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_list_proc_write() argument 184 return write_irq_affinity(1, file, buffer, count, pos); in irq_affinity_list_proc_write() 240 err = cpumask_parse_user(buffer, count, new_value); in default_affinity_write() [all …]
|
| /kernel/locking/ |
| A D | rwsem.c | 203 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned() local 607 long count, new; in rwsem_try_write_lock() local 611 count = atomic_long_read(&sem->count); in rwsem_try_write_lock() 625 new = count; in rwsem_try_write_lock() 645 } while (!atomic_long_try_cmpxchg_acquire(&sem->count, &count, new)); in rwsem_try_write_lock() 691 long count = atomic_long_read(&sem->count); in rwsem_try_write_lock_unqueued() local 694 if (atomic_long_try_cmpxchg_acquire(&sem->count, &count, in rwsem_try_write_lock_unqueued() 805 long count = atomic_long_read(&sem->count); in rwsem_rspin_threshold() local 1058 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath() 1257 long count; in __down_read_common() local [all …]
|
| A D | semaphore.c | 76 sem->count--; in __sem_acquire() 97 if (likely(sem->count > 0)) in down() 121 if (likely(sem->count > 0)) in down_interruptible() 148 if (likely(sem->count > 0)) in down_killable() 174 int count; in down_trylock() local 177 count = sem->count - 1; in down_trylock() 178 if (likely(count >= 0)) in down_trylock() 182 return (count < 0); in down_trylock() 203 if (likely(sem->count > 0)) in down_timeout() 230 sem->count++; in up()
|
| A 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/ |
| A D | ksysfs.c | 71 const char *buf, size_t count) in uevent_helper_store() argument 75 memcpy(uevent_helper, buf, count); in uevent_helper_store() 76 uevent_helper[count] = '\0'; in uevent_helper_store() 77 if (count && uevent_helper[count-1] == '\n') in uevent_helper_store() 78 uevent_helper[count-1] = '\0'; in uevent_helper_store() 79 return count; in uevent_helper_store() 117 return count; in profiling_store() 159 return ret < 0 ? ret : count; in kexec_crash_size_store() 213 return count; in rcu_expedited_store() 225 const char *buf, size_t count) in rcu_normal_store() argument [all …]
|
| A D | user_namespace.c | 241 u32 count; member 284 key.count = count; in map_id_range_down_max() 374 key.count = count; in map_id_range_up_max() 626 extent->count); in uid_m_show() 647 extent->count); in gid_m_show() 668 extent->count); in projid_m_show() 1072 e->count); in map_write() 1102 *ppos = count; in map_write() 1103 ret = count; in map_write() 1281 *ppos = count; in proc_setgroups_write() [all …]
|
| A D | profile.c | 154 read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos) in read_profile() argument 163 if (count > (prof_len+1)*sizeof(unsigned int) - p) in read_profile() 164 count = (prof_len+1)*sizeof(unsigned int) - p; in read_profile() 167 while (p < sizeof(unsigned int) && count > 0) { in read_profile() 170 buf++; p++; count--; read++; in read_profile() 173 if (copy_to_user(buf, (void *)pnt, count)) in read_profile() 175 read += count; in read_profile() 193 size_t count, loff_t *ppos) in write_profile() argument 196 if (count == sizeof(int)) { in write_profile() 207 return count; in write_profile()
|
| A D | crash_dump_dm_crypt.c | 54 ssize_t __weak dm_crypt_keys_read(char *buf, size_t count, u64 *ppos) in dm_crypt_keys_read() argument 56 struct kvec kvec = { .iov_base = buf, .iov_len = count }; in dm_crypt_keys_read() 59 iov_iter_kvec(&iter, READ, &kvec, 1, count); in dm_crypt_keys_read() 60 return read_from_oldmem(&iter, count, ppos, cc_platform_has(CC_ATTR_MEM_ENCRYPT)); in dm_crypt_keys_read() 187 const char *page, size_t count) in config_key_description_store() argument 210 return count; in config_key_description_store() 262 CONFIGFS_ATTR_RO(config_keys_, count); 272 const char *page, size_t count) in config_keys_reuse_store() argument 286 return count; in config_keys_reuse_store() 319 const char *page, size_t count) in config_keys_restore_store() argument [all …]
|
| A D | audit_tree.c | 14 refcount_t count; member 30 int count; member 37 } owners[] __counted_by(count); 99 refcount_set(&tree->count, 1); in alloc_tree() 113 refcount_inc(&tree->count); in get_tree() 132 for (i = 0; i < chunk->count; i++) { in free_chunk() 199 chunk->count = count; in alloc_chunk() 201 for (i = 0; i < count; i++) { in alloc_chunk() 264 for (n = 0; n < chunk->count; n++) in audit_tree_match() 343 for (i = 0; i < chunk->count; i++) in chunk_count_trees() [all …]
|
| A D | latencytop.c | 143 latency_record[i].count++; in account_global_scheduler_latency() 192 lat.count = 1; in __account_scheduler_latency() 220 mylat->count++; in __account_scheduler_latency() 254 lr->count, lr->time, lr->max); in lstats_show() 270 lstats_write(struct file *file, const char __user *buf, size_t count, in lstats_write() argument 275 return count; in lstats_write()
|
| /kernel/trace/ |
| A D | trace_selftest.c | 92 if (count) in trace_test_buffer() 93 *count = cnt; in trace_test_buffer() 362 unsigned long count; in trace_selftest_startup_dynamic_tracing() local 401 if (count) { in trace_selftest_startup_dynamic_tracing() 695 unsigned long count; in trace_selftest_startup_function() local 1066 unsigned long count; in trace_selftest_startup_function_graph() local 1154 count = 0; in trace_selftest_startup_function_graph() 1199 unsigned long count; in trace_selftest_startup_irqsoff() local 1248 unsigned long count; in trace_selftest_startup_preemptoff() local 1310 unsigned long count; in trace_selftest_startup_preemptirqsoff() local [all …]
|
| A D | trace_functions.c | 319 last_info->count++; in is_repeat_check() 509 long *count; in update_traceon_count() local 542 old_count = *count; in update_traceon_count() 643 long *count; in ftrace_stacktrace_count() local 663 old_count = *count; in ftrace_stacktrace_count() 683 long *count = NULL; in update_count() local 688 if (count) { in update_count() 689 if (*count <= 0) in update_count() 691 (*count)--; in update_count() 722 long *count = NULL; in ftrace_probe_print() local [all …]
|
| A D | trace_events_trigger.c | 402 if (count == -1) in event_trigger_print() 1289 if (!data->count) in traceon_count_trigger() 1293 (data->count)--; in traceon_count_trigger() 1337 if (!data->count) in traceoff_count_trigger() 1341 (data->count)--; in traceoff_count_trigger() 1447 if (!data->count) in snapshot_count_trigger() 1451 (data->count)--; in snapshot_count_trigger() 1566 if (!data->count) in stacktrace_count_trigger() 1570 (data->count)--; in stacktrace_count_trigger() 1652 if (!data->count) in event_enable_count_trigger() [all …]
|
| A D | trace_osnoise.c | 169 u64 count; member 177 u64 count; member 189 u64 count; member 198 u64 count; member 246 u64 count; member 1776 tlat->count++; in timerlat_irq() 1876 tlat->count = 0; in timerlat_main() 2293 if (len >= count) in osnoise_cpus_read() 2298 return count; in osnoise_cpus_read() 2363 return count; in osnoise_cpus_write() [all …]
|
| A D | trace_hwlat.c | 99 int count; /* # of iterations over thresh */ member 107 u64 count; /* total since reset */ member 148 entry->count = sample->count; in trace_hwlat_sample() 210 unsigned int count = 0; in get_sample() local 256 if (!count) in get_sample() 258 count++; in get_sample() 288 hwlat_data.count++; in get_sample() 289 s.seqnum = hwlat_data.count; in get_sample() 294 s.count = count; in get_sample() 835 hwlat_data.count = 0; in hwlat_tracer_init()
|
| /kernel/events/ |
| A D | hw_breakpoint.c | 44 atomic_t count[hw_breakpoint_slots(0)]; member 46 atomic_t *count; 188 hist->count = kcalloc(hw_breakpoint_slots_cached(type), sizeof(*hist->count), GFP_KERNEL); in bp_slots_histogram_alloc() 189 return hist->count; in bp_slots_histogram_alloc() 194 kfree(hist->count); in bp_slots_histogram_free() 252 const int count = atomic_read(&hist->count[i]); in bp_slots_histogram_max() local 256 if (count > 0) in bp_slots_histogram_max() 326 int count = 0; in task_bp_pinned() local 344 count = -1; in task_bp_pinned() 350 count += hw_breakpoint_weight(iter); in task_bp_pinned() [all …]
|
| /kernel/trace/rv/ |
| A D | rv.c | 368 size_t count, loff_t *ppos) in monitor_enable_write_data() argument 374 retval = kstrtobool_from_user(user_buf, count, &val); in monitor_enable_write_data() 387 return retval ? : count; in monitor_enable_write_data() 597 size_t count, loff_t *ppos) in enabled_monitors_write() argument 606 if (count < 1 || count > MAX_RV_MONITOR_NAME_SIZE + 1) in enabled_monitors_write() 624 return count; in enabled_monitors_write() 648 retval = count; in enabled_monitors_write() 684 size_t count, loff_t *ppos) in monitoring_on_read_data() argument 731 size_t count, loff_t *ppos) in monitoring_on_write_data() argument 736 retval = kstrtobool_from_user(user_buf, count, &val); in monitoring_on_write_data() [all …]
|
| A D | rv_reactors.c | 204 size_t count, loff_t *ppos) in monitor_reactors_write() argument 214 if (count < 1 || count > MAX_RV_REACTOR_NAME_SIZE + 1) in monitor_reactors_write() 219 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in monitor_reactors_write() 227 return count; in monitor_reactors_write() 245 retval = count; in monitor_reactors_write() 359 size_t count, loff_t *ppos) in reacting_on_read_data() argument 365 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in reacting_on_read_data() 383 size_t count, loff_t *ppos) in reacting_on_write_data() argument 388 retval = kstrtobool_from_user(user_buf, count, &val); in reacting_on_write_data() 407 return count; in reacting_on_write_data()
|
| /kernel/dma/ |
| A D | contiguous.c | 102 int nid, count = 0; in early_numa_cma() local 107 if (sscanf(s, "%lu%n", &tmp, &count) != 1) in early_numa_cma() 110 if (s[count] == ':') { in early_numa_cma() 115 s += count + 1; in early_numa_cma() 326 int count) in dma_release_from_contiguous() argument 328 return cma_release(dev_get_cma_area(dev), pages, count); in dma_release_from_contiguous() 405 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_free_contiguous() local 409 if (cma_release(dev->cma_area, page, count)) in dma_free_contiguous() 417 page, count)) in dma_free_contiguous() 420 page, count)) in dma_free_contiguous() [all …]
|
| /kernel/power/ |
| A D | main.c | 161 count += sysfs_emit_at(buf, count, "[%s] ", label); in mem_sleep_show() 163 count += sysfs_emit_at(buf, count, "%s ", label); in mem_sleep_show() 168 if (count > 0) in mem_sleep_show() 171 return count; in mem_sleep_show() 277 count += sysfs_emit_at(buf, count, "%s ", pm_tests[level]); in pm_test_show() 281 if (count > 0) in pm_test_show() 284 return count; in pm_test_show() 690 count += sysfs_emit_at(buf, count, "%s ", pm_states[i]); in state_show() 694 count += sysfs_emit_at(buf, count, "disk "); in state_show() 697 if (count > 0) in state_show() [all …]
|
| /kernel/debug/ |
| A D | gdbstub.c | 92 int count; in get_packet() local 107 count = 0; 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() 159 count++; in put_packet() 245 tmp = buf + count; in kgdb_mem2hex() 250 while (count > 0) { in kgdb_mem2hex() [all …]
|
| /kernel/futex/ |
| A D | waitwake.c | 374 int futex_unqueue_multiple(struct futex_vector *v, int count) in futex_unqueue_multiple() argument 378 for (i = 0; i < count; i++) { in futex_unqueue_multiple() 402 int futex_wait_multiple_setup(struct futex_vector *vs, int count, int *woken) in futex_wait_multiple_setup() argument 429 for (i = 0; i < count; i++) { in futex_wait_multiple_setup() 443 for (i = 0; i < count; i++) { in futex_wait_multiple_setup() 508 static void futex_sleep_multiple(struct futex_vector *vs, unsigned int count, in futex_sleep_multiple() argument 514 for (; count; count--, vs++) { in futex_sleep_multiple() 536 int futex_wait_multiple(struct futex_vector *vs, unsigned int count, in futex_wait_multiple() argument 545 ret = futex_wait_multiple_setup(vs, count, &hint); in futex_wait_multiple() 554 futex_sleep_multiple(vs, count, to); in futex_wait_multiple() [all …]
|
| /kernel/cgroup/ |
| A 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/bpf/ |
| A D | mprog.c | 404 u32 id, count = 0; in bpf_mprog_query() local 412 count = bpf_mprog_total(entry); in bpf_mprog_query() 418 if (copy_to_user(&uattr->query.count, &count, sizeof(count))) in bpf_mprog_query() 424 if (attr->query.count == 0 || !uprog_id || !count) in bpf_mprog_query() 426 if (attr->query.count < count) { in bpf_mprog_query() 427 count = attr->query.count; in bpf_mprog_query() 448 if (i + 1 == count) in bpf_mprog_query()
|