Home
last modified time | relevance | path

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

12345678910>>...32

/Linux-v5.4/drivers/gpu/drm/
Ddrm_fourcc.c46 uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth) in drm_mode_legacy_fb_format() argument
52 if (depth == 8) in drm_mode_legacy_fb_format()
57 switch (depth) { in drm_mode_legacy_fb_format()
70 if (depth == 24) in drm_mode_legacy_fb_format()
75 switch (depth) { in drm_mode_legacy_fb_format()
110 uint32_t bpp, uint32_t depth) in drm_driver_legacy_fb_format() argument
112 uint32_t fmt = drm_mode_legacy_fb_format(bpp, depth); in drm_driver_legacy_fb_format()
160 …{ .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
161 …{ .format = DRM_FORMAT_RGB332, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info()
162 …{ .format = DRM_FORMAT_BGR233, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info()
[all …]
/Linux-v5.4/lib/
Dsbitmap.c44 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, in sbitmap_init_node() argument
58 if (depth >= 4) { in sbitmap_init_node()
59 while ((4U << shift) > depth) in sbitmap_init_node()
68 sb->depth = depth; in sbitmap_init_node()
69 sb->map_nr = DIV_ROUND_UP(sb->depth, bits_per_word); in sbitmap_init_node()
71 if (depth == 0) { in sbitmap_init_node()
81 sb->map[i].depth = min(depth, bits_per_word); in sbitmap_init_node()
82 depth -= sb->map[i].depth; in sbitmap_init_node()
89 void sbitmap_resize(struct sbitmap *sb, unsigned int depth) in sbitmap_resize() argument
97 sb->depth = depth; in sbitmap_resize()
[all …]
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dopal-tracepoints.c51 unsigned int *depth; in __trace_opal_entry() local
55 depth = this_cpu_ptr(&opal_trace_depth); in __trace_opal_entry()
57 if (*depth) in __trace_opal_entry()
60 (*depth)++; in __trace_opal_entry()
63 (*depth)--; in __trace_opal_entry()
72 unsigned int *depth; in __trace_opal_exit() local
76 depth = this_cpu_ptr(&opal_trace_depth); in __trace_opal_exit()
78 if (*depth) in __trace_opal_exit()
81 (*depth)++; in __trace_opal_exit()
84 (*depth)--; in __trace_opal_exit()
/Linux-v5.4/fs/ext4/
Dextents.c175 int depth = path->p_depth; in ext4_ext_find_goal() local
195 ex = path[depth].p_ext; in ext4_ext_find_goal()
208 if (path[depth].p_bh) in ext4_ext_find_goal()
209 return path[depth].p_bh->b_blocknr; in ext4_ext_find_goal()
348 ext4_ext_max_entries(struct inode *inode, int depth) in ext4_ext_max_entries() argument
352 if (depth == ext_depth(inode)) { in ext4_ext_max_entries()
353 if (depth == 0) in ext4_ext_max_entries()
358 if (depth == 0) in ext4_ext_max_entries()
393 int depth) in ext4_valid_extent_entries() argument
401 if (depth == 0) { in ext4_valid_extent_entries()
[all …]
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.h73 #define BNXT_QPLIB_CMDQE_BYTES(depth) ((depth) * BNXT_QPLIB_CMDQE_UNITS) argument
75 static inline u32 bnxt_qplib_cmdqe_npages(u32 depth) in bnxt_qplib_cmdqe_npages() argument
79 npages = BNXT_QPLIB_CMDQE_BYTES(depth) / PAGE_SIZE; in bnxt_qplib_cmdqe_npages()
80 if (BNXT_QPLIB_CMDQE_BYTES(depth) % PAGE_SIZE) in bnxt_qplib_cmdqe_npages()
85 static inline u32 bnxt_qplib_cmdqe_page_size(u32 depth) in bnxt_qplib_cmdqe_page_size() argument
87 return (bnxt_qplib_cmdqe_npages(depth) * PAGE_SIZE); in bnxt_qplib_cmdqe_page_size()
90 static inline u32 bnxt_qplib_cmdqe_cnt_per_pg(u32 depth) in bnxt_qplib_cmdqe_cnt_per_pg() argument
92 return (bnxt_qplib_cmdqe_page_size(depth) / in bnxt_qplib_cmdqe_cnt_per_pg()
103 #define MAX_CMDQ_IDX(depth) ((depth) - 1) argument
105 static inline u32 bnxt_qplib_max_cmdq_idx_per_pg(u32 depth) in bnxt_qplib_max_cmdq_idx_per_pg() argument
[all …]
/Linux-v5.4/arch/sh/oprofile/
Dbacktrace.c30 unsigned int *depth = data; in backtrace_address() local
32 if ((*depth)--) in backtrace_address()
67 void sh_backtrace(struct pt_regs * const regs, unsigned int depth) in sh_backtrace() argument
74 if (depth > backtrace_limit) in sh_backtrace()
75 depth = backtrace_limit; in sh_backtrace()
79 if (depth) in sh_backtrace()
81 &backtrace_ops, &depth); in sh_backtrace()
85 while (depth-- && (stackaddr != NULL)) in sh_backtrace()
/Linux-v5.4/arch/x86/oprofile/
Dbacktrace.c47 x86_backtrace_32(struct pt_regs * const regs, unsigned int depth) in x86_backtrace_32() argument
56 while (depth-- && head) in x86_backtrace_32()
64 x86_backtrace_32(struct pt_regs * const regs, unsigned int depth) in x86_backtrace_32() argument
91 x86_backtrace(struct pt_regs * const regs, unsigned int depth) in x86_backtrace() argument
99 if (!depth) in x86_backtrace()
104 if (!--depth) in x86_backtrace()
115 if (!--depth) in x86_backtrace()
122 if (x86_backtrace_32(regs, depth)) in x86_backtrace()
125 while (depth-- && head) in x86_backtrace()
/Linux-v5.4/include/linux/
Dsbitmap.h24 unsigned long depth; member
52 unsigned int depth; member
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
176 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
251 if (start >= sb->depth) in __sbitmap_for_each_set()
256 while (scanned < sb->depth) { in __sbitmap_for_each_set()
258 unsigned int depth = min_t(unsigned int, in __sbitmap_for_each_set() local
259 sb->map[index].depth - nr, in __sbitmap_for_each_set()
260 sb->depth - scanned); in __sbitmap_for_each_set()
262 scanned += depth; in __sbitmap_for_each_set()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/scripts/dtc/libfdt/
Dfdt.c197 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
216 if (depth) in fdt_next_node()
217 (*depth)++; in fdt_next_node()
221 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
227 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
239 int depth = 0; in fdt_first_subnode() local
241 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
242 if (offset < 0 || depth != 1) in fdt_first_subnode()
250 int depth = 1; in fdt_next_subnode() local
257 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
[all …]
Dfdt_ro.c213 int depth; in fdt_subnode_offset_namelen() local
217 for (depth = 0; in fdt_subnode_offset_namelen()
218 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
219 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
220 if ((depth == 1) in fdt_subnode_offset_namelen()
224 if (depth < 0) in fdt_subnode_offset_namelen()
523 int offset, depth, namelen; in fdt_get_path() local
531 for (offset = 0, depth = 0; in fdt_get_path()
533 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
534 while (pdepth > depth) { in fdt_get_path()
[all …]
/Linux-v5.4/arch/arm/oprofile/
Dcommon.c64 unsigned int *depth = d; in report_trace() local
66 if (*depth) { in report_trace()
68 (*depth)--; in report_trace()
71 return *depth == 0; in report_trace()
106 static void arm_backtrace(struct pt_regs * const regs, unsigned int depth) in arm_backtrace() argument
113 walk_stackframe(&frame, report_trace, &depth); in arm_backtrace()
117 while (depth-- && tail && !((unsigned long) tail & 3)) in arm_backtrace()
/Linux-v5.4/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 = 16,
67 .depth = 24,
72 .depth = 16,
77 .depth = 16,
[all …]
/Linux-v5.4/arch/s390/kernel/
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-v5.4/scripts/dtc/
Dfdtdump.c60 int depth, sz, shift; in dump_blob() local
64 depth = 0; in dump_blob()
110 printf("%*s%s {\n", depth * shift, "", s); in dump_blob()
112 depth++; in dump_blob()
117 depth--; in dump_blob()
119 printf("%*s};\n", depth * shift, ""); in dump_blob()
124 printf("%*s// [NOP]\n", depth * shift, ""); in dump_blob()
129 fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag); in dump_blob()
140 printf("%*s%s", depth * shift, "", s); in dump_blob()
/Linux-v5.4/Documentation/devicetree/bindings/net/can/
Dxilinx_can.txt19 - tx-fifo-depth : Can Tx fifo depth (Zynq, Axi CAN).
20 - rx-fifo-depth : Can Rx fifo depth (Zynq, Axi CAN, CAN FD in
37 tx-fifo-depth = <0x40>;
38 rx-fifo-depth = <0x40>;
48 tx-fifo-depth = <0x40>;
49 rx-fifo-depth = <0x40>;
60 rx-fifo-depth = <0x20>;
/Linux-v5.4/fs/reiserfs/
Dlock.c55 int depth; in reiserfs_write_unlock_nested() local
61 depth = sb_i->lock_depth; in reiserfs_write_unlock_nested()
67 return depth; in reiserfs_write_unlock_nested()
70 void reiserfs_write_lock_nested(struct super_block *s, int depth) in reiserfs_write_lock_nested() argument
75 if (depth == -1) in reiserfs_write_lock_nested()
80 sb_i->lock_depth = depth; in reiserfs_write_lock_nested()
/Linux-v5.4/sound/isa/gus/
Dgus_volume.c123 long depth;
138 depth = (((int) (*(vi2 + 1) - *vi1) * (pcents - *vi1) / (*vi2 - *vi1)) + v1) * fc_register >> 14;
139 if (depth)
140 depth++;
141 if (depth > 255)
142 depth = 255;
143 return cents < 0 ? -(short) depth : (short) depth;
/Linux-v5.4/arch/mips/oprofile/
Dbacktrace.c134 unsigned int depth) in do_user_backtrace() argument
139 while (depth-- && !unwind_user_frame(frame, max_instr_check)) { in do_user_backtrace()
149 unsigned int depth) { } in do_kernel_backtrace() argument
153 unsigned int depth) in do_kernel_backtrace() argument
155 while (depth-- && frame->pc) { in do_kernel_backtrace()
165 void notrace op_mips_backtrace(struct pt_regs *const regs, unsigned int depth) in op_mips_backtrace() argument
174 do_user_backtrace(low_addr, &frame, depth); in op_mips_backtrace()
176 do_kernel_backtrace(low_addr, &frame, depth); in op_mips_backtrace()
/Linux-v5.4/kernel/trace/
Dtrace_functions_graph.c24 int depth; member
196 .depth = 0, in __trace_graph_function()
200 .depth = 0, in __trace_graph_function()
653 cpu_data->depth = call->depth - 1; in print_graph_entry_leaf()
656 if (call->depth < FTRACE_RETFUNC_DEPTH && in print_graph_entry_leaf()
657 !WARN_ON_ONCE(call->depth < 0)) in print_graph_entry_leaf()
658 cpu_data->enter_funcs[call->depth] = 0; in print_graph_entry_leaf()
665 for (i = 0; i < call->depth * TRACE_GRAPH_INDENT; i++) in print_graph_entry_leaf()
691 cpu_data->depth = call->depth; in print_graph_entry_nested()
694 if (call->depth < FTRACE_RETFUNC_DEPTH && in print_graph_entry_nested()
[all …]
/Linux-v5.4/fs/quota/
Dquota_tree.c26 static int __get_index(struct qtree_mem_dqinfo *info, qid_t id, int depth) in __get_index() argument
30 depth = info->dqi_qtree_depth - depth - 1; in __get_index()
31 while (depth--) in __get_index()
36 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index() argument
40 return __get_index(info, id, depth); in get_index()
299 uint *treeblk, int depth) in do_insert_tree() argument
324 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree()
327 if (depth == info->dqi_qtree_depth - 1) { in do_insert_tree()
333 dquot->dq_id, depth)])); in do_insert_tree()
340 ret = do_insert_tree(info, dquot, &newblk, depth+1); in do_insert_tree()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/drivers/of/
Dfdt.c293 int offset = 0, depth = 0, initial_depth = 0; in unflatten_dt_nodes() local
310 depth = initial_depth = 1; in unflatten_dt_nodes()
313 nps[depth] = dad; in unflatten_dt_nodes()
316 offset >= 0 && depth >= initial_depth; in unflatten_dt_nodes()
317 offset = fdt_next_node(blob, offset, &depth)) { in unflatten_dt_nodes()
318 if (WARN_ON_ONCE(depth >= FDT_MAX_DEPTH)) in unflatten_dt_nodes()
325 if (!populate_node(blob, offset, &mem, nps[depth], in unflatten_dt_nodes()
326 &nps[depth+1], dryrun)) in unflatten_dt_nodes()
330 *nodepp = nps[depth+1]; in unflatten_dt_nodes()
332 root = nps[depth+1]; in unflatten_dt_nodes()
[all …]
/Linux-v5.4/kernel/locking/
Dlockdep.c698 int i, depth = READ_ONCE(p->lockdep_depth); in lockdep_print_held_locks() local
700 if (!depth) in lockdep_print_held_locks()
703 printk("%d lock%s held by %s/%d:\n", depth, in lockdep_print_held_locks()
704 depth > 1 ? "s" : "", p->comm, task_pid_nr(p)); in lockdep_print_held_locks()
711 for (i = 0; i < depth; i++) { in lockdep_print_held_locks()
950 for (i = chain->base; i < chain->base + chain->depth; i++) in check_lock_chain_key()
1433 int depth = 0; in get_lock_depth() local
1438 depth++; in get_lock_depth()
1440 return depth; in get_lock_depth()
1552 print_circular_bug_entry(struct lock_list *target, int depth) in print_circular_bug_entry() argument
[all …]
/Linux-v5.4/drivers/gpu/drm/r128/
Dr128_ioc32.c112 drm_r128_depth_t depth; in compat_r128_depth() local
117 depth.func = depth32.func; in compat_r128_depth()
118 depth.n = depth32.n; in compat_r128_depth()
119 depth.x = compat_ptr(depth32.x); in compat_r128_depth()
120 depth.y = compat_ptr(depth32.y); in compat_r128_depth()
121 depth.buffer = compat_ptr(depth32.buffer); in compat_r128_depth()
122 depth.mask = compat_ptr(depth32.mask); in compat_r128_depth()
124 return drm_ioctl_kernel(file, r128_cce_depth, &depth, DRM_AUTH); in compat_r128_depth()

12345678910>>...32