/kernel/linux/linux-5.10/fs/ |
H A D | splice.c | 186 unsigned int tail = pipe->tail; in splice_to_pipe() local 200 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 233 unsigned int tail = pipe->tail; in add_to_pipe() local 240 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe() 361 pipe_occupancy(pipe->head, pipe->tail) > 1) in pipe_to_sendpage() 400 unsigned int tail = pipe->tail; in splice_from_pipe_feed() local 404 while (!pipe_empty(head, tail)) { in splice_from_pipe_feed() 448 unsigned int tail = pipe->tail; eat_empty_buffer() local 640 unsigned int head, tail, mask; iter_file_splice_write() local [all...] |
H A D | pipe.c | 62 * We use head and tail indices that aren't masked off, except at the point of 223 unsigned int tail = READ_ONCE(pipe->tail); in pipe_readable() local 226 return !pipe_empty(head, tail) || !writers; in pipe_readable() 253 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 257 unsigned int tail = pipe->tail; in pipe_read() local 284 if (!pipe_empty(head, tail)) { in pipe_read() 285 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read() 329 tail in pipe_read() 407 unsigned int tail = READ_ONCE(pipe->tail); pipe_writable() local 607 int count, head, tail, mask; pipe_ioctl() local 650 unsigned int head, tail; pipe_poll() local 1253 unsigned int head, tail, mask, n; pipe_resize_ring() local [all...] |
/third_party/curl/lib/ |
H A D | bufq.c | 246 q->tail = NULL; in Curl_bufq_free() 259 q->tail = NULL; in Curl_bufq_reset() 276 if(q->tail) in Curl_bufq_space() 277 space += chunk_space(q->tail); in Curl_bufq_space() 298 if(!q->tail || q->spare) in Curl_bufq_is_full() 304 /* we have no spares and cannot make more, is the tail full? */ in Curl_bufq_is_full() 305 return chunk_is_full(q->tail); in Curl_bufq_is_full() 345 if(q->tail == chunk) in prune_head() 346 q->tail = q->head; in prune_head() 370 if(q->tail in get_non_full_tail() 391 struct buf_chunk *tail; Curl_bufq_write() local 579 struct buf_chunk *tail = NULL; Curl_bufq_sipn() local [all...] |
/kernel/linux/linux-5.10/fs/affs/ |
H A D | inode.c | 22 struct affs_tail *tail; in affs_iget() local 50 tail = AFFS_TAIL(sb, bh); in affs_iget() 51 prot = be32_to_cpu(tail->protect); in affs_iget() 76 id = be16_to_cpu(tail->uid); in affs_iget() 84 id = be16_to_cpu(tail->gid); in affs_iget() 92 switch (be32_to_cpu(tail->stype)) { in affs_iget() 98 if (be32_to_cpu(tail->stype) == ST_USERDIR || in affs_iget() 127 size = be32_to_cpu(tail->size); in affs_iget() 136 if (tail->link_chain) in affs_iget() 153 = (be32_to_cpu(tail in affs_iget() 174 struct affs_tail *tail; affs_write_inode() local [all...] |
/kernel/linux/linux-6.6/fs/affs/ |
H A D | inode.c | 22 struct affs_tail *tail; in affs_iget() local 50 tail = AFFS_TAIL(sb, bh); in affs_iget() 51 prot = be32_to_cpu(tail->protect); in affs_iget() 76 id = be16_to_cpu(tail->uid); in affs_iget() 84 id = be16_to_cpu(tail->gid); in affs_iget() 92 switch (be32_to_cpu(tail->stype)) { in affs_iget() 98 if (be32_to_cpu(tail->stype) == ST_USERDIR || in affs_iget() 127 size = be32_to_cpu(tail->size); in affs_iget() 136 if (tail->link_chain) in affs_iget() 154 (be32_to_cpu(tail in affs_iget() 174 struct affs_tail *tail; affs_write_inode() local [all...] |
/device/soc/rockchip/common/vendor/drivers/staging/android/fiq_debugger/ |
H A D | fiq_debugger_ringbuf.h | 26 int tail; member 41 rbuf->tail = 0; in fiq_debugger_ringbuf_alloc() 54 int level = rbuf->head - rbuf->tail; in fiq_debugger_ringbuf_level() 70 return rbuf->buf[(rbuf->tail + i) % rbuf->len]; in fiq_debugger_ringbuf_peek() 77 rbuf->tail = (rbuf->tail + count) % rbuf->len; in fiq_debugger_ringbuf_consume()
|
/device/soc/rockchip/rk3588/kernel/drivers/staging/android/fiq_debugger/ |
H A D | fiq_debugger_ringbuf.h | 24 int tail; member 39 rbuf->tail = 0; in fiq_debugger_ringbuf_alloc() 52 int level = rbuf->head - rbuf->tail; in fiq_debugger_ringbuf_level() 68 return rbuf->buf[(rbuf->tail + i) % rbuf->len]; in fiq_debugger_ringbuf_peek() 76 rbuf->tail = (rbuf->tail + count) % rbuf->len; in fiq_debugger_ringbuf_consume()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | esp.h | 14 static inline void esp_output_fill_trailer(u8 *tail, int tfclen, int plen, __u8 proto) in esp_output_fill_trailer() argument 18 memset(tail, 0, tfclen); in esp_output_fill_trailer() 19 tail += tfclen; in esp_output_fill_trailer() 24 tail[i] = i + 1; in esp_output_fill_trailer() 26 tail[plen - 2] = plen - 2; in esp_output_fill_trailer() 27 tail[plen - 1] = proto; in esp_output_fill_trailer()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | esp.h | 15 static inline void esp_output_fill_trailer(u8 *tail, int tfclen, int plen, __u8 proto) in esp_output_fill_trailer() argument 19 memset(tail, 0, tfclen); in esp_output_fill_trailer() 20 tail += tfclen; in esp_output_fill_trailer() 25 tail[i] = i + 1; in esp_output_fill_trailer() 27 tail[plen - 2] = plen - 2; in esp_output_fill_trailer() 28 tail[plen - 1] = proto; in esp_output_fill_trailer()
|
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | n_tty.c | 168 static void tty_copy(struct tty_struct *tty, void *to, size_t tail, size_t n) in tty_copy() argument 171 size_t size = N_TTY_BUF_SIZE - tail; in tty_copy() 172 void *from = read_buf_addr(ldata, tail); in tty_copy() 626 size_t tail; in __process_echoes() local 631 tail = ldata->echo_tail; in __process_echoes() 632 while (MASK(ldata->echo_commit) != MASK(tail)) { in __process_echoes() 633 c = echo_buf(ldata, tail); in __process_echoes() 643 if (MASK(ldata->echo_commit) == MASK(tail + 1)) in __process_echoes() 650 op = echo_buf(ldata, tail + 1); in __process_echoes() 656 if (MASK(ldata->echo_commit) == MASK(tail in __process_echoes() 1050 size_t tail = ldata->read_head; eraser() local 1329 size_t tail = ldata->canon_head; n_tty_receive_char_special() local 1717 size_t tail = smp_load_acquire(&ldata->read_tail); n_tty_receive_buf_common() local 1966 size_t tail = ldata->read_tail & (N_TTY_BUF_SIZE - 1); copy_from_read_buf() local 2020 size_t tail, canon_head; canon_copy_from_read_buf() local 2085 size_t tail, canon_head; canon_skip_eof() local 2165 size_t tail; n_tty_read() local 2482 size_t nr, head, tail; inq_canon() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 108 u32 tail; in rvt_compute_aeth() local 115 tail = RDMA_READ_UAPI_ATOMIC(qp->r_rq.wq->tail); in rvt_compute_aeth() 118 tail = READ_ONCE(qp->r_rq.kwq->tail); in rvt_compute_aeth() 122 if (tail >= qp->r_rq.size) in rvt_compute_aeth() 123 tail = 0; in rvt_compute_aeth() 130 credits = rvt_get_rq_count(&qp->r_rq, head, tail); in rvt_compute_aeth()
|
/kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 66 u32 tail; in rvt_compute_aeth() local 73 tail = RDMA_READ_UAPI_ATOMIC(qp->r_rq.wq->tail); in rvt_compute_aeth() 76 tail = READ_ONCE(qp->r_rq.kwq->tail); in rvt_compute_aeth() 80 if (tail >= qp->r_rq.size) in rvt_compute_aeth() 81 tail = 0; in rvt_compute_aeth() 88 credits = rvt_get_rq_count(&qp->r_rq, head, tail); in rvt_compute_aeth()
|
/third_party/python/Lib/xml/etree/ |
H A D | ElementInclude.py | 157 if e.tail: 158 node.tail = (node.tail or "") + e.tail 166 if e.tail: 167 text += e.tail 170 node.tail = (node.tail or "") + text
|
/third_party/selinux/checkpolicy/ |
H A D | queue.c | 21 q->head = q->tail = NULL; in queue_create() 41 q->head = q->tail = newnode; in queue_insert() 43 q->tail->next = newnode; in queue_insert() 44 q->tail = newnode; in queue_insert() 65 q->head = q->tail = newnode; in queue_push() 88 q->tail = NULL; in queue_remove() 161 q->tail = last; in queue_map_remove_on_error() 165 q->tail = NULL; in queue_map_remove_on_error()
|
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | n_tty.c | 167 static void tty_copy(const struct tty_struct *tty, void *to, size_t tail, in tty_copy() argument 171 size_t size = N_TTY_BUF_SIZE - tail; in tty_copy() 172 void *from = read_buf_addr(ldata, tail); in tty_copy() 585 static int n_tty_process_echo_ops(struct tty_struct *tty, size_t *tail, in n_tty_process_echo_ops() argument 595 if (MASK(ldata->echo_commit) == MASK(*tail + 1)) in n_tty_process_echo_ops() 602 op = echo_buf(ldata, *tail + 1); in n_tty_process_echo_ops() 608 if (MASK(ldata->echo_commit) == MASK(*tail + 2)) in n_tty_process_echo_ops() 611 num_chars = echo_buf(ldata, *tail + 2); in n_tty_process_echo_ops() 633 *tail += 3; in n_tty_process_echo_ops() 638 *tail in n_tty_process_echo_ops() 705 size_t tail; __process_echoes() local 1028 size_t tail = ldata->read_head; eraser() local 1301 size_t tail = ldata->canon_head; n_tty_receive_char_canon() local 1713 size_t tail = smp_load_acquire(&ldata->read_tail); n_tty_receive_buf_common() local 1966 size_t tail = MASK(ldata->read_tail); copy_from_read_buf() local 2018 size_t tail, canon_head; canon_copy_from_read_buf() local 2082 size_t tail, canon_head; canon_skip_eof() local 2481 size_t nr, head, tail; inq_canon() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/ |
H A D | ext_sm3.c | 69 hi_u8 tail[SM3_BLOCK_SIZE]; member 201 if (memcpy_s(ctx->tail + ctx->tail_len, left, data, data_len) != EOK) { in sm3_update() 208 if (memcpy_s(ctx->tail + ctx->tail_len, left, data, left) != EOK) { in sm3_update() 212 ret = sm3_compress(ctx->state, ctx->tail, sizeof(ctx->tail)); in sm3_update() 236 if (memcpy_s(ctx->tail, SM3_BLOCK_SIZE, data, data_len) != EOK) { in sm3_update() 257 ctx->tail[ctx->tail_len] = SM3_BYTE_MSB; in sm3_final() 262 (hi_void)memset_s(ctx->tail + ctx->tail_len + idx, SM3_BLOCK_SIZE - ctx->tail_len - idx, in sm3_final() 266 (hi_void)memset_s(ctx->tail + ctx->tail_len + idx, SM3_BLOCK_SIZE - ctx->tail_len - idx, in sm3_final() 268 ret = sm3_compress(ctx->state, ctx->tail, sizeo in sm3_final() [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | softirq.c | 499 struct tasklet_struct **tail; member 515 *head->tail = t; in __tasklet_schedule_common() 516 head->tail = &(t->next); in __tasklet_schedule_common() 544 tl_head->tail = &tl_head->head; in tasklet_action_common() 569 *tl_head->tail = t; in tasklet_action_common() 570 tl_head->tail = &t->next; in tasklet_action_common() 630 per_cpu(tasklet_vec, cpu).tail = in softirq_init() 632 per_cpu(tasklet_hi_vec, cpu).tail = in softirq_init() 685 /* If this was the tail element, move the tail pt in tasklet_kill_immediate() [all...] |
/third_party/backends/backend/ |
H A D | epsonds-ops.c | 394 SANE_Int tail; in eds_ring_write() local 401 tail = ring->end - ring->wp; in eds_ring_write() 402 if (size < tail) { in eds_ring_write() 411 memcpy(ring->wp, buf, tail); in eds_ring_write() 412 size -= tail; in eds_ring_write() 415 memcpy(ring->wp, buf + tail, size); in eds_ring_write() 418 ring->fill += (tail + size); in eds_ring_write() 426 SANE_Int tail; in eds_ring_read() local 436 tail = ring->end - ring->rp; in eds_ring_read() 437 if (size < tail) { in eds_ring_read() 463 SANE_Int tail; eds_ring_skip() local [all...] |
/kernel/linux/linux-5.10/fs/9p/ |
H A D | vfs_dir.c | 32 * @tail: end offset of current dirread buffer 41 int tail; member 108 if (rdir->tail == rdir->head) { in v9fs_dir_readdir() 120 rdir->tail = n; in v9fs_dir_readdir() 122 while (rdir->head < rdir->tail) { in v9fs_dir_readdir() 124 rdir->tail - rdir->head, &st); in v9fs_dir_readdir() 166 if (rdir->tail == rdir->head) { in v9fs_dir_readdir_dotl() 173 rdir->tail = err; in v9fs_dir_readdir_dotl() 176 while (rdir->head < rdir->tail) { in v9fs_dir_readdir_dotl() 179 rdir->tail in v9fs_dir_readdir_dotl() [all...] |
/third_party/skia/src/core/ |
H A D | SkImageFilterCache.cpp | 87 Value* tail = fLRU.tail(); variable 88 SkASSERT(tail); variable 89 if (tail == v) { 92 this->removeInternal(tail); 99 Value* tail = fLRU.tail(); variable 100 SkASSERT(tail); variable 101 this->removeInternal(tail);
|
/kernel/linux/linux-6.6/fs/ |
H A D | pipe.c | 63 * We use head and tail indices that aren't masked off, except at the point of 224 unsigned int tail = READ_ONCE(pipe->tail); in pipe_readable() local 227 return !pipe_empty(head, tail) || !writers; in pipe_readable() 254 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 258 unsigned int tail = pipe->tail; in pipe_read() local 285 if (!pipe_empty(head, tail)) { in pipe_read() 286 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read() 330 tail in pipe_read() 409 unsigned int tail = READ_ONCE(pipe->tail); pipe_writable() local 609 unsigned int count, head, tail, mask; pipe_ioctl() local 652 unsigned int head, tail; pipe_poll() local 1258 unsigned int head, tail, mask, n; pipe_resize_ring() local [all...] |
H A D | splice.c | 201 unsigned int tail = pipe->tail; in splice_to_pipe() local 215 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 248 unsigned int tail = pipe->tail; in add_to_pipe() local 255 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe() 333 used = pipe_occupancy(pipe->head, pipe->tail); in copy_splice_read() 448 unsigned int tail = pipe->tail; in splice_from_pipe_feed() local 452 while (!pipe_empty(head, tail)) { in splice_from_pipe_feed() 496 unsigned int tail = pipe->tail; eat_empty_buffer() local 688 unsigned int head, tail, mask; iter_file_splice_write() local 804 unsigned int head, tail, mask, bc = 0; splice_to_socket() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/mga/ |
H A D | mga_dma.c | 84 primary->tail = 0; in mga_do_dma_reset() 106 u32 head, tail; in mga_do_dma_flush() local 120 if (primary->tail == primary->last_flush) { in mga_do_dma_flush() 125 tail = primary->tail + dev_priv->primary->offset; in mga_do_dma_flush() 139 primary->last_flush = primary->tail; in mga_do_dma_flush() 143 if (head <= tail) in mga_do_dma_flush() 144 primary->space = primary->size - primary->tail; in mga_do_dma_flush() 146 primary->space = head - tail; in mga_do_dma_flush() 149 DRM_DEBUG(" tail in mga_do_dma_flush() 161 u32 head, tail; mga_do_dma_wrap_start() local 327 drm_mga_freelist_t *tail = dev_priv->tail; mga_freelist_get() local [all...] |
/kernel/linux/linux-5.10/net/core/ |
H A D | gen_stats.c | 67 d->tail = (struct nlattr *)skb_tail_pointer(skb); in __acquires() 76 if (d->tail) { in __acquires() 80 * preceded by a padding attribute, in which case d->tail will in __acquires() 85 if (ret == 0 && d->tail->nla_type == padattr) in __acquires() 86 d->tail = (struct nlattr *)((char *)d->tail + in __acquires() 87 NLA_ALIGN(d->tail->nla_len)); in __acquires() 176 if (d->tail) { in ___gnet_stats_copy_basic() 271 if (d->tail) { in gnet_stats_copy_rate_est() 351 if (d->tail) in gnet_stats_copy_queue() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | jr.c | 206 int hw_idx, sw_idx, i, head, tail; in caam_jr_dequeue() local 219 sw_idx = tail = jrp->tail; in caam_jr_dequeue() 222 for (i = 0; CIRC_CNT(head, tail + i, JOBR_DEPTH) >= 1; i++) { in caam_jr_dequeue() 223 sw_idx = (tail + i) & (JOBR_DEPTH - 1); in caam_jr_dequeue() 230 BUG_ON(CIRC_CNT(head, tail + i, JOBR_DEPTH) <= 0); in caam_jr_dequeue() 264 * the tail. Otherwise, increment tail by 1 plus the in caam_jr_dequeue() 267 if (sw_idx == tail) { in caam_jr_dequeue() 269 tail in caam_jr_dequeue() 372 int head, tail, desc_size; caam_jr_enqueue() local [all...] |