Home
last modified time | relevance | path

Searched refs:gang (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.15/arch/powerpc/platforms/cell/spufs/
Dgang.c17 struct spu_gang *gang; in alloc_spu_gang() local
19 gang = kzalloc(sizeof *gang, GFP_KERNEL); in alloc_spu_gang()
20 if (!gang) in alloc_spu_gang()
23 kref_init(&gang->kref); in alloc_spu_gang()
24 mutex_init(&gang->mutex); in alloc_spu_gang()
25 mutex_init(&gang->aff_mutex); in alloc_spu_gang()
26 INIT_LIST_HEAD(&gang->list); in alloc_spu_gang()
27 INIT_LIST_HEAD(&gang->aff_list_head); in alloc_spu_gang()
30 return gang; in alloc_spu_gang()
35 struct spu_gang *gang; in destroy_spu_gang() local
[all …]
Dsched.c254 static void aff_merge_remaining_ctxs(struct spu_gang *gang) in aff_merge_remaining_ctxs() argument
258 list_for_each_entry(ctx, &gang->aff_list_head, aff_list) { in aff_merge_remaining_ctxs()
260 list_add(&ctx->aff_list, &gang->aff_list_head); in aff_merge_remaining_ctxs()
262 gang->aff_flags |= AFF_MERGED; in aff_merge_remaining_ctxs()
265 static void aff_set_offsets(struct spu_gang *gang) in aff_set_offsets() argument
271 list_for_each_entry_reverse(ctx, &gang->aff_ref_ctx->aff_list, in aff_set_offsets()
273 if (&ctx->aff_list == &gang->aff_list_head) in aff_set_offsets()
279 list_for_each_entry(ctx, gang->aff_ref_ctx->aff_list.prev, aff_list) { in aff_set_offsets()
280 if (&ctx->aff_list == &gang->aff_list_head) in aff_set_offsets()
285 gang->aff_flags |= AFF_OFFSETS_SET; in aff_set_offsets()
[all …]
Dinode.c298 spufs_assert_affinity(unsigned int flags, struct spu_gang *gang, in spufs_assert_affinity() argument
315 gang->aff_ref_ctx && in spufs_assert_affinity()
316 gang->aff_ref_ctx->flags & SPU_CREATE_AFFINITY_MEM) in spufs_assert_affinity()
319 if (gang->aff_flags & AFF_MERGED) in spufs_assert_affinity()
331 !list_is_last(&neighbor->aff_list, &gang->aff_list_head) && in spufs_assert_affinity()
338 if (gang != neighbor->gang) { in spufs_assert_affinity()
344 list_for_each_entry(tmp, &gang->aff_list_head, aff_list) in spufs_assert_affinity()
373 ctx->gang->aff_ref_ctx = ctx; in spufs_set_affinity()
378 &ctx->gang->aff_list_head); in spufs_set_affinity()
382 if (list_is_last(&neighbor->aff_list, &ctx->gang->aff_list_head) in spufs_set_affinity()
[all …]
Dcontext.c25 struct spu_context *alloc_spu_context(struct spu_gang *gang) in alloc_spu_context() argument
52 if (gang) in alloc_spu_context()
53 spu_gang_add_ctx(gang, ctx); in alloc_spu_context()
78 if (ctx->gang) in destroy_spu_context()
79 spu_gang_remove_ctx(ctx->gang, ctx); in destroy_spu_context()
Dspufs.h100 struct spu_gang *gang; member
245 struct spu_gang *get_spu_gang(struct spu_gang *gang);
246 int put_spu_gang(struct spu_gang *gang);
247 void spu_gang_remove_ctx(struct spu_gang *gang, struct spu_context *ctx);
248 void spu_gang_add_ctx(struct spu_gang *gang, struct spu_context *ctx);
269 struct spu_context * alloc_spu_context(struct spu_gang *gang);
DMakefile5 spufs-y += sched.o backing_ops.o hw_ops.o run.o gang.o
/Linux-v5.15/drivers/perf/
Dqcom_l3_pmu.c198 u32 gang; in qcom_l3_cache__64bit_counter_start() local
201 gang = readl_relaxed(l3pmu->regs + L3_M_BC_GANG); in qcom_l3_cache__64bit_counter_start()
202 gang |= GANG_EN(idx + 1); in qcom_l3_cache__64bit_counter_start()
203 writel_relaxed(gang, l3pmu->regs + L3_M_BC_GANG); in qcom_l3_cache__64bit_counter_start()
229 u32 gang = readl_relaxed(l3pmu->regs + L3_M_BC_GANG); in qcom_l3_cache__64bit_counter_stop() local
236 writel_relaxed(gang & ~GANG_EN(idx + 1), l3pmu->regs + L3_M_BC_GANG); in qcom_l3_cache__64bit_counter_stop()
/Linux-v5.15/fs/btrfs/
Ddisk-io.c2195 struct btrfs_root *gang[8]; in btrfs_free_fs_roots() local
2199 gang[0] = list_entry(fs_info->dead_roots.next, in btrfs_free_fs_roots()
2201 list_del(&gang[0]->root_list); in btrfs_free_fs_roots()
2203 if (test_bit(BTRFS_ROOT_IN_RADIX, &gang[0]->state)) in btrfs_free_fs_roots()
2204 btrfs_drop_and_free_fs_root(fs_info, gang[0]); in btrfs_free_fs_roots()
2205 btrfs_put_root(gang[0]); in btrfs_free_fs_roots()
2210 (void **)gang, 0, in btrfs_free_fs_roots()
2211 ARRAY_SIZE(gang)); in btrfs_free_fs_roots()
2215 btrfs_drop_and_free_fs_root(fs_info, gang[i]); in btrfs_free_fs_roots()
4239 struct btrfs_root *gang[8]; in btrfs_cleanup_fs_roots() local
[all …]
Dtransaction.c1336 struct btrfs_root *gang[8]; in commit_fs_roots() local
1343 (void **)gang, 0, in commit_fs_roots()
1344 ARRAY_SIZE(gang), in commit_fs_roots()
1349 struct btrfs_root *root = gang[i]; in commit_fs_roots()
Dextent_io.c7173 struct extent_buffer *gang[BTRFS_SUBPAGE_BITMAP_SIZE]; in get_next_extent_buffer() local
7183 ret = radix_tree_gang_lookup(&fs_info->buffer_radix, (void **)gang, in get_next_extent_buffer()
7188 if (gang[i]->start >= page_start + PAGE_SIZE) in get_next_extent_buffer()
7191 if (gang[i]->start >= bytenr) { in get_next_extent_buffer()
7192 found = gang[i]; in get_next_extent_buffer()
/Linux-v5.15/Documentation/devicetree/bindings/regulator/
Dqcom,spmi-regulator.txt290 Description: SAW controlled gang slave. Will not be configured.
295 Description: SAW controlled gang leader. Will be configured as
/Linux-v5.15/Documentation/devicetree/bindings/display/tegra/
Dnvidia,tegra20-host1x.txt306 - nvidia,ganged-mode: contains a phandle to a second DSI controller to gang
/Linux-v5.15/Documentation/driver-api/usb/
Dpower-management.rst577 a shared power well causing power to remain until all ports in the gang