const struct dce110_timing_generator_offsets *offsets)
{
struct dce110_timing_generator *tg110 =
- dm_alloc(sizeof(struct dce110_timing_generator));
+ kzalloc(sizeof(struct dce110_timing_generator), GFP_KERNEL);
if (!tg110)
return NULL;
return &tg110->base;
BREAK_TO_DEBUGGER();
- dm_free(tg110);
+ kfree(tg110);
return NULL;
}
struct dc_context *ctx)
{
struct dce110_stream_encoder *enc110 =
- dm_alloc(sizeof(struct dce110_stream_encoder));
+ kzalloc(sizeof(struct dce110_stream_encoder), GFP_KERNEL);
if (!enc110)
return NULL;
return &enc110->base;
BREAK_TO_DEBUGGER();
- dm_free(enc110);
+ kfree(enc110);
return NULL;
}
static struct dce_hwseq *dce100_hwseq_create(
struct dc_context *ctx)
{
- struct dce_hwseq *hws = dm_alloc(sizeof(struct dce_hwseq));
+ struct dce_hwseq *hws = kzalloc(sizeof(struct dce_hwseq), GFP_KERNEL);
if (hws) {
hws->ctx = ctx;
struct dc_context *ctx,
uint32_t inst)
{
- struct dce_mem_input *dce_mi = dm_alloc(sizeof(struct dce_mem_input));
+ struct dce_mem_input *dce_mi = kzalloc(sizeof(struct dce_mem_input),
+ GFP_KERNEL);
if (!dce_mi) {
BREAK_TO_DEBUGGER();
static void dce100_transform_destroy(struct transform **xfm)
{
- dm_free(TO_DCE_TRANSFORM(*xfm));
+ kfree(TO_DCE_TRANSFORM(*xfm));
*xfm = NULL;
}
uint32_t inst)
{
struct dce_transform *transform =
- dm_alloc(sizeof(struct dce_transform));
+ kzalloc(sizeof(struct dce_transform), GFP_KERNEL);
if (!transform)
return NULL;
}
BREAK_TO_DEBUGGER();
- dm_free(transform);
+ kfree(transform);
return NULL;
}
static struct input_pixel_processor *dce100_ipp_create(
struct dc_context *ctx, uint32_t inst)
{
- struct dce_ipp *ipp = dm_alloc(sizeof(struct dce_ipp));
+ struct dce_ipp *ipp = kzalloc(sizeof(struct dce_ipp), GFP_KERNEL);
if (!ipp) {
BREAK_TO_DEBUGGER();
const struct encoder_init_data *enc_init_data)
{
struct dce110_link_encoder *enc110 =
- dm_alloc(sizeof(struct dce110_link_encoder));
+ kzalloc(sizeof(struct dce110_link_encoder), GFP_KERNEL);
if (!enc110)
return NULL;
}
BREAK_TO_DEBUGGER();
- dm_free(enc110);
+ kfree(enc110);
return NULL;
}
uint32_t inst)
{
struct dce110_opp *opp =
- dm_alloc(sizeof(struct dce110_opp));
+ kzalloc(sizeof(struct dce110_opp), GFP_KERNEL);
if (!opp)
return NULL;
return &opp->base;
BREAK_TO_DEBUGGER();
- dm_free(opp);
+ kfree(opp);
return NULL;
}
bool dp_clk_src)
{
struct dce110_clk_src *clk_src =
- dm_alloc(sizeof(struct dce110_clk_src));
+ kzalloc(sizeof(struct dce110_clk_src), GFP_KERNEL);
if (!clk_src)
return NULL;
void dce100_clock_source_destroy(struct clock_source **clk_src)
{
- dm_free(TO_DCE110_CLK_SRC(*clk_src));
+ kfree(TO_DCE110_CLK_SRC(*clk_src));
*clk_src = NULL;
}
dce_ipp_destroy(&pool->base.ipps[i]);
if (pool->base.mis[i] != NULL) {
- dm_free(TO_DCE_MEM_INPUT(pool->base.mis[i]));
+ kfree(TO_DCE_MEM_INPUT(pool->base.mis[i]));
pool->base.mis[i] = NULL;
}
if (pool->base.timing_generators[i] != NULL) {
- dm_free(DCE110TG_FROM_TG(pool->base.timing_generators[i]));
+ kfree(DCE110TG_FROM_TG(pool->base.timing_generators[i]));
pool->base.timing_generators[i] = NULL;
}
}
for (i = 0; i < pool->base.stream_enc_count; i++) {
if (pool->base.stream_enc[i] != NULL)
- dm_free(DCE110STRENC_FROM_STRENC(pool->base.stream_enc[i]));
+ kfree(DCE110STRENC_FROM_STRENC(pool->base.stream_enc[i]));
}
for (i = 0; i < pool->base.clk_src_count; i++) {
struct dce110_resource_pool *dce110_pool = TO_DCE110_RES_POOL(*pool);
destruct(dce110_pool);
- dm_free(dce110_pool);
+ kfree(dce110_pool);
*pool = NULL;
}
struct dc *dc)
{
struct dce110_resource_pool *pool =
- dm_alloc(sizeof(struct dce110_resource_pool));
+ kzalloc(sizeof(struct dce110_resource_pool), GFP_KERNEL);
if (!pool)
return NULL;