/kernel/linux/linux-5.10/drivers/edac/ |
H A D | thunderx_edac.c | 579 unsigned long tail; in thunderx_lmc_threaded_isr() local 595 tail = ring_pos(lmc->ring_tail, ARRAY_SIZE(lmc->err_ctx)); in thunderx_lmc_threaded_isr() 597 ctx = &lmc->err_ctx[tail]; in thunderx_lmc_threaded_isr() 1112 unsigned long tail; in thunderx_ocx_com_threaded_isr() local 1126 tail = ring_pos(ocx->com_ring_tail, in thunderx_ocx_com_threaded_isr() 1128 ctx = &ocx->com_err_ctx[tail]; in thunderx_ocx_com_threaded_isr() 1193 unsigned long tail; in thunderx_ocx_lnk_threaded_isr() local 1207 tail = ring_pos(ocx->link_ring_head, in thunderx_ocx_lnk_threaded_isr() 1210 ctx = &ocx->link_err_ctx[tail]; in thunderx_ocx_lnk_threaded_isr() 1848 unsigned long tail in thunderx_l2c_threaded_isr() local [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-cache-policy-smq.c | 113 unsigned head, tail; member 119 l->head = l->tail = INDEXER_NULL; in l_init() 129 return to_entry(es, l->tail); in l_tail() 157 l->head = l->tail = to_index(es, e); in l_add_head() 165 struct entry *tail = l_tail(es, l); in l_add_tail() local 168 e->prev = l->tail; in l_add_tail() 170 if (tail) in l_add_tail() 171 tail->next = l->tail = to_index(es, e); in l_add_tail() 173 l->head = l->tail in l_add_tail() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | vmm.c | 761 nvkm_vma_tail(struct nvkm_vma *vma, u64 tail) in nvkm_vma_tail() argument 765 BUG_ON(vma->size == tail); in nvkm_vma_tail() 767 if (!(new = nvkm_vma_new(vma->addr + (vma->size - tail), tail))) in nvkm_vma_tail() 769 vma->size -= tail; in nvkm_vma_tail() 1641 u64 addr, tail; in nvkm_vmm_get_locked() local 1714 tail = this->addr + this->size; in nvkm_vmm_get_locked() 1716 tail = ALIGN_DOWN(tail, vmm->func->page_block); in nvkm_vmm_get_locked() 1718 if (addr <= tail in nvkm_vmm_get_locked() [all...] |
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | jfs_logmgr.c | 131 #define lbmWRITE 0x0002 /* enqueue at tail of write queue; 262 /* insert page at tail of logsynclist */ in lmLog() 510 * at tail of group commit queue in lmWriteRecord() 578 * write or queue the full page at the tail of write queue in lmNextPage() 580 /* get the tail tblk on commit queue */ in lmNextPage() 595 /* is page bound with outstanding tail tblk ? */ in lmNextPage() 1785 * (log->wrqueue points to the tail, and buffers are linked via 2026 struct lbuf *tail; in lbmWrite() local 2043 * insert bp at tail of write queue associated with log in lbmWrite() 2046 * or new bp to be inserted at tail) in lbmWrite() 2183 struct lbuf *nextbp, *tail; lbmIODone() local [all...] |
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | jfs_logmgr.c | 131 #define lbmWRITE 0x0002 /* enqueue at tail of write queue; 262 /* insert page at tail of logsynclist */ in lmLog() 502 * at tail of group commit queue in lmWriteRecord() 570 * write or queue the full page at the tail of write queue in lmNextPage() 572 /* get the tail tblk on commit queue */ in lmNextPage() 587 /* is page bound with outstanding tail tblk ? */ in lmNextPage() 1777 * (log->wrqueue points to the tail, and buffers are linked via 2014 struct lbuf *tail; in lbmWrite() local 2031 * insert bp at tail of write queue associated with log in lbmWrite() 2034 * or new bp to be inserted at tail) in lbmWrite() 2168 struct lbuf *nextbp, *tail; lbmIODone() local [all...] |
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | hci_bcm4377.c | 380 * Shared memory structure used to store the ring head and tail pointers. 546 * ring_state: Shared memory buffer containing ring head and tail indexes 801 u16 tail; in bcm4377_poll_completion_ring() local 808 tail = le16_to_cpu(tails[ring->ring_id]); in bcm4377_poll_completion_ring() 810 "completion ring #%d: head: %d, tail: %d\n", ring->ring_id, in bcm4377_poll_completion_ring() 811 le16_to_cpu(heads[ring->ring_id]), tail); in bcm4377_poll_completion_ring() 813 while (tail != le16_to_cpu(READ_ONCE(heads[ring->ring_id]))) { in bcm4377_poll_completion_ring() 821 bcm4377_handle_completion(bcm4377, ring, tail); in bcm4377_poll_completion_ring() 823 tail = (tail in bcm4377_poll_completion_ring() 867 u16 head, tail, new_head; bcm4377_enqueue() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | n2_core.c | 61 unsigned long tail; member 100 /* An async job request records the final tail value it used in 180 unsigned long tail = q->tail; in spu_queue_num_free() local 184 if (head > tail) in spu_queue_num_free() 185 diff = head - tail; in spu_queue_num_free() 187 diff = (end - tail) + head; in spu_queue_num_free() 197 return q->q + q->tail; in spu_queue_alloc() 210 q->tail = new_tail; in spu_queue_submit() 245 qp->head != qp->tail) [all...] |
/kernel/linux/linux-6.6/drivers/edac/ |
H A D | thunderx_edac.c | 579 unsigned long tail; in thunderx_lmc_threaded_isr() local 595 tail = ring_pos(lmc->ring_tail, ARRAY_SIZE(lmc->err_ctx)); in thunderx_lmc_threaded_isr() 597 ctx = &lmc->err_ctx[tail]; in thunderx_lmc_threaded_isr() 1112 unsigned long tail; in thunderx_ocx_com_threaded_isr() local 1126 tail = ring_pos(ocx->com_ring_tail, in thunderx_ocx_com_threaded_isr() 1128 ctx = &ocx->com_err_ctx[tail]; in thunderx_ocx_com_threaded_isr() 1193 unsigned long tail; in thunderx_ocx_lnk_threaded_isr() local 1207 tail = ring_pos(ocx->link_ring_head, in thunderx_ocx_lnk_threaded_isr() 1210 ctx = &ocx->link_err_ctx[tail]; in thunderx_ocx_lnk_threaded_isr() 1848 unsigned long tail in thunderx_l2c_threaded_isr() local [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-cache-policy-smq.c | 114 unsigned int head, tail; member 120 l->head = l->tail = INDEXER_NULL; in l_init() 130 return to_entry(es, l->tail); in l_tail() 158 l->head = l->tail = to_index(es, e); in l_add_head() 166 struct entry *tail = l_tail(es, l); in l_add_tail() local 169 e->prev = l->tail; in l_add_tail() 171 if (tail) in l_add_tail() 172 tail->next = l->tail = to_index(es, e); in l_add_tail() 174 l->head = l->tail in l_add_tail() [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | ring_buffer.c | 492 * head_page == tail_page && head == tail then buffer is empty. 507 struct buffer_page *tail_page; /* write to tail */ 1114 * the head (writes go to the tail). But if a writer is in overwrite 1124 * during this operation, the reader could end up with the tail. 1394 * rb_tail_page_update - move the tail page forward 1404 * The tail page now needs to be moved forward. in rb_tail_page_update() 1406 * We need to reset the tail page, but without messing in rb_tail_page_update() 1408 * that have moved the tail page and are currently on it. in rb_tail_page_update() 1423 * If the tail page is still the same as what we think in rb_tail_page_update() 1424 * it is, then it is up to us to update the tail in rb_tail_page_update() 2525 rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer, unsigned long tail, struct rb_event_info *info) rb_reset_tail() argument 2607 rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer, unsigned long tail, struct rb_event_info *info) rb_move_tail() argument 3299 unsigned long tail, write, w; __rb_reserve_next() local [all...] |
H A D | trace_probe.c | 514 char *tail; in __parse_bitfield_probe_arg() local 519 bw = simple_strtoul(bf + 1, &tail, 0); /* Use simple one */ in __parse_bitfield_probe_arg() 521 if (bw == 0 || *tail != '@') in __parse_bitfield_probe_arg() 524 bf = tail + 1; in __parse_bitfield_probe_arg() 525 bo = simple_strtoul(bf, &tail, 0); in __parse_bitfield_probe_arg() 527 if (tail == bf || *tail != '/') in __parse_bitfield_probe_arg()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath12k/ |
H A D | dp_mon.c | 826 if (mon_mpdu->tail) in ath12k_dp_mon_rx_parse_status_tlv() 827 mon_mpdu->tail->next = msdu; in ath12k_dp_mon_rx_parse_status_tlv() 829 mon_mpdu->tail = msdu; in ath12k_dp_mon_rx_parse_status_tlv() 845 pmon->mon_mpdu->head = pmon->mon_mpdu->tail; in ath12k_dp_mon_rx_parse_status_tlv() 846 pmon->mon_mpdu->tail = NULL; in ath12k_dp_mon_rx_parse_status_tlv() 1251 tail_msdu = mon_mpdu->tail; in ath12k_dp_mon_rx_parse_mon_status() 1452 tx_ppdu_info->tx_mon_mpdu->tail = NULL; in ath12k_dp_mon_tx_gen_cts2self_frame() 1479 tx_ppdu_info->tx_mon_mpdu->tail = NULL; in ath12k_dp_mon_tx_gen_rts_frame() 1507 tx_ppdu_info->tx_mon_mpdu->tail = NULL; in ath12k_dp_mon_tx_gen_3addr_qos_null_frame() 1536 tx_ppdu_info->tx_mon_mpdu->tail in ath12k_dp_mon_tx_gen_4addr_qos_null_frame() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_dev.c | 610 unsigned int mask, tail, head; in ionic_q_is_posted() local 613 tail = q->tail_idx; in ionic_q_is_posted() 616 return ((pos - tail) & mask) < ((head - tail) & mask); in ionic_q_is_posted() 634 "ionic stop is not posted %s stop %u tail %u head %u\n", in ionic_q_service()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A D | altera_uart.c | 264 if (xmit->head == xmit->tail) in altera_uart_tx_chars() 266 altera_uart_writel(port, xmit->buf[xmit->tail], in altera_uart_tx_chars() 268 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_uart_tx_chars()
|
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 380 arg->tail[0].iov_base = NULL; in svc_rdma_build_arg_xdr() 381 arg->tail[0].iov_len = 0; in svc_rdma_build_arg_xdr() 714 /* Rebuild rq_arg head and tail. */ in rdma_read_complete() 716 rqstp->rq_arg.tail[0] = head->rc_arg.tail[0]; in rdma_read_complete()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_fq_pie.c | 42 * @tail: last packet in the flow 51 struct sk_buff *tail; member 117 /* add skb to flow queue (tail add) */ 124 flow->tail->next = skb; in flow_queue_add() 125 flow->tail = skb; in flow_queue_add() 535 rtnl_kfree_skbs(flow->head, flow->tail); in fq_pie_reset()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | watch_queue.c | 105 unsigned int head, tail, mask, note, offset, len; in post_one_notification() local 115 tail = pipe->tail; in post_one_notification() 116 if (pipe_full(head, tail, pipe->ring_size)) in post_one_notification()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
H A D | i915_trace.h | 303 __field(u32, tail) 312 __entry->tail = rq->tail; 315 TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u, tail=%u", 317 __entry->ctx, __entry->seqno, __entry->tail)
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | gen8_engine_cs.c | 653 rq->tail = intel_ring_offset(rq, cs); in gen8_emit_fini_breadcrumb_tail() 654 assert_ring_tail_valid(rq->ring, rq->tail); in gen8_emit_fini_breadcrumb_tail() 795 rq->tail = intel_ring_offset(rq, cs); in gen12_emit_fini_breadcrumb_tail() 796 assert_ring_tail_valid(rq->ring, rq->tail); in gen12_emit_fini_breadcrumb_tail()
|
H A D | intel_ring_submission.c | 197 ring->head, ring->tail); in xcs_resume() 227 GEM_BUG_ON(!intel_ring_offset_valid(ring, ring->tail)); in xcs_resume() 252 if (ring->tail != ring->head) { in xcs_resume() 253 ENGINE_WRITE_FW(engine, RING_TAIL, ring->tail); in xcs_resume() 264 "ctl %08x (valid? %d) head %08x [%08x] tail %08x [%08x] start %08x [expected %08x]\n", in xcs_resume() 269 ENGINE_READ(engine, RING_TAIL), ring->tail, in xcs_resume() 342 "ctl %08x head %08x tail %08x start %08x\n", in reset_prepare() 412 head = engine->legacy.ring->tail; in reset_rewind() 446 intel_ring_set_tail(request->ring, request->tail)); in i9xx_submit_request() 1011 /* Every tail mov in gen6_bsd_submit_request() [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_fq_pie.c | 42 * @tail: last packet in the flow 51 struct sk_buff *tail; member 117 /* add skb to flow queue (tail add) */ 124 flow->tail->next = skb; in flow_queue_add() 125 flow->tail = skb; in flow_queue_add() 534 rtnl_kfree_skbs(flow->head, flow->tail); in fq_pie_reset()
|
/kernel/linux/linux-6.6/tools/perf/util/cs-etm-decoder/ |
H A D | cs-etm-decoder.c | 107 * increments the tail *before* using it. This is somewhat counter in cs_etm_decoder__get_packet() 108 * intuitive but it has the advantage of centralizing tail management in cs_etm_decoder__get_packet() 404 et = packet_queue->tail; in cs_etm_decoder__buffer_packet() 406 packet_queue->tail = et; in cs_etm_decoder__buffer_packet() 444 packet = &packet_queue->packet_buffer[packet_queue->tail]; in cs_etm_decoder__buffer_range() 523 packet = &queue->packet_buffer[queue->tail]; in cs_etm_decoder__buffer_exception()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | watch_queue.c | 104 unsigned int head, tail, mask, note, offset, len; in post_one_notification() local 111 tail = pipe->tail; in post_one_notification() 112 if (pipe_full(head, tail, pipe->ring_size)) in post_one_notification()
|
/kernel/linux/linux-5.10/drivers/input/ |
H A D | joydev.c | 61 int tail; member 63 spinlock_t buffer_lock; /* protects access to buffer, head and tail */ 104 if (client->tail == client->head) in joydev_pass_event() 327 have_event = client->head != client->tail; in joydev_fetch_next_event() 329 *event = client->buffer[client->tail++]; in joydev_fetch_next_event() 330 client->tail &= JOYDEV_BUFFER_SIZE - 1; in joydev_fetch_next_event() 365 client->tail = client->head; in joydev_0x_read() 381 client->head != client->tail; in joydev_data_pending()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | intel_ring_submission.c | 228 ring->head, ring->tail); in xcs_resume() 236 "ctl %08x head %08x tail %08x start %08x\n", in xcs_resume() 246 "ctl %08x head %08x tail %08x start %08x\n", in xcs_resume() 277 GEM_BUG_ON(!intel_ring_offset_valid(ring, ring->tail)); in xcs_resume() 295 "ctl %08x (valid? %d) head %08x [%08x] tail %08x [%08x] start %08x [expected %08x]\n", in xcs_resume() 300 ENGINE_READ(engine, RING_TAIL), ring->tail, in xcs_resume() 312 if (ring->tail != ring->head) { in xcs_resume() 313 ENGINE_WRITE(engine, RING_TAIL, ring->tail); in xcs_resume() 425 head = engine->legacy.ring->tail; in reset_rewind() 460 intel_ring_set_tail(request->ring, request->tail)); in i9xx_submit_request() [all...] |