/Linux-v6.1/drivers/gpu/drm/ |
D | drm_fourcc.c | 41 uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth) in drm_mode_legacy_fb_format() argument 47 if (depth == 1) in drm_mode_legacy_fb_format() 52 if (depth == 2) in drm_mode_legacy_fb_format() 57 if (depth == 4) in drm_mode_legacy_fb_format() 62 if (depth == 8) in drm_mode_legacy_fb_format() 67 switch (depth) { in drm_mode_legacy_fb_format() 80 if (depth == 24) in drm_mode_legacy_fb_format() 85 switch (depth) { in drm_mode_legacy_fb_format() 120 uint32_t bpp, uint32_t depth) in drm_driver_legacy_fb_format() argument 122 uint32_t fmt = drm_mode_legacy_fb_format(bpp, depth); in drm_driver_legacy_fb_format() [all …]
|
/Linux-v6.1/lib/ |
D | sbitmap.c | 14 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_max(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_max(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 90 shift = sbitmap_calculate_shift(depth); in sbitmap_init_node() [all …]
|
/Linux-v6.1/arch/powerpc/platforms/powernv/ |
D | opal-tracepoints.c | 50 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-v6.1/fs/ext4/ |
D | extents.c | 111 int depth, i; in ext4_ext_drop_refs() local 115 depth = path->p_depth; in ext4_ext_drop_refs() 116 for (i = 0; i <= depth; i++, path++) { in ext4_ext_drop_refs() 215 int depth = path->p_depth; in ext4_ext_find_goal() local 235 ex = path[depth].p_ext; in ext4_ext_find_goal() 248 if (path[depth].p_bh) in ext4_ext_find_goal() 249 return path[depth].p_bh->b_blocknr; in ext4_ext_find_goal() 344 ext4_ext_max_entries(struct inode *inode, int depth) in ext4_ext_max_entries() argument 348 if (depth == ext_depth(inode)) { in ext4_ext_max_entries() 349 if (depth == 0) in ext4_ext_max_entries() [all …]
|
/Linux-v6.1/include/linux/ |
D | sbitmap.h | 51 unsigned int depth; member 159 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, 166 return sb->depth - (index << sb->shift); in __map_depth() 189 void sbitmap_resize(struct sbitmap *sb, unsigned int depth); 249 if (start >= sb->depth) in __sbitmap_for_each_set() 254 while (scanned < sb->depth) { in __sbitmap_for_each_set() 256 unsigned int depth = min_t(unsigned int, in __sbitmap_for_each_set() local 258 sb->depth - scanned); in __sbitmap_for_each_set() 260 scanned += depth; in __sbitmap_for_each_set() 270 depth += nr; in __sbitmap_for_each_set() [all …]
|
/Linux-v6.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | commonring.c | 31 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-v6.1/drivers/iio/adc/ |
D | max1027.c | 97 #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-v6.1/drivers/media/platform/ti/vpe/ |
D | vpdma.c | 32 .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-v6.1/scripts/dtc/libfdt/ |
D | fdt.c | 243 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument 262 if (depth) in fdt_next_node() 263 (*depth)++; in fdt_next_node() 267 if (depth && ((--(*depth)) < 0)) in fdt_next_node() 273 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node() 285 int depth = 0; in fdt_first_subnode() local 287 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode() 288 if (offset < 0 || depth != 1) in fdt_first_subnode() 296 int depth = 1; in fdt_next_subnode() local 303 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode() [all …]
|
/Linux-v6.1/arch/s390/kernel/ |
D | trace.c | 20 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-v6.1/fs/reiserfs/ |
D | lock.c | 55 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()
|
D | resize.c | 37 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-v6.1/kernel/trace/ |
D | trace_functions_graph.c | 24 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-v6.1/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-regs.c | 22 .depth = { 8 }, 29 .depth = { 16 }, 36 .depth = { 16 }, 43 .depth = { 24 }, 50 .depth = { 24 }, 57 .depth = { 32 }, 64 .depth = { 32 }, 71 .depth = { 16 }, 79 .depth = { 16 }, 87 .depth = { 16 }, [all …]
|
/Linux-v6.1/sound/isa/gus/ |
D | gus_volume.c | 123 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-v6.1/kernel/locking/ |
D | lockdep.c | 780 int i, depth = READ_ONCE(p->lockdep_depth); in lockdep_print_held_locks() local 782 if (!depth) in lockdep_print_held_locks() 785 printk("%d lock%s held by %s/%d:\n", depth, in lockdep_print_held_locks() 786 depth > 1 ? "s" : "", p->comm, task_pid_nr(p)); in lockdep_print_held_locks() 793 for (i = 0; i < depth; i++) { in lockdep_print_held_locks() 1050 for (i = chain->base; i < chain->base + chain->depth; i++) in check_lock_chain_key() 1540 int depth = 0; in get_lock_depth() local 1545 depth++; in get_lock_depth() 1547 return depth; in get_lock_depth() 1865 print_circular_bug_entry(struct lock_list *target, int depth) in print_circular_bug_entry() argument [all …]
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_mutex.c | 17 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-v6.1/drivers/infiniband/hw/erdma/ |
D | erdma_cmdq.c | 95 sq->depth = cmdq->max_outstandings * sq->wqebb_cnt; in erdma_cmdq_sq_init() 97 buf_size = sq->depth << SQEBB_SHIFT; in erdma_cmdq_sq_init() 113 erdma_reg_write32(dev, ERDMA_REGS_CMDQ_DEPTH_REG, sq->depth); in erdma_cmdq_sq_init() 126 cq->depth = cmdq->sq.depth; in erdma_cmdq_cq_init() 127 buf_size = cq->depth << CQE_SHIFT; in erdma_cmdq_cq_init() 157 eq->depth = cmdq->max_outstandings; in erdma_cmdq_eq_init() 158 buf_size = eq->depth << EQE_SHIFT; in erdma_cmdq_eq_init() 177 erdma_reg_write32(dev, ERDMA_REGS_CMDQ_EQ_DEPTH_REG, eq->depth); in erdma_cmdq_eq_init() 235 (cmdq->eq.depth << EQE_SHIFT) + in erdma_cmdq_init() 241 (cmdq->cq.depth << CQE_SHIFT) + in erdma_cmdq_init() [all …]
|
/Linux-v6.1/drivers/gpu/drm/r128/ |
D | r128_ioc32.c | 112 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-v6.1/arch/xtensa/kernel/ |
D | stacktrace.c | 26 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-v6.1/block/ |
D | blk-rq-qos.c | 112 unsigned int depth; in rq_depth_calc_max_depth() local 137 depth = min_t(unsigned int, rqd->default_depth, in rq_depth_calc_max_depth() 140 depth = 1 + ((depth - 1) >> min(31, rqd->scale_step)); in rq_depth_calc_max_depth() 144 depth = 1 + ((depth - 1) << -rqd->scale_step); in rq_depth_calc_max_depth() 145 if (depth > maxd) { in rq_depth_calc_max_depth() 146 depth = maxd; in rq_depth_calc_max_depth() 151 rqd->max_depth = depth; in rq_depth_calc_max_depth()
|
/Linux-v6.1/fs/quota/ |
D | quota_tree.c | 26 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() 330 uint *treeblk, int depth) in do_insert_tree() argument 355 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree() 362 if (depth == info->dqi_qtree_depth - 1) { in do_insert_tree() 368 dquot->dq_id, depth)])); in do_insert_tree() 375 ret = do_insert_tree(info, dquot, &newblk, depth+1); in do_insert_tree() [all …]
|
/Linux-v6.1/drivers/infiniband/hw/efa/ |
D | efa_com.c | 128 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 …]
|
/Linux-v6.1/include/trace/events/ |
D | kyber.h | 50 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-v6.1/drivers/infiniband/hw/bnxt_re/ |
D | qplib_rcfw.h | 73 #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()
|