Lines Matching +full:all +full:- +full:inputs

1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * All Rights Reserved.
25 dram_limit_addr = FIELD_GET(DF4_DRAM_LIMIT_ADDR, ctx->map.limit); in addr_over_limit()
27 dram_limit_addr = FIELD_GET(DF2_DRAM_LIMIT_ADDR, ctx->map.limit); in addr_over_limit()
30 dram_limit_addr |= GENMASK(DF_DRAM_BASE_LIMIT_LSB - 1, 0); in addr_over_limit()
33 if (ctx->ret_addr > dram_limit_addr) { in addr_over_limit()
35 ctx->ret_addr, dram_limit_addr); in addr_over_limit()
36 return -EINVAL; in addr_over_limit()
44 u32 reg = ctx->map.base; in legacy_hole_en()
47 reg = ctx->map.ctl; in legacy_hole_en()
58 addr += (BIT_ULL(32) - df_cfg.dram_hole_base); in add_legacy_hole()
69 addr -= (BIT_ULL(32) - df_cfg.dram_hole_base); in remove_legacy_hole()
79 base_addr = FIELD_GET(DF4_BASE_ADDR, ctx->map.base); in get_base_addr()
81 base_addr = FIELD_GET(DF2_BASE_ADDR, ctx->map.base); in get_base_addr()
93 return remove_legacy_hole(ctx, addr) - get_base_addr(ctx); in remove_base_and_hole()
104 if (ctx->map.intlv_mode == DF3_6CHAN) in late_hole_remove()
115 return -EINVAL; in norm_to_sys_addr()
123 ctx.inputs.norm_addr = addr; in norm_to_sys_addr()
124 ctx.inputs.socket_id = socket_id; in norm_to_sys_addr()
125 ctx.inputs.die_id = die_id; in norm_to_sys_addr()
126 ctx.inputs.coh_st_inst_id = coh_st_inst_id; in norm_to_sys_addr()
129 return -EINVAL; in norm_to_sys_addr()
132 return -EINVAL; in norm_to_sys_addr()
135 return -EINVAL; in norm_to_sys_addr()
138 return -EINVAL; in norm_to_sys_addr()
144 return -EINVAL; in norm_to_sys_addr()
150 return -EINVAL; in norm_to_sys_addr()
158 * All Zen-based systems before Family 19h use the legacy in check_for_legacy_df_access()
166 /* All systems after Family 19h use the current offsets. */ in check_for_legacy_df_access()
179 * This library provides functionality for AMD-based systems with a Data Fabric.
180 * The set of systems with a Data Fabric is equivalent to the set of Zen-based systems
185 * an ever expanding list. Instead, match on the SMCA and Zen features to cover all
198 return -ENODEV; in amd_atl_init()
201 return -ENODEV; in amd_atl_init()
206 return -ENODEV; in amd_atl_init()