/linux-6.12.1/drivers/gpio/ |
D | gpio-crystalcove.c | 114 static void crystalcove_update_irq_mask(struct crystalcove_gpio *cg, int gpio) 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() 145 struct crystalcove_gpio *cg = gpiochip_get_data(chip); in crystalcove_gpio_dir_out() local 151 return regmap_write(cg->regmap, reg, CTLO_OUTPUT_SET | value); in crystalcove_gpio_dir_out() [all …]
|
/linux-6.12.1/drivers/clk/mediatek/ |
D | clk-gate.c | 33 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_get_clockgating() local 36 regmap_read(cg->regmap, cg->sta_ofs, &val); in mtk_get_clockgating() 38 return val & BIT(cg->bit); in mtk_get_clockgating() 53 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_set_bit() local 55 regmap_write(cg->regmap, cg->set_ofs, BIT(cg->bit)); in mtk_cg_set_bit() 60 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_clr_bit() local 62 regmap_write(cg->regmap, cg->clr_ofs, BIT(cg->bit)); in mtk_cg_clr_bit() 67 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_set_bit_no_setclr() local 69 regmap_set_bits(cg->regmap, cg->sta_ofs, BIT(cg->bit)); in mtk_cg_set_bit_no_setclr() 74 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); in mtk_cg_clr_bit_no_setclr() local [all …]
|
/linux-6.12.1/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(atomic64_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge() 137 static void misc_cg_event(enum misc_res_type type, struct misc_cg *cg) in misc_cg_event() argument 139 atomic64_inc(&cg->res[type].events_local); in misc_cg_event() 140 cgroup_file_notify(&cg->events_local_file); in misc_cg_event() 142 for (; parent_misc(cg); cg = parent_misc(cg)) { in misc_cg_event() 143 atomic64_inc(&cg->res[type].events); in misc_cg_event() 144 cgroup_file_notify(&cg->events_file); in misc_cg_event() 164 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() argument 171 if (!(valid_type(type) && cg && READ_ONCE(misc_res_capacity[type]))) in misc_cg_try_charge() [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-6.12.1/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 …]
|
D | clk-en7523.c | 294 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_is_enabled() local 296 return !!(readl(cg->base + REG_PCI_CONTROL) & REG_PCI_CONTROL_REFCLK_EN1); in en7523_pci_is_enabled() 301 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_prepare() local 302 void __iomem *np_base = cg->base; in en7523_pci_prepare() 340 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_unprepare() local 341 void __iomem *np_base = cg->base; in en7523_pci_unprepare() 357 struct en_clk_gate *cg; in en7523_register_pcie_clk() local 359 cg = devm_kzalloc(dev, sizeof(*cg), GFP_KERNEL); in en7523_register_pcie_clk() 360 if (!cg) in en7523_register_pcie_clk() 363 cg->base = np_base; in en7523_register_pcie_clk() [all …]
|
/linux-6.12.1/drivers/clk/sunxi-ng/ |
D | ccu_gate.c | 31 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_disable() local 33 return ccu_gate_helper_disable(&cg->common, cg->enable); in ccu_gate_disable() 57 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_enable() local 59 return ccu_gate_helper_enable(&cg->common, cg->enable); in ccu_gate_enable() 73 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_is_enabled() local 75 return ccu_gate_helper_is_enabled(&cg->common, cg->enable); in ccu_gate_is_enabled() 81 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_recalc_rate() local 84 if (cg->common.features & CCU_FEATURE_ALL_PREDIV) in ccu_gate_recalc_rate() 85 rate /= cg->common.prediv; in ccu_gate_recalc_rate() 93 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_round_rate() local [all …]
|
/linux-6.12.1/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() 77 slab1 = cg_read_key_long(cg, "memory.stat", "slab "); in test_kmem_basic() 81 current = cg_read_long(cg, "memory.current"); in test_kmem_basic() 88 cg_destroy(cg); in test_kmem_basic() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_attach_autodetach.c | 30 int cg = 0, i; in serial_test_cgroup_attach_autodetach() local 44 cg = create_and_get_cgroup("/cg_autodetach"); in serial_test_cgroup_attach_autodetach() 45 if (CHECK_FAIL(cg < 0)) in serial_test_cgroup_attach_autodetach() 52 if (CHECK(bpf_prog_attach(allow_prog[i], cg, in serial_test_cgroup_attach_autodetach() 59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in serial_test_cgroup_attach_autodetach() 77 close(cg); in serial_test_cgroup_attach_autodetach() 78 cg = 0; in serial_test_cgroup_attach_autodetach() 107 if (cg) in serial_test_cgroup_attach_autodetach() 108 close(cg); in serial_test_cgroup_attach_autodetach()
|
/linux-6.12.1/include/linux/ |
D | misc_cgroup.h | 65 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount); 66 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount); 99 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() argument 101 if (cg) in put_misc_cg() 102 css_put(&cg->css); in put_misc_cg() 118 struct misc_cg *cg, in misc_cg_try_charge() argument 125 struct misc_cg *cg, in misc_cg_uncharge() argument 135 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() argument
|
D | cgroup_rdma.h | 46 void rdmacg_uncharge(struct rdma_cgroup *cg,
|
/linux-6.12.1/tools/power/pm-graph/ |
D | bootgraph.py | 254 def deviceMatch(self, pid, cg): argument 255 if cg.end - cg.start == 0: 263 if cg.name == 'do_one_initcall': 264 if(cg.start <= dev['start'] and cg.end >= dev['end'] and dev['length'] > 0): 265 dev['ftrace'] = cg 269 if(cg.start > dev['start'] and cg.end < dev['end']): 272 dev['ftraces'].append(cg) 425 cg = ftemp[key][-1] 426 res = cg.addLine(t) 437 for cg in ftemp[key]: [all …]
|
D | sleepgraph.py | 1802 cg = d['ftrace'] 1803 cg.start = self.trimTimeVal(cg.start, t0, dT, left) 1804 cg.end = self.trimTimeVal(cg.end, t0, dT, left) 1805 for line in cg.list: 2669 cg = self.slice(dev) 2670 if cg: 2671 dev['ftrace'] = cg 3330 cg = testrun[testidx].ftemp[pid][-1] 3331 res = cg.addLine(t) 3341 for cg in test.ftemp[pid]: [all …]
|
/linux-6.12.1/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 | 230 struct ufs_cylinder_group *cg) in ufs_print_cylinder_stuff() argument 234 pr_debug(" magic: %x\n", fs32_to_cpu(sb, cg->cg_magic)); in ufs_print_cylinder_stuff() 235 pr_debug(" time: %u\n", fs32_to_cpu(sb, cg->cg_time)); in ufs_print_cylinder_stuff() 236 pr_debug(" cgx: %u\n", fs32_to_cpu(sb, cg->cg_cgx)); in ufs_print_cylinder_stuff() 237 pr_debug(" ncyl: %u\n", fs16_to_cpu(sb, cg->cg_ncyl)); in ufs_print_cylinder_stuff() 238 pr_debug(" niblk: %u\n", fs16_to_cpu(sb, cg->cg_niblk)); in ufs_print_cylinder_stuff() 239 pr_debug(" ndblk: %u\n", fs32_to_cpu(sb, cg->cg_ndblk)); in ufs_print_cylinder_stuff() 240 pr_debug(" cs_ndir: %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_ndir)); in ufs_print_cylinder_stuff() 241 pr_debug(" cs_nbfree: %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_nbfree)); in ufs_print_cylinder_stuff() 242 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-6.12.1/tools/cgroup/ |
D | memcg_shrinker.py | 55 cg = "/" 58 cg = cgroups[ino] 60 cg = "unknown (%d)" % ino 62 print("%-8s %-20s %s" % (count, name, cg))
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | cgrp_kfunc_success.c | 67 struct cgroup *kptr, *cg; in BPF_PROG() local 92 cg = bpf_cgroup_ancestor(kptr, 1); in BPF_PROG() 93 if (cg) /* verifier only check */ in BPF_PROG() 94 bpf_cgroup_release(cg); in BPF_PROG()
|
/linux-6.12.1/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-6.12.1/kernel/bpf/ |
D | cgroup.c | 767 struct cgroup *cg; in replace_effective_prog() local 777 for (pos = 0, cg = desc; cg; cg = cgroup_parent(cg)) { in replace_effective_prog() 778 if (pos && !(cg->bpf.flags[atype] & BPF_F_ALLOW_MULTI)) in replace_effective_prog() 781 head = &cg->bpf.progs[atype]; in replace_effective_prog() 791 BUG_ON(!cg); in replace_effective_prog() 918 struct cgroup *cg; in purge_effective_progs() local 929 for (pos = 0, cg = desc; cg; cg = cgroup_parent(cg)) { in purge_effective_progs() 930 if (pos && !(cg->bpf.flags[atype] & BPF_F_ALLOW_MULTI)) in purge_effective_progs() 933 head = &cg->bpf.progs[atype]; in purge_effective_progs() 1202 struct cgroup *cg; in bpf_cgroup_link_release() local [all …]
|
D | bpf_cgrp_storage.c | 41 struct cgroup *cg = owner; in cgroup_storage_ptr() local 43 return &cg->bpf_cgrp_storage; in cgroup_storage_ptr()
|
/linux-6.12.1/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-6.12.1/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-6.12.1/drivers/clk/thead/ |
D | clk-th1520-ap.c | 1037 struct ccu_gate *cg = hw_to_ccu_gate(&th1520_gate_clks[i]->hw); in th1520_clk_probe() local 1042 cg->common.hw.init->name, in th1520_clk_probe() 1043 cg->common.hw.init->parent_data, in th1520_clk_probe() 1044 0, base + cg->common.cfg0, in th1520_clk_probe() 1045 ffs(cg->enable) - 1, 0, NULL); in th1520_clk_probe() 1049 priv->hws[cg->common.clkid] = hw; in th1520_clk_probe()
|
/linux-6.12.1/drivers/power/supply/ |
D | rk817_charger.c | 595 static irqreturn_t rk817_plug_in_isr(int irq, void *cg) in rk817_plug_in_isr() argument 599 charger = (struct rk817_charger *)cg; in rk817_plug_in_isr() 613 static irqreturn_t rk817_plug_out_isr(int irq, void *cg) in rk817_plug_out_isr() argument 618 charger = (struct rk817_charger *)cg; in rk817_plug_out_isr()
|