Home
last modified time | relevance | path

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

12345678910>>...44

/linux/drivers/gpu/drm/
H A 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 …]
/linux/drivers/media/platform/raspberrypi/rp1-cfe/
H A Dcfe-fmts.h18 .depth = 16,
24 .depth = 16,
30 .depth = 16,
36 .depth = 16,
43 .depth = 16,
48 .depth = 16,
54 .depth = 16,
60 .depth = 16,
66 .depth = 24,
72 .depth = 24,
[all …]
/linux/lib/
H A Dsbitmap.c14 unsigned depth = sb->depth; in init_alloc_hint() local
20 if (depth && !sb->round_robin) { in init_alloc_hint()
24 *per_cpu_ptr(sb->alloc_hint, i) = get_random_u32_below(depth); in init_alloc_hint()
30 unsigned int depth) in update_alloc_hint_before_get() argument
35 if (unlikely(hint >= depth)) { in update_alloc_hint_before_get()
36 hint = depth ? get_random_u32_below(depth) : 0; in update_alloc_hint_before_get()
44 unsigned int depth, in update_alloc_hint_after_get() argument
54 if (hint >= depth - 1) in update_alloc_hint_after_get()
64 unsigned int depth, unsigned int alloc_hint, bool wrap) in sbitmap_deferred_clear() argument
71 if (depth == 0) in sbitmap_deferred_clear()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A 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 …]
/linux/fs/quota/
H A Dquota_tree.c32 static int __get_index(struct qtree_mem_dqinfo *info, qid_t id, int depth) in __get_index() argument
36 depth = info->dqi_qtree_depth - depth - 1; in __get_index()
37 while (depth--) in __get_index()
42 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index() argument
46 return __get_index(info, id, depth); in get_index()
336 uint *blks, int depth) in do_insert_tree() argument
346 if (!blks[depth]) { in do_insert_tree()
350 for (i = 0; i < depth; i++) in do_insert_tree()
358 blks[depth] = ret; in do_insert_tree()
362 ret = read_blk(info, blks[depth], buf); in do_insert_tree()
[all …]
/linux/fs/ext4/
H A Dextents.c113 int depth, i; in ext4_ext_drop_refs() local
117 depth = path->p_depth; in ext4_ext_drop_refs()
118 for (i = 0; i <= depth; i++, path++) in ext4_ext_drop_refs()
220 int depth = path->p_depth; in ext4_ext_find_goal() local
240 ex = path[depth].p_ext; in ext4_ext_find_goal()
253 if (path[depth].p_bh) in ext4_ext_find_goal()
254 return path[depth].p_bh->b_blocknr; in ext4_ext_find_goal()
345 ext4_ext_max_entries(struct inode *inode, int depth) in ext4_ext_max_entries() argument
349 if (depth == ext_depth(inode)) { in ext4_ext_max_entries()
350 if (depth == 0) in ext4_ext_max_entries()
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dopal-tracepoints.c50 unsigned int *depth; in __trace_opal_entry() local
54 depth = this_cpu_ptr(&opal_trace_depth); in __trace_opal_entry()
56 if (*depth) in __trace_opal_entry()
59 (*depth)++; in __trace_opal_entry()
62 (*depth)--; in __trace_opal_entry()
71 unsigned int *depth; in __trace_opal_exit() local
75 depth = this_cpu_ptr(&opal_trace_depth); in __trace_opal_exit()
77 if (*depth) in __trace_opal_exit()
80 (*depth)++; in __trace_opal_exit()
83 (*depth)--; in __trace_opal_exit()
/linux/drivers/media/platform/mediatek/mdp3/
H A 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 …]
/linux/include/linux/
H A Dsbitmap.h56 unsigned int depth; member
170 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
177 return sb->depth - (index << sb->shift); in __map_depth()
200 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
243 if (start >= sb->depth) in __sbitmap_for_each_set()
248 while (scanned < sb->depth) { in __sbitmap_for_each_set()
250 unsigned int depth = min_t(unsigned int, in __sbitmap_for_each_set() local
252 sb->depth - scanned); in __sbitmap_for_each_set()
254 scanned += depth; in __sbitmap_for_each_set()
264 depth += nr; in __sbitmap_for_each_set()
[all …]
/linux/kernel/irq/
H A Dirq_test.c76 KUNIT_EXPECT_EQ(test, desc->depth, 0); in irq_disable_depth_test()
79 KUNIT_EXPECT_EQ(test, desc->depth, 1); in irq_disable_depth_test()
82 KUNIT_EXPECT_EQ(test, desc->depth, 0); in irq_disable_depth_test()
100 KUNIT_EXPECT_EQ(test, desc->depth, 0); in irq_free_disabled_test()
103 KUNIT_EXPECT_EQ(test, desc->depth, 1); in irq_free_disabled_test()
106 KUNIT_EXPECT_GE(test, desc->depth, 1); in irq_free_disabled_test()
110 KUNIT_EXPECT_EQ(test, desc->depth, 0); in irq_free_disabled_test()
143 KUNIT_EXPECT_EQ(test, desc->depth, 0); in irq_shutdown_depth_test()
146 KUNIT_EXPECT_EQ(test, desc->depth, 1); in irq_shutdown_depth_test()
159 KUNIT_EXPECT_EQ(test, desc->depth, 1); in irq_shutdown_depth_test()
[all …]
/linux/drivers/iio/adc/
H A 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 …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A 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 …]
/linux/drivers/media/platform/rockchip/rkcif/
H A Drkcif-capture-mipi.c45 .depth = 16,
55 .depth = 16,
65 .depth = 16,
75 .depth = 16,
86 .depth = 24,
96 .depth = 24,
107 .depth = 8,
117 .depth = 8,
127 .depth = 8,
137 .depth = 8,
[all …]
/linux/scripts/dtc/libfdt/
H A Dfdt.c247 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
266 if (depth) in fdt_next_node()
267 (*depth)++; in fdt_next_node()
271 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
277 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
289 int depth = 0; in fdt_first_subnode() local
291 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
292 if (offset < 0 || depth != 1) in fdt_first_subnode()
300 int depth = 1; in fdt_next_subnode() local
307 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
[all …]
/linux/arch/s390/kernel/
H A Dtrace.c20 unsigned int *depth; in trace_s390_diagnose_norecursion() local
26 depth = this_cpu_ptr(&diagnose_trace_depth); in trace_s390_diagnose_norecursion()
27 if (*depth == 0) { in trace_s390_diagnose_norecursion()
28 (*depth)++; in trace_s390_diagnose_norecursion()
30 (*depth)--; in trace_s390_diagnose_norecursion()
/linux/drivers/infiniband/hw/ionic/
H A Dionic_queue.c9 int depth, size_t stride) in ionic_queue_init() argument
11 if (depth < 0 || depth > 0xffff) in ionic_queue_init()
17 if (depth == 0) in ionic_queue_init()
18 depth = 1; in ionic_queue_init()
20 q->depth_log2 = order_base_2(depth + 1); in ionic_queue_init()
/linux/drivers/video/fbdev/core/
H A 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 …]
/linux/kernel/locking/
H A Dlockdep.c788 int i, depth = READ_ONCE(p->lockdep_depth); in lockdep_print_held_locks() local
790 if (!depth) in lockdep_print_held_locks()
793 printk("%d lock%s held by %s/%d:\n", depth, in lockdep_print_held_locks()
794 str_plural(depth), p->comm, task_pid_nr(p)); in lockdep_print_held_locks()
801 for (i = 0; i < depth; i++) { in lockdep_print_held_locks()
1054 for (i = chain->base; i < chain->base + chain->depth; i++) in check_lock_chain_key()
1551 int depth = 0; in get_lock_depth() local
1556 depth++; in get_lock_depth()
1558 return depth; in get_lock_depth()
1876 print_circular_bug_entry(struct lock_list *target, int depth) in print_circular_bug_entry() argument
[all …]
/linux/sound/isa/gus/
H A Dgus_volume.c124 long depth;
140 depth = (((int) (*(vi2 + 1) - *vi1) * (pcents - *vi1) / (*vi2 - *vi1)) + v1) * fc_register >> 14;
141 if (depth)
142 depth++;
143 if (depth > 255)
144 depth = 255;
145 return cents < 0 ? -(short) depth : (short) depth;
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A 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()
/linux/drivers/media/platform/synopsys/
H A Ddw-mipi-csi2rx.c53 u8 depth; member
92 .depth = 16,
97 .depth = 16,
102 .depth = 16,
107 .depth = 16,
113 .depth = 24,
118 .depth = 24,
124 .depth = 8,
129 .depth = 8,
134 .depth = 8,
[all …]
/linux/drivers/infiniband/hw/efa/
H A Defa_com.c132 u16 size = aq->depth * sizeof(*sq->entries); in efa_com_admin_init_sq()
156 EFA_SET(&aq_caps, EFA_REGS_AQ_CAPS_AQ_DEPTH, aq->depth); in efa_com_admin_init_sq()
169 u16 size = aq->depth * sizeof(*cq->entries); in efa_com_admin_init_cq()
190 EFA_SET(&acq_caps, EFA_REGS_ACQ_CAPS_ACQ_DEPTH, aq->depth); in efa_com_admin_init_cq()
221 aenq->depth = EFA_ASYNC_QUEUE_DEPTH; in efa_com_admin_init_aenq()
231 EFA_SET(&aenq_caps, EFA_REGS_AENQ_CAPS_AENQ_DEPTH, aenq->depth); in efa_com_admin_init_aenq()
308 u16 ctx_id = cmd_id & (aq->depth - 1); in efa_com_get_comp_ctx_by_cmd_id()
326 queue_size_mask = aq->depth - 1; in __efa_com_submit_admin_cmd()
332 cmd_id |= aq->sq.pc << ilog2(aq->depth); in __efa_com_submit_admin_cmd()
363 size_t pool_size = aq->depth * sizeof(*aq->comp_ctx_pool); in efa_com_init_comp_ctxt()
[all …]
/linux/drivers/media/platform/nxp/imx8-isi/
H A 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 …]
/linux/arch/xtensa/kernel/
H A Dstacktrace.c28 void xtensa_backtrace_user(struct pt_regs *regs, unsigned int depth, in xtensa_backtrace_user() argument
40 if (!depth--) in xtensa_backtrace_user()
71 for (index = WSBITS - 1; (index > 0) && depth; depth--, index--) in xtensa_backtrace_user()
92 if (!depth) in xtensa_backtrace_user()
97 while (a0 != 0 && depth--) { in xtensa_backtrace_user()
117 void xtensa_backtrace_kernel(struct pt_regs *regs, unsigned int depth, in xtensa_backtrace_kernel() argument
137 while (a1 > sp_start && a1 < sp_end && depth--) { in xtensa_backtrace_kernel()
151 xtensa_backtrace_user(regs, depth, ufn, data); in xtensa_backtrace_kernel()
/linux/drivers/infiniband/hw/erdma/
H A 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()
209 dma_free_coherent(&dev->pdev->dev, cmdq->cq.depth << CQE_SHIFT, in erdma_cmdq_init()
215 dma_free_coherent(&dev->pdev->dev, cmdq->sq.depth << SQEBB_SHIFT, in erdma_cmdq_init()
[all …]

12345678910>>...44