Home
last modified time | relevance | path

Searched refs:cfg_ctx (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/accel/habanalabs/gaudi2/
Dgaudi2P.h605 void gaudi2_init_blocks(struct hl_device *hdev, struct dup_block_ctx *cfg_ctx);
Dgaudi2.c10263 struct dup_block_ctx *cfg_ctx) in gaudi2_init_block_instances() argument
10265 u64 block_base = cfg_ctx->base + block_idx * cfg_ctx->block_off; in gaudi2_init_block_instances()
10269 for (i = 0 ; i < cfg_ctx->instances ; i++) { in gaudi2_init_block_instances()
10270 seq = block_idx * cfg_ctx->instances + i; in gaudi2_init_block_instances()
10273 if (!(cfg_ctx->enabled_mask & BIT_ULL(seq))) in gaudi2_init_block_instances()
10276 cfg_ctx->instance_cfg_fn(hdev, block_base + i * cfg_ctx->instance_off, in gaudi2_init_block_instances()
10277 cfg_ctx->data); in gaudi2_init_block_instances()
10281 static void gaudi2_init_blocks_with_mask(struct hl_device *hdev, struct dup_block_ctx *cfg_ctx, in gaudi2_init_blocks_with_mask() argument
10286 cfg_ctx->enabled_mask = mask; in gaudi2_init_blocks_with_mask()
10288 for (i = 0 ; i < cfg_ctx->blocks ; i++) in gaudi2_init_blocks_with_mask()
[all …]