Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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);
47 void percpu_counter_sync(struct percpu_counter *fbc);
49 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_fbc.c101 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in i8xx_fbc_activate()
152 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in g4x_fbc_activate()
192 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in i8xx_fbc_recompress()
203 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in i965_fbc_recompress()
215 struct intel_fbc *fbc = &dev_priv->fbc; in snb_fbc_recompress() local
217 trace_intel_fbc_nuke(fbc->crtc); in snb_fbc_recompress()
235 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in ilk_fbc_activate()
237 int threshold = dev_priv->fbc.threshold; in ilk_fbc_activate()
300 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in gen7_fbc_activate()
302 int threshold = dev_priv->fbc.threshold; in gen7_fbc_activate()
[all …]
Dintel_display_debugfs.c43 struct intel_fbc *fbc = &dev_priv->fbc; in i915_fbc_status() local
50 mutex_lock(&fbc->lock); in i915_fbc_status()
55 seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason); in i915_fbc_status()
75 mutex_unlock(&fbc->lock); in i915_fbc_status()
88 *val = dev_priv->fbc.false_color; in i915_fbc_false_color_get()
101 mutex_lock(&dev_priv->fbc.lock); in i915_fbc_false_color_set()
104 dev_priv->fbc.false_color = val; in i915_fbc_false_color_set()
109 mutex_unlock(&dev_priv->fbc.lock); in i915_fbc_false_color_set()
Dintel_sprite.c3036 struct intel_fbc *fbc = &dev_priv->fbc; in skl_universal_plane_create() local
3038 fbc->possible_framebuffer_bits |= plane->frontbuffer_bit; in skl_universal_plane_create()
Dintel_display.c16395 struct intel_fbc *fbc = &dev_priv->fbc; in intel_primary_plane_create() local
16397 fbc->possible_framebuffer_bits |= plane->frontbuffer_bit; in intel_primary_plane_create()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
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
102 return (u32)wq->fbc.sz_m1 + 1; in mlx5_wq_cyc_get_size()
144 return ctr & wq->fbc.sz_m1; in mlx5_wq_cyc_ctr2ix()
159 return mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_wq_cyc_get_wqe()
164 return mlx5_frag_buf_get_idx_last_contig_stride(&wq->fbc, ix) - ix + 1; in mlx5_wq_cyc_get_contig_wqebbs()
182 return wq->fbc.sz_m1 + 1; in mlx5_cqwq_get_size()
187 return wq->fbc.log_stride; in mlx5_cqwq_get_log_stride_size()
192 return ctr & wq->fbc.sz_m1; in mlx5_cqwq_ctr2ix()
[all …]
Dwq.c48 struct mlx5_frag_buf_ctrl *fbc = &wq->fbc; in mlx5_wq_cyc_create() local
66 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, fbc); in mlx5_wq_cyc_create()
89 len = nstrides << wq->fbc.log_stride; in mlx5_wq_cyc_wqe_dump()
133 mlx5_init_fbc(wq_ctrl->buf.frags, log_rq_stride, log_rq_sz, &wq->rq.fbc); in mlx5_wq_qp_create()
143 &wq->sq.fbc); in mlx5_wq_qp_create()
148 log_sq_stride, log_sq_sz, &wq->sq.fbc); in mlx5_wq_qp_create()
190 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, &wq->fbc); in mlx5_cqwq_create()
207 for (i = 0; i < wq->fbc.sz_m1; i++) { in mlx5_wq_ll_init_list()
221 struct mlx5_frag_buf_ctrl *fbc = &wq->fbc; in mlx5_wq_ll_create() local
239 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, fbc); in mlx5_wq_ll_create()
Den_rx.c140 title->op_own |= 0x01 & (cqcc >> wq->fbc.log_sz); in mlx5e_decompress_cqe()
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddriver.h850 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc_offset() argument
852 fbc->frags = frags; in mlx5_init_fbc_offset()
853 fbc->log_stride = log_stride; in mlx5_init_fbc_offset()
854 fbc->log_sz = log_sz; in mlx5_init_fbc_offset()
855 fbc->sz_m1 = (1 << fbc->log_sz) - 1; in mlx5_init_fbc_offset()
856 fbc->log_frag_strides = PAGE_SHIFT - fbc->log_stride; in mlx5_init_fbc_offset()
857 fbc->frag_sz_m1 = (1 << fbc->log_frag_strides) - 1; in mlx5_init_fbc_offset()
858 fbc->strides_offset = strides_offset; in mlx5_init_fbc_offset()
863 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc() argument
865 mlx5_init_fbc_offset(frags, log_stride, log_sz, 0, fbc); in mlx5_init_fbc()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dwr.h38 (&sq->fbc, in get_sq_edge()
39 mlx5_frag_buf_get_idx_last_contig_stride(&sq->fbc, idx)); in get_sq_edge()
Dsrq.c16 return mlx5_frag_buf_get_wqe(&srq->fbc, n); in get_wqe()
152 &srq->fbc); in create_srq_kernel()
Dcq.c71 return mlx5_frag_buf_get_wqe(&cq->buf.fbc, n); in get_cqe()
675 mlx5_init_fbc(frag_buf->frags, log_wq_stride, log_wq_sz, &buf->fbc); in alloc_cq_frag_buf()
848 cqe = mlx5_frag_buf_get_wqe(&buf->fbc, i); in init_cq_frag_buf()
1216 dcqe = mlx5_frag_buf_get_wqe(&cq->resize_buf->fbc, in copy_resize_cqes()
Dmlx5_ib.h266 struct mlx5_frag_buf_ctrl fbc; member
458 struct mlx5_frag_buf_ctrl fbc; member
527 struct mlx5_frag_buf_ctrl fbc; member
Dwr.c46 *seg = mlx5_frag_buf_get_wqe(&sq->fbc, idx); in handle_post_send_edge()
931 p = mlx5_frag_buf_get_wqe(&qp->sq.fbc, idx); in dump_wqe()
952 *seg = mlx5_frag_buf_get_wqe(&qp->sq.fbc, *idx); in __begin_wqe()
1499 scat = mlx5_frag_buf_get_wqe(&qp->rq.fbc, ind); in mlx5_ib_post_recv()
Dmem.c217 ctrl = mlx5_frag_buf_get_wqe(&qp->sq.fbc, idx); in post_send_nop()
Dqp.c142 wqe_index = wqe_index & qp->sq.fbc.sz_m1; in mlx5_ib_read_kernel_wqe_sq()
145 p = mlx5_frag_buf_get_wqe(&qp->sq.fbc, wqe_index); in mlx5_ib_read_kernel_wqe_sq()
161 wqe_index = (wqe_index + 1) & qp->sq.fbc.sz_m1; in mlx5_ib_read_kernel_wqe_sq()
162 p = mlx5_frag_buf_get_wqe(&qp->sq.fbc, wqe_index); in mlx5_ib_read_kernel_wqe_sq()
1081 ilog2(qp->rq.wqe_cnt), &qp->rq.fbc); in _create_kernel_qp()
1090 sq_strides_offset, &qp->sq.fbc); in _create_kernel_qp()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Dintel_pm.c985 FW_WM(wm->sr.fbc, FBC_SR) | in g4x_write_wm_values()
986 FW_WM(wm->hpll.fbc, FBC_HPLL_SR) | in g4x_write_wm_values()
1221 dirty |= raw->fbc != value; in g4x_raw_fbc_wm_set()
1222 raw->fbc = value; in g4x_raw_fbc_wm_set()
1277 dirty |= raw->fbc != wm; in g4x_raw_plane_wm_compute()
1278 raw->fbc = wm; in g4x_raw_plane_wm_compute()
1299 crtc_state->wm.g4x.raw[G4X_WM_LEVEL_SR].fbc, in g4x_raw_plane_wm_compute()
1300 crtc_state->wm.g4x.raw[G4X_WM_LEVEL_HPLL].fbc); in g4x_raw_plane_wm_compute()
1342 wm_state->sr.fbc = USHRT_MAX; in g4x_invalidate_wms()
1349 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_drv.h741 u16 fbc; member
747 u16 fbc; member
907 struct intel_fbc fbc; member
Di915_reg.h6371 #define HSW_WM_LP_VAL(lat, fbc, pri, cur) \ argument
6373 ((fbc) << WM1_LP_FBC_SHIFT) | ((pri) << WM1_LP_SR_SHIFT) | (cur))
/kernel/linux/linux-5.10/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)
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c47 struct mlx5_frag_buf_ctrl fbc; member
61 struct mlx5_frag_buf_ctrl fbc; member
273 mlx5_init_fbc(frag_buf->frags, log_wq_stride, log_wq_sz, &buf->fbc); in cq_frag_buf_alloc()
296 return mlx5_frag_buf_get_wqe(&vcq->buf.fbc, n); in get_cqe()

12