/kernel/linux/linux-5.10/drivers/gpio/ |
H A 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 in crystalcove_gpio_dir_out() local 157 struct crystalcove_gpio *cg = gpiochip_get_data(chip); crystalcove_gpio_get() local 174 struct crystalcove_gpio *cg = gpiochip_get_data(chip); crystalcove_gpio_set() local 188 struct crystalcove_gpio *cg = crystalcove_irq_type() local 218 struct crystalcove_gpio *cg = crystalcove_bus_lock() local 226 struct crystalcove_gpio *cg = crystalcove_bus_sync_unlock() local 241 struct crystalcove_gpio *cg = crystalcove_irq_unmask() local 252 struct crystalcove_gpio *cg = crystalcove_irq_mask() local 273 struct crystalcove_gpio *cg = data; crystalcove_gpio_irq_handler() local 299 struct crystalcove_gpio *cg = gpiochip_get_data(chip); crystalcove_gpio_dbg_show() local 329 struct crystalcove_gpio *cg; crystalcove_gpio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A 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 in crystalcove_gpio_dir_out() local 156 struct crystalcove_gpio *cg = gpiochip_get_data(chip); crystalcove_gpio_get() local 172 struct crystalcove_gpio *cg = gpiochip_get_data(chip); crystalcove_gpio_set() local 186 struct crystalcove_gpio *cg = gpiochip_get_data(irq_data_get_irq_chip_data(data)); crystalcove_irq_type() local 216 struct crystalcove_gpio *cg = gpiochip_get_data(irq_data_get_irq_chip_data(data)); crystalcove_bus_lock() local 223 struct crystalcove_gpio *cg = gpiochip_get_data(irq_data_get_irq_chip_data(data)); crystalcove_bus_sync_unlock() local 238 struct crystalcove_gpio *cg = gpiochip_get_data(gc); crystalcove_irq_unmask() local 253 struct crystalcove_gpio *cg = gpiochip_get_data(gc); crystalcove_irq_mask() local 278 struct crystalcove_gpio *cg = data; crystalcove_gpio_irq_handler() local 303 struct crystalcove_gpio *cg = gpiochip_get_data(chip); crystalcove_gpio_dbg_show() local 333 struct crystalcove_gpio *cg; crystalcove_gpio_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/clk/mediatek/ |
H A 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 in mtk_cg_set_bit() 51 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); mtk_cg_clr_bit() local 58 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); mtk_cg_set_bit_no_setclr() local 66 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); mtk_cg_clr_bit_no_setclr() local 156 struct mtk_clk_gate *cg; mtk_clk_register_gate() local [all...] |
/kernel/linux/linux-6.6/drivers/clk/mediatek/ |
H A 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 in mtk_cg_clr_bit() 67 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); mtk_cg_set_bit_no_setclr() local 74 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw); mtk_cg_clr_bit_no_setclr() local 162 struct mtk_clk_gate *cg; mtk_clk_register_gate() local 195 struct mtk_clk_gate *cg; mtk_clk_unregister_gate() local [all...] |
/kernel/linux/linux-5.10/drivers/clk/ |
H A D | clk-qoriq.c | 72 #define CG_VER3 4 /* version 3 cg: reg layout different */ 79 void (*init_periph)(struct clockgen *cg); 100 static void cg_out(struct clockgen *cg, u32 val, u32 __iomem *reg) in cg_out() argument 102 if (cg->info.flags & CG_LITTLE_ENDIAN) in cg_out() 108 static u32 cg_in(struct clockgen *cg, u32 __iomem *reg) in cg_in() argument 112 if (cg->info.flags & CG_LITTLE_ENDIAN) in cg_in() 467 static void __init p2041_init_periph(struct clockgen *cg) in p2041_init_periph() argument 471 reg = ioread32be(&cg->guts->rcwsr[7]); in p2041_init_periph() 474 cg->fman[0] = cg in p2041_init_periph() 479 p4080_init_periph(struct clockgen *cg) p4080_init_periph() argument 496 p5020_init_periph(struct clockgen *cg) p5020_init_periph() argument 511 p5040_init_periph(struct clockgen *cg) p5040_init_periph() argument 531 t1023_init_periph(struct clockgen *cg) t1023_init_periph() argument 536 t1040_init_periph(struct clockgen *cg) t1040_init_periph() argument 541 t2080_init_periph(struct clockgen *cg) t2080_init_periph() argument 546 t4240_init_periph(struct clockgen *cg) t4240_init_periph() argument 812 struct clockgen *cg; global() member 868 get_pll_div(struct clockgen *cg, struct mux_hwclock *hwc, int idx) get_pll_div() argument 883 create_mux_common(struct clockgen *cg, struct mux_hwclock *hwc, const struct clk_ops *ops, unsigned long min_rate, unsigned long max_rate, unsigned long pct80_rate, const char *fmt, int idx) create_mux_common() argument 944 create_one_cmux(struct clockgen *cg, int idx) create_one_cmux() argument 992 create_one_hwaccel(struct clockgen *cg, int idx) create_one_hwaccel() argument 1007 create_muxes(struct clockgen *cg) create_muxes() argument 1185 create_one_pll(struct clockgen *cg, int idx) create_one_pll() argument 1277 create_plls(struct clockgen *cg) create_plls() argument 1363 struct clockgen *cg = data; clockgen_clk_get() local [all...] |
/kernel/linux/linux-6.6/drivers/clk/ |
H A D | clk-qoriq.c | 74 #define CG_VER3 4 /* version 3 cg: reg layout different */ 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 in p2041_init_periph() 481 p4080_init_periph(struct clockgen *cg) p4080_init_periph() argument 498 p5020_init_periph(struct clockgen *cg) p5020_init_periph() argument 513 p5040_init_periph(struct clockgen *cg) p5040_init_periph() argument 533 t1023_init_periph(struct clockgen *cg) t1023_init_periph() argument 538 t1040_init_periph(struct clockgen *cg) t1040_init_periph() argument 543 t2080_init_periph(struct clockgen *cg) t2080_init_periph() argument 548 t4240_init_periph(struct clockgen *cg) t4240_init_periph() argument 837 struct clockgen *cg; global() member 894 get_pll_div(struct clockgen *cg, struct mux_hwclock *hwc, int idx) get_pll_div() argument 909 create_mux_common(struct clockgen *cg, struct mux_hwclock *hwc, const struct clk_ops *ops, unsigned long min_rate, unsigned long max_rate, unsigned long pct80_rate, const char *fmt, int idx) create_mux_common() argument 970 create_one_cmux(struct clockgen *cg, int idx) create_one_cmux() argument 1018 create_one_hwaccel(struct clockgen *cg, int idx) create_one_hwaccel() argument 1033 create_muxes(struct clockgen *cg) create_muxes() argument 1211 create_one_pll(struct clockgen *cg, int idx) create_one_pll() argument 1303 create_plls(struct clockgen *cg) create_plls() argument 1389 struct clockgen *cg = data; clockgen_clk_get() local [all...] |
H A D | clk-en7523.c | 192 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_is_enabled() local 194 return !!(readl(cg->base + REG_PCI_CONTROL) & REG_PCI_CONTROL_REFCLK_EN1); in en7523_pci_is_enabled() 199 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_prepare() local 200 void __iomem *np_base = cg->base; in en7523_pci_prepare() 238 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_unprepare() local 239 void __iomem *np_base = cg->base; in en7523_pci_unprepare() 259 struct en_clk_gate *cg; in en7523_register_pcie_clk() local 261 cg = devm_kzalloc(dev, sizeof(*cg), GFP_KERNEL); in en7523_register_pcie_clk() 262 if (!cg) in en7523_register_pcie_clk() [all...] |
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
H A 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 in ccu_gate_recalc_rate() local 90 struct ccu_gate *cg = hw_to_ccu_gate(hw); ccu_gate_round_rate() local [all...] |
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/ |
H A 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 in ccu_gate_recalc_rate() local 93 struct ccu_gate *cg = hw_to_ccu_gate(hw); ccu_gate_round_rate() local [all...] |
/kernel/linux/linux-6.6/kernel/cgroup/ |
H A D | misc.c | 110 * @type: Misc res type in misc cg to cancel the charge from. 111 * @cg: Misc cgroup to cancel charge from. 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() 127 * @cg: Misc cgroup which will be charged. 140 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() argument 147 if (!(valid_type(type) && cg && READ_ONCE(misc_res_capacity[type]))) in misc_cg_try_charge() 153 for (i = cg; i; i = parent_misc(i)) { in misc_cg_try_charge() 171 for (j = cg; j != i; j = parent_misc(j)) in misc_cg_try_charge() 181 * @cg 186 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_uncharge() argument 209 struct misc_cg *cg = css_misc(seq_css(sf)); misc_cg_max_show() local 247 struct misc_cg *cg; misc_cg_max_write() local 299 struct misc_cg *cg = css_misc(seq_css(sf)); misc_cg_current_show() local 336 struct misc_cg *cg = css_misc(seq_css(sf)); misc_events_show() local 387 struct misc_cg *cg; misc_cg_alloc() local [all...] |
H A 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() 153 * @cg: pointer to cg to uncharge and all parents in hierarchy 155 * @index: index of the resource to uncharge in cg (resourc 162 uncharge_cg_locked(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index) uncharge_cg_locked() argument 206 rdmacg_uncharge_hierarchy(struct rdma_cgroup *cg, struct rdmacg_device *device, struct rdma_cgroup *stop_cg, enum rdmacg_resource_type index) rdmacg_uncharge_hierarchy() argument 229 rdmacg_uncharge(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index) rdmacg_uncharge() argument 265 struct rdma_cgroup *cg, *p; rdmacg_try_charge() local 430 struct rdma_cgroup *cg = css_rdmacg(of_css(of)); rdmacg_resource_set_max() local 530 struct rdma_cgroup *cg = css_rdmacg(seq_css(sf)); rdmacg_resource_read() local 567 struct rdma_cgroup *cg; rdmacg_css_alloc() local 579 struct rdma_cgroup *cg = css_rdmacg(css); rdmacg_css_free() local 595 struct rdma_cgroup *cg = css_rdmacg(css); rdmacg_css_offline() local [all...] |
/kernel/linux/linux-5.10/kernel/cgroup/ |
H A 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() 153 * @cg: pointer to cg to uncharge and all parents in hierarchy 155 * @index: index of the resource to uncharge in cg (resourc 162 uncharge_cg_locked(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index) uncharge_cg_locked() argument 205 rdmacg_uncharge_hierarchy(struct rdma_cgroup *cg, struct rdmacg_device *device, struct rdma_cgroup *stop_cg, enum rdmacg_resource_type index) rdmacg_uncharge_hierarchy() argument 227 rdmacg_uncharge(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index) rdmacg_uncharge() argument 263 struct rdma_cgroup *cg, *p; rdmacg_try_charge() local 428 struct rdma_cgroup *cg = css_rdmacg(of_css(of)); rdmacg_resource_set_max() local 528 struct rdma_cgroup *cg = css_rdmacg(seq_css(sf)); rdmacg_resource_read() local 565 struct rdma_cgroup *cg; rdmacg_css_alloc() local 577 struct rdma_cgroup *cg = css_rdmacg(css); rdmacg_css_free() local 593 struct rdma_cgroup *cg = css_rdmacg(css); rdmacg_css_offline() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | misc_cgroup.h | 59 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount); 60 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount); 91 * @cg - cgroup to put. 93 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() argument 95 if (cg) in put_misc_cg() 96 css_put(&cg->css); in put_misc_cg() 112 struct misc_cg *cg, in misc_cg_try_charge() 119 struct misc_cg *cg, in misc_cg_uncharge() 129 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() argument 111 misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_try_charge() argument 118 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_uncharge() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
H A 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() 277 char *cg = NULL; test_kmem_kernel_stacks() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/ |
H A 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() 280 char *cg = NULL; test_kmem_kernel_stacks() local [all...] |
/kernel/linux/linux-5.10/fs/ufs/ |
H A 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() 90 ufs_panic (sb, "ufs_free_fragments", "internal error, bad cg magic number"); 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 in ufs_new_inode() [all...] |
H A D | super.c | 230 struct ufs_cylinder_group *cg) in ufs_print_cylinder_stuff() 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 in ufs_print_cylinder_stuff() 229 ufs_print_cylinder_stuff(struct super_block *sb, struct ufs_cylinder_group *cg) ufs_print_cylinder_stuff() argument [all...] |
/kernel/linux/linux-6.6/fs/ufs/ |
H A 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() 90 ufs_panic (sb, "ufs_free_fragments", "internal error, bad cg magic number"); 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 in ufs_new_inode() [all...] |
H A D | super.c | 229 struct ufs_cylinder_group *cg) in ufs_print_cylinder_stuff() 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 in ufs_print_cylinder_stuff() 228 ufs_print_cylinder_stuff(struct super_block *sb, struct ufs_cylinder_group *cg) ufs_print_cylinder_stuff() argument [all...] |
/kernel/linux/linux-5.10/tools/power/pm-graph/ |
H A D | bootgraph.py | 252 def deviceMatch(self, pid, cg): 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) [all...] |
/kernel/linux/linux-6.6/tools/power/pm-graph/ |
H A D | bootgraph.py | 254 def deviceMatch(self, pid, cg): 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) [all...] |
/kernel/linux/linux-6.6/tools/cgroup/ |
H A D | memcg_shrinker.py | 55 cg = "/" 58 cg = cgroups[ino] 60 cg = "unknown (%d)" % ino 62 print("%-8s %-20s %s" % (count, name, cg))
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A 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()
|