Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 25 of 53) sorted by relevance

123

/arch/arm/oprofile/
Dcommon.c86 static struct frame_tail* user_backtrace(struct frame_tail *tail) in user_backtrace() argument
91 if (!access_ok(VERIFY_READ, tail, sizeof(buftail))) in user_backtrace()
93 if (__copy_from_user_inatomic(buftail, tail, sizeof(buftail))) in user_backtrace()
100 if (tail + 1 >= buftail[0].fp) in user_backtrace()
108 struct frame_tail *tail = ((struct frame_tail *) regs->ARM_fp) - 1; in arm_backtrace() local
117 while (depth-- && tail && !((unsigned long) tail & 3)) in arm_backtrace()
118 tail = user_backtrace(tail); in arm_backtrace()
/arch/x86/include/asm/
Dspinlock.h49 set_bit(0, (volatile unsigned long *)&lock->tickets.tail); in __ticket_enter_slowpath()
66 return lock.tickets.head == lock.tickets.tail; in arch_spin_value_unlocked()
84 register struct __raw_tickets inc = { .tail = TICKET_LOCK_INC }; in arch_spin_lock()
87 if (likely(inc.head == inc.tail)) in arch_spin_lock()
90 inc.tail &= ~TICKET_SLOWPATH_FLAG; in arch_spin_lock()
95 if (ACCESS_ONCE(lock->tickets.head) == inc.tail) in arch_spin_lock()
99 __ticket_lock_spinning(lock, inc.tail); in arch_spin_lock()
109 if (old.tickets.head != (old.tickets.tail & ~TICKET_SLOWPATH_FLAG)) in arch_spin_trylock()
135 if (new.tickets.head != new.tickets.tail || in __ticket_unlock_slowpath()
157 if (unlikely(lock->tickets.tail & TICKET_SLOWPATH_FLAG)) in arch_spin_unlock()
[all …]
Dspinlock_types.h30 __ticket_t head, tail; member
/arch/ia64/hp/sim/
Dsimserial.c117 if (CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE) == 0) { in rs_put_char()
145 if (info->xmit.head == info->xmit.tail || tty->stopped) { in transmit_chars()
148 info->xmit.head, info->xmit.tail, tty->stopped); in transmit_chars()
160 count = min(CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE), in transmit_chars()
161 SERIAL_XMIT_SIZE - info->xmit.tail); in transmit_chars()
162 console->write(console, info->xmit.buf+info->xmit.tail, count); in transmit_chars()
164 info->xmit.tail = (info->xmit.tail+count) & (SERIAL_XMIT_SIZE-1); in transmit_chars()
169 count = CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in transmit_chars()
172 info->xmit.tail += count; in transmit_chars()
182 if (info->xmit.head == info->xmit.tail || tty->stopped || in rs_flush_chars()
[all …]
/arch/x86/platform/geode/
Dalix.c132 const char *tail; in alix_present() local
150 tail = p + alix_sig_len; in alix_present()
151 if ((tail[0] == '2' || tail[0] == '3' || tail[0] == '6')) { in alix_present()
/arch/arm64/crypto/
Daes-ce-ccm-glue.c174 u32 tail = walk.nbytes % AES_BLOCK_SIZE; in ccm_encrypt() local
177 tail = 0; in ccm_encrypt()
180 walk.nbytes - tail, ctx->key_enc, in ccm_encrypt()
183 len -= walk.nbytes - tail; in ccm_encrypt()
184 err = blkcipher_walk_done(&desc, &walk, tail); in ccm_encrypt()
230 u32 tail = walk.nbytes % AES_BLOCK_SIZE; in ccm_decrypt() local
233 tail = 0; in ccm_decrypt()
236 walk.nbytes - tail, ctx->key_enc, in ccm_decrypt()
239 len -= walk.nbytes - tail; in ccm_decrypt()
240 err = blkcipher_walk_done(&desc, &walk, tail); in ccm_decrypt()
/arch/alpha/lib/
Dclear_user.S57 beq $1, $tail # .. e1 :
71 $tail:
72 bne $2, 1f # e1 : is there a tail to do?
86 and $1, 7, $2 # e1 : number of bytes in tail
/arch/sparc/kernel/
Dsignal_32.c231 void __user *tail; in setup_frame() local
252 tail = sf + 1; in setup_frame()
260 __siginfo_fpu_t __user *fp = tail; in setup_frame()
261 tail += sizeof(*fp); in setup_frame()
268 __siginfo_rwin_t __user *rwp = tail; in setup_frame()
269 tail += sizeof(*rwp); in setup_frame()
326 void __user *tail; in setup_rt_frame() local
344 tail = sf + 1; in setup_rt_frame()
356 __siginfo_fpu_t __user *fp = tail; in setup_rt_frame()
357 tail += sizeof(*fp); in setup_rt_frame()
[all …]
Dsignal32.c423 void __user *tail; in setup_frame32() local
448 tail = (sf + 1); in setup_frame32()
473 __siginfo_fpu_t __user *fp = tail; in setup_frame32()
474 tail += sizeof(*fp); in setup_frame32()
481 __siginfo_rwin_t __user *rwp = tail; in setup_frame32()
482 tail += sizeof(*rwp); in setup_frame32()
554 void __user *tail; in setup_rt_frame32() local
579 tail = (sf + 1); in setup_rt_frame32()
604 __siginfo_fpu_t __user *fp = tail; in setup_rt_frame32()
605 tail += sizeof(*fp); in setup_rt_frame32()
[all …]
Dsignal_64.c358 void __user *tail; in setup_rt_frame() local
379 tail = (sf + 1); in setup_rt_frame()
385 __siginfo_fpu_t __user *fpu_save = tail; in setup_rt_frame()
386 tail += sizeof(__siginfo_fpu_t); in setup_rt_frame()
393 __siginfo_rwin_t __user *rwin_save = tail; in setup_rt_frame()
394 tail += sizeof(__siginfo_rwin_t); in setup_rt_frame()
/arch/arm/mach-msm/
Dsmd.c146 return (ch->recv->head - ch->recv->tail) & ch->fifo_mask; in smd_stream_read_avail()
153 ((ch->send->head - ch->send->tail) & ch->fifo_mask); in smd_stream_write_avail()
184 unsigned tail = ch->recv->tail; in ch_read_buffer() local
185 *ptr = (void *) (ch->recv_data + tail); in ch_read_buffer()
187 if (tail <= head) in ch_read_buffer()
188 return head - tail; in ch_read_buffer()
190 return ch->fifo_size - tail; in ch_read_buffer()
197 ch->recv->tail = (ch->recv->tail + count) & ch->fifo_mask; in ch_read_done()
258 unsigned tail = ch->send->tail; in ch_write_buffer() local
261 if (head < tail) { in ch_write_buffer()
[all …]
/arch/s390/mm/
Dgup.c55 struct page *head, *page, *tail; in gup_huge_pmd() local
67 tail = page; in gup_huge_pmd()
93 if (PageTail(tail)) in gup_huge_pmd()
94 get_huge_page_tail(tail); in gup_huge_pmd()
95 tail++; in gup_huge_pmd()
/arch/sparc/boot/
Dpiggyback.c191 int image, tail; in main() local
262 if ((tail = open(argv[4], O_RDONLY)) < 0) in main()
264 while ((i = read(tail, buffer, 1024)) > 0) in main()
269 if (close(tail) < 0) in main()
/arch/arm64/kernel/
Dperf_event.c1369 user_backtrace(struct frame_tail __user *tail, in user_backtrace() argument
1376 if (!access_ok(VERIFY_READ, tail, sizeof(buftail))) in user_backtrace()
1380 err = __copy_from_user_inatomic(&buftail, tail, sizeof(buftail)); in user_backtrace()
1392 if (tail >= buftail.fp) in user_backtrace()
1414 compat_user_backtrace(struct compat_frame_tail __user *tail, in compat_user_backtrace() argument
1421 if (!access_ok(VERIFY_READ, tail, sizeof(buftail))) in compat_user_backtrace()
1425 err = __copy_from_user_inatomic(&buftail, tail, sizeof(buftail)); in compat_user_backtrace()
1437 if (tail + 1 >= (struct compat_frame_tail __user *) in compat_user_backtrace()
1457 struct frame_tail __user *tail; in perf_callchain_user() local
1459 tail = (struct frame_tail __user *)regs->regs[29]; in perf_callchain_user()
[all …]
/arch/arm/kernel/
Dperf_event.c559 user_backtrace(struct frame_tail __user *tail, in user_backtrace() argument
565 if (!access_ok(VERIFY_READ, tail, sizeof(buftail))) in user_backtrace()
569 err = __copy_from_user_inatomic(&buftail, tail, sizeof(buftail)); in user_backtrace()
581 if (tail + 1 >= buftail.fp) in user_backtrace()
590 struct frame_tail __user *tail; in perf_callchain_user() local
602 tail = (struct frame_tail __user *)regs->ARM_fp - 1; in perf_callchain_user()
605 tail && !((unsigned long)tail & 0x3)) in perf_callchain_user()
606 tail = user_backtrace(tail, entry); in perf_callchain_user()
/arch/sparc/mm/
Dgup.c73 struct page *head, *page, *tail; in gup_huge_pmd() local
85 tail = page; in gup_huge_pmd()
110 if (PageTail(tail)) in gup_huge_pmd()
111 get_huge_page_tail(tail); in gup_huge_pmd()
112 tail++; in gup_huge_pmd()
/arch/um/drivers/
Dline.c42 n = line->head - line->tail; in write_room()
97 line->tail = line->buffer; in buffer_data()
103 end = line->buffer + LINE_BUFSIZE - line->tail; in buffer_data()
106 memcpy(line->tail, buf, len); in buffer_data()
107 line->tail += len; in buffer_data()
111 memcpy(line->tail, buf, end); in buffer_data()
114 line->tail = line->buffer + len - end; in buffer_data()
133 if ((line->buffer == NULL) || (line->head == line->tail)) in flush_buffer()
136 if (line->tail < line->head) { in flush_buffer()
156 count = line->tail - line->head; in flush_buffer()
[all …]
/arch/s390/kernel/
Dperf_cpum_sf.c77 unsigned long *tail; /* last sample-data-block-table */ member
188 unsigned long *new, *tail; in realloc_sampling_buffer() local
190 if (!sfb->sdbt || !sfb->tail) in realloc_sampling_buffer()
193 if (!is_link_entry(sfb->tail)) in realloc_sampling_buffer()
201 tail = sfb->tail; in realloc_sampling_buffer()
206 if (sfb->sdbt != get_next_sdbt(tail)) { in realloc_sampling_buffer()
210 (void *) sfb->sdbt, (void *) tail); in realloc_sampling_buffer()
218 if (require_table_link(tail)) { in realloc_sampling_buffer()
226 *tail = (unsigned long)(void *) new + 1; in realloc_sampling_buffer()
227 tail = new; in realloc_sampling_buffer()
[all …]
/arch/powerpc/oprofile/cell/
Dspu_task_sync.c58 if (spu_buff[spu].head >= spu_buff[spu].tail) { in spu_buff_add()
59 if ((spu_buff[spu].head - spu_buff[spu].tail) in spu_buff_add()
63 } else if (spu_buff[spu].tail > spu_buff[spu].head) { in spu_buff_add()
64 if ((spu_buff[spu].tail - spu_buff[spu].head) in spu_buff_add()
116 spu_buff[spu].tail, in sync_spu_buff()
120 spu_buff[spu].tail = curr_head; in sync_spu_buff()
470 spu_buff[spu].tail = 0; in oprofile_spu_buff_create()
Dpr_util.h78 unsigned int head, tail; member
/arch/x86/kernel/
Dtsc.c72 struct cyc2ns_data *tail; /* 56 + 8 = 64 */ member
112 this_cpu_write(cyc2ns.tail, head); in cyc2ns_read_end()
138 while (c2n->tail == data) in cyc2ns_write_begin()
198 c2n->tail = c2n->data; in cyc2ns_init()
203 struct cyc2ns_data *data, *tail; in cycles_2_ns() local
215 tail = this_cpu_read(cyc2ns.tail); in cycles_2_ns()
217 if (likely(data == tail)) { in cycles_2_ns()
231 this_cpu_write(cyc2ns.tail, data); in cycles_2_ns()
/arch/tile/include/hv/
Ddrv_xgbe_intf.h563 _lepp_num_free_slots(unsigned int head, unsigned int tail) in _lepp_num_free_slots() argument
570 return (head - tail - 1) + ((head <= tail) ? LEPP_COMP_QUEUE_SIZE : 0); in _lepp_num_free_slots()
/arch/sh/mm/
Dpmb.c658 struct pmb_entry *tail; in pmb_merge() local
663 tail = head->link; in pmb_merge()
664 while (tail) { in pmb_merge()
665 span += tail->size; in pmb_merge()
673 if (!tail->link) in pmb_merge()
676 tail = tail->link; in pmb_merge()
/arch/tile/gxio/
Dmpipe.c245 unsigned int head = list->tail; in gxio_mpipe_rules_begin()
306 list->tail = list->head + rule->size; in gxio_mpipe_rules_begin()
326 if (list->tail == 0) in gxio_mpipe_rules_add_channel()
344 if (list->tail == 0) in gxio_mpipe_rules_set_headroom()
358 offsetof(gxio_mpipe_rules_list_t, rules) + list->tail; in gxio_mpipe_rules_commit()
/arch/arm/mach-omap1/
Dams-delta-fiq-handler.S203 ldr r10, [r9, #BUF_TAIL_OFFSET] @ get buffer tail offset
209 add r12, r12, r10, LSL #2 @ calculate buffer tail address
211 str r8, [r12] @ append it to the buffer tail
213 add r10, r10, #1 @ increment buffer tail offset

123