Home
last modified time | relevance | path

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

12345678910>>...35

/Linux-v5.15/drivers/gpu/drm/
Ddrm_fourcc.c41 uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth) in drm_mode_legacy_fb_format() argument
47 if (depth == 8) in drm_mode_legacy_fb_format()
52 switch (depth) { in drm_mode_legacy_fb_format()
65 if (depth == 24) in drm_mode_legacy_fb_format()
70 switch (depth) { in drm_mode_legacy_fb_format()
105 uint32_t bpp, uint32_t depth) in drm_driver_legacy_fb_format() argument
107 uint32_t fmt = drm_mode_legacy_fb_format(bpp, depth); in drm_driver_legacy_fb_format()
135 …{ .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
136 …{ .format = DRM_FORMAT_RGB332, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info()
137 …{ .format = DRM_FORMAT_BGR233, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub… in __drm_format_info()
[all …]
/Linux-v5.15/lib/
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) = prandom_u32() % 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 ? prandom_u32() % 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()
83 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, in sbitmap_init_node() argument
91 shift = sbitmap_calculate_shift(depth); in sbitmap_init_node()
[all …]
/Linux-v5.15/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.15/fs/ext4/
Dextents.c183 int depth = path->p_depth; in ext4_ext_find_goal() local
203 ex = path[depth].p_ext; in ext4_ext_find_goal()
216 if (path[depth].p_bh) in ext4_ext_find_goal()
217 return path[depth].p_bh->b_blocknr; in ext4_ext_find_goal()
312 ext4_ext_max_entries(struct inode *inode, int depth) in ext4_ext_max_entries() argument
316 if (depth == ext_depth(inode)) { in ext4_ext_max_entries()
317 if (depth == 0) in ext4_ext_max_entries()
322 if (depth == 0) in ext4_ext_max_entries()
357 ext4_fsblk_t *pblk, int depth) in ext4_valid_extent_entries() argument
365 if (depth == 0) { in ext4_valid_extent_entries()
[all …]
/Linux-v5.15/include/linux/
Dsbitmap.h24 unsigned long depth; member
47 unsigned int depth; member
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
177 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
237 if (start >= sb->depth) in __sbitmap_for_each_set()
242 while (scanned < sb->depth) { in __sbitmap_for_each_set()
244 unsigned int depth = min_t(unsigned int, in __sbitmap_for_each_set() local
245 sb->map[index].depth - nr, in __sbitmap_for_each_set()
246 sb->depth - scanned); in __sbitmap_for_each_set()
248 scanned += depth; in __sbitmap_for_each_set()
[all …]
/Linux-v5.15/drivers/iio/adc/
Dmax1027.c94 #define MAX1027_V_CHAN(index, depth) \ argument
104 .realbits = depth, \
106 .shift = (depth == 10) ? 2 : 0, \
126 #define MAX1X27_CHANNELS(depth) \ argument
128 MAX1027_V_CHAN(0, depth), \
129 MAX1027_V_CHAN(1, depth), \
130 MAX1027_V_CHAN(2, depth), \
131 MAX1027_V_CHAN(3, depth), \
132 MAX1027_V_CHAN(4, depth), \
133 MAX1027_V_CHAN(5, depth), \
[all …]
/Linux-v5.15/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.15/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 …]
/Linux-v5.15/scripts/dtc/libfdt/
Dfdt.c239 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
258 if (depth) in fdt_next_node()
259 (*depth)++; in fdt_next_node()
263 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
269 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
281 int depth = 0; in fdt_first_subnode() local
283 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
284 if (offset < 0 || depth != 1) in fdt_first_subnode()
292 int depth = 1; in fdt_next_subnode() local
299 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
[all …]
/Linux-v5.15/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.15/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.15/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()
Dresize.c37 int depth; in reiserfs_resize() local
47 depth = reiserfs_write_unlock_nested(s); in reiserfs_resize()
49 reiserfs_write_lock_nested(s, depth); in reiserfs_resize()
143 int depth; in reiserfs_resize() local
148 depth = reiserfs_write_unlock_nested(s); in reiserfs_resize()
150 reiserfs_write_lock_nested(s, depth); in reiserfs_resize()
161 depth = reiserfs_write_unlock_nested(s); in reiserfs_resize()
163 reiserfs_write_lock_nested(s, depth); in reiserfs_resize()
/Linux-v5.15/kernel/trace/
Dtrace_functions_graph.c24 int depth; member
195 .depth = 0, in __trace_graph_function()
199 .depth = 0, in __trace_graph_function()
651 cpu_data->depth = call->depth - 1; in print_graph_entry_leaf()
654 if (call->depth < FTRACE_RETFUNC_DEPTH && in print_graph_entry_leaf()
655 !WARN_ON_ONCE(call->depth < 0)) in print_graph_entry_leaf()
656 cpu_data->enter_funcs[call->depth] = 0; in print_graph_entry_leaf()
663 for (i = 0; i < call->depth * TRACE_GRAPH_INDENT; i++) in print_graph_entry_leaf()
689 cpu_data->depth = call->depth; in print_graph_entry_nested()
692 if (call->depth < FTRACE_RETFUNC_DEPTH && in print_graph_entry_nested()
[all …]
/Linux-v5.15/sound/isa/gus/
Dgus_volume.c123 long depth;
139 depth = (((int) (*(vi2 + 1) - *vi1) * (pcents - *vi1) / (*vi2 - *vi1)) + v1) * fc_register >> 14;
140 if (depth)
141 depth++;
142 if (depth > 255)
143 depth = 255;
144 return cents < 0 ? -(short) depth : (short) depth;
/Linux-v5.15/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()
290 uint *treeblk, int depth) in do_insert_tree() argument
315 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree()
318 if (depth == info->dqi_qtree_depth - 1) { in do_insert_tree()
324 dquot->dq_id, depth)])); in do_insert_tree()
331 ret = do_insert_tree(info, dquot, &newblk, depth+1); in do_insert_tree()
[all …]
/Linux-v5.15/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.15/kernel/locking/
Dlockdep.c752 int i, depth = READ_ONCE(p->lockdep_depth); in lockdep_print_held_locks() local
754 if (!depth) in lockdep_print_held_locks()
757 printk("%d lock%s held by %s/%d:\n", depth, in lockdep_print_held_locks()
758 depth > 1 ? "s" : "", p->comm, task_pid_nr(p)); in lockdep_print_held_locks()
765 for (i = 0; i < depth; i++) { in lockdep_print_held_locks()
1008 for (i = chain->base; i < chain->base + chain->depth; i++) in check_lock_chain_key()
1494 int depth = 0; in get_lock_depth() local
1499 depth++; in get_lock_depth()
1501 return depth; in get_lock_depth()
1819 print_circular_bug_entry(struct lock_list *target, int depth) in print_circular_bug_entry() argument
[all …]
/Linux-v5.15/drivers/of/
Dfdt.c290 int offset = 0, depth = 0, initial_depth = 0; in unflatten_dt_nodes() local
308 depth = initial_depth = 1; in unflatten_dt_nodes()
311 nps[depth] = dad; in unflatten_dt_nodes()
314 offset >= 0 && depth >= initial_depth; in unflatten_dt_nodes()
315 offset = fdt_next_node(blob, offset, &depth)) { in unflatten_dt_nodes()
316 if (WARN_ON_ONCE(depth >= FDT_MAX_DEPTH)) in unflatten_dt_nodes()
323 ret = populate_node(blob, offset, &mem, nps[depth], in unflatten_dt_nodes()
324 &nps[depth+1], dryrun); in unflatten_dt_nodes()
329 *nodepp = nps[depth+1]; in unflatten_dt_nodes()
331 root = nps[depth+1]; in unflatten_dt_nodes()
[all …]
/Linux-v5.15/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()
/Linux-v5.15/arch/xtensa/kernel/
Dstacktrace.c26 void xtensa_backtrace_user(struct pt_regs *regs, unsigned int depth, in xtensa_backtrace_user() argument
38 if (!depth--) in xtensa_backtrace_user()
69 for (index = WSBITS - 1; (index > 0) && depth; depth--, index--) in xtensa_backtrace_user()
90 if (!depth) in xtensa_backtrace_user()
95 while (a0 != 0 && depth--) { in xtensa_backtrace_user()
115 void xtensa_backtrace_kernel(struct pt_regs *regs, unsigned int depth, in xtensa_backtrace_kernel() argument
135 while (a1 > sp_start && a1 < sp_end && depth--) { in xtensa_backtrace_kernel()
149 xtensa_backtrace_user(regs, depth, ufn, data); in xtensa_backtrace_kernel()
/Linux-v5.15/include/trace/events/
Dkyber.h50 TP_PROTO(dev_t dev, const char *domain, unsigned int depth),
52 TP_ARGS(dev, domain, depth),
57 __field( unsigned int, depth )
63 __entry->depth = depth;
68 __entry->depth)
/Linux-v5.15/arch/sh/kernel/
Dreturn_address.c14 void *return_address(unsigned int depth) in return_address() argument
20 for (i = 0, frame = NULL, ra = 0; i <= depth; i++) { in return_address()
39 WARN_ON(i != depth + 1); in return_address()
49 void *return_address(unsigned int depth) in return_address() argument
/Linux-v5.15/block/
Dblk-rq-qos.c118 unsigned int depth; in rq_depth_calc_max_depth() local
143 depth = min_t(unsigned int, rqd->default_depth, in rq_depth_calc_max_depth()
146 depth = 1 + ((depth - 1) >> min(31, rqd->scale_step)); in rq_depth_calc_max_depth()
150 depth = 1 + ((depth - 1) << -rqd->scale_step); in rq_depth_calc_max_depth()
151 if (depth > maxd) { in rq_depth_calc_max_depth()
152 depth = maxd; in rq_depth_calc_max_depth()
157 rqd->max_depth = depth; in rq_depth_calc_max_depth()
/Linux-v5.15/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()

12345678910>>...35