/kernel/events/ |
D | ring_buffer.c | 20 static void perf_output_wakeup(struct perf_output_handle *handle) in perf_output_wakeup() argument 22 atomic_set(&handle->rb->poll, EPOLLIN); in perf_output_wakeup() 24 handle->event->pending_wakeup = 1; in perf_output_wakeup() 25 irq_work_queue(&handle->event->pending); in perf_output_wakeup() 36 static void perf_output_get_handle(struct perf_output_handle *handle) in perf_output_get_handle() argument 38 struct perf_buffer *rb = handle->rb; in perf_output_get_handle() 47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle() 50 static void perf_output_put_handle(struct perf_output_handle *handle) in perf_output_put_handle() argument 52 struct perf_buffer *rb = handle->rb; in perf_output_put_handle() 130 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle() [all …]
|
D | internal.h | 139 size = min(handle->size, len); \ 144 handle->addr += written; \ 147 handle->size -= written; \ 148 if (!handle->size) { \ 149 struct perf_buffer *rb = handle->rb; \ 151 handle->page++; \ 152 handle->page &= rb->nr_pages - 1; \ 153 handle->addr = rb->data_pages[handle->page]; \ 154 handle->size = PAGE_SIZE << page_order(rb); \ 163 func_name(struct perf_output_handle *handle, \ [all …]
|
D | core.c | 6683 perf_output_sample_regs(struct perf_output_handle *handle, in perf_output_sample_regs() argument 6694 perf_output_put(handle, val); in perf_output_sample_regs() 6777 perf_output_sample_ustack(struct perf_output_handle *handle, u64 dump_size, in perf_output_sample_ustack() argument 6783 perf_output_put(handle, size); in perf_output_sample_ustack() 6802 perf_output_put(handle, dump_size); in perf_output_sample_ustack() 6807 rem = __output_copy_user(handle, (void *) sp, dump_size); in perf_output_sample_ustack() 6811 perf_output_skip(handle, rem); in perf_output_sample_ustack() 6814 perf_output_put(handle, dyn_size); in perf_output_sample_ustack() 6858 struct perf_output_handle *handle, in perf_pmu_snapshot_aux() argument 6881 ret = event->pmu->snapshot_aux(event, handle, size); in perf_pmu_snapshot_aux() [all …]
|
/kernel/power/ |
D | swap.c | 318 static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags) in mark_swapfiles() argument 328 swsusp_header->image = handle->first_sector; in mark_swapfiles() 331 swsusp_header->crc32 = handle->crc32; in mark_swapfiles() 412 static void release_swap_writer(struct swap_map_handle *handle) in release_swap_writer() argument 414 if (handle->cur) in release_swap_writer() 415 free_page((unsigned long)handle->cur); in release_swap_writer() 416 handle->cur = NULL; in release_swap_writer() 419 static int get_swap_writer(struct swap_map_handle *handle) in get_swap_writer() argument 429 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer() 430 if (!handle->cur) { in get_swap_writer() [all …]
|
D | user.c | 32 struct snapshot_handle handle; member 70 memset(&data->handle, 0, sizeof(struct snapshot_handle)); in snapshot_open() 147 res = snapshot_read_next(&data->handle); in snapshot_read() 155 data_of(data->handle), res); in snapshot_read() 182 res = snapshot_write_next(&data->handle); in snapshot_write() 189 if (!data_of(data->handle)) { in snapshot_write() 194 res = simple_write_to_buffer(data_of(data->handle), res, &pg_offp, in snapshot_write() 316 snapshot_write_finalize(&data->handle); in snapshot_ioctl() 318 !snapshot_image_loaded(&data->handle)) { in snapshot_ioctl() 327 memset(&data->handle, 0, sizeof(struct snapshot_handle)); in snapshot_ioctl()
|
D | power.h | 148 #define data_of(handle) ((handle).buffer) argument 152 extern int snapshot_read_next(struct snapshot_handle *handle); 153 extern int snapshot_write_next(struct snapshot_handle *handle); 154 extern void snapshot_write_finalize(struct snapshot_handle *handle); 155 extern int snapshot_image_loaded(struct snapshot_handle *handle);
|
D | snapshot.c | 2129 int snapshot_read_next(struct snapshot_handle *handle) in snapshot_read_next() argument 2131 if (handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_read_next() 2140 if (!handle->cur) { in snapshot_read_next() 2146 handle->buffer = buffer; in snapshot_read_next() 2149 } else if (handle->cur <= nr_meta_pages) { in snapshot_read_next() 2167 handle->buffer = buffer; in snapshot_read_next() 2169 handle->buffer = page_address(page); in snapshot_read_next() 2172 handle->cur++; in snapshot_read_next() 2624 int snapshot_write_next(struct snapshot_handle *handle) in snapshot_write_next() argument 2630 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_write_next() [all …]
|
/kernel/ |
D | kcov.c | 80 u64 handle; member 102 static struct kcov_remote *kcov_remote_find(u64 handle) in kcov_remote_find() argument 106 hash_for_each_possible(kcov_remote_map, remote, hnode, handle) { in kcov_remote_find() 107 if (remote->handle == handle) in kcov_remote_find() 114 static struct kcov_remote *kcov_remote_add(struct kcov *kcov, u64 handle) in kcov_remote_add() argument 118 if (kcov_remote_find(handle)) in kcov_remote_add() 123 remote->handle = handle; in kcov_remote_add() 125 hash_add(kcov_remote_map, &remote->hnode, handle); in kcov_remote_add() 543 static inline bool kcov_check_handle(u64 handle, bool common_valid, in kcov_check_handle() argument 546 if (handle & ~(KCOV_SUBSYSTEM_MASK | KCOV_INSTANCE_MASK)) in kcov_check_handle() [all …]
|
D | smp.c | 72 u64 handle; member 307 cfd_seq_data_add(seq->handle, CFD_SEQ_NOCPU, cpu, CFD_SEQ_HANDLE, data, &n_data, now); in csd_lock_print_extended() 571 cfd_seq_store(this_cpu_ptr(&cfd_seq_local)->handle, CFD_SEQ_NOCPU, in flush_smp_call_function_queue()
|
/kernel/irq/ |
D | chip.c | 991 __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle, in __irq_do_set_handler() argument 994 if (!handle) { in __irq_do_set_handler() 995 handle = handle_bad_irq; in __irq_do_set_handler() 1025 if (handle == handle_bad_irq) { in __irq_do_set_handler() 1033 desc->handle_irq = handle; in __irq_do_set_handler() 1036 if (handle != handle_bad_irq && is_chained) { in __irq_do_set_handler() 1049 desc->handle_irq = handle; in __irq_do_set_handler() 1061 __irq_set_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, in __irq_set_handler() argument 1070 __irq_do_set_handler(desc, handle, is_chained, name); in __irq_set_handler() 1076 irq_set_chained_handler_and_data(unsigned int irq, irq_flow_handler_t handle, in irq_set_chained_handler_and_data() argument [all …]
|
D | Makefile | 3 obj-y := irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o devres.o
|
/kernel/time/ |
D | Kconfig | 33 # Architecture can handle broadcast in a driver-agnostic way 51 # Select to handle posix CPU timers from task_work
|