Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 147) sorted by relevance

123456

/arch/x86/oprofile/
Dbacktrace.c23 dump_user_backtrace_32(struct stack_frame_ia32 *head) in dump_user_backtrace_32() argument
30 bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); in dump_user_backtrace_32()
40 if (head >= fp) in dump_user_backtrace_32()
49 struct stack_frame_ia32 *head; in x86_backtrace_32() local
55 head = (struct stack_frame_ia32 *) regs->bp; in x86_backtrace_32()
56 while (depth-- && head) in x86_backtrace_32()
57 head = dump_user_backtrace_32(head); in x86_backtrace_32()
70 static struct stack_frame *dump_user_backtrace(struct stack_frame *head) in dump_user_backtrace() argument
76 bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); in dump_user_backtrace()
84 if (head >= bufhead[0].next_frame) in dump_user_backtrace()
[all …]
/arch/x86/kvm/mmu/
Dpage_track.c160 struct kvm_page_track_notifier_head *head; in kvm_page_track_cleanup() local
162 head = &kvm->arch.track_notifier_head; in kvm_page_track_cleanup()
163 cleanup_srcu_struct(&head->track_srcu); in kvm_page_track_cleanup()
168 struct kvm_page_track_notifier_head *head; in kvm_page_track_init() local
170 head = &kvm->arch.track_notifier_head; in kvm_page_track_init()
171 INIT_HLIST_HEAD(&head->track_notifier_list); in kvm_page_track_init()
172 return init_srcu_struct(&head->track_srcu); in kvm_page_track_init()
183 struct kvm_page_track_notifier_head *head; in kvm_page_track_register_notifier() local
185 head = &kvm->arch.track_notifier_head; in kvm_page_track_register_notifier()
188 hlist_add_head_rcu(&n->node, &head->track_notifier_list); in kvm_page_track_register_notifier()
[all …]
/arch/x86/platform/uv/
Duv_time.c147 struct uv_rtc_timer_head *head = blade_info[bid]; in uv_rtc_allocate_timers() local
149 if (!head) { in uv_rtc_allocate_timers()
150 head = kmalloc_node(struct_size(head, cpu, in uv_rtc_allocate_timers()
153 if (!head) { in uv_rtc_allocate_timers()
157 spin_lock_init(&head->lock); in uv_rtc_allocate_timers()
158 head->ncpus = uv_blade_nr_possible_cpus(bid); in uv_rtc_allocate_timers()
159 head->next_cpu = -1; in uv_rtc_allocate_timers()
160 blade_info[bid] = head; in uv_rtc_allocate_timers()
163 head->cpu[bcpu].lcpu = cpu; in uv_rtc_allocate_timers()
164 head->cpu[bcpu].expires = ULLONG_MAX; in uv_rtc_allocate_timers()
[all …]
/arch/m68k/kernel/
DMakefile6 extra-$(CONFIG_AMIGA) := head.o
7 extra-$(CONFIG_ATARI) := head.o
8 extra-$(CONFIG_MAC) := head.o
9 extra-$(CONFIG_APOLLO) := head.o
10 extra-$(CONFIG_VME) := head.o
11 extra-$(CONFIG_HP300) := head.o
12 extra-$(CONFIG_Q40) := head.o
13 extra-$(CONFIG_SUN3X) := head.o
14 extra-$(CONFIG_SUN3) := sun3-head.o
/arch/x86/kernel/cpu/mce/
Dgenpool.c57 struct llist_node *head; in mce_gen_pool_prepare_records() local
61 head = llist_del_all(&mce_event_llist); in mce_gen_pool_prepare_records()
62 if (!head) in mce_gen_pool_prepare_records()
66 llist_for_each_entry_safe(node, t, head, llnode) { in mce_gen_pool_prepare_records()
76 struct llist_node *head; in mce_gen_pool_process() local
80 head = llist_del_all(&mce_event_llist); in mce_gen_pool_process()
81 if (!head) in mce_gen_pool_process()
84 head = llist_reverse_order(head); in mce_gen_pool_process()
85 llist_for_each_entry_safe(node, tmp, head, llnode) { in mce_gen_pool_process()
/arch/powerpc/platforms/pseries/
Dhvcserver.c62 int hvcs_free_partner_info(struct list_head *head) in hvcs_free_partner_info() argument
67 if (!head) in hvcs_free_partner_info()
70 while (!list_empty(head)) { in hvcs_free_partner_info()
71 element = head->next; in hvcs_free_partner_info()
119 int hvcs_get_partner_info(uint32_t unit_address, struct list_head *head, in hvcs_get_partner_info() argument
133 if (!head || !pi_buff) in hvcs_get_partner_info()
138 INIT_LIST_HEAD(head); in hvcs_get_partner_info()
148 if (!list_empty(head)) in hvcs_get_partner_info()
169 hvcs_free_partner_info(head); in hvcs_get_partner_info()
183 list_add_tail(&(next_partner_info->node), head); in hvcs_get_partner_info()
/arch/x86/kernel/
Dnmi.c43 struct list_head head; member
50 .head = LIST_HEAD_INIT(nmi_desc[0].head),
54 .head = LIST_HEAD_INIT(nmi_desc[1].head),
58 .head = LIST_HEAD_INIT(nmi_desc[2].head),
62 .head = LIST_HEAD_INIT(nmi_desc[3].head),
135 list_for_each_entry_rcu(a, &desc->head, list) { in nmi_handle()
169 WARN_ON_ONCE(type == NMI_SERR && !list_empty(&desc->head)); in __register_nmi_handler()
170 WARN_ON_ONCE(type == NMI_IO_CHECK && !list_empty(&desc->head)); in __register_nmi_handler()
177 list_add_rcu(&action->list, &desc->head); in __register_nmi_handler()
179 list_add_tail_rcu(&action->list, &desc->head); in __register_nmi_handler()
[all …]
/arch/x86/events/intel/
Dbts.c58 local_t head; member
152 index = local_read(&buf->head); in bts_config_buffer()
176 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
178 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
188 unsigned long index = ds->bts_index - ds->bts_buffer_base, old, head; in bts_update() local
193 head = index + bts_buffer_offset(buf, buf->cur_buf); in bts_update()
194 old = local_xchg(&buf->head, head); in bts_update()
197 if (old == head) in bts_update()
208 local_add(head - old, &buf->data_size); in bts_update()
210 local_set(&buf->data_size, head); in bts_update()
[all …]
/arch/powerpc/include/asm/
Dps3gpu.h34 static inline int lv1_gpu_display_sync(u64 context_handle, u64 head, in lv1_gpu_display_sync() argument
39 head, ddr_offset, 0, 0); in lv1_gpu_display_sync()
42 static inline int lv1_gpu_display_flip(u64 context_handle, u64 head, in lv1_gpu_display_flip() argument
47 head, ddr_offset, 0, 0); in lv1_gpu_display_flip()
Dhvcserver.h38 extern int hvcs_free_partner_info(struct list_head *head);
40 struct list_head *head, unsigned long *pi_buff);
/arch/ia64/kernel/
Dmca_drv.h105 #define slidx_foreach_entry(pos, head) \ argument
106 list_for_each_entry(pos, head, list)
107 #define slidx_first_entry(head) \ argument
108 (((head)->next != (head)) ? list_entry((head)->next, typeof(slidx_list_t), list) : NULL)
/arch/parisc/kernel/
Dkexec.c10 extern void relocate_new_kernel(unsigned long head,
38 pr_debug(" head: %lx\n", kimage->head); in kexec_image_info()
74 void (*reloc)(unsigned long head, in machine_kexec()
105 reloc(image->head & PAGE_MASK, image->start, phys); in machine_kexec()
/arch/arm64/include/uapi/asm/
Dsigcontext.h74 struct _aarch64_ctx head; member
93 struct _aarch64_ctx head; member
126 struct _aarch64_ctx head; member
135 struct _aarch64_ctx head; member
/arch/arm64/kernel/
Dsignal.c183 __put_user_error(FPSIMD_MAGIC, &ctx->head.magic, err); in preserve_fpsimd_context()
184 __put_user_error(sizeof(struct fpsimd_context), &ctx->head.size, err); in preserve_fpsimd_context()
196 __get_user_error(magic, &ctx->head.magic, err); in restore_fpsimd_context()
197 __get_user_error(size, &ctx->head.size, err); in restore_fpsimd_context()
238 __put_user_error(SVE_MAGIC, &ctx->head.magic, err); in preserve_sve_context()
240 &ctx->head.size, err); in preserve_sve_context()
272 if (sve.head.size <= sizeof(*user->sve)) { in restore_sve_fpsimd_context()
279 if (sve.head.size < SVE_SIG_CONTEXT_SIZE(vq)) in restore_sve_fpsimd_context()
330 struct _aarch64_ctx __user *head; in parse_user_sigframe() local
353 if (limit - offset < sizeof(*head)) in parse_user_sigframe()
[all …]
/arch/powerpc/kernel/
Dvmlinux.lds.S52 .head.text : AT(ADDR(.head.text) - LOAD_OFFSET) {
54 KEEP(*(.head.text.first_256B));
57 KEEP(*(.head.text.real_vectors));
58 *(.head.text.real_trampolines);
59 KEEP(*(.head.text.virt_vectors));
60 *(.head.text.virt_trampolines);
62 KEEP(*(.head.data.fwnmi_page));
/arch/powerpc/oprofile/cell/
Dspu_task_sync.c55 if (spu_buff[spu].head >= spu_buff[spu].tail) { in spu_buff_add()
56 if ((spu_buff[spu].head - spu_buff[spu].tail) in spu_buff_add()
60 } else if (spu_buff[spu].tail > spu_buff[spu].head) { in spu_buff_add()
61 if ((spu_buff[spu].tail - spu_buff[spu].head) in spu_buff_add()
67 spu_buff[spu].buff[spu_buff[spu].head] = value; in spu_buff_add()
68 spu_buff[spu].head++; in spu_buff_add()
70 if (spu_buff[spu].head >= max_spu_buff) in spu_buff_add()
71 spu_buff[spu].head = 0; in spu_buff_add()
106 curr_head = spu_buff[spu].head; in sync_spu_buff()
466 spu_buff[spu].head = 0; in oprofile_spu_buff_create()
/arch/um/drivers/
Dline.c43 n = line->head - line->tail; in write_room()
97 line->head = line->buffer; in buffer_data()
134 if ((line->buffer == NULL) || (line->head == line->tail)) in flush_buffer()
137 if (line->tail < line->head) { in flush_buffer()
139 count = line->buffer + LINE_BUFSIZE - line->head; in flush_buffer()
141 n = write_chan(line->chan_out, line->head, count, in flush_buffer()
150 line->head = line->buffer; in flush_buffer()
152 line->head += n; in flush_buffer()
157 count = line->tail - line->head; in flush_buffer()
158 n = write_chan(line->chan_out, line->head, count, in flush_buffer()
[all …]
/arch/sparc/kernel/
Dpci_sun4v.h54 unsigned long *head);
57 unsigned long head);
60 unsigned long *head);
Dpci_fire.c151 unsigned long *head) in pci_fire_get_head() argument
153 *head = upa_readq(pbm->pbm_regs + EVENT_QUEUE_HEAD(msiqid)); in pci_fire_get_head()
158 unsigned long *head, unsigned long *msi) in pci_fire_dequeue_msi() argument
164 ep = &base[*head]; in pci_fire_dequeue_msi()
185 (*head)++; in pci_fire_dequeue_msi()
186 if (*head >= pbm->msiq_ent_count) in pci_fire_dequeue_msi()
187 *head = 0; in pci_fire_dequeue_msi()
193 unsigned long head) in pci_fire_set_head() argument
195 upa_writeq(head, pbm->pbm_regs + EVENT_QUEUE_HEAD(msiqid)); in pci_fire_set_head()
/arch/s390/include/asm/
Dgmap.h83 #define gmap_for_each_rmap(pos, head) \ argument
84 for (pos = (head); pos; pos = pos->next)
86 #define gmap_for_each_rmap_safe(pos, n, head) \ argument
87 for (pos = (head); n = pos ? pos->next : NULL, pos; pos = n)
/arch/nios2/boot/compressed/
DMakefile6 targets := vmlinux head.o misc.o piggy.o vmlinux.lds
9 OBJECTS = $(obj)/head.o $(obj)/misc.o
/arch/mips/kernel/
Dmachine_kexec.c40 pr_debug(" head: %lx\n", kimage->head); in kexec_image_info()
222 (unsigned long) phys_to_virt(image->head & PAGE_MASK); in machine_kexec()
224 kexec_indirection_page = (unsigned long)&image->head; in machine_kexec()
236 for (ptr = &image->head; (entry = *ptr) && !(entry &IND_DONE); in machine_kexec()
/arch/x86/kernel/cpu/resctrl/
Dmonitor.c298 struct list_head *head; in mon_event_count() local
310 head = &rdtgrp->mon.crdtgrp_list; in mon_event_count()
313 list_for_each_entry(entry, head, mon.crdtgrp_list) { in mon_event_count()
363 struct list_head *head; in update_mba_bw() local
388 head = &rgrp->mon.crdtgrp_list; in update_mba_bw()
389 list_for_each_entry(entry, head, mon.crdtgrp_list) { in update_mba_bw()
433 list_for_each_entry(entry, head, mon.crdtgrp_list) { in update_mba_bw()
509 struct list_head *head; in mbm_handle_overflow() local
524 head = &prgrp->mon.crdtgrp_list; in mbm_handle_overflow()
525 list_for_each_entry(crgrp, head, mon.crdtgrp_list) in mbm_handle_overflow()
/arch/hexagon/
DMakefile36 head-y := arch/hexagon/kernel/head.o
/arch/s390/kernel/
Dperf_cpum_sf.c80 unsigned long head; /* index of SDB of buffer head */ member
1365 #define AUX_SDB_NUM_ALERT(aux) AUX_SDB_NUM(aux, aux->head, aux->alert_mark)
1366 #define AUX_SDB_NUM_EMPTY(aux) AUX_SDB_NUM(aux, aux->head, aux->empty_mark)
1401 for (i = 0, idx = aux->head; i < range_scan; i++, idx++) { in aux_output_end()
1414 __func__, i, range_scan, aux->head); in aux_output_end()
1432 unsigned long head, base, offset; in aux_output_begin() local
1435 if (WARN_ON_ONCE(handle->head & ~PAGE_MASK)) in aux_output_begin()
1438 aux->head = handle->head >> PAGE_SHIFT; in aux_output_begin()
1449 __func__, range, aux->head, aux->alert_mark, in aux_output_begin()
1461 aux->empty_mark = aux->head + range - 1; in aux_output_begin()
[all …]

123456