/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_trace.h | 18 TP_PROTO(struct drm_device *dev, uint64_t seqno, uint64_t timeout), 19 TP_ARGS(dev, seqno, timeout), 23 __field(u64, seqno) 29 __entry->seqno = seqno; 34 __entry->dev, __entry->seqno, __entry->timeout) 38 TP_PROTO(struct drm_device *dev, uint64_t seqno), 39 TP_ARGS(dev, seqno), 43 __field(u64, seqno) 48 __entry->seqno = seqno; 52 __entry->dev, __entry->seqno) [all …]
|
H A D | vc4_gem.c | 384 vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns, in vc4_wait_for_seqno() argument 395 if (vc4->finished_seqno >= seqno) in vc4_wait_for_seqno() 403 trace_vc4_wait_for_seqno_begin(dev, seqno, timeout_ns); in vc4_wait_for_seqno() 414 if (vc4->finished_seqno >= seqno) in vc4_wait_for_seqno() 429 trace_vc4_wait_for_seqno_end(dev, seqno); in vc4_wait_for_seqno() 497 trace_vc4_submit_cl(dev, false, exec->seqno, exec->ct0ca, in vc4_submit_next_bin_job() 536 trace_vc4_submit_cl(dev, true, exec->seqno, exec->ct1ca, exec->ct1ea); in vc4_submit_next_render_job() 555 vc4_update_bo_seqnos(struct vc4_exec_info *exec, uint64_t seqno) in vc4_update_bo_seqnos() argument 562 bo->seqno = seqno; in vc4_update_bo_seqnos() 569 bo->seqno = seqno; in vc4_update_bo_seqnos() [all …]
|
/linux/drivers/media/pci/saa7164/ |
H A D | saa7164-cmd.c | 22 ret = dev->cmds[i].seqno; in saa7164_cmd_alloc_seqno() 31 static void saa7164_cmd_free_seqno(struct saa7164_dev *dev, u8 seqno) in saa7164_cmd_free_seqno() argument 34 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_free_seqno() 35 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_free_seqno() 36 dev->cmds[seqno].inuse = 0; in saa7164_cmd_free_seqno() 37 dev->cmds[seqno].signalled = 0; in saa7164_cmd_free_seqno() 38 dev->cmds[seqno].timeout = 0; in saa7164_cmd_free_seqno() 43 static void saa7164_cmd_timeout_seqno(struct saa7164_dev *dev, u8 seqno) in saa7164_cmd_timeout_seqno() argument 46 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_timeout_seqno() 47 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_timeout_seqno() [all …]
|
/linux/drivers/gpu/drm/v3d/ |
H A D | v3d_trace.h | 39 uint64_t seqno, 41 TP_ARGS(dev, is_render, seqno, ctnqba, ctnqea), 46 __field(u64, seqno) 54 __entry->seqno = seqno; 62 __entry->seqno, 69 uint64_t seqno), 70 TP_ARGS(dev, seqno), 74 __field(u64, seqno) 79 __entry->seqno = seqno; 84 __entry->seqno) [all …]
|
/linux/drivers/dma-buf/ |
H A D | dma-fence-chain.c | 90 int dma_fence_chain_find_seqno(struct dma_fence **pfence, uint64_t seqno) in dma_fence_chain_find_seqno() argument 94 if (!seqno) in dma_fence_chain_find_seqno() 98 if (!chain || chain->base.seqno < seqno) in dma_fence_chain_find_seqno() 103 to_dma_fence_chain(*pfence)->prev_seqno < seqno) in dma_fence_chain_find_seqno() 244 uint64_t seqno) in dma_fence_chain_init() argument 255 if (prev_chain && __dma_fence_is_later(seqno, prev->seqno, prev->ops)) { in dma_fence_chain_init() 257 chain->prev_seqno = prev->seqno; in dma_fence_chain_init() 262 seqno = max(prev->seqno, seqno); in dma_fence_chain_init() 266 &chain->lock, context, seqno); in dma_fence_chain_init()
|
H A D | st-dma-fence-chain.c | 63 u64 seqno) in mock_chain() argument 72 seqno); in mock_chain() 281 fence->seqno); in find_signaled() 326 fence ? fence->seqno : 0); in find_out_of_order() 363 fence->seqno, in find_gap() 401 int seqno; in __find_race() local 403 seqno = get_random_u32_inclusive(1, data->fc.chain_length); in __find_race() 405 err = dma_fence_chain_find_seqno(&fence, seqno); in __find_race() 408 seqno); in __find_race() 419 if (fence->seqno == seqno) { in __find_race() [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_syncmap.c | 146 static int check_seqno(struct i915_syncmap *leaf, unsigned int idx, u32 seqno) in check_seqno() argument 154 if (__sync_seqno(leaf)[idx] != seqno) { in check_seqno() 156 __func__, idx, __sync_seqno(leaf)[idx], seqno); in check_seqno() 163 static int check_one(struct i915_syncmap **sync, u64 context, u32 seqno) in check_one() argument 167 err = i915_syncmap_set(sync, context, seqno); in check_one() 189 err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); in check_one() 193 if (!i915_syncmap_is_later(sync, context, seqno)) { in check_one() 195 context, seqno); in check_one() 238 static int check_leaf(struct i915_syncmap **sync, u64 context, u32 seqno) in check_leaf() argument 242 err = i915_syncmap_set(sync, context, seqno); in check_leaf() [all …]
|
H A D | igt_spinner.c | 89 if (!spin->seqno) { in igt_spinner_pin() 94 spin->seqno = memset(vaddr, 0xff, PAGE_SIZE); in igt_spinner_pin() 178 *batch++ = rq->fence.seqno; in igt_spinner_create_request() 222 u32 *seqno = spin->seqno + seqno_offset(rq->fence.context); in hws_seqno() local 224 return READ_ONCE(*seqno); in hws_seqno() 246 if (spin->seqno) { in igt_spinner_fini() 259 rq->fence.seqno), in igt_wait_for_spinner() 262 rq->fence.seqno), in igt_wait_for_spinner()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_trace.h | 127 TP_PROTO(struct drm_device *dev, int ring, u32 seqno), 129 TP_ARGS(dev, ring, seqno), 134 __field(u32, seqno) 140 __entry->seqno = seqno; 144 __entry->dev, __entry->ring, __entry->seqno) 149 TP_PROTO(struct drm_device *dev, int ring, u32 seqno), 151 TP_ARGS(dev, ring, seqno) 156 TP_PROTO(struct drm_device *dev, int ring, u32 seqno), 158 TP_ARGS(dev, ring, seqno) 163 TP_PROTO(struct drm_device *dev, int ring, u32 seqno), [all …]
|
/linux/include/trace/events/ |
H A D | rpcgss.h | 322 __field(u32, seqno) 329 __entry->seqno = gc->gc_seq; 334 __entry->xid, __entry->seqno) 403 __field(u32, seqno) 412 __entry->seqno = rqst->rq_seqno; 417 __entry->xid, __entry->seqno) 434 __field(u32, seqno) 443 __entry->seqno = task->tk_rqstp->rq_seqno; 450 __entry->xid, __entry->seqno, __entry->seq_xmit, 492 u32 seqno [all …]
|
H A D | dma_fence.h | 22 __field(unsigned int, seqno) 29 __entry->seqno = fence->seqno; 32 TP_printk("driver=%s timeline=%s context=%u seqno=%u", 34 __entry->seqno)
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_timeline.c | 199 u32 seqno; member 211 if (__intel_timeline_sync_is_later(tl, ctx, p->seqno) != p->expected) { in __igt_sync() 213 name, p->name, ctx, p->seqno, str_yes_no(p->expected)); in __igt_sync() 218 ret = __intel_timeline_sync_set(tl, ctx, p->seqno); in __igt_sync() 396 u32 seqno = prandom_u32_state(&prng); in bench_sync() local 398 if (!__intel_timeline_sync_is_later(&tl, id, seqno)) in bench_sync() 399 __intel_timeline_sync_set(&tl, id, seqno); in bench_sync() 496 if (READ_ONCE(*tl->hwsp_seqno) != tl->seqno) { in checked_tl_write() 498 *tl->hwsp_seqno, tl->seqno); in checked_tl_write() 697 u32 seqno[2]; in live_hwsp_wrap() local [all …]
|
H A D | intel_timeline.h | 46 u64 context, u32 seqno) in __intel_timeline_sync_set() argument 48 return i915_syncmap_set(&tl->sync, context, seqno); in __intel_timeline_sync_set() 54 return __intel_timeline_sync_set(tl, fence->context, fence->seqno); in intel_timeline_sync_set() 58 u64 context, u32 seqno) in __intel_timeline_sync_is_later() argument 60 return i915_syncmap_is_later(&tl->sync, context, seqno); in __intel_timeline_sync_is_later() 66 return __intel_timeline_sync_is_later(tl, fence->context, fence->seqno); in intel_timeline_sync_is_later() 74 u32 *seqno);
|
H A D | intel_timeline.c | 230 WRITE_ONCE(*hwsp_seqno, tl->seqno); in intel_timeline_reset_seqno() 302 GEM_BUG_ON(tl->seqno & tl->has_initial_breadcrumb); in timeline_advance() 304 return tl->seqno += 1 + tl->has_initial_breadcrumb; in timeline_advance() 309 u32 *seqno) in __intel_timeline_get_seqno() argument 321 *seqno = timeline_advance(tl); in __intel_timeline_get_seqno() 322 GEM_BUG_ON(i915_seqno_passed(*tl->hwsp_seqno, *seqno)); in __intel_timeline_get_seqno() 328 u32 *seqno) in intel_timeline_get_seqno() argument 330 *seqno = timeline_advance(tl); in intel_timeline_get_seqno() 333 if (unlikely(!*seqno && tl->has_initial_breadcrumb)) in intel_timeline_get_seqno() 334 return __intel_timeline_get_seqno(tl, seqno); in intel_timeline_get_seqno() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_syncmap.c | 79 DECLARE_FLEX_ARRAY(u32, seqno); 99 return p->seqno; in __sync_seqno() 151 bool i915_syncmap_is_later(struct i915_syncmap **root, u64 id, u32 seqno) in i915_syncmap_is_later() argument 192 return seqno_later(__sync_seqno(p)[idx], seqno); in i915_syncmap_is_later() 200 p = kmalloc(struct_size(p, seqno, KSYNCMAP), GFP_KERNEL); in __sync_alloc_leaf() 211 static inline void __sync_set_seqno(struct i915_syncmap *p, u64 id, u32 seqno) in __sync_set_seqno() argument 216 __sync_seqno(p)[idx] = seqno; in __sync_set_seqno() 227 static noinline int __sync_set(struct i915_syncmap **root, u64 id, u32 seqno) in __sync_set() argument 332 __sync_set_seqno(p, id, seqno); in __sync_set() 350 int i915_syncmap_set(struct i915_syncmap **root, u64 id, u32 seqno) in i915_syncmap_set() argument [all …]
|
/linux/net/dccp/ |
H A D | ackvec.c | 51 int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seqno, u8 nonce_sum) in dccp_ackvec_update_records() argument 59 avr->avr_ack_seqno = seqno; in dccp_ackvec_update_records() 132 u64 seqno, enum dccp_ackvec_states state) in dccp_ackvec_update_old() argument 163 (unsigned long long)seqno, state); in dccp_ackvec_update_old() 197 u64 seqno, enum dccp_ackvec_states state) in dccp_ackvec_add_new() argument 237 av->av_buf_ackno = seqno; in dccp_ackvec_add_new() 250 u64 seqno = DCCP_SKB_CB(skb)->dccpd_seq; in dccp_ackvec_input() local 254 dccp_ackvec_add_new(av, 1, seqno, state); in dccp_ackvec_input() 255 av->av_tail_ackno = seqno; in dccp_ackvec_input() 258 s64 num_packets = dccp_delta_seqno(av->av_buf_ackno, seqno); in dccp_ackvec_input() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | agg-rx.c | 84 mt76_rx_aggr_release_frames(tid, frames, status->seqno); in mt76_rx_aggr_check_release() 126 u16 seqno; in mt76_rx_aggr_check_ctl() local 135 seqno = IEEE80211_SEQ_TO_SN(le16_to_cpu(bar->start_seq_num)); in mt76_rx_aggr_check_ctl() 142 mt76_rx_aggr_release_frames(tid, frames, seqno); in mt76_rx_aggr_check_ctl() 155 u16 seqno, head, size, idx; in mt76_rx_aggr_reorder() local 187 seqno = status->seqno; in mt76_rx_aggr_reorder() 189 sn_less = ieee80211_sn_less(seqno, head); in mt76_rx_aggr_reorder() 204 if (seqno == head) { in mt76_rx_aggr_reorder() 217 if (!ieee80211_sn_less(seqno, head + size)) { in mt76_rx_aggr_reorder() 218 head = ieee80211_sn_inc(ieee80211_sn_sub(seqno, size)); in mt76_rx_aggr_reorder() [all …]
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_irq.c | 120 static bool vmw_fifo_idle(struct vmw_private *dev_priv, uint32_t seqno) in vmw_fifo_idle() argument 128 uint32_t seqno = vmw_fence_read(dev_priv); in vmw_update_seqno() local 130 if (dev_priv->last_read_seqno != seqno) { in vmw_update_seqno() 131 dev_priv->last_read_seqno = seqno; in vmw_update_seqno() 137 uint32_t seqno) in vmw_seqno_passed() argument 141 if (likely(dev_priv->last_read_seqno - seqno < VMW_FENCE_WRAP)) in vmw_seqno_passed() 145 if (likely(dev_priv->last_read_seqno - seqno < VMW_FENCE_WRAP)) in vmw_seqno_passed() 148 if (!vmw_has_fences(dev_priv) && vmw_fifo_idle(dev_priv, seqno)) in vmw_seqno_passed() 156 ret = ((atomic_read(&dev_priv->marker_seq) - seqno) in vmw_seqno_passed() 165 uint32_t seqno, in vmw_fallback_wait() argument [all …]
|
H A D | vmwgfx_fence.c | 154 u32 seqno = vmw_fence_read(dev_priv); in vmw_fence_enable_signaling() local 155 if (seqno - fence->base.seqno < VMW_FENCE_WRAP) in vmw_fence_enable_signaling() 340 struct vmw_fence_obj *fence, u32 seqno, in vmw_fence_obj_init() argument 346 fman->ctx, seqno); in vmw_fence_obj_init() 417 fence->base.seqno); in vmw_fence_goal_new_locked() 451 goal_seqno - fence->base.seqno < VMW_FENCE_WRAP)) in vmw_fence_goal_check_locked() 454 vmw_fence_goal_write(fman->dev_priv, fence->base.seqno); in vmw_fence_goal_check_locked() 465 uint32_t seqno, new_seqno; in __vmw_fences_update() local 467 seqno = vmw_fence_read(fman->dev_priv); in __vmw_fences_update() 470 if (seqno - fence->base.seqno < VMW_FENCE_WRAP) { in __vmw_fences_update() [all …]
|
/linux/net/dccp/ccids/lib/ |
H A D | packet_history.h | 38 u64 seqno; member 43 tfrc_tx_hist_find_entry(struct tfrc_tx_hist_entry *head, u64 seqno) in tfrc_tx_hist_find_entry() argument 45 while (head != NULL && head->seqno != seqno) in tfrc_tx_hist_find_entry() 50 int tfrc_tx_hist_add(struct tfrc_tx_hist_entry **headp, u64 seqno);
|
/linux/net/batman-adv/ |
H A D | fragmentation.c | 107 u16 seqno) in batadv_frag_init_chain() argument 111 if (chain->seqno == seqno) in batadv_frag_init_chain() 118 chain->seqno = seqno; in batadv_frag_init_chain() 145 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local 156 seqno = ntohs(frag_packet->seqno); in batadv_frag_insert_packet() 157 bucket = seqno % BATADV_FRAG_BUFFER_COUNT; in batadv_frag_insert_packet() 172 if (batadv_frag_init_chain(chain, seqno)) { in batadv_frag_insert_packet() 487 frag_header.seqno = htons(atomic_inc_return(&bat_priv->frag_seqno)); in batadv_frag_send_packet()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_ring_ops.c | 242 u64 batch_addr, u32 seqno) in __emit_job_gen12_simple() argument 253 seqno, true, dw, i); in __emit_job_gen12_simple() 257 seqno, dw, i); in __emit_job_gen12_simple() 269 i = emit_flush_imm_ggtt(xe_lrc_seqno_ggtt_addr(lrc), seqno, false, dw, i); in __emit_job_gen12_simple() 293 u64 batch_addr, u32 seqno) in __emit_job_gen12_video() argument 315 seqno, true, dw, i); in __emit_job_gen12_video() 321 seqno, dw, i); in __emit_job_gen12_video() 332 i = emit_flush_imm_ggtt(xe_lrc_seqno_ggtt_addr(lrc), seqno, false, dw, i); in __emit_job_gen12_video() 343 u64 batch_addr, u32 seqno) in __emit_job_gen12_render_compute() argument 370 seqno, dw, i); in __emit_job_gen12_render_compute() [all …]
|
H A D | xe_trace.h | 35 __field(int, seqno) 41 __entry->seqno = fence->seqno; 45 __get_str(dev), __entry->fence, __entry->seqno) 212 __field(u32, seqno) 224 __entry->seqno = xe_sched_job_seqno(job); 236 __get_str(dev), __entry->fence, __entry->seqno, 315 __field(u32, seqno) 322 __entry->seqno = fence->dma.seqno; 327 __get_str(dev), __entry->ctx, __entry->fence, __entry->seqno)
|
/linux/net/tipc/ |
H A D | name_distr.c | 151 u32 dnode, struct list_head *pls, u16 seqno) in named_distribute() argument 197 msg_set_named_seqno(hdr, seqno); in named_distribute() 211 u16 seqno; in tipc_named_node_up() local 217 seqno = nt->snd_nxt; in tipc_named_node_up() 221 named_distribute(net, &head, dnode, &nt->cluster_scope, seqno); in tipc_named_node_up() 318 u16 seqno; in tipc_named_dequeue() local 328 seqno = msg_named_seqno(hdr); in tipc_named_dequeue() 330 *rcv_nxt = seqno; in tipc_named_dequeue() 340 if (*open && (*rcv_nxt == seqno)) { in tipc_named_dequeue() 347 if (less(seqno, *rcv_nxt)) { in tipc_named_dequeue()
|
/linux/drivers/net/ppp/ |
H A D | ppp_deflate.c | 25 int seqno; member 150 state->seqno = 0; in z_comp_init() 170 state->seqno = 0; in z_comp_reset() 213 put_unaligned_be16(state->seqno, wptr); in z_compress() 218 ++state->seqno; in z_compress() 364 state->seqno = 0; in z_decomp_init() 385 state->seqno = 0; in z_decomp_reset() 427 if (seq != (state->seqno & 0xffff)) { in z_decompress() 430 state->unit, seq, state->seqno & 0xffff); in z_decompress() 433 ++state->seqno; in z_decompress() [all …]
|