Lines Matching refs:denorm_addr

73 	u64 denorm_addr = expand_bits(ctx->map.intlv_bit_pos, 1, ctx->ret_addr);  in make_space_for_coh_st_id_split_2_1()  local
77 return denorm_addr; in make_space_for_coh_st_id_split_2_1()
80 return expand_bits(12, ctx->map.total_intlv_bits - 1, denorm_addr); in make_space_for_coh_st_id_split_2_1()
97 u64 denorm_addr; in make_space_for_coh_st_id_mi300() local
105 denorm_addr = expand_bits(8, min(num_intlv_bits, 4), ctx->ret_addr); in make_space_for_coh_st_id_mi300()
108 denorm_addr = expand_bits(12, ilog2(ctx->map.num_intlv_dies), denorm_addr); in make_space_for_coh_st_id_mi300()
112 denorm_addr = expand_bits(14, 1, denorm_addr); in make_space_for_coh_st_id_mi300()
114 return denorm_addr; in make_space_for_coh_st_id_mi300()
323 static u64 insert_coh_st_id_at_intlv_bit(struct addr_ctx *ctx, u64 denorm_addr, u16 coh_st_id) in insert_coh_st_id_at_intlv_bit() argument
325 return denorm_addr | (coh_st_id << ctx->map.intlv_bit_pos); in insert_coh_st_id_at_intlv_bit()
328 static u64 insert_coh_st_id_split_2_1(struct addr_ctx *ctx, u64 denorm_addr, u16 coh_st_id) in insert_coh_st_id_split_2_1() argument
331 denorm_addr |= (coh_st_id & BIT(0)) << ctx->map.intlv_bit_pos; in insert_coh_st_id_split_2_1()
334 denorm_addr |= (coh_st_id & GENMASK(2, 1)) << 11; in insert_coh_st_id_split_2_1()
336 return denorm_addr; in insert_coh_st_id_split_2_1()
339 static u64 insert_coh_st_id_split_2_2(struct addr_ctx *ctx, u64 denorm_addr, u16 coh_st_id) in insert_coh_st_id_split_2_2() argument
342 denorm_addr |= (coh_st_id & GENMASK(1, 0)) << 8; in insert_coh_st_id_split_2_2()
348 denorm_addr |= (coh_st_id & GENMASK(3, 2)) << 10; in insert_coh_st_id_split_2_2()
350 return denorm_addr; in insert_coh_st_id_split_2_2()
353 static u64 insert_coh_st_id(struct addr_ctx *ctx, u64 denorm_addr, u16 coh_st_id) in insert_coh_st_id() argument
365 return insert_coh_st_id_at_intlv_bit(ctx, denorm_addr, coh_st_id); in insert_coh_st_id()
378 return insert_coh_st_id_split_2_1(ctx, denorm_addr, coh_st_id); in insert_coh_st_id()
383 return insert_coh_st_id_split_2_2(ctx, denorm_addr, coh_st_id); in insert_coh_st_id()
565 u64 denorm_addr; in denorm_addr_common() local
574 denorm_addr = make_space_for_coh_st_id(ctx); in denorm_addr_common()
576 ctx->ret_addr = insert_coh_st_id(ctx, denorm_addr, coh_st_id); in denorm_addr_common()
996 u64 test_perm, temp_addr, denorm_addr, num_perms; in check_permutations() local
1011 denorm_addr = denorm_ctx->base_denorm_addr; in check_permutations()
1017 denorm_addr |= temp_addr << 14; in check_permutations()
1022 denorm_addr |= temp_addr << 13; in check_permutations()
1028 denorm_addr |= temp_addr << 12; in check_permutations()
1033 denorm_addr |= FIELD_GET(BIT_ULL(0), temp_addr) << 9; in check_permutations()
1034 denorm_addr |= FIELD_GET(GENMASK_ULL(63, 1), temp_addr) << 12; in check_permutations()
1039 denorm_addr |= FIELD_GET(GENMASK_ULL(1, 0), temp_addr) << 8; in check_permutations()
1040 denorm_addr |= FIELD_GET(GENMASK_ULL(63, 2), (temp_addr)) << 12; in check_permutations()
1045 denorm_addr |= FIELD_GET(BIT_ULL(0), temp_addr) << 8; in check_permutations()
1046 denorm_addr |= FIELD_GET(GENMASK_ULL(63, 1), temp_addr) << 12; in check_permutations()
1056 denorm_addr |= FIELD_GET(BIT_ULL(0), test_perm) << 8; in check_permutations()
1057 denorm_addr |= FIELD_GET(BIT_ULL(1), test_perm) << 9; in check_permutations()
1058 denorm_addr |= FIELD_GET(BIT_ULL(2), test_perm) << 12; in check_permutations()
1062 denorm_addr |= FIELD_GET(BIT_ULL(0), test_perm) << 8; in check_permutations()
1063 denorm_addr |= FIELD_GET(BIT_ULL(1), test_perm) << 12; in check_permutations()
1064 denorm_addr |= FIELD_GET(BIT_ULL(2), test_perm) << 13; in check_permutations()
1068 denorm_addr |= FIELD_GET(BIT_ULL(0), test_perm) << 8; in check_permutations()
1069 denorm_addr |= FIELD_GET(BIT_ULL(1), test_perm) << 12; in check_permutations()
1075 denorm_addr |= FIELD_GET(BIT_ULL(0), test_perm) << 8; in check_permutations()
1076 denorm_addr |= FIELD_GET(BIT_ULL(1), test_perm) << 9; in check_permutations()
1085 denorm_addr |= FIELD_GET(BIT_ULL(0), test_perm) << 8; in check_permutations()
1093 denorm_ctx->current_spa = add_base_and_hole(ctx, denorm_addr); in check_permutations()