Home
last modified time | relevance | path

Searched refs:fbc (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.4/include/linux/
Dpercpu_counter.h31 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp,
34 #define percpu_counter_init(fbc, value, gfp) \ argument
38 __percpu_counter_init(fbc, value, gfp, &__key); \
41 void percpu_counter_destroy(struct percpu_counter *fbc);
42 void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
43 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount,
45 s64 __percpu_counter_sum(struct percpu_counter *fbc);
46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
48 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
50 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_fbc.c66 static unsigned int get_crtc_fence_y_offset(struct intel_fbc *fbc) in get_crtc_fence_y_offset() argument
68 return fbc->state_cache.plane.y - fbc->state_cache.plane.adjusted_y; in get_crtc_fence_y_offset()
122 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in i8xx_fbc_activate()
170 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in g4x_fbc_activate()
216 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in ilk_fbc_activate()
218 int threshold = dev_priv->fbc.threshold; in ilk_fbc_activate()
283 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in gen7_fbc_activate()
285 int threshold = dev_priv->fbc.threshold; in gen7_fbc_activate()
331 if (dev_priv->fbc.false_color) in gen7_fbc_activate()
367 struct intel_fbc *fbc = &dev_priv->fbc; in intel_fbc_hw_activate() local
[all …]
Dintel_sprite.c2452 struct intel_fbc *fbc = &dev_priv->fbc; in skl_universal_plane_create() local
2454 fbc->possible_framebuffer_bits |= plane->frontbuffer_bit; in skl_universal_plane_create()
Dintel_display.c14873 struct intel_fbc *fbc = &dev_priv->fbc; in intel_primary_plane_create() local
14875 fbc->possible_framebuffer_bits |= plane->frontbuffer_bit; in intel_primary_plane_create()
/Linux-v5.4/lib/
Dpercpu_counter.c24 struct percpu_counter *fbc = addr; in percpu_counter_fixup_free() local
28 percpu_counter_destroy(fbc); in percpu_counter_fixup_free()
29 debug_object_free(fbc, &percpu_counter_debug_descr); in percpu_counter_fixup_free()
41 static inline void debug_percpu_counter_activate(struct percpu_counter *fbc) in debug_percpu_counter_activate() argument
43 debug_object_init(fbc, &percpu_counter_debug_descr); in debug_percpu_counter_activate()
44 debug_object_activate(fbc, &percpu_counter_debug_descr); in debug_percpu_counter_activate()
47 static inline void debug_percpu_counter_deactivate(struct percpu_counter *fbc) in debug_percpu_counter_deactivate() argument
49 debug_object_deactivate(fbc, &percpu_counter_debug_descr); in debug_percpu_counter_deactivate()
50 debug_object_free(fbc, &percpu_counter_debug_descr); in debug_percpu_counter_deactivate()
54 static inline void debug_percpu_counter_activate(struct percpu_counter *fbc) in debug_percpu_counter_activate() argument
[all …]
/Linux-v5.4/drivers/video/fbdev/
Dcg6.c258 struct cg6_fbc __iomem *fbc; member
272 struct cg6_fbc __iomem *fbc = par->fbc; in cg6_sync() local
276 if (!(sbus_readl(&fbc->s) & 0x10000000)) in cg6_sync()
320 struct cg6_fbc __iomem *fbc = par->fbc; in cg6_fillrect() local
330 sbus_writel(rect->color, &fbc->fg); in cg6_fillrect()
331 sbus_writel(~(u32)0, &fbc->pixelm); in cg6_fillrect()
332 sbus_writel(0xea80ff00, &fbc->alu); in cg6_fillrect()
333 sbus_writel(0, &fbc->s); in cg6_fillrect()
334 sbus_writel(0, &fbc->clip); in cg6_fillrect()
335 sbus_writel(~(u32)0, &fbc->pm); in cg6_fillrect()
[all …]
Dffb.c242 u32 fbc; member
354 struct ffb_fbc __iomem *fbc; member
378 struct ffb_fbc __iomem *fbc; in FFBFifo() local
382 fbc = par->fbc; in FFBFifo()
384 cache = (upa_readl(&fbc->ucsr) & FFB_UCSR_FIFO_MASK); in FFBFifo()
393 struct ffb_fbc __iomem *fbc; in FFBWait() local
396 fbc = par->fbc; in FFBWait()
398 if ((upa_readl(&fbc->ucsr) & FFB_UCSR_ALL_BUSY) == 0) in FFBWait()
400 if ((upa_readl(&fbc->ucsr) & FFB_UCSR_ALL_ERRORS) != 0) { in FFBWait()
401 upa_writel(FFB_UCSR_ALL_ERRORS, &fbc->ucsr); in FFBWait()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dwq.c39 return (u32)wq->fbc.sz_m1 + 1; in mlx5_wq_cyc_get_size()
44 return wq->fbc.sz_m1 + 1; in mlx5_cqwq_get_size()
49 return wq->fbc.log_stride; in mlx5_cqwq_get_log_stride_size()
54 return (u32)wq->fbc.sz_m1 + 1; in mlx5_wq_ll_get_size()
68 struct mlx5_frag_buf_ctrl *fbc = &wq->fbc; in mlx5_wq_cyc_create() local
86 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, fbc); in mlx5_wq_cyc_create()
128 mlx5_init_fbc(wq_ctrl->buf.frags, log_rq_stride, log_rq_sz, &wq->rq.fbc); in mlx5_wq_qp_create()
138 &wq->sq.fbc); in mlx5_wq_qp_create()
143 log_sq_stride, log_sq_sz, &wq->sq.fbc); in mlx5_wq_qp_create()
185 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, &wq->fbc); in mlx5_cqwq_create()
[all …]
Dwq.h52 struct mlx5_frag_buf_ctrl fbc; member
65 struct mlx5_frag_buf_ctrl fbc; member
71 struct mlx5_frag_buf_ctrl fbc; member
140 return ctr & wq->fbc.sz_m1; in mlx5_wq_cyc_ctr2ix()
155 return mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_wq_cyc_get_wqe()
160 return mlx5_frag_buf_get_idx_last_contig_stride(&wq->fbc, ix) - ix + 1; in mlx5_wq_cyc_get_contig_wqebbs()
173 return ctr & wq->fbc.sz_m1; in mlx5_cqwq_ctr2ix()
183 struct mlx5_cqe64 *cqe = mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_cqwq_get_wqe()
186 cqe += wq->fbc.log_stride == 7; in mlx5_cqwq_get_wqe()
193 return ctr >> wq->fbc.log_sz; in mlx5_cqwq_get_ctr_wrap_cnt()
[all …]
Den_rx.c122 title->op_own |= 0x01 & (cqcc >> wq->fbc.log_sz); in mlx5e_decompress_cqe()
/Linux-v5.4/include/linux/mlx5/
Ddriver.h853 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc_offset() argument
855 fbc->frags = frags; in mlx5_init_fbc_offset()
856 fbc->log_stride = log_stride; in mlx5_init_fbc_offset()
857 fbc->log_sz = log_sz; in mlx5_init_fbc_offset()
858 fbc->sz_m1 = (1 << fbc->log_sz) - 1; in mlx5_init_fbc_offset()
859 fbc->log_frag_strides = PAGE_SHIFT - fbc->log_stride; in mlx5_init_fbc_offset()
860 fbc->frag_sz_m1 = (1 << fbc->log_frag_strides) - 1; in mlx5_init_fbc_offset()
861 fbc->strides_offset = strides_offset; in mlx5_init_fbc_offset()
866 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc() argument
868 mlx5_init_fbc_offset(frags, log_stride, log_sz, 0, fbc); in mlx5_init_fbc()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/
Dintel_pm.c964 FW_WM(wm->sr.fbc, FBC_SR) | in g4x_write_wm_values()
965 FW_WM(wm->hpll.fbc, FBC_HPLL_SR) | in g4x_write_wm_values()
1203 dirty |= raw->fbc != value; in g4x_raw_fbc_wm_set()
1204 raw->fbc = value; in g4x_raw_fbc_wm_set()
1258 dirty |= raw->fbc != wm; in g4x_raw_plane_wm_compute()
1259 raw->fbc = wm; in g4x_raw_plane_wm_compute()
1278 crtc_state->wm.g4x.raw[G4X_WM_LEVEL_SR].fbc, in g4x_raw_plane_wm_compute()
1279 crtc_state->wm.g4x.raw[G4X_WM_LEVEL_HPLL].fbc); in g4x_raw_plane_wm_compute()
1321 wm_state->sr.fbc = USHRT_MAX; in g4x_invalidate_wms()
1328 wm_state->hpll.fbc = USHRT_MAX; in g4x_invalidate_wms()
[all …]
Di915_trace.h192 __field(bool, fbc)
204 __entry->sr_fbc = wm->sr.fbc;
207 __entry->hpll_fbc = wm->hpll.fbc;
210 __entry->fbc = wm->fbc_en;
218 yesno(__entry->fbc))
Di915_debugfs.c1308 struct intel_fbc *fbc = &dev_priv->fbc; in i915_fbc_status() local
1315 mutex_lock(&fbc->lock); in i915_fbc_status()
1320 seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason); in i915_fbc_status()
1340 mutex_unlock(&fbc->lock); in i915_fbc_status()
1353 *val = dev_priv->fbc.false_color; in i915_fbc_false_color_get()
1366 mutex_lock(&dev_priv->fbc.lock); in i915_fbc_false_color_set()
1369 dev_priv->fbc.false_color = val; in i915_fbc_false_color_set()
1375 mutex_unlock(&dev_priv->fbc.lock); in i915_fbc_false_color_set()
Di915_drv.h847 u16 fbc; member
853 u16 fbc; member
1376 struct intel_fbc fbc; member
Di915_reg.h6102 #define HSW_WM_LP_VAL(lat, fbc, pri, cur) \ argument
6104 ((fbc) << WM1_LP_FBC_SHIFT) | ((pri) << WM1_LP_SR_SHIFT) | (cur))
/Linux-v5.4/tools/lib/traceevent/Documentation/
Dlibtraceevent-reg_print_func.txt68 print fmt: "pipe %c, frame=%u, scanline=%u, wm %d/%d/%d, sr %s/%d/%d/%d, hpll %s/%d/%d/%d, fbc %s",
72 REC->hpll_cursor, REC->hpll_fbc, yesno(REC->fbc)
/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dsrq.c16 return mlx5_frag_buf_get_wqe(&srq->fbc, n); in get_wqe()
152 &srq->fbc); in create_srq_kernel()
Dmlx5_ib.h268 struct mlx5_frag_buf_ctrl fbc; member
450 struct mlx5_frag_buf_ctrl fbc; member
537 struct mlx5_frag_buf_ctrl fbc; member
Dcq.c70 return mlx5_frag_buf_get_wqe(&cq->buf.fbc, n); in get_cqe()
651 mlx5_init_fbc(frag_buf->frags, log_wq_stride, log_wq_sz, &buf->fbc); in alloc_cq_frag_buf()
1181 dcqe = mlx5_frag_buf_get_wqe(&cq->resize_buf->fbc, in copy_resize_cqes()
Dqp.c1024 (&sq->fbc, in get_sq_edge()
1025 mlx5_frag_buf_get_idx_last_contig_stride(&sq->fbc, idx)); in get_sq_edge()
1077 ilog2(qp->rq.wqe_cnt), &qp->rq.fbc); in create_kernel_qp()
1086 sq_strides_offset, &qp->sq.fbc); in create_kernel_qp()
4024 *seg = mlx5_frag_buf_get_wqe(&sq->fbc, idx); in _handle_post_send_edge()
4887 p = mlx5_frag_buf_get_wqe(&qp->sq.fbc, idx); in dump_wqe()
4908 *seg = mlx5_frag_buf_get_wqe(&qp->sq.fbc, *idx); in __begin_wqe()
5397 scat = mlx5_frag_buf_get_wqe(&qp->rq.fbc, ind); in _mlx5_ib_post_recv()
/Linux-v5.4/arch/m68k/ifpsp060/
Dfplsp.sa1320 dc.l $06413fff,$6000fed2,$4a106bff,$00001fbc