Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/drivers/gpu/drm/i915/
Dintel_fbc.c62 static unsigned int get_crtc_fence_y_offset(struct intel_fbc *fbc) in get_crtc_fence_y_offset() argument
64 return fbc->state_cache.plane.y - fbc->state_cache.plane.adjusted_y; in get_crtc_fence_y_offset()
119 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in i8xx_fbc_activate()
167 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in g4x_fbc_activate()
213 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in ilk_fbc_activate()
215 int threshold = dev_priv->fbc.threshold; in ilk_fbc_activate()
280 struct intel_fbc_reg_params *params = &dev_priv->fbc.params; in gen7_fbc_activate()
282 int threshold = dev_priv->fbc.threshold; in gen7_fbc_activate()
328 if (dev_priv->fbc.false_color) in gen7_fbc_activate()
360 struct intel_fbc *fbc = &dev_priv->fbc; in intel_fbc_hw_activate() local
[all …]
Dintel_pm.c944 FW_WM(wm->sr.fbc, FBC_SR) | in g4x_write_wm_values()
945 FW_WM(wm->hpll.fbc, FBC_HPLL_SR) | in g4x_write_wm_values()
1183 dirty |= raw->fbc != value; in g4x_raw_fbc_wm_set()
1184 raw->fbc = value; in g4x_raw_fbc_wm_set()
1238 dirty |= raw->fbc != wm; in g4x_raw_plane_wm_compute()
1239 raw->fbc = wm; in g4x_raw_plane_wm_compute()
1258 crtc_state->wm.g4x.raw[G4X_WM_LEVEL_SR].fbc, in g4x_raw_plane_wm_compute()
1259 crtc_state->wm.g4x.raw[G4X_WM_LEVEL_HPLL].fbc); in g4x_raw_plane_wm_compute()
1301 wm_state->sr.fbc = USHRT_MAX; in g4x_invalidate_wms()
1308 wm_state->hpll.fbc = USHRT_MAX; in g4x_invalidate_wms()
[all …]
Di915_trace.h112 __field(bool, fbc)
125 __entry->sr_fbc = wm->sr.fbc;
128 __entry->hpll_fbc = wm->hpll.fbc;
131 __entry->fbc = wm->fbc_en;
139 yesno(__entry->fbc))
Di915_debugfs.c1651 struct intel_fbc *fbc = &dev_priv->fbc; in i915_fbc_status() local
1657 mutex_lock(&fbc->lock); in i915_fbc_status()
1662 seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason); in i915_fbc_status()
1682 mutex_unlock(&fbc->lock); in i915_fbc_status()
1695 *val = dev_priv->fbc.false_color; in i915_fbc_false_color_get()
1708 mutex_lock(&dev_priv->fbc.lock); in i915_fbc_false_color_set()
1711 dev_priv->fbc.false_color = val; in i915_fbc_false_color_set()
1717 mutex_unlock(&dev_priv->fbc.lock); in i915_fbc_false_color_set()
Di915_drv.h1148 uint16_t fbc; member
1154 uint16_t fbc; member
1662 struct intel_fbc fbc; member
Di915_reg.h6003 #define HSW_WM_LP_VAL(lat, fbc, pri, cur) \ argument
6005 ((fbc) << WM1_LP_FBC_SHIFT) | ((pri) << WM1_LP_SR_SHIFT) | (cur))
Dintel_display.c13699 struct intel_fbc *fbc = &dev_priv->fbc; in intel_primary_plane_create() local
13701 fbc->possible_framebuffer_bits |= primary->frontbuffer_bit; in intel_primary_plane_create()
/Linux-v4.19/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-v4.19/drivers/video/fbdev/
Dcg6.c257 struct cg6_fbc __iomem *fbc; member
271 struct cg6_fbc __iomem *fbc = par->fbc; in cg6_sync() local
275 if (!(sbus_readl(&fbc->s) & 0x10000000)) in cg6_sync()
319 struct cg6_fbc __iomem *fbc = par->fbc; in cg6_fillrect() local
329 sbus_writel(rect->color, &fbc->fg); in cg6_fillrect()
330 sbus_writel(~(u32)0, &fbc->pixelm); in cg6_fillrect()
331 sbus_writel(0xea80ff00, &fbc->alu); in cg6_fillrect()
332 sbus_writel(0, &fbc->s); in cg6_fillrect()
333 sbus_writel(0, &fbc->clip); in cg6_fillrect()
334 sbus_writel(~(u32)0, &fbc->pm); in cg6_fillrect()
[all …]
Dffb.c241 u32 fbc; member
353 struct ffb_fbc __iomem *fbc; member
377 struct ffb_fbc __iomem *fbc; in FFBFifo() local
381 fbc = par->fbc; in FFBFifo()
383 cache = (upa_readl(&fbc->ucsr) & FFB_UCSR_FIFO_MASK); in FFBFifo()
392 struct ffb_fbc __iomem *fbc; in FFBWait() local
395 fbc = par->fbc; in FFBWait()
397 if ((upa_readl(&fbc->ucsr) & FFB_UCSR_ALL_BUSY) == 0) in FFBWait()
399 if ((upa_readl(&fbc->ucsr) & FFB_UCSR_ALL_ERRORS) != 0) { in FFBWait()
400 upa_writel(FFB_UCSR_ALL_ERRORS, &fbc->ucsr); in FFBWait()
[all …]
/Linux-v4.19/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 (u32)wq->fbc.sz_m1 + 1; in mlx5_wq_ll_get_size()
54 return mlx5_wq_cyc_get_size(wq) << wq->fbc.log_stride; in mlx5_wq_cyc_get_byte_size()
65 return mlx5_cqwq_get_size(wq) << wq->fbc.log_stride; in mlx5_cqwq_get_byte_size()
70 return mlx5_wq_ll_get_size(wq) << wq->fbc.log_stride; in mlx5_wq_ll_get_byte_size()
77 struct mlx5_frag_buf_ctrl *fbc = &wq->fbc; in mlx5_wq_cyc_create() local
82 fbc); in mlx5_wq_cyc_create()
83 wq->sz = wq->fbc.sz_m1 + 1; in mlx5_wq_cyc_create()
98 fbc->frag_buf = wq_ctrl->buf; in mlx5_wq_cyc_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
139 return ctr & wq->fbc.sz_m1; in mlx5_wq_cyc_ctr2ix()
154 return mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_wq_cyc_get_wqe()
159 return mlx5_frag_buf_get_idx_last_contig_stride(&wq->fbc, ix) - ix + 1; in mlx5_wq_cyc_get_contig_wqebbs()
172 return ctr & wq->fbc.sz_m1; in mlx5_cqwq_ctr2ix()
182 return mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_cqwq_get_wqe()
187 return ctr >> wq->fbc.log_sz; in mlx5_cqwq_get_ctr_wrap_cnt()
223 return wq->cur_sz == wq->fbc.sz_m1; in mlx5_wq_ll_is_full()
[all …]
Den_rx.c109 cq->title.op_own |= 0x01 & (cqcc >> cq->wq.fbc.log_sz); in mlx5e_decompress_cqe()
/Linux-v4.19/include/linux/mlx5/
Ddriver.h999 struct mlx5_frag_buf_ctrl *fbc) in mlx5_fill_fbc_offset() argument
1001 fbc->log_stride = log_stride; in mlx5_fill_fbc_offset()
1002 fbc->log_sz = log_sz; in mlx5_fill_fbc_offset()
1003 fbc->sz_m1 = (1 << fbc->log_sz) - 1; in mlx5_fill_fbc_offset()
1004 fbc->log_frag_strides = PAGE_SHIFT - fbc->log_stride; in mlx5_fill_fbc_offset()
1005 fbc->frag_sz_m1 = (1 << fbc->log_frag_strides) - 1; in mlx5_fill_fbc_offset()
1006 fbc->strides_offset = strides_offset; in mlx5_fill_fbc_offset()
1010 struct mlx5_frag_buf_ctrl *fbc) in mlx5_fill_fbc() argument
1012 mlx5_fill_fbc_offset(log_stride, log_sz, 0, fbc); in mlx5_fill_fbc()
1015 static inline void mlx5_core_init_cq_frag_buf(struct mlx5_frag_buf_ctrl *fbc, in mlx5_core_init_cq_frag_buf() argument
[all …]
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dcq.c69 return mlx5_frag_buf_get_wqe(&cq->buf.fbc, n); in get_cqe()
396 mlx5_frag_buf_free(dev->mdev, &buf->fbc.frag_buf); in free_cq_buf()
731 struct mlx5_frag_buf_ctrl *c = &buf->fbc; in alloc_cq_frag_buf()
739 mlx5_core_init_cq_frag_buf(&buf->fbc, cqc_buff); in alloc_cq_frag_buf()
937 cq->buf.fbc.frag_buf.npages; in create_cq_kernel()
945 mlx5_fill_page_frag_array(&cq->buf.fbc.frag_buf, pas); in create_cq_kernel()
949 cq->buf.fbc.frag_buf.page_shift - in create_cq_kernel()
1301 dcqe = mlx5_frag_buf_get_wqe(&cq->resize_buf->fbc, in copy_resize_cqes()
1370 c = &cq->resize_buf->fbc; in mlx5_ib_resize_cq()
1393 mlx5_fill_page_frag_array(&cq->resize_buf->fbc.frag_buf, in mlx5_ib_resize_cq()
Dmlx5_ib.h437 struct mlx5_frag_buf_ctrl fbc; member
/Linux-v4.19/arch/m68k/ifpsp060/
Dfplsp.sa1320 dc.l $06413fff,$6000fed2,$4a106bff,$00001fbc