/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 ring_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 ring_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 | 133 size = min(handle->size, len); \ 138 handle->addr += written; \ 141 handle->size -= written; \ 142 if (!handle->size) { \ 143 struct ring_buffer *rb = handle->rb; \ 145 handle->page++; \ 146 handle->page &= rb->nr_pages - 1; \ 147 handle->addr = rb->data_pages[handle->page]; \ 148 handle->size = PAGE_SIZE << page_order(rb); \ 157 func_name(struct perf_output_handle *handle, \ [all …]
|
D | core.c | 6056 perf_output_sample_regs(struct perf_output_handle *handle, in perf_output_sample_regs() argument 6067 perf_output_put(handle, val); in perf_output_sample_regs() 6151 perf_output_sample_ustack(struct perf_output_handle *handle, u64 dump_size, in perf_output_sample_ustack() argument 6157 perf_output_put(handle, size); in perf_output_sample_ustack() 6176 perf_output_put(handle, dump_size); in perf_output_sample_ustack() 6182 rem = __output_copy_user(handle, (void *) sp, dump_size); in perf_output_sample_ustack() 6186 perf_output_skip(handle, rem); in perf_output_sample_ustack() 6189 perf_output_put(handle, dyn_size); in perf_output_sample_ustack() 6231 static void __perf_event__output_id_sample(struct perf_output_handle *handle, in __perf_event__output_id_sample() argument 6237 perf_output_put(handle, data->tid_entry); in __perf_event__output_id_sample() [all …]
|
/kernel/power/ |
D | swap.c | 305 static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags) in mark_swapfiles() argument 315 swsusp_header->image = handle->first_sector; in mark_swapfiles() 318 swsusp_header->crc32 = handle->crc32; in mark_swapfiles() 402 static void release_swap_writer(struct swap_map_handle *handle) in release_swap_writer() argument 404 if (handle->cur) in release_swap_writer() 405 free_page((unsigned long)handle->cur); in release_swap_writer() 406 handle->cur = NULL; in release_swap_writer() 409 static int get_swap_writer(struct swap_map_handle *handle) in get_swap_writer() argument 419 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer() 420 if (!handle->cur) { in get_swap_writer() [all …]
|
D | snapshot.c | 2095 int snapshot_read_next(struct snapshot_handle *handle) in snapshot_read_next() argument 2097 if (handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_read_next() 2106 if (!handle->cur) { in snapshot_read_next() 2112 handle->buffer = buffer; in snapshot_read_next() 2115 } else if (handle->cur <= nr_meta_pages) { in snapshot_read_next() 2133 handle->buffer = buffer; in snapshot_read_next() 2135 handle->buffer = page_address(page); in snapshot_read_next() 2138 handle->cur++; in snapshot_read_next() 2591 int snapshot_write_next(struct snapshot_handle *handle) in snapshot_write_next() argument 2597 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_write_next() [all …]
|
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 | user.c | 33 struct snapshot_handle handle; member 67 memset(&data->handle, 0, sizeof(struct snapshot_handle)); in snapshot_open() 149 res = snapshot_read_next(&data->handle); in snapshot_read() 157 data_of(data->handle), res); in snapshot_read() 179 res = snapshot_write_next(&data->handle); in snapshot_write() 186 if (!data_of(data->handle)) { in snapshot_write() 191 res = simple_write_to_buffer(data_of(data->handle), res, &pg_offp, in snapshot_write() 267 snapshot_write_finalize(&data->handle); in snapshot_ioctl() 269 !snapshot_image_loaded(&data->handle)) { in snapshot_ioctl() 278 memset(&data->handle, 0, sizeof(struct snapshot_handle)); in snapshot_ioctl()
|
/kernel/ |
D | kcov.c | 80 u64 handle; member 90 static struct kcov_remote *kcov_remote_find(u64 handle) in kcov_remote_find() argument 94 hash_for_each_possible(kcov_remote_map, remote, hnode, handle) { in kcov_remote_find() 95 if (remote->handle == handle) in kcov_remote_find() 101 static struct kcov_remote *kcov_remote_add(struct kcov *kcov, u64 handle) in kcov_remote_add() argument 105 if (kcov_remote_find(handle)) in kcov_remote_add() 110 remote->handle = handle; in kcov_remote_add() 112 hash_add(kcov_remote_map, &remote->hnode, handle); in kcov_remote_add() 369 kcov_debug("removing handle %llx\n", remote->handle); in kcov_remote_reset() 528 static inline bool kcov_check_handle(u64 handle, bool common_valid, in kcov_check_handle() argument [all …]
|
/kernel/irq/ |
D | chip.c | 984 __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle, in __irq_do_set_handler() argument 987 if (!handle) { in __irq_do_set_handler() 988 handle = handle_bad_irq; in __irq_do_set_handler() 1018 if (handle == handle_bad_irq) { in __irq_do_set_handler() 1026 desc->handle_irq = handle; in __irq_do_set_handler() 1029 if (handle != handle_bad_irq && is_chained) { in __irq_do_set_handler() 1042 desc->handle_irq = handle; in __irq_do_set_handler() 1054 __irq_set_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, in __irq_set_handler() argument 1063 __irq_do_set_handler(desc, handle, is_chained, name); in __irq_set_handler() 1069 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
|
D | irqdomain.c | 170 acpi_handle handle; in __irq_domain_add() local 172 handle = acpi_device_handle(to_acpi_device_node(fwnode)); in __irq_domain_add() 173 if (acpi_get_name(handle, ACPI_FULL_PATHNAME, &buf) == AE_OK) { in __irq_domain_add()
|
/kernel/time/ |
D | Kconfig | 37 # Architecture can handle broadcast in a driver-agnostic way
|