Searched refs:handle (Results 1 – 10 of 10) sorted by relevance
/kernel/power/ |
D | swap.c | 220 static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags) in mark_swapfiles() argument 229 swsusp_header->image = handle->first_sector; in mark_swapfiles() 232 swsusp_header->crc32 = handle->crc32; in mark_swapfiles() 310 static void release_swap_writer(struct swap_map_handle *handle) in release_swap_writer() argument 312 if (handle->cur) in release_swap_writer() 313 free_page((unsigned long)handle->cur); in release_swap_writer() 314 handle->cur = NULL; in release_swap_writer() 317 static int get_swap_writer(struct swap_map_handle *handle) in get_swap_writer() argument 328 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer() 329 if (!handle->cur) { in get_swap_writer() [all …]
|
D | snapshot.c | 1698 int snapshot_read_next(struct snapshot_handle *handle) in snapshot_read_next() argument 1700 if (handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_read_next() 1709 if (!handle->cur) { in snapshot_read_next() 1715 handle->buffer = buffer; in snapshot_read_next() 1718 } else if (handle->cur <= nr_meta_pages) { in snapshot_read_next() 1735 handle->buffer = buffer; in snapshot_read_next() 1737 handle->buffer = page_address(page); in snapshot_read_next() 1740 handle->cur++; in snapshot_read_next() 2213 int snapshot_write_next(struct snapshot_handle *handle) in snapshot_write_next() argument 2219 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) in snapshot_write_next() [all …]
|
D | power.h | 129 #define data_of(handle) ((handle).buffer) argument 133 extern int snapshot_read_next(struct snapshot_handle *handle); 134 extern int snapshot_write_next(struct snapshot_handle *handle); 135 extern void snapshot_write_finalize(struct snapshot_handle *handle); 136 extern int snapshot_image_loaded(struct snapshot_handle *handle);
|
D | user.c | 36 struct snapshot_handle handle; member 71 memset(&data->handle, 0, sizeof(struct snapshot_handle)); in snapshot_open() 145 res = snapshot_read_next(&data->handle); in snapshot_read() 153 data_of(data->handle), res); in snapshot_read() 175 res = snapshot_write_next(&data->handle); in snapshot_write() 182 res = simple_write_to_buffer(data_of(data->handle), res, &pg_offp, in snapshot_write() 250 snapshot_write_finalize(&data->handle); in snapshot_ioctl() 252 !snapshot_image_loaded(&data->handle)) { in snapshot_ioctl() 261 memset(&data->handle, 0, sizeof(struct snapshot_handle)); in snapshot_ioctl()
|
/kernel/events/ |
D | ring_buffer.c | 49 static void perf_output_wakeup(struct perf_output_handle *handle) in perf_output_wakeup() argument 51 atomic_set(&handle->rb->poll, POLL_IN); in perf_output_wakeup() 53 handle->event->pending_wakeup = 1; in perf_output_wakeup() 54 irq_work_queue(&handle->event->pending); in perf_output_wakeup() 65 static void perf_output_get_handle(struct perf_output_handle *handle) in perf_output_get_handle() argument 67 struct ring_buffer *rb = handle->rb; in perf_output_get_handle() 71 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle() 74 static void perf_output_put_handle(struct perf_output_handle *handle) in perf_output_put_handle() argument 76 struct ring_buffer *rb = handle->rb; in perf_output_put_handle() 105 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle() [all …]
|
D | internal.h | 53 struct perf_output_handle *handle, 86 func_name(struct perf_output_handle *handle, \ 92 size = min_t(unsigned long, handle->size, len); \ 94 written = memcpy_func(handle->addr, buf, size); \ 97 handle->addr += written; \ 99 handle->size -= written; \ 100 if (!handle->size) { \ 101 struct ring_buffer *rb = handle->rb; \ 103 handle->page++; \ 104 handle->page &= rb->nr_pages - 1; \ [all …]
|
D | core.c | 4049 perf_output_sample_regs(struct perf_output_handle *handle, in perf_output_sample_regs() argument 4059 perf_output_put(handle, val); in perf_output_sample_regs() 4136 perf_output_sample_ustack(struct perf_output_handle *handle, u64 dump_size, in perf_output_sample_ustack() argument 4142 perf_output_put(handle, size); in perf_output_sample_ustack() 4160 perf_output_put(handle, dump_size); in perf_output_sample_ustack() 4164 rem = __output_copy_user(handle, (void *) sp, dump_size); in perf_output_sample_ustack() 4167 perf_output_skip(handle, rem); in perf_output_sample_ustack() 4170 perf_output_put(handle, dyn_size); in perf_output_sample_ustack() 4212 static void __perf_event__output_id_sample(struct perf_output_handle *handle, in __perf_event__output_id_sample() argument 4218 perf_output_put(handle, data->tid_entry); in __perf_event__output_id_sample() [all …]
|
/kernel/irq/ |
D | chip.c | 645 __irq_set_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, in __irq_set_handler() argument 654 if (!handle) { in __irq_set_handler() 655 handle = handle_bad_irq; in __irq_set_handler() 662 if (handle == handle_bad_irq) { in __irq_set_handler() 668 desc->handle_irq = handle; in __irq_set_handler() 671 if (handle != handle_bad_irq && is_chained) { in __irq_set_handler() 684 irq_flow_handler_t handle, const char *name) in irq_set_chip_and_handler_name() argument 687 __irq_set_handler(irq, handle, 0, name); in irq_set_chip_and_handler_name()
|
D | Makefile | 2 obj-y := irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o devres.o
|
/kernel/time/ |
D | Kconfig | 41 # Architecture can handle broadcast in a driver-agnostic way 135 handle the timekeeping duty.
|