/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 | 6477 perf_output_sample_regs(struct perf_output_handle *handle, in perf_output_sample_regs() argument 6488 perf_output_put(handle, val); in perf_output_sample_regs() 6571 perf_output_sample_ustack(struct perf_output_handle *handle, u64 dump_size, in perf_output_sample_ustack() argument 6577 perf_output_put(handle, size); in perf_output_sample_ustack() 6596 perf_output_put(handle, dump_size); in perf_output_sample_ustack() 6601 rem = __output_copy_user(handle, (void *) sp, dump_size); in perf_output_sample_ustack() 6605 perf_output_skip(handle, rem); in perf_output_sample_ustack() 6608 perf_output_put(handle, dyn_size); in perf_output_sample_ustack() 6652 struct perf_output_handle *handle, in perf_pmu_snapshot_aux() argument 6675 ret = event->pmu->snapshot_aux(event, handle, size); in perf_pmu_snapshot_aux() [all …]
|
/kernel/power/ |
D | swap.c | 316 static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags) in mark_swapfiles() argument 326 swsusp_header->image = handle->first_sector; in mark_swapfiles() 329 swsusp_header->crc32 = handle->crc32; in mark_swapfiles() 410 static void release_swap_writer(struct swap_map_handle *handle) in release_swap_writer() argument 412 if (handle->cur) in release_swap_writer() 413 free_page((unsigned long)handle->cur); in release_swap_writer() 414 handle->cur = NULL; in release_swap_writer() 417 static int get_swap_writer(struct swap_map_handle *handle) in get_swap_writer() argument 427 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer() 428 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 | 2094 int snapshot_read_next(struct snapshot_handle *handle) in snapshot_read_next() argument 2096 if (handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_read_next() 2105 if (!handle->cur) { in snapshot_read_next() 2111 handle->buffer = buffer; in snapshot_read_next() 2114 } else if (handle->cur <= nr_meta_pages) { in snapshot_read_next() 2132 handle->buffer = buffer; in snapshot_read_next() 2134 handle->buffer = page_address(page); in snapshot_read_next() 2137 handle->cur++; in snapshot_read_next() 2589 int snapshot_write_next(struct snapshot_handle *handle) in snapshot_write_next() argument 2595 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 …]
|
/kernel/irq/ |
D | chip.c | 1018 __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle, in __irq_do_set_handler() argument 1021 if (!handle) { in __irq_do_set_handler() 1022 handle = handle_bad_irq; in __irq_do_set_handler() 1052 if (handle == handle_bad_irq) { in __irq_do_set_handler() 1060 desc->handle_irq = handle; in __irq_do_set_handler() 1063 if (handle != handle_bad_irq && is_chained) { in __irq_do_set_handler() 1076 desc->handle_irq = handle; in __irq_do_set_handler() 1088 __irq_set_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, in __irq_set_handler() argument 1097 __irq_do_set_handler(desc, handle, is_chained, name); in __irq_set_handler() 1103 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 | 37 # Architecture can handle broadcast in a driver-agnostic way 55 # Select to handle posix CPU timers from task_work
|