| /linux/arch/powerpc/platforms/cell/spufs/ |
| H A D | gang.c | 17 struct spu_gang *gang; in alloc_spu_gang() local 19 gang = kzalloc_obj(*gang); 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() 28 gang->alive = 1; in alloc_spu_gang() 31 return gang; in alloc_spu_gang() [all …]
|
| H A D | sched.c | 254 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 …]
|
| H A D | inode.c | 177 struct spu_gang *gang = SPUFS_I(inode)->i_gang; in unuse_gang() local 179 if (gang) { in unuse_gang() 183 dead = !--gang->alive; in unuse_gang() 276 spufs_assert_affinity(unsigned int flags, struct spu_gang *gang, in spufs_assert_affinity() argument 293 gang->aff_ref_ctx && in spufs_assert_affinity() 294 gang->aff_ref_ctx->flags & SPU_CREATE_AFFINITY_MEM) in spufs_assert_affinity() 297 if (gang->aff_flags & AFF_MERGED) in spufs_assert_affinity() 309 !list_is_last(&neighbor->aff_list, &gang->aff_list_head) && in spufs_assert_affinity() 316 if (gang != neighbor->gang) { in spufs_assert_affinity() 322 list_for_each_entry(tmp, &gang->aff_list_head, aff_list) in spufs_assert_affinity() [all …]
|
| H A D | context.c | 25 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()
|
| H A D | spufs.h | 100 struct spu_gang *gang; member 247 struct spu_gang *get_spu_gang(struct spu_gang *gang); 248 int put_spu_gang(struct spu_gang *gang); 249 void spu_gang_remove_ctx(struct spu_gang *gang, struct spu_context *ctx); 250 void spu_gang_add_ctx(struct spu_gang *gang, struct spu_context *ctx); 271 struct spu_context * alloc_spu_context(struct spu_gang *gang);
|
| H A D | Makefile | 5 spufs-y += sched.o backing_ops.o hw_ops.o run.o gang.o
|
| /linux/fs/btrfs/ |
| H A D | disk-io.c | 1850 struct btrfs_root *gang[8]; 1854 gang[0] = list_first_entry(&fs_info->dead_roots, in btrfs_init_scrub() 1856 list_del(&gang[0]->root_list); in btrfs_init_scrub() 1858 if (test_bit(BTRFS_ROOT_IN_RADIX, &gang[0]->state)) in btrfs_init_scrub() 1859 btrfs_drop_and_free_fs_root(fs_info, gang[0]); in btrfs_init_scrub() 1860 btrfs_put_root(gang[0]); in btrfs_init_scrub() 1865 (void **)gang, 0, in btrfs_init_balance() 1866 ARRAY_SIZE(gang)); in btrfs_init_balance() 1870 btrfs_drop_and_free_fs_root(fs_info, gang[i]); in btrfs_init_balance() 3003 struct btrfs_root *gang[ in btrfs_cleanup_fs_roots() 1827 struct btrfs_root *gang[8]; btrfs_free_fs_roots() local 2982 struct btrfs_root *gang[8]; btrfs_cleanup_fs_roots() local 4536 struct btrfs_root *gang[8]; btrfs_drop_all_logs() local 4791 struct btrfs_root *gang[8]; btrfs_free_all_qgroup_pertrans() local [all...] |
| H A D | transaction.c | 1492 struct btrfs_root *gang[8]; in commit_fs_roots() 1506 (void **)gang, 0, in commit_fs_roots() 1507 ARRAY_SIZE(gang), in commit_fs_roots() 1512 struct btrfs_root *root = gang[i]; in commit_fs_roots() 1491 struct btrfs_root *gang[8]; commit_fs_roots() local
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_device.c | 6701 * amdgpu_device_get_gang - return a reference to the current gang 6704 * Returns: A new reference to the current gang leader. 6717 * amdgpu_device_switch_gang - switch to a new gang in amdgpu_device_switch_gang() 6719 * @gang: the gang to switch to in amdgpu_device_switch_gang() 6721 * Try to switch to a new gang. in amdgpu_device_switch_gang() 6722 * Returns: NULL if we switched to the new gang or a reference to the current in amdgpu_device_switch_gang() 6723 * gang leader. in amdgpu_device_switch_gang() 6726 struct dma_fence *gang) in amdgpu_device_switch_gang() 6730 dma_fence_get(gang); in amdgpu_device_switch_gang() 6711 amdgpu_device_switch_gang(struct amdgpu_device * adev,struct dma_fence * gang) amdgpu_device_switch_gang() argument [all...] |
| H A D | amdgpu.h | 1422 struct dma_fence *gang);
|
| /linux/Documentation/driver-api/usb/ |
| H A D | power-management.rst | 577 a shared power well causing power to remain until all ports in the gang
|