Home
last modified time | relevance | path

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

12345678910>>...12

/linux-2.4.37.9/drivers/char/ftape/lowlevel/
Dftape-format.c93 buffer_struct *tail, *head; in ftape_format_track() local
119 tail = ftape_get_buffer(ft_queue_tail); /* tape isn't running yet */ in ftape_format_track()
123 setup_format_buffer(tail, switch_segment, in ftape_format_track()
125 switch_segment = tail->next_segment; in ftape_format_track()
127 ((tail = ftape_next_buffer(ft_queue_tail)) != head)); in ftape_format_track()
143 buffer_struct *tail = ftape_get_buffer(ft_queue_tail); in ftape_format_status() local
148 ftape_get_buffer(ft_queue_head) != tail) { in ftape_format_status()
156 setup_format_buffer(tail, switch_segment, in ftape_format_status()
157 ft_segments_per_track, tail->gap3); in ftape_format_status()
158 switch_segment = tail->next_segment; in ftape_format_status()
[all …]
Dftape-write.c192 buffer_struct *tail; in write_segment() local
211 tail = ftape_get_buffer(ft_queue_tail); in write_segment()
212 switch(tail->status) { in write_segment()
214 ft_history.defects += count_ones(tail->hard_error_map); in write_segment()
226 tail->status = waiting; in write_segment()
228 if (tail->hard_error_map != 0) { in write_segment()
231 count_ones(tail->hard_error_map)); in write_segment()
233 (long)tail->hard_error_map); in write_segment()
241 tail->status); in write_segment()
261 if (tail->status == done) { in write_segment()
[all …]
Dftape-read.c176 buffer_struct *tail; in ftape_read_segment_fraction() local
183 tail = ftape_get_buffer(ft_queue_tail); in ftape_read_segment_fraction()
184 while (!read_done && tail->status == done) { in ftape_read_segment_fraction()
188 if (tail->segment_id == segment_id) { in ftape_read_segment_fraction()
194 if (tail->deleted) { in ftape_read_segment_fraction()
206 tail, in ftape_read_segment_fraction()
230 tail->segment_id); in ftape_read_segment_fraction()
232 tail->status = waiting; in ftape_read_segment_fraction()
233 tail = ftape_next_buffer(ft_queue_tail); in ftape_read_segment_fraction()
235 if (!read_done && tail->status == reading) { in ftape_read_segment_fraction()
[all …]
/linux-2.4.37.9/include/linux/
Dcirc_buf.h7 int tail; member
11 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) argument
16 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) argument
21 #define CIRC_CNT_TO_END(head,tail,size) \ argument
22 ({int end = (size) - (tail); \
27 #define CIRC_SPACE_TO_END(head,tail,size) \ argument
29 int n = (end + (tail)) & ((size)-1); \
/linux-2.4.37.9/fs/jffs/
Djffs_fm.c82 fmc->tail = 0; in jffs_build_begin()
99 fmc->tail = fmc->tail_extra; in jffs_build_end()
139 __u32 tail; in jffs_free_size1() local
149 tail = fmc->tail->offset + fmc->tail->size; in jffs_free_size1()
150 if (tail == end) { in jffs_free_size1()
151 tail = 0; in jffs_free_size1()
153 ASSERT(else if (tail > end) { in jffs_free_size1()
155 tail = 0; in jffs_free_size1()
158 if (head <= tail) { in jffs_free_size1()
159 return end - tail; in jffs_free_size1()
[all …]
/linux-2.4.37.9/drivers/isdn/eicon/
Dlog.c34 KNODE *tail; variable
73 tail=NULL; in DivasLogFifoWrite()
86 head=tail=new_klog; in DivasLogFifoWrite()
87 tail->next=NULL; in DivasLogFifoWrite()
102 tail->next=new_klog; in DivasLogFifoWrite()
103 tail=new_klog; in DivasLogFifoWrite()
104 tail->next=NULL; in DivasLogFifoWrite()
112 memcpy(&tail->klog, entry, length); in DivasLogFifoWrite()
/linux-2.4.37.9/net/sunrpc/
Dxdr.c114 struct iovec *iov = xdr->tail; in xdr_encode_pages()
129 struct iovec *tail = xdr->tail; in xdr_inline_pages() local
139 tail->iov_base = buf + offset; in xdr_inline_pages()
140 tail->iov_len = buflen - offset; in xdr_inline_pages()
229 if (xdr->tail[0].iov_len) { in xdr_kmap()
230 iov->iov_len = xdr->tail[0].iov_len - base; in xdr_kmap()
231 iov->iov_base = (char *)xdr->tail[0].iov_base + base; in xdr_kmap()
334 len = xdr->tail[0].iov_len; in xdr_partial_copy_from_skb()
336 copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len); in xdr_partial_copy_from_skb()
492 struct iovec *head, *tail; in xdr_shrink_bufhead() local
[all …]
/linux-2.4.37.9/drivers/char/
Dsn_serial.c372 int xmit_count, tail, head, loops, ii; in synch_flush_xmit() local
380 tail = xmit.cb_tail; in synch_flush_xmit()
381 start = &xmit.cb_buf[tail]; in synch_flush_xmit()
385 loops = (head < tail) ? 2 : 1; in synch_flush_xmit()
388 xmit_count = (head < tail) ? (SN_SAL_BUFFER_SIZE - tail) : (head - tail); in synch_flush_xmit()
397 tail += result; in synch_flush_xmit()
398 tail &= SN_SAL_BUFFER_SIZE - 1; in synch_flush_xmit()
399 xmit.cb_tail = tail; in synch_flush_xmit()
400 start = (char *)&xmit.cb_buf[tail]; in synch_flush_xmit()
411 int xmit_count, tail, head; in sn_poll_transmit_chars() local
[all …]
Dqpmouse.c57 unsigned long tail; member
72 result = queue->buf[queue->tail]; in get_from_queue()
73 queue->tail = (queue->tail + 1) & (QP_BUF_SIZE-1); in get_from_queue()
81 return queue->head == queue->tail; in queue_empty()
128 int maxhead = (queue->tail-1) & (QP_BUF_SIZE-1); in qp_interrupt()
185 queue->head = queue->tail = 0; /* Flush input queue */ in open_qp()
360 queue->head = queue->tail = 0; in qpmouse_init_driver()
Dpcxx.c669 unsigned int head, tail; in pcxe_write() local
690 tail = bc->tout; in pcxe_write()
691 } while (tail != bc->tout); in pcxe_write()
693 tail &= (size - 1); in pcxe_write()
694 stlen = (head >= tail) ? (size - (head - tail) - 1) : (tail - head - 1); in pcxe_write()
715 tail = bc->tout; in pcxe_write()
716 if (tail != bc->tout) in pcxe_write()
717 tail = bc->tout; in pcxe_write()
718 tail &= (size - 1); in pcxe_write()
719 if (head >= tail) { in pcxe_write()
[all …]
Depca.c718 register unsigned int head, tail; in pc_write() local
780 tail = bc->tout; in pc_write()
784 if (tail != bc->tout) in pc_write()
785 tail = bc->tout; in pc_write()
794 tail &= (size - 1); in pc_write()
861 dataLen = (head >= tail) ? (size - (head - tail) - 1) : (tail - head - 1); in pc_write()
932 tail = bc->tout; in pc_write()
934 if (tail != bc->tout) in pc_write()
935 tail = bc->tout; in pc_write()
936 tail &= (size - 1); in pc_write()
[all …]
/linux-2.4.37.9/include/asm-s390/
Dqueue.h24 queue *tail; member
36 queue *tail=qhead->tail; in enqueue_tail() local
38 if(tail) in enqueue_tail()
39 tail->next=member; in enqueue_tail()
43 qhead->tail=member; in enqueue_tail()
57 qhead->tail=NULL; in dequeue_head()
156 qhead->tail=prev; in remove_from_queue()
160 if(qhead->head==qhead->tail) in remove_from_queue()
161 qhead->tail=NULL; in remove_from_queue()
/linux-2.4.37.9/include/asm-s390x/
Dqueue.h24 queue *tail; member
36 queue *tail=qhead->tail; in enqueue_tail() local
38 if(tail) in enqueue_tail()
39 tail->next=member; in enqueue_tail()
43 qhead->tail=member; in enqueue_tail()
57 qhead->tail=NULL; in dequeue_head()
156 qhead->tail=prev; in remove_from_queue()
160 if(qhead->head==qhead->tail) in remove_from_queue()
161 qhead->tail=NULL; in remove_from_queue()
/linux-2.4.37.9/drivers/char/drm/
Dmga_dma.c101 primary->tail = 0; in mga_do_dma_reset()
161 u32 head, tail; in mga_do_dma_flush() local
174 if ( primary->tail == primary->last_flush ) { in mga_do_dma_flush()
179 tail = primary->tail + dev_priv->primary->offset; in mga_do_dma_flush()
194 primary->last_flush = primary->tail; in mga_do_dma_flush()
198 if ( head <= tail ) { in mga_do_dma_flush()
199 primary->space = primary->size - primary->tail; in mga_do_dma_flush()
201 primary->space = head - tail; in mga_do_dma_flush()
205 DRM_DEBUG( " tail = 0x%06lx\n", tail - dev_priv->primary->offset ); in mga_do_dma_flush()
209 MGA_WRITE( MGA_PRIMEND, tail | MGA_PAGPXFER ); in mga_do_dma_flush()
[all …]
Ddrm_auth.h72 if (dev->magiclist[hash].tail) { in DRM()
73 dev->magiclist[hash].tail->next = entry; in DRM()
74 dev->magiclist[hash].tail = entry; in DRM()
77 dev->magiclist[hash].tail = entry; in DRM()
99 if (dev->magiclist[hash].tail == pt) { in DRM()
100 dev->magiclist[hash].tail = prev; in DRM()
/linux-2.4.37.9/fs/affs/
Dinode.c43 struct affs_tail *tail; in affs_read_inode() local
65 tail = AFFS_TAIL(sb, bh); in affs_read_inode()
66 prot = be32_to_cpu(tail->protect); in affs_read_inode()
83 id = be16_to_cpu(tail->uid); in affs_read_inode()
91 id = be16_to_cpu(tail->gid); in affs_read_inode()
99 switch (be32_to_cpu(tail->stype)) { in affs_read_inode()
105 if (be32_to_cpu(tail->stype) == ST_USERDIR || in affs_read_inode()
116 if (tail->link_chain) in affs_read_inode()
137 size = be32_to_cpu(tail->size); in affs_read_inode()
146 if (tail->link_chain) in affs_read_inode()
[all …]
/linux-2.4.37.9/drivers/acpi/
Dutils.c66 u8 *tail = NULL; in acpi_extract_package() local
162 tail = buffer->pointer + tail_offset; in acpi_extract_package()
186 *pointer = tail; in acpi_extract_package()
187 *((acpi_integer*)tail) = element->integer.value; in acpi_extract_package()
189 tail += sizeof(acpi_integer); in acpi_extract_package()
191 *tail = (char)0; in acpi_extract_package()
192 tail += sizeof(char); in acpi_extract_package()
205 *pointer = tail; in acpi_extract_package()
206 memcpy(tail, element->string.pointer, element->string.length); in acpi_extract_package()
208 tail += element->string.length * sizeof(char); in acpi_extract_package()
[all …]
/linux-2.4.37.9/net/sched/
Dsch_sfq.c113 sfq_index tail; /* Index of current slot in round */ member
236 d = q->next[q->tail]; in sfq_drop()
237 q->next[q->tail] = q->next[d]; in sfq_drop()
268 if (q->tail == SFQ_DEPTH) { /* It is the first flow */ in sfq_enqueue()
269 q->tail = x; in sfq_enqueue()
273 q->next[x] = q->next[q->tail]; in sfq_enqueue()
274 q->next[q->tail] = x; in sfq_enqueue()
275 q->tail = x; in sfq_enqueue()
303 if (q->tail == SFQ_DEPTH) { /* It is the first flow */ in sfq_requeue()
304 q->tail = x; in sfq_requeue()
[all …]
/linux-2.4.37.9/arch/ppc64/kernel/
DiSeries_proc.c48 struct T *tail; \
50 #define MYQUEUECTOR(q) do { (q)->head = NULL; (q)->tail = NULL; } while(0)
58 (q)->tail = (q)->head = (p); \
64 (p) = (q)->tail; \
66 (q)->tail = (p)->next; \
69 if ((q)->tail == NULL) \
/linux-2.4.37.9/drivers/acorn/char/
Dmouse_ps2.c62 unsigned long tail; member
93 result = queue->buf[queue->tail]; in get_from_queue()
94 queue->tail = (queue->tail + 1) & (AUX_BUF_SIZE-1); in get_from_queue()
116 if (head != queue->tail) { in psaux_interrupt()
126 return queue->head == queue->tail; in queue_empty()
164 queue->head = queue->tail = 0; /* Flush input queue */ in open_aux()
284 queue->head = queue->tail = 0; in psaux_init()
/linux-2.4.37.9/drivers/net/irda/
Dvlsi_ir.c203 r->tail = (r->tail + 1) & r->mask; in ring_get()
350 r->head = r->tail = 0; in vlsi_alloc_ringbuf()
556 idev->rx_ring.head = idev->rx_ring.tail = RINGPTR_GET_RX(ptr); in vlsi_init_chip()
557 idev->tx_ring.head = idev->tx_ring.tail = RINGPTR_GET_TX(ptr); in vlsi_init_chip()
593 } while (r->head != r->tail); in vlsi_refill_rx()
607 while (!rd_is_active(r, r->tail)) { in vlsi_rx_interrupt()
609 status = rd_get_status(r, r->tail); in vlsi_rx_interrupt()
622 len = rd_get_count(r, r->tail); in vlsi_rx_interrupt()
634 memcpy(skb_put(skb,len), r->buf[r->tail].data, len); in vlsi_rx_interrupt()
646 rd_set_count(r, r->tail, 0); in vlsi_rx_interrupt()
[all …]
/linux-2.4.37.9/drivers/sound/
Dmsnd.c143 f->tail = 0; in msnd_fifo_alloc()
155 f->len = f->tail = f->head = 0; in msnd_fifo_make_empty()
166 if (f->head <= f->tail) { in msnd_fifo_write()
168 if (nwritten > f->n - f->tail) in msnd_fifo_write()
169 nwritten = f->n - f->tail; in msnd_fifo_write()
172 nwritten = f->head - f->tail; in msnd_fifo_write()
177 isa_memcpy_fromio(f->data + f->tail, (unsigned long) buf, nwritten); in msnd_fifo_write()
182 f->tail += nwritten; in msnd_fifo_write()
183 f->tail %= f->n; in msnd_fifo_write()
197 if (f->tail <= f->head) { in msnd_fifo_read()
[all …]
/linux-2.4.37.9/drivers/sbus/char/
Dsunmouse.c82 unsigned int tail; member
108 if (next != sunmouse.tail) { in push_event()
122 return sunmouse.head == sunmouse.tail; in queue_empty()
128 *p = sunmouse.queue.ev [sunmouse.tail]; in get_from_queue()
129 sunmouse.tail = (sunmouse.tail + 1) % EV_SIZE; in get_from_queue()
141 if (next != sunmouse.tail) { in push_char()
509 val = sunmouse.queue.stream[sunmouse.tail]; in sun_mouse_read()
510 sunmouse.tail = (sunmouse.tail + 1) % STREAM_SIZE; in sun_mouse_read()
567 sunmouse.head = sunmouse.tail = 0; in sun_mouse_ioctl()
/linux-2.4.37.9/drivers/char/drm-4.0/
Dauth.c72 if (dev->magiclist[hash].tail) { in drm_add_magic()
73 dev->magiclist[hash].tail->next = entry; in drm_add_magic()
74 dev->magiclist[hash].tail = entry; in drm_add_magic()
77 dev->magiclist[hash].tail = entry; in drm_add_magic()
99 if (dev->magiclist[hash].tail == pt) { in drm_remove_magic()
100 dev->magiclist[hash].tail = prev; in drm_remove_magic()
/linux-2.4.37.9/drivers/net/
Dmyri_sbus.h204 #define TX_BUFFS_AVAIL(head, tail) \ argument
205 ((head) <= (tail) ? \
206 (head) + (TX_RING_SIZE - 1) - (tail) : \
207 (head) - (tail) - 1)
210 u32 tail; member
219 u32 tail; member

12345678910>>...12