Lines Matching refs:d71

114 static u32 __get_blk_line_size(struct d71_dev *d71, u32 __iomem *reg,  in __get_blk_line_size()  argument
117 if (!d71->periph_addr) in __get_blk_line_size()
123 static u32 get_blk_line_size(struct d71_dev *d71, u32 __iomem *reg) in get_blk_line_size() argument
125 return __get_blk_line_size(d71, reg, d71->max_line_size); in get_blk_line_size()
409 static int d71_layer_init(struct d71_dev *d71, in d71_layer_init() argument
417 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*layer), in d71_layer_init()
436 if (!d71->periph_addr) { in d71_layer_init()
440 } else if (d71->max_line_size > 2048) { in d71_layer_init()
442 layer->line_sz = d71->max_line_size; in d71_layer_init()
448 layer->line_sz = d71->max_line_size * 2; in d71_layer_init()
451 layer->line_sz = d71->max_line_size; in d71_layer_init()
458 set_range(&layer->vsize_in, 4, d71->max_vsize); in d71_layer_init()
527 static int d71_wb_layer_init(struct d71_dev *d71, in d71_wb_layer_init() argument
536 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*wb_layer), in d71_wb_layer_init()
548 wb_layer->line_sz = get_blk_line_size(d71, reg); in d71_wb_layer_init()
552 set_range(&wb_layer->vsize_in, 64, d71->max_vsize); in d71_wb_layer_init()
668 static int d71_compiz_init(struct d71_dev *d71, in d71_compiz_init() argument
677 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*compiz), in d71_compiz_init()
689 set_range(&compiz->hsize, 64, get_blk_line_size(d71, reg)); in d71_compiz_init()
690 set_range(&compiz->vsize, 64, d71->max_vsize); in d71_compiz_init()
837 static int d71_scaler_init(struct d71_dev *d71, in d71_scaler_init() argument
846 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*scaler), in d71_scaler_init()
859 set_range(&scaler->hsize, 4, __get_blk_line_size(d71, reg, 2048)); in d71_scaler_init()
945 static int d71_splitter_init(struct d71_dev *d71, in d71_splitter_init() argument
954 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*splitter), in d71_splitter_init()
968 set_range(&splitter->hsize, 4, get_blk_line_size(d71, reg)); in d71_splitter_init()
969 set_range(&splitter->vsize, 4, d71->max_vsize); in d71_splitter_init()
1015 static int d71_merger_init(struct d71_dev *d71, in d71_merger_init() argument
1024 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*merger), in d71_merger_init()
1040 __get_blk_line_size(d71, reg, 4032)); in d71_merger_init()
1126 static int d71_improc_init(struct d71_dev *d71, in d71_improc_init() argument
1135 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*improc), in d71_improc_init()
1253 static int d71_timing_ctrlr_init(struct d71_dev *d71, in d71_timing_ctrlr_init() argument
1262 c = komeda_component_add(&d71->pipes[pipe_id]->base, sizeof(*ctrlr), in d71_timing_ctrlr_init()
1275 ctrlr->supports_dual_link = d71->supports_dual_link; in d71_timing_ctrlr_init()
1280 int d71_probe_block(struct d71_dev *d71, in d71_probe_block() argument
1293 pipe = d71->pipes[blk_id]; in d71_probe_block()
1298 err = d71_layer_init(d71, blk, reg); in d71_probe_block()
1302 err = d71_wb_layer_init(d71, blk, reg); in d71_probe_block()
1306 pipe = d71->pipes[blk_id]; in d71_probe_block()
1308 err = d71_compiz_init(d71, blk, reg); in d71_probe_block()
1312 err = d71_scaler_init(d71, blk, reg); in d71_probe_block()
1316 err = d71_splitter_init(d71, blk, reg); in d71_probe_block()
1320 err = d71_merger_init(d71, blk, reg); in d71_probe_block()
1324 pipe = d71->pipes[blk_id]; in d71_probe_block()
1329 err = d71_improc_init(d71, blk, reg); in d71_probe_block()
1333 pipe = d71->pipes[blk_id]; in d71_probe_block()
1338 err = d71_timing_ctrlr_init(d71, blk, reg); in d71_probe_block()
1345 d71->glb_scl_coeff_addr[blk_id] = reg; in d71_probe_block()
1358 static void d71_gcu_dump(struct d71_dev *d71, struct seq_file *sf) in d71_gcu_dump() argument
1364 get_values_from_reg(d71->gcu_addr, 0, 3, v); in d71_gcu_dump()
1369 get_values_from_reg(d71->gcu_addr, 0x10, 1, v); in d71_gcu_dump()
1372 get_values_from_reg(d71->gcu_addr, 0xA0, 5, v); in d71_gcu_dump()
1379 get_values_from_reg(d71->gcu_addr, 0xD0, 3, v); in d71_gcu_dump()
1441 struct d71_dev *d71 = mdev->chip_data; in d71_dump() local
1443 d71_gcu_dump(d71, sf); in d71_dump()