/Linux-v5.15/drivers/gpio/ |
D | gpio-crystalcove.c | 113 static void crystalcove_update_irq_mask(struct crystalcove_gpio *cg, in crystalcove_update_irq_mask() argument 119 if (cg->set_irq_mask) in crystalcove_update_irq_mask() 120 regmap_update_bits(cg->regmap, mirqs0, mask, mask); in crystalcove_update_irq_mask() 122 regmap_update_bits(cg->regmap, mirqs0, mask, 0); in crystalcove_update_irq_mask() 125 static void crystalcove_update_irq_ctrl(struct crystalcove_gpio *cg, int gpio) in crystalcove_update_irq_ctrl() argument 129 regmap_update_bits(cg->regmap, reg, CTLI_INTCNT_BE, cg->intcnt_value); in crystalcove_update_irq_ctrl() 134 struct crystalcove_gpio *cg = gpiochip_get_data(chip); in crystalcove_gpio_dir_in() local 140 return regmap_write(cg->regmap, reg, CTLO_INPUT_SET); in crystalcove_gpio_dir_in() 146 struct crystalcove_gpio *cg = gpiochip_get_data(chip); in crystalcove_gpio_dir_out() local 152 return regmap_write(cg->regmap, reg, CTLO_OUTPUT_SET | value); in crystalcove_gpio_dir_out() [all …]
|
/Linux-v5.15/drivers/clk/mediatek/ |
D | clk-gate.c | 20 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_bit_is_cleared() local 23 regmap_read(cg->regmap, cg->sta_ofs, &val); in mtk_cg_bit_is_cleared() 25 val &= BIT(cg->bit); in mtk_cg_bit_is_cleared() 32 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_bit_is_set() local 35 regmap_read(cg->regmap, cg->sta_ofs, &val); in mtk_cg_bit_is_set() 37 val &= BIT(cg->bit); in mtk_cg_bit_is_set() 44 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_set_bit() local 46 regmap_write(cg->regmap, cg->set_ofs, BIT(cg->bit)); in mtk_cg_set_bit() 51 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_clr_bit() local 53 regmap_write(cg->regmap, cg->clr_ofs, BIT(cg->bit)); in mtk_cg_clr_bit() [all …]
|
/Linux-v5.15/drivers/clk/ |
D | clk-qoriq.c | 81 void (*init_periph)(struct clockgen *cg); 102 static void cg_out(struct clockgen *cg, u32 val, u32 __iomem *reg) in cg_out() argument 104 if (cg->info.flags & CG_LITTLE_ENDIAN) in cg_out() 110 static u32 cg_in(struct clockgen *cg, u32 __iomem *reg) in cg_in() argument 114 if (cg->info.flags & CG_LITTLE_ENDIAN) in cg_in() 469 static void __init p2041_init_periph(struct clockgen *cg) in p2041_init_periph() argument 473 reg = ioread32be(&cg->guts->rcwsr[7]); in p2041_init_periph() 476 cg->fman[0] = cg->pll[CGA_PLL2].div[PLL_DIV2].clk; in p2041_init_periph() 478 cg->fman[0] = cg->pll[PLATFORM_PLL].div[PLL_DIV2].clk; in p2041_init_periph() 481 static void __init p4080_init_periph(struct clockgen *cg) in p4080_init_periph() argument [all …]
|
/Linux-v5.15/drivers/clk/sunxi-ng/ |
D | ccu_gate.c | 30 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_disable() local 32 return ccu_gate_helper_disable(&cg->common, cg->enable); in ccu_gate_disable() 55 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_enable() local 57 return ccu_gate_helper_enable(&cg->common, cg->enable); in ccu_gate_enable() 70 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_is_enabled() local 72 return ccu_gate_helper_is_enabled(&cg->common, cg->enable); in ccu_gate_is_enabled() 78 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_recalc_rate() local 81 if (cg->common.features & CCU_FEATURE_ALL_PREDIV) in ccu_gate_recalc_rate() 82 rate /= cg->common.prediv; in ccu_gate_recalc_rate() 90 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_round_rate() local [all …]
|
/Linux-v5.15/kernel/cgroup/ |
D | misc.c | 116 static void misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_cancel_charge() argument 119 WARN_ONCE(atomic_long_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge() 140 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_try_charge() argument 148 if (!(valid_type(type) && cg && READ_ONCE(misc_res_capacity[type]))) in misc_cg_try_charge() 154 for (i = cg; i; i = parent_misc(i)) { in misc_cg_try_charge() 174 for (j = cg; j != i; j = parent_misc(j)) in misc_cg_try_charge() 189 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_uncharge() argument 194 if (!(amount && valid_type(type) && cg)) in misc_cg_uncharge() 197 for (i = cg; i; i = parent_misc(i)) in misc_cg_uncharge() 213 struct misc_cg *cg = css_misc(seq_css(sf)); in misc_cg_max_show() local [all …]
|
D | rdma.c | 72 static struct rdma_cgroup *parent_rdmacg(struct rdma_cgroup *cg) in parent_rdmacg() argument 74 return css_rdmacg(cg->css.parent); in parent_rdmacg() 113 find_cg_rpool_locked(struct rdma_cgroup *cg, in find_cg_rpool_locked() argument 121 list_for_each_entry(pool, &cg->rpools, cg_node) in find_cg_rpool_locked() 129 get_cg_rpool_locked(struct rdma_cgroup *cg, struct rdmacg_device *device) in get_cg_rpool_locked() argument 133 rpool = find_cg_rpool_locked(cg, device); in get_cg_rpool_locked() 146 list_add_tail(&rpool->cg_node, &cg->rpools); in get_cg_rpool_locked() 162 uncharge_cg_locked(struct rdma_cgroup *cg, in uncharge_cg_locked() argument 168 rpool = find_cg_rpool_locked(cg, device); in uncharge_cg_locked() 176 pr_warn("Invalid device %p or rdma cgroup %p\n", cg, device); in uncharge_cg_locked() [all …]
|
/Linux-v5.15/include/linux/ |
D | misc_cgroup.h | 54 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, 56 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, 90 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() argument 92 if (cg) in put_misc_cg() 93 css_put(&cg->css); in put_misc_cg() 110 struct misc_cg *cg, in misc_cg_try_charge() argument 117 struct misc_cg *cg, in misc_cg_uncharge() argument 127 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() argument
|
D | blktrace_api.h | 50 #define blk_add_cgroup_trace_msg(q, cg, fmt, ...) \ argument 57 __trace_note_message(bt, cg, fmt, ##__VA_ARGS__);\ 95 # define blk_add_cgroup_trace_msg(q, cg, fmt, ...) do { } while (0) argument
|
D | cgroup_rdma.h | 46 void rdmacg_uncharge(struct rdma_cgroup *cg,
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_attach_autodetach.c | 30 int cg = 0, i; in test_cgroup_attach_autodetach() local 44 cg = create_and_get_cgroup("/cg_autodetach"); in test_cgroup_attach_autodetach() 45 if (CHECK_FAIL(cg < 0)) in test_cgroup_attach_autodetach() 52 if (CHECK(bpf_prog_attach(allow_prog[i], cg, in test_cgroup_attach_autodetach() 59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in test_cgroup_attach_autodetach() 77 close(cg); in test_cgroup_attach_autodetach() 78 cg = 0; in test_cgroup_attach_autodetach() 107 if (cg) in test_cgroup_attach_autodetach() 108 close(cg); in test_cgroup_attach_autodetach()
|
/Linux-v5.15/tools/testing/selftests/cgroup/ |
D | test_kmem.c | 55 char *cg = NULL; in test_kmem_basic() local 58 cg = cg_name(root, "kmem_basic_test"); in test_kmem_basic() 59 if (!cg) in test_kmem_basic() 62 if (cg_create(cg)) in test_kmem_basic() 65 if (cg_run(cg, alloc_dcache, (void *)100000)) in test_kmem_basic() 68 slab0 = cg_read_key_long(cg, "memory.stat", "slab "); in test_kmem_basic() 72 cg_write(cg, "memory.high", "1M"); in test_kmem_basic() 73 slab1 = cg_read_key_long(cg, "memory.stat", "slab "); in test_kmem_basic() 77 current = cg_read_long(cg, "memory.current"); in test_kmem_basic() 84 cg_destroy(cg); in test_kmem_basic() [all …]
|
/Linux-v5.15/fs/ufs/ |
D | ialloc.c | 64 unsigned ino, cg, bit; in ufs_free_inode() local 81 cg = ufs_inotocg (ino); in ufs_free_inode() 83 ucpi = ufs_load_cylinder (sb, cg); in ufs_free_inode() 104 fs32_add(sb, &UFS_SB(sb)->fs_cs(cg).cs_nifree, 1); in ufs_free_inode() 109 fs32_sub(sb, &UFS_SB(sb)->fs_cs(cg).cs_ndir, 1); in ufs_free_inode() 181 unsigned cg, bit, i, j, start; in ufs_new_inode() local 205 cg = i; in ufs_new_inode() 217 cg = i; in ufs_new_inode() 231 cg = i; in ufs_new_inode() 239 ucpi = ufs_load_cylinder (sb, cg); in ufs_new_inode() [all …]
|
D | super.c | 229 struct ufs_cylinder_group *cg) in ufs_print_cylinder_stuff() argument 233 pr_debug(" magic: %x\n", fs32_to_cpu(sb, cg->cg_magic)); in ufs_print_cylinder_stuff() 234 pr_debug(" time: %u\n", fs32_to_cpu(sb, cg->cg_time)); in ufs_print_cylinder_stuff() 235 pr_debug(" cgx: %u\n", fs32_to_cpu(sb, cg->cg_cgx)); in ufs_print_cylinder_stuff() 236 pr_debug(" ncyl: %u\n", fs16_to_cpu(sb, cg->cg_ncyl)); in ufs_print_cylinder_stuff() 237 pr_debug(" niblk: %u\n", fs16_to_cpu(sb, cg->cg_niblk)); in ufs_print_cylinder_stuff() 238 pr_debug(" ndblk: %u\n", fs32_to_cpu(sb, cg->cg_ndblk)); in ufs_print_cylinder_stuff() 239 pr_debug(" cs_ndir: %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_ndir)); in ufs_print_cylinder_stuff() 240 pr_debug(" cs_nbfree: %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_nbfree)); in ufs_print_cylinder_stuff() 241 pr_debug(" cs_nifree: %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_nifree)); in ufs_print_cylinder_stuff() [all …]
|
D | cylinder.c | 133 unsigned cg, i, j; in ufs_load_cylinder() local 175 cg = sbi->s_cgno[i]; in ufs_load_cylinder() 181 sbi->s_cgno[0] = cg; in ufs_load_cylinder()
|
/Linux-v5.15/tools/power/pm-graph/ |
D | bootgraph.py | 252 def deviceMatch(self, pid, cg): argument 253 if cg.end - cg.start == 0: 261 if cg.name == 'do_one_initcall': 262 if(cg.start <= dev['start'] and cg.end >= dev['end'] and dev['length'] > 0): 263 dev['ftrace'] = cg 267 if(cg.start > dev['start'] and cg.end < dev['end']): 270 dev['ftraces'].append(cg) 423 cg = ftemp[key][-1] 424 res = cg.addLine(t) 435 for cg in ftemp[key]: [all …]
|
D | sleepgraph.py | 1696 cg = d['ftrace'] 1697 cg.start = self.trimTimeVal(cg.start, t0, dT, left) 1698 cg.end = self.trimTimeVal(cg.end, t0, dT, left) 1699 for line in cg.list: 2563 cg = self.slice(dev) 2564 if cg: 2565 dev['ftrace'] = cg 3216 cg = testrun[testidx].ftemp[pid][-1] 3217 res = cg.addLine(t) 3227 for cg in test.ftemp[pid]: [all …]
|
/Linux-v5.15/drivers/infiniband/core/ |
D | cgroup.c | 41 return rdmacg_try_charge(&cg_obj->cg, &device->cg_device, in ib_rdmacg_try_charge() 50 rdmacg_uncharge(cg_obj->cg, &device->cg_device, in ib_rdmacg_uncharge()
|
/Linux-v5.15/Documentation/devicetree/bindings/clock/ |
D | nvidia,tegra124-dfll.txt | 44 - nvidia,cg: Numeric value, see the field DFLL_PARAMS_CG_PARAM in the TRM. 47 - nvidia,cg-scale: Boolean value, see the field DFLL_PARAMS_CG_SCALE in the TRM. 97 nvidia,cg = <2>; 125 nvidia,cg = <2>;
|
/Linux-v5.15/kernel/bpf/ |
D | cgroup.c | 538 struct cgroup *cg; in replace_effective_prog() local 548 for (pos = 0, cg = desc; cg; cg = cgroup_parent(cg)) { in replace_effective_prog() 549 if (pos && !(cg->bpf.flags[atype] & BPF_F_ALLOW_MULTI)) in replace_effective_prog() 552 head = &cg->bpf.progs[atype]; in replace_effective_prog() 562 BUG_ON(!cg); in replace_effective_prog() 847 struct cgroup *cg; in bpf_cgroup_link_release() local 866 cg = cg_link->cgroup; in bpf_cgroup_link_release() 871 cgroup_put(cg); in bpf_cgroup_link_release()
|
/Linux-v5.15/samples/vfio-mdev/ |
D | mdpy-fb.c | 63 u32 cg = green >> (16 - info->var.green.length); in mdpy_fb_setcolreg() local 71 (cg << info->var.green.offset) | in mdpy_fb_setcolreg()
|
/Linux-v5.15/drivers/video/fbdev/ |
D | simplefb.c | 49 u32 cg = green >> (16 - info->var.green.length); in simplefb_setcolreg() local 57 (cg << info->var.green.offset) | in simplefb_setcolreg()
|
/Linux-v5.15/tools/power/pm-graph/config/ |
D | freeze-callgraph.cfg | 27 output-dir: freeze-{hostname}-{date}-{time}-cg
|
D | standby-callgraph.cfg | 27 output-dir: standby-{hostname}-{date}-{time}-cg
|
D | suspend-callgraph.cfg | 27 output-dir: suspend-{hostname}-{date}-{time}-cg
|
/Linux-v5.15/drivers/clk/tegra/ |
D | clk-dfll.c | 293 u32 cg; member 886 force_val = (req->lut_index - td->lut_safe) * coef / td->cg; in dfll_set_frequency_request() 1406 (td->cg << DFLL_PARAMS_CG_PARAM_SHIFT) | in dfll_set_default_params() 1908 ok &= read_dt_param(td, "nvidia,cg", &td->cg); in dfll_fetch_common_params()
|