Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 397) sorted by relevance

12345678910>>...16

/drivers/gpu/drm/
Ddrm_fourcc.c40 uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth) in drm_mode_legacy_fb_format() argument
46 if (depth == 1) in drm_mode_legacy_fb_format()
51 if (depth == 2) in drm_mode_legacy_fb_format()
56 if (depth == 4) in drm_mode_legacy_fb_format()
61 if (depth == 8) in drm_mode_legacy_fb_format()
66 switch (depth) { in drm_mode_legacy_fb_format()
79 if (depth == 24) in drm_mode_legacy_fb_format()
84 switch (depth) { in drm_mode_legacy_fb_format()
119 uint32_t bpp, uint32_t depth) in drm_driver_legacy_fb_format() argument
121 uint32_t fmt = drm_mode_legacy_fb_format(bpp, depth); in drm_driver_legacy_fb_format()
[all …]
/drivers/gpu/drm/amd/display/amdgpu_dm/
Ddc_fpu.c54 int depth; in dc_assert_fp_enabled() local
56 depth = __this_cpu_read(fpu_recursion_depth); in dc_assert_fp_enabled()
58 ASSERT(depth >= 1); in dc_assert_fp_enabled()
76 int depth; in dc_fpu_begin() local
80 depth = __this_cpu_inc_return(fpu_recursion_depth); in dc_fpu_begin()
81 if (depth == 1) { in dc_fpu_begin()
86 TRACE_DCN_FPU(true, function_name, line, depth); in dc_fpu_begin()
101 int depth; in dc_fpu_end() local
103 depth = __this_cpu_dec_return(fpu_recursion_depth); in dc_fpu_end()
104 if (depth == 0) { in dc_fpu_end()
[all …]
/drivers/media/platform/mediatek/mdp3/
Dmdp_cfg_data.c824 .depth = { 8 },
831 .depth = { 16 },
838 .depth = { 16 },
845 .depth = { 24 },
852 .depth = { 24 },
859 .depth = { 32 },
866 .depth = { 32 },
873 .depth = { 16 },
881 .depth = { 16 },
889 .depth = { 16 },
[all …]
/drivers/iio/adc/
Dmax1027.c97 #define MAX1027_V_CHAN(index, depth) \ argument
107 .realbits = depth, \
109 .shift = (depth == 10) ? 2 : 0, \
129 #define MAX1X27_CHANNELS(depth) \ argument
131 MAX1027_V_CHAN(0, depth), \
132 MAX1027_V_CHAN(1, depth), \
133 MAX1027_V_CHAN(2, depth), \
134 MAX1027_V_CHAN(3, depth), \
135 MAX1027_V_CHAN(4, depth), \
136 MAX1027_V_CHAN(5, depth), \
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcommonring.c31 void brcmf_commonring_config(struct brcmf_commonring *commonring, u16 depth, in brcmf_commonring_config() argument
34 commonring->depth = depth; in brcmf_commonring_config()
75 available = commonring->depth - commonring->w_ptr + in brcmf_commonring_write_available()
83 if (available > commonring->depth / 8) { in brcmf_commonring_write_available()
116 available = commonring->depth - commonring->w_ptr + in brcmf_commonring_reserve_for_write()
125 if (commonring->w_ptr == commonring->depth) in brcmf_commonring_reserve_for_write()
152 available = commonring->depth - commonring->w_ptr + in brcmf_commonring_reserve_for_write_multiple()
161 if (*alloced + commonring->w_ptr > commonring->depth) in brcmf_commonring_reserve_for_write_multiple()
162 *alloced = commonring->depth - commonring->w_ptr; in brcmf_commonring_reserve_for_write_multiple()
164 if (commonring->w_ptr == commonring->depth) in brcmf_commonring_reserve_for_write_multiple()
[all …]
/drivers/media/platform/ti/vpe/
Dvpdma.c32 .depth = 8,
37 .depth = 8,
42 .depth = 8,
47 .depth = 8,
52 .depth = 8,
57 .depth = 4,
62 .depth = 4,
67 .depth = 16,
72 .depth = 24,
77 .depth = 16,
[all …]
/drivers/video/fbdev/core/
Dfb_logo.c99 int depth) in fb_set_logo() argument
122 switch (depth) { in fb_set_logo()
175 int depth; member
291 image.depth = 8; in fb_show_logo_line()
312 if (fb_logo.depth <= 4) { in fb_show_logo_line()
322 fb_set_logo(info, logo, logo_new, fb_logo.depth); in fb_show_logo_line()
420 int depth = fb_get_color_depth(&info->var, &info->fix); in fb_prepare_logo() local
431 depth = info->var.blue.length; in fb_prepare_logo()
432 if (info->var.red.length < depth) in fb_prepare_logo()
433 depth = info->var.red.length; in fb_prepare_logo()
[all …]
/drivers/infiniband/hw/efa/
Defa_com.c128 u16 size = aq->depth * sizeof(*sq->entries); in efa_com_admin_init_sq()
152 EFA_SET(&aq_caps, EFA_REGS_AQ_CAPS_AQ_DEPTH, aq->depth); in efa_com_admin_init_sq()
165 u16 size = aq->depth * sizeof(*cq->entries); in efa_com_admin_init_cq()
186 EFA_SET(&acq_caps, EFA_REGS_ACQ_CAPS_ACQ_DEPTH, aq->depth); in efa_com_admin_init_cq()
217 aenq->depth = EFA_ASYNC_QUEUE_DEPTH; in efa_com_admin_init_aenq()
227 EFA_SET(&aenq_caps, EFA_REGS_AENQ_CAPS_AENQ_DEPTH, aenq->depth); in efa_com_admin_init_aenq()
270 u16 ctx_id = cmd_id & (aq->depth - 1); in efa_com_put_comp_ctx()
280 u16 ctx_id = cmd_id & (aq->depth - 1); in efa_com_get_comp_ctx()
312 queue_size_mask = aq->depth - 1; in __efa_com_submit_admin_cmd()
357 size_t pool_size = aq->depth * sizeof(*aq->comp_ctx_pool); in efa_com_init_comp_ctxt()
[all …]
Defa_com.h65 u16 depth; member
93 u16 depth; member
124 u16 depth; member
132 u16 depth; member
159 efa_eqe_handler cb, u16 depth, u8 msix_vec);
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_mutex.c17 u16 depth; member
151 mutex->depth = 0; in nfp_cpp_mutex_alloc()
199 mutex->depth, in nfp_cpp_mutex_lock()
228 if (mutex->depth > 1) { in nfp_cpp_mutex_unlock()
229 mutex->depth--; in nfp_cpp_mutex_unlock()
252 mutex->depth = 0; in nfp_cpp_mutex_unlock()
271 if (mutex->depth > 0) { in nfp_cpp_mutex_trylock()
272 if (mutex->depth == NFP_MUTEX_DEPTH_MAX) in nfp_cpp_mutex_trylock()
274 mutex->depth++; in nfp_cpp_mutex_trylock()
323 mutex->depth = 1; in nfp_cpp_mutex_trylock()
/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-video.c48 .depth = { 16 },
57 .depth = { 32 },
66 .depth = { 8, 16 },
77 .depth = { 8, 16 },
88 .depth = { 8, 16 },
99 .depth = { 8, 16 },
110 .depth = { 8, 8, 8 },
125 .depth = { 16 },
136 .depth = { 24 },
147 .depth = { 24 },
[all …]
/drivers/infiniband/hw/erdma/
Derdma_cmdq.c94 sq->depth = cmdq->max_outstandings * sq->wqebb_cnt; in erdma_cmdq_sq_init()
96 sq->qbuf = dma_alloc_coherent(&dev->pdev->dev, sq->depth << SQEBB_SHIFT, in erdma_cmdq_sq_init()
111 erdma_reg_write32(dev, ERDMA_REGS_CMDQ_DEPTH_REG, sq->depth); in erdma_cmdq_sq_init()
117 dma_free_coherent(&dev->pdev->dev, sq->depth << SQEBB_SHIFT, in erdma_cmdq_sq_init()
128 cq->depth = cmdq->sq.depth; in erdma_cmdq_cq_init()
129 cq->qbuf = dma_alloc_coherent(&dev->pdev->dev, cq->depth << CQE_SHIFT, in erdma_cmdq_cq_init()
151 dma_free_coherent(&dev->pdev->dev, cq->depth << CQE_SHIFT, cq->qbuf, in erdma_cmdq_cq_init()
173 erdma_reg_write32(dev, ERDMA_REGS_CMDQ_EQ_DEPTH_REG, eq->depth); in erdma_cmdq_eq_init()
210 dma_free_coherent(&dev->pdev->dev, cmdq->cq.depth << CQE_SHIFT, in erdma_cmdq_init()
216 dma_free_coherent(&dev->pdev->dev, cmdq->sq.depth << SQEBB_SHIFT, in erdma_cmdq_init()
[all …]
Derdma_eq.c24 u64 *eqe = get_queue_entry(eq->qbuf, eq->ci, eq->depth, EQE_SHIFT); in get_next_valid_eqe()
27 return owner ^ !!(eq->ci & eq->depth) ? eqe : NULL; in get_next_valid_eqe()
83 int erdma_eq_common_init(struct erdma_dev *dev, struct erdma_eq *eq, u32 depth) in erdma_eq_common_init() argument
85 u32 buf_size = depth << EQE_SHIFT; in erdma_eq_common_init()
100 eq->depth = depth; in erdma_eq_common_init()
114 dma_free_coherent(&dev->pdev->dev, eq->depth << EQE_SHIFT, eq->qbuf, in erdma_eq_destroy()
133 erdma_reg_write32(dev, ERDMA_REGS_AEQ_DEPTH_REG, eq->depth); in erdma_aeq_init()
231 req.depth = ilog2(eq->depth); in create_eq_cmd()
/drivers/gpu/drm/vmwgfx/
Dvmw_surface_cache.h69 .depth = max_t(u32, base_level.depth >> mip_level, 1) in vmw_surface_get_mip_size()
84 block_size->depth = __KERNEL_DIV_ROUND_UP(pixel_size->depth, in vmw_surface_get_size_in_blocks()
85 desc->blockSize.depth); in vmw_surface_get_size_in_blocks()
132 total_size = clamped_umul32(total_size, image_blocks.depth); in vmw_surface_get_image_buffer_size()
141 total_size = clamped_umul32(slice_size, image_blocks.depth); in vmw_surface_get_image_buffer_size()
204 const u32 bd = desc->blockSize.depth; in vmw_surface_get_pixel_offset()
462 loc->z *= desc->blockSize.depth; in vmw_surface_get_loc()
497 loc->z += desc->blockSize.depth; in vmw_surface_inc_loc()
498 if (loc->z > size->depth) in vmw_surface_inc_loc()
499 loc->z = size->depth; in vmw_surface_inc_loc()
[all …]
/drivers/video/fbdev/i810/
Di810_accel.c304 par->depth == 4) { in i810fb_fillrect()
309 if (par->depth == 1) in i810fb_fillrect()
316 dx = rect->dx * par->depth; in i810fb_fillrect()
317 width = rect->width * par->depth; in i810fb_fillrect()
332 par->depth == 4) { in i810fb_copyarea()
337 dx = region->dx * par->depth; in i810fb_copyarea()
338 sx = region->sx * par->depth; in i810fb_copyarea()
339 width = region->width * par->depth; in i810fb_copyarea()
373 par->depth == 4 || image->depth != 1) { in i810fb_imageblit()
391 (image->dx * par->depth); in i810fb_imageblit()
[all …]
/drivers/thunderbolt/
Dicm.c108 int (*get_route)(struct tb *tb, u8 link, u8 depth, u64 *route);
188 static inline u8 phy_port_from_route(u64 route, u8 depth) in phy_port_from_route() argument
192 link = depth ? route >> ((depth - 1) * 8) : route; in phy_port_from_route()
208 int depth = tb_route_length(route); in get_parent_route() local
209 return depth ? route & ~(0xffULL << (depth - 1) * TB_ROUTE_SHIFT) : 0; in get_parent_route()
398 static int icm_fr_get_route(struct tb *tb, u8 link, u8 depth, u64 *route) in icm_fr_get_route() argument
425 for (i = 1; i < depth; i++) { in icm_fr_get_route()
570 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
648 u8 connection_key, u8 link, u8 depth, bool boot) in update_switch() argument
663 sw->depth = depth; in update_switch()
[all …]
/drivers/video/fbdev/via/
Dvia_modesetting.c160 void via_set_primary_color_depth(u8 depth) in via_set_primary_color_depth() argument
164 DEBUG_MSG(KERN_DEBUG "via_set_primary_color_depth(%d)\n", depth); in via_set_primary_color_depth()
165 switch (depth) { in via_set_primary_color_depth()
183 "Unsupported depth: %d\n", depth); in via_set_primary_color_depth()
190 void via_set_secondary_color_depth(u8 depth) in via_set_secondary_color_depth() argument
194 DEBUG_MSG(KERN_DEBUG "via_set_secondary_color_depth(%d)\n", depth); in via_set_secondary_color_depth()
195 switch (depth) { in via_set_secondary_color_depth()
210 "Unsupported depth: %d\n", depth); in via_set_secondary_color_depth()
/drivers/media/platform/samsung/exynos4-is/
Dfimc-core.c39 .depth = { 16 },
46 .depth = { 32 },
53 .depth = { 32 },
60 .depth = { 16 },
67 .depth = { 16 },
77 .depth = { 16 },
85 .depth = { 16 },
93 .depth = { 16 },
101 .depth = { 16 },
109 .depth = { 16 },
[all …]
/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.h76 #define BNXT_QPLIB_CMDQE_BYTES(depth) ((depth) * BNXT_QPLIB_CMDQE_UNITS) argument
78 static inline u32 bnxt_qplib_cmdqe_npages(u32 depth) in bnxt_qplib_cmdqe_npages() argument
82 npages = BNXT_QPLIB_CMDQE_BYTES(depth) / PAGE_SIZE; in bnxt_qplib_cmdqe_npages()
83 if (BNXT_QPLIB_CMDQE_BYTES(depth) % PAGE_SIZE) in bnxt_qplib_cmdqe_npages()
88 static inline u32 bnxt_qplib_cmdqe_page_size(u32 depth) in bnxt_qplib_cmdqe_page_size() argument
90 return (bnxt_qplib_cmdqe_npages(depth) * PAGE_SIZE); in bnxt_qplib_cmdqe_page_size()
/drivers/char/hw_random/
Dhistb-rng.c42 static void histb_rng_init(void __iomem *base, unsigned int depth) in histb_rng_init() argument
52 val |= min(depth, 0xffu) << 8; in histb_rng_init()
101 unsigned int depth; in depth_store() local
103 if (kstrtouint(buf, 0, &depth)) in depth_store()
106 histb_rng_init(base, depth); in depth_store()
110 static DEVICE_ATTR_RW(depth);
/drivers/video/logo/
Dlogo.c44 const struct linux_logo * __ref fb_find_logo(int depth) in fb_find_logo() argument
51 if (depth >= 1) { in fb_find_logo()
62 if (depth >= 4) { in fb_find_logo()
73 if (depth >= 8) { in fb_find_logo()
/drivers/media/test-drivers/
Dvim2m.c86 int depth; member
94 .depth = 16,
98 .depth = 16,
102 .depth = 24,
106 .depth = 24,
110 .depth = 16,
114 .depth = 8,
118 .depth = 8,
122 .depth = 8,
126 .depth = 8,
[all …]
/drivers/gpu/drm/nouveau/dispnv50/
Dheadc57d.c48 u8 depth; in headc57d_or() local
54 switch (asyh->or.depth) { in headc57d_or()
55 case 6: depth = 5; break; in headc57d_or()
56 case 5: depth = 4; break; in headc57d_or()
57 case 2: depth = 1; break; in headc57d_or()
58 case 0: depth = 4; break; in headc57d_or()
60 depth = asyh->or.depth; in headc57d_or()
72 NVVAL(NVC57D, HEAD_SET_CONTROL_OUTPUT_RESOURCE, PIXEL_DEPTH, depth) | in headc57d_or()
/drivers/staging/media/atomisp/pci/
Datomisp_ioctl.c158 .depth = 12,
165 .depth = 12,
172 .depth = 16,
179 .depth = 24,
185 .depth = 12,
192 .depth = 12,
199 .depth = 16,
206 .depth = 16,
212 .depth = 16,
218 .depth = 16,
[all …]
/drivers/media/platform/samsung/exynos-gsc/
Dgsc-core.c30 .depth = { 16 },
36 .depth = { 32 },
42 .depth = { 16 },
51 .depth = { 16 },
60 .depth = { 16 },
69 .depth = { 16 },
78 .depth = { 32 },
86 .depth = { 16 },
94 .depth = { 16 },
102 .depth = { 8, 8 },
[all …]

12345678910>>...16